Francesco Casella
Francesco Casella
Try the following MWE script: ```modelica setCommandLineOptions("--baseModelica --newBackend");getErrorString(); loadModel(Modelica, {"4.0.0"});getErrorString(); writeFile("ThreeTanks-record-array.bmo", instantiateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks)); getErrorString(); ``` The generated Base Modelica code contains these lines ```modelica Real[1, 0] 'tank1.ports.C_outflow'(each start = fill(fill(1.0, 0),...
At the moment, we can check if our Base Modelica output is good by reading it back into OMC and pretending it is plain Modelica. This is not fully satisfactory...
Please compare [LargeTestSuite.Mechanical.HarmonicOscillator.HarmonicOscillator_N_409600](https://libraries.openmodelica.org/branches/heavy_tests/LargeTestSuite_NB/files/LargeTestSuite_NB_LargeTestSuite.Mechanical.HarmonicOscillator.HarmonicOscillator_N_409600.err) and [LargeTestSuite.Mechanical.HarmonicOscillator.HarmonicOscillator_N_819200](https://libraries.openmodelica.org/branches/heavy_tests/LargeTestSuite_NB/files/LargeTestSuite_NB_LargeTestSuite.Mechanical.HarmonicOscillator.HarmonicOscillator_N_819200.err). The first model has 0.8 M states and spends 60.6 s during the SimCode phase, the second has 1.6 M states and spends 151.4 s...
Please check [PowerGrids.Examples.IEEE14bus.IEEE14busStaticNetwork](https://libraries.openmodelica.org/branches/newInst-newBackend/PowerGrids/files/PowerGrids_PowerGrids.Examples.IEEE14bus.IEEE14busStaticNetwork.err). The C code compilation fails with ``` PowerGrids_PowerGrids.Examples.IEEE14bus.IEEE14busStaticNetwork_02nls_part0.c:2566:18: error: invalid operands to binary expression ('Complex' and 'PowerGrids_Types_ComplexAdmittance' (aka 'Complex')) tmp13 = tmp0 - tmp1 - (data->simulationInfo->daeModeData->residualVars[1210]) /*...
This ticket collects known issues involving the [PowerGrids](https://libraries.openmodelica.org/branches/newInst-newBackend/PowerGrids/PowerGrids.html) library and the NB. - #10034. This is really important, specifically to solve initialization problems in power grid models - #12237 (as...
Please check [PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow](https://libraries.openmodelica.org/branches/newInst-newBackend/PowerGrids/files/PowerGrids_PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow.err). The model passes all the phases of the backend, but finally fails with ```modelica [OpenModelica/OMCompiler/Compiler/NBackEnd/Modules/2_Pre/NBEvents.mo:675:7-675:120:writable] Error: Internal error UnorderedMap.getSafe failed because the key did not exist. ```...
Please check the verification reports of [PowerGrids.Electrical.Test.SynchronousMachine4Windings](https://libraries.openmodelica.org/branches/newInst-newBackend/PowerGrids/files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.diff.html). 145/148 results are fine, only the idPu current, and consequently the real and imaginary parts of the port current, are wrong. We should...
We had many false regressions in the MSL on signals that are supposed to be zero but aren't, due to numerical errors, see modelica/ModelicaStandardLibrary#4421 One solution is to remove those...
This change considers a minimum range of Y reference values of 0.001, to avoid false negatives when handling near-zero values that are the result of balance equations affected by small...
Some models in the MSL show chaotic motion. It's good to see the chaotic motion in the simulation, so we set StopTime long enough to see that, but when issuing...