Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_Test_RotorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_Test_RotorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 110.9 kB / 17.06 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 196 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1864/0.1864, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.83 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3744, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.003759/0.3782, allocations: 2.447 MB / 0.506 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005696/0.3788, allocations: 440 kB / 0.5064 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.894e-05/0.3789, allocations: 0.9688 kB / 0.5064 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.3791, allocations: 15.58 kB / 0.5064 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.3792, allocations: 30.11 kB / 0.5065 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001087/0.3793, allocations: 24.98 kB / 0.5065 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.3795, allocations: 100.4 kB / 0.5066 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.3796, allocations: 16.91 kB / 0.5066 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.3797, allocations: 44.08 kB / 0.5066 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.3798, allocations: 49.81 kB / 0.5067 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.3799, allocations: 6.875 kB / 0.5067 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.598e-05/0.3799, allocations: 11.88 kB / 0.5067 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.3799, allocations: 22.62 kB / 0.5067 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.072e-05/0.38, allocations: 40.52 kB / 0.5068 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.3802, allocations: 98.28 kB / 0.5069 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3802, allocations: 0 / 0.5069 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3802, allocations: 0 / 0.5069 GB, free: 5.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.3802, allocations: 0 / 0.5069 GB, free: 5.277 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000646/0.3809, allocations: 417.2 kB / 0.5073 GB, free: 4.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3809, allocations: 14.11 kB / 0.5073 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.098e-05/0.381, allocations: 38.86 kB / 0.5073 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.381, allocations: 9.359 kB / 0.5073 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.3812, allocations: 199 kB / 0.5075 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.3812, allocations: 6.688 kB / 0.5075 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.3813, allocations: 12.03 kB / 0.5075 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.3815, allocations: 90.84 kB / 0.5076 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3816, allocations: 5.688 kB / 0.5076 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.3816, allocations: 6.797 kB / 0.5076 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3816, allocations: 2.203 kB / 0.5076 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.3818, allocations: 68.72 kB / 0.5077 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007729/0.3826, allocations: 469.5 kB / 0.5081 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.383, allocations: 97.31 kB / 0.5082 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.3831, allocations: 38.25 kB / 0.5083 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.3831, allocations: 0 / 0.5083 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.303e-05/0.3831, allocations: 36.86 kB / 0.5083 GB, free: 4.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/0.3832, allocations: 4 kB / 0.5083 GB, free: 4.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004461/0.3836, allocations: 139.1 kB / 0.5084 GB, free: 3.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.3836, allocations: 53.22 kB / 0.5085 GB, free: 3.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.3837, allocations: 139.2 kB / 0.5086 GB, free: 3.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.3838, allocations: 26.95 kB / 0.5086 GB, free: 3.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.3838, allocations: 108.2 kB / 0.5087 GB, free: 3.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.3838, allocations: 20.23 kB / 0.5088 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.3839, allocations: 30.03 kB / 0.5088 GB, free: 3.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.384, allocations: 320.4 kB / 0.5091 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.3841, allocations: 32.53 kB / 0.5091 GB, free: 3.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3842, allocations: 67.47 kB / 0.5092 GB, free: 3.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.3844, allocations: 98.52 kB / 0.5093 GB, free: 3.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3845, allocations: 1.594 kB / 0.5093 GB, free: 3.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002915/0.3847, allocations: 130.1 kB / 0.5094 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3848, allocations: 10.59 kB / 0.5094 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3848, allocations: 1.406 kB / 0.5094 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.3848, allocations: 5.219 kB / 0.5094 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.385, allocations: 26.28 kB / 0.5095 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.385, allocations: 1.953 kB / 0.5095 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.931e-05/0.3851, allocations: 21.2 kB / 0.5095 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3851, allocations: 2.438 kB / 0.5095 GB, free: 3.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.43e-05/0.3852, allocations: 119.1 kB / 0.5096 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.3852, allocations: 12.19 kB / 0.5096 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.3856, allocations: 122.7 kB / 0.5097 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3856, allocations: 5.031 kB / 0.5097 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3856, allocations: 0 / 0.5097 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3856, allocations: 1.922 kB / 0.5097 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.3859, allocations: 212.4 kB / 0.5099 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3859, allocations: 5 kB / 0.5099 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.3861, allocations: 30.97 kB / 0.51 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.3861, allocations: 1.125 kB / 0.51 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.3861, allocations: 1.859 kB / 0.51 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3861, allocations: 3.938 kB / 0.51 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3861, allocations: 1.25 kB / 0.51 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.3866, allocations: 246.6 kB / 0.5102 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.203e-05/0.3867, allocations: 90.31 kB / 0.5103 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.3867, allocations: 5.812 kB / 0.5103 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.3868, allocations: 15.34 kB / 0.5103 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.111e-05/0.3869, allocations: 8.516 kB / 0.5103 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.3869, allocations: 6.922 kB / 0.5103 GB, free: 2.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.293e-05/0.387, allocations: 107.6 kB / 0.5104 GB, free: 2.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.387, allocations: 1.094 kB / 0.5104 GB, free: 2.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.3873, allocations: 20.5 kB / 0.5105 GB, free: 2.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007347/0.388, allocations: 0.7885 MB / 0.5112 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003412/0.3884, allocations: 82.16 kB / 0.5113 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3884, allocations: 4.25 kB / 0.5113 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3885, allocations: 43.52 kB / 0.5113 GB, free: 1.523 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.3888, allocations: 18.55 kB / 0.5114 GB, free: 1.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.3907, allocations: 1.74 MB / 0.5131 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.3911, allocations: 0.6957 MB / 0.5137 GB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.95e-05/0.3911, allocations: 10.05 kB / 0.5138 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.677e-05/0.3912, allocations: 26.09 kB / 0.5138 GB, free: 15.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3912, allocations: 1.312 kB / 0.5138 GB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.4184, allocations: 2.38 MB / 0.5161 GB, free: 14.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.261, allocations: 20.75 kB / 0.5161 GB, free: 14.89 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_PowerSystems_Examples_Wind_Test_RotorTest.fmu > PowerSystems_PowerSystems.Examples.Wind.Test.RotorTest.pipe 2>&1)