Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.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.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",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.001327/0.001326, allocations: 114.8 kB / 17.07 MB, free: 5.992 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.001245/0.001245, allocations: 200 kB / 18.01 MB, free: 5.066 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.427/1.427, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1907/0.1907, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 64.14 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3412, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005793/0.347, allocations: 3.599 MB / 0.5071 GB, free: 5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.3497, allocations: 1.809 MB / 0.5089 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.3499, allocations: 9.594 kB / 0.5089 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009047/0.3508, allocations: 237.7 kB / 0.5091 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006921/0.3515, allocations: 261.7 kB / 0.5094 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.3522, allocations: 212.2 kB / 0.5096 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005515/0.3527, allocations: 440 kB / 0.51 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003413/0.3531, allocations: 183.1 kB / 0.5102 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.3535, allocations: 187.9 kB / 0.5104 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.3538, allocations: 180 kB / 0.5105 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.637e-05/0.3538, allocations: 27.84 kB / 0.5106 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006386/0.3545, allocations: 325.4 kB / 0.5109 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.3546, allocations: 108.7 kB / 0.511 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.3548, allocations: 153 kB / 0.5111 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.3555, allocations: 0.5127 MB / 0.5116 GB, free: 2.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3556, allocations: 1.25 kB / 0.5116 GB, free: 2.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3556, allocations: 4 kB / 0.5116 GB, free: 2.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.954e-06/0.3556, allocations: 0 / 0.5116 GB, free: 2.43 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008495/0.3564, allocations: 0.6368 MB / 0.5122 GB, free: 1.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3565, allocations: 9.562 kB / 0.5123 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.622e-05/0.3565, allocations: 55.19 kB / 0.5123 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007899/0.3573, allocations: 92.36 kB / 0.5124 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005202/0.3579, allocations: 378 kB / 0.5128 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.3579, allocations: 15.66 kB / 0.5128 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-05/0.358, allocations: 27.86 kB / 0.5128 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.3586, allocations: 354.6 kB / 0.5131 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3586, allocations: 7.922 kB / 0.5131 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.3586, allocations: 6.312 kB / 0.5131 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-05/0.3587, allocations: 16.09 kB / 0.5132 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006561/0.3593, allocations: 391.7 kB / 0.5135 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.3611, allocations: 1.544 MB / 0.515 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.3618, allocations: 320.5 kB / 0.5154 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.362, allocations: 104.3 kB / 0.5154 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.3621, allocations: 6.766 kB / 0.5155 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000366/0.3624, allocations: 210.3 kB / 0.5157 GB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.3625, allocations: 0 / 0.5157 GB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000842/0.3633, allocations: 381.3 kB / 0.516 GB, free: 15.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.3634, allocations: 136.3 kB / 0.5162 GB, free: 15.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.3639, allocations: 293.5 kB / 0.5164 GB, free: 15.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.3639, allocations: 38 kB / 0.5165 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.3641, allocations: 178.9 kB / 0.5166 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.265e-05/0.3642, allocations: 84.81 kB / 0.5167 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3643, allocations: 61.92 kB / 0.5168 GB, free: 14.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.3645, allocations: 339.5 kB / 0.5171 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.3647, allocations: 93.09 kB / 0.5172 GB, free: 14.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.365, allocations: 194.3 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.3656, allocations: 295 kB / 0.5177 GB, free: 14.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3656, allocations: 1.312 kB / 0.5177 GB, free: 14.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007799/0.3664, allocations: 360.9 kB / 0.518 GB, free: 14.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3664, allocations: 7.422 kB / 0.518 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3664, allocations: 2.562 kB / 0.518 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/0.3664, allocations: 4.188 kB / 0.518 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.3667, allocations: 61.27 kB / 0.5181 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3667, allocations: 8.062 kB / 0.5181 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.3669, allocations: 32.81 kB / 0.5181 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.367, allocations: 12.66 kB / 0.5181 GB, free: 13.99 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 0.0002427/0.3672, allocations: 181.9 kB / 0.5183 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.3673, allocations: 30.77 kB / 0.5183 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006517/0.3679, allocations: 316.3 kB / 0.5186 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.368, allocations: 2.984 kB / 0.5186 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.368, allocations: 5.094 kB / 0.5186 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.368, allocations: 2.453 kB / 0.5186 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.3692, allocations: 0.7556 MB / 0.5194 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3692, allocations: 4.969 kB / 0.5194 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.3694, allocations: 39.69 kB / 0.5194 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.3694, allocations: 9.234 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.3694, allocations: 9.547 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.3694, allocations: 3.344 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3694, allocations: 3.938 kB / 0.5194 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006362/0.3701, allocations: 411.2 kB / 0.5198 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.386e-05/0.3702, allocations: 110.4 kB / 0.5199 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.3702, allocations: 13.42 kB / 0.52 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.3704, allocations: 11.69 kB / 0.52 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.3705, allocations: 16.41 kB / 0.52 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.3705, allocations: 12.86 kB / 0.52 GB, free: 12.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000266/0.3708, allocations: 211.4 kB / 0.5202 GB, free: 12.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3708, allocations: 4 kB / 0.5202 GB, free: 12.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004402/0.3712, allocations: 79.25 kB / 0.5203 GB, free: 12.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002447/0.3737, allocations: 1.301 MB / 0.5215 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006057/0.3743, allocations: 248.3 kB / 0.5218 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3743, allocations: 0.625 kB / 0.5218 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.3745, allocations: 130.5 kB / 0.5219 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.3751, allocations: 52 kB / 0.522 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004288/0.3794, allocations: 3.067 MB / 0.525 GB, free: 9.582 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.3799, allocations: 0.7861 MB / 0.5257 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002749/0.3802, allocations: 88.48 kB / 0.5258 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.3804, allocations: 103.6 kB / 0.5259 GB, free: 8.797 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3804, allocations: 0 / 0.5259 GB, free: 8.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.4122, allocations: 6.927 MB / 0.5327 GB, free: 6.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.726, allocations: 4.859 kB / 0.5327 GB, free: 6.578 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest_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_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)