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.001076/0.001076, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.001113/0.001113, allocations: 187.1 kB / 18 MB, free: 5.102 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.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2598/0.2598, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3452, allocations: 58.05 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005169/0.3504, allocations: 3.612 MB / 0.5071 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.3529, allocations: 1.806 MB / 0.5089 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.3531, allocations: 9.531 kB / 0.5089 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009977/0.3541, allocations: 234.1 kB / 0.5091 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008333/0.3549, allocations: 262.8 kB / 0.5094 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007496/0.3557, allocations: 215.8 kB / 0.5096 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005932/0.3563, allocations: 439.9 kB / 0.51 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004102/0.3567, allocations: 184.5 kB / 0.5102 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.3572, allocations: 194.2 kB / 0.5104 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.3574, allocations: 172 kB / 0.5105 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.047e-05/0.3575, allocations: 30.95 kB / 0.5106 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005769/0.3581, allocations: 325 kB / 0.5109 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.3582, allocations: 114.4 kB / 0.511 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.3584, allocations: 152.6 kB / 0.5111 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007945/0.3592, allocations: 0.5148 MB / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3592, allocations: 1.281 kB / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3592, allocations: 0 / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3592, allocations: 0 / 0.5116 GB, free: 2.352 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.0008289/0.36, allocations: 0.6332 MB / 0.5122 GB, free: 1.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3601, allocations: 12.89 kB / 0.5123 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.916e-05/0.3602, allocations: 55.23 kB / 0.5123 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007463/0.3609, allocations: 92.41 kB / 0.5124 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.3614, allocations: 389.1 kB / 0.5128 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.3614, allocations: 14.33 kB / 0.5128 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.3615, allocations: 24.41 kB / 0.5128 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.3621, allocations: 356.8 kB / 0.5131 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.3621, allocations: 1.094 kB / 0.5131 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.3621, allocations: 11.2 kB / 0.5132 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/0.3622, allocations: 13.78 kB / 0.5132 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007108/0.3629, allocations: 388.4 kB / 0.5135 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.3647, allocations: 1.545 MB / 0.5151 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/0.3654, allocations: 319.9 kB / 0.5154 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.3656, allocations: 104.5 kB / 0.5155 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.3657, allocations: 15.59 kB / 0.5155 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003661/0.366, allocations: 197.9 kB / 0.5157 GB, free: 15.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.366, allocations: 0 / 0.5157 GB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008512/0.3669, allocations: 384 kB / 0.516 GB, free: 15.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.367, allocations: 133.2 kB / 0.5162 GB, free: 15.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.3674, allocations: 298.3 kB / 0.5164 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.3675, allocations: 34.61 kB / 0.5165 GB, free: 15.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.3677, allocations: 178.1 kB / 0.5166 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.914e-05/0.3677, allocations: 92.73 kB / 0.5167 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3679, allocations: 58.05 kB / 0.5168 GB, free: 14.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.368, allocations: 342.9 kB / 0.5171 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.3683, allocations: 98.06 kB / 0.5172 GB, free: 14.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.3685, allocations: 182.1 kB / 0.5174 GB, free: 14.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.369, allocations: 299.1 kB / 0.5177 GB, free: 14.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.369, allocations: 0.5 kB / 0.5177 GB, free: 14.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000694/0.3697, allocations: 361.2 kB / 0.518 GB, free: 13.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.3698, allocations: 6.078 kB / 0.518 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3698, allocations: 2.438 kB / 0.518 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3698, allocations: 4.25 kB / 0.518 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.3701, allocations: 61.97 kB / 0.5181 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.3701, allocations: 13.22 kB / 0.5181 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.3702, allocations: 31.62 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.3703, allocations: 16.03 kB / 0.5181 GB, free: 13.91 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.0001864/0.3705, allocations: 178.1 kB / 0.5183 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.3705, allocations: 31.23 kB / 0.5183 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006619/0.3712, allocations: 312.5 kB / 0.5186 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3712, allocations: 6.938 kB / 0.5186 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.3712, allocations: 5.906 kB / 0.5186 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.3713, allocations: 6.406 kB / 0.5187 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.3725, allocations: 0.75 MB / 0.5194 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3725, allocations: 5.547 kB / 0.5194 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.3727, allocations: 43.33 kB / 0.5194 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3727, allocations: 5.094 kB / 0.5194 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3728, allocations: 10.42 kB / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-06/0.3728, allocations: 2.531 kB / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3728, allocations: 0 / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006254/0.3734, allocations: 411.1 kB / 0.5198 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.3735, allocations: 111.2 kB / 0.5199 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.3736, allocations: 8.609 kB / 0.52 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.3737, allocations: 7.828 kB / 0.52 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.3738, allocations: 23.55 kB / 0.52 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3738, allocations: 18.91 kB / 0.52 GB, free: 12.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002746/0.3741, allocations: 213.8 kB / 0.5202 GB, free: 12.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3741, allocations: 0 / 0.5202 GB, free: 12.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.3745, allocations: 75.41 kB / 0.5203 GB, free: 12.6 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.001899/0.3765, allocations: 1.296 MB / 0.5215 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005151/0.377, allocations: 253.3 kB / 0.5218 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.377, allocations: 1.156 kB / 0.5218 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.3772, allocations: 123.2 kB / 0.5219 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.3777, allocations: 58.8 kB / 0.522 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005098/0.3828, allocations: 3.07 MB / 0.525 GB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.3834, allocations: 0.7897 MB / 0.5257 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003657/0.3837, allocations: 92.52 kB / 0.5258 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.384, allocations: 101.2 kB / 0.5259 GB, free: 8.715 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.384, allocations: 0 / 0.5259 GB, free: 8.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03146/0.4155, allocations: 6.921 MB / 0.5327 GB, free: 6.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/8.325, allocations: 14.52 kB / 0.5327 GB, free: 6.52 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)