Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001222/0.001222, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001205/0.001205, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.502/1.502, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1798/0.1798, allocations: 38.03 MB / 329.7 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.2 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09682, allocations: 58.07 MB / 457 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005161/0.102, allocations: 3.676 MB / 460.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003109/0.1052, allocations: 2.05 MB / 462.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00031/0.1055, allocations: 11.94 kB / 462.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009687/0.1065, allocations: 230.9 kB / 462.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008252/0.1073, allocations: 290.8 kB / 463.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008795/0.1082, allocations: 286.5 kB / 463.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008065/0.109, allocations: 0.5339 MB / 464 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004623/0.1095, allocations: 207.6 kB / 464.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005068/0.11, allocations: 231.1 kB / 464.5 MB, free: 404 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.1104, allocations: 207.3 kB / 464.7 MB, free: 196 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.914e-05/0.1105, allocations: 40 kB / 464.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007682/0.1112, allocations: 395.2 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.1114, allocations: 131.6 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.1116, allocations: 183.1 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009458/0.1126, allocations: 0.6349 MB / 466 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1126, allocations: 0 / 466 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1126, allocations: 4 kB / 466 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1126, allocations: 0 / 466 MB, free: 14.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001393/0.114, allocations: 0.7432 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1141, allocations: 11.89 kB / 466.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.903e-05/0.1142, allocations: 58.72 kB / 466.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009367/0.1151, allocations: 108.4 kB / 466.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/0.1157, allocations: 411.6 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1157, allocations: 16.81 kB / 467.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.007e-05/0.1158, allocations: 23.94 kB / 467.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008305/0.1166, allocations: 450.8 kB / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1167, allocations: 0 / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.1167, allocations: 8 kB / 467.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.1167, allocations: 24.36 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1178, allocations: 0.4973 MB / 468.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.1202, allocations: 1.674 MB / 470 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.1213, allocations: 369.1 kB / 470.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003735/0.1217, allocations: 145.6 kB / 470.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.1217, allocations: 7.984 kB / 470.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005514/0.1223, allocations: 294.9 kB / 470.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/0.1223, allocations: 0 / 470.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001303/0.1236, allocations: 0.5275 MB / 471.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.1237, allocations: 298.7 kB / 471.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.1242, allocations: 336.4 kB / 472 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/0.1242, allocations: 33.7 kB / 472 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.1244, allocations: 196.6 kB / 472.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.1245, allocations: 102.6 kB / 472.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.1246, allocations: 69.7 kB / 472.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1248, allocations: 346.8 kB / 472.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.1252, allocations: 143.9 kB / 472.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004743/0.1257, allocations: 272.1 kB / 473.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008294/0.1265, allocations: 474.3 kB / 473.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1265, allocations: 0 / 473.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001033/0.1276, allocations: 0.5183 MB / 474.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.1276, allocations: 37.73 kB / 474.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1277, allocations: 4 kB / 474.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.1277, allocations: 4 kB / 474.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.128, allocations: 87.88 kB / 474.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.128, allocations: 11.94 kB / 474.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.1283, allocations: 47.66 kB / 474.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.1284, allocations: 20 kB / 474.3 MB, free: 5.992 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002279/0.1286, allocations: 193.6 kB / 474.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.1287, allocations: 55.33 kB / 474.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.1288, allocations: 51.16 kB / 474.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1288, allocations: 4 kB / 474.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1288, allocations: 0 / 474.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1288, allocations: 7.984 kB / 474.6 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008848/0.1297, allocations: 1.027 MB / 475.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1297, allocations: 0 / 475.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.13, allocations: 63.89 kB / 475.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.13, allocations: 4 kB / 475.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.13, allocations: 15.98 kB / 475.7 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.1301, allocations: 8.188 kB / 475.7 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.1301, allocations: 7.875 kB / 475.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009142/0.131, allocations: 463.4 kB / 476.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.46e-05/0.1311, allocations: 112.6 kB / 476.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.55e-05/0.1311, allocations: 16 kB / 476.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.1314, allocations: 27.97 kB / 476.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.331e-05/0.1315, allocations: 43.89 kB / 476.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.1315, allocations: 8 kB / 476.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.1317, allocations: 239 kB / 476.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1318, allocations: 0 / 476.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.1322, allocations: 83.89 kB / 476.7 MB, free: 3.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002049/0.1342, allocations: 1.366 MB / 478.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009426/0.1352, allocations: 447.8 kB / 478.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1352, allocations: 0 / 478.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.1357, allocations: 198.2 kB / 478.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.1361, allocations: 68.98 kB / 478.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005049/0.1412, allocations: 3.684 MB / 482.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.1416, allocations: 0.8073 MB / 483.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002503/0.1418, allocations: 91.19 kB / 483.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.142, allocations: 119.4 kB / 483.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.142, allocations: 0 / 483.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.1695, allocations: 8.254 MB / 491.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/7.805, allocations: 0 / 491.7 MB, free: 4.406 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)