Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001568, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.967/1.967, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 101.4 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2755/0.2755, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.139e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 56.31 MB / 473.1 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4949/0.597, allocations: 94.92 MB / 0.5547 GB, free: 8.832 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002387/0.5995, allocations: 0.6878 MB / 0.5554 GB, free: 8.145 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06451/0.664, allocations: 14.91 MB / 0.57 GB, free: 9.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6641, allocations: 0 / 0.57 GB, free: 9.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.484e-05/0.6642, allocations: 11.94 kB / 0.57 GB, free: 9.078 MB / 410.7 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.001525/0.6657, allocations: 0.5618 MB / 0.5705 GB, free: 8.469 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.6658, allocations: 12.03 kB / 0.5705 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.6672, allocations: 103.5 kB / 0.5706 GB, free: 8.355 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.6682, allocations: 350.7 kB / 0.571 GB, free: 7.977 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.6683, allocations: 16.38 kB / 0.571 GB, free: 7.961 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.6684, allocations: 20 kB / 0.571 GB, free: 7.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009874/0.6694, allocations: 360.6 kB / 0.5713 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.6695, allocations: 0 / 0.5713 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.6695, allocations: 8 kB / 0.5713 GB, free: 7.547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.13e-05/0.6696, allocations: 24.23 kB / 0.5714 GB, free: 7.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.6708, allocations: 436.4 kB / 0.5718 GB, free: 7.094 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003392/0.6743, allocations: 1.597 MB / 0.5733 GB, free: 5.387 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.6755, allocations: 346.3 kB / 0.5737 GB, free: 5.031 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002972/0.6758, allocations: 114.4 kB / 0.5738 GB, free: 4.914 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.6759, allocations: 0 / 0.5738 GB, free: 4.914 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004802/0.6764, allocations: 206.6 kB / 0.574 GB, free: 4.691 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 2.294e-06/0.6764, allocations: 0 / 0.574 GB, free: 4.691 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009752/0.6774, allocations: 309.1 kB / 0.5743 GB, free: 4.383 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.685e-05/0.6775, allocations: 136.5 kB / 0.5744 GB, free: 4.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/0.6781, allocations: 287.5 kB / 0.5747 GB, free: 3.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.6781, allocations: 37.7 kB / 0.5747 GB, free: 3.887 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.6783, allocations: 226.7 kB / 0.5749 GB, free: 3.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.6785, allocations: 94.97 kB / 0.575 GB, free: 3.566 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.6785, allocations: 4 kB / 0.575 GB, free: 3.562 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.6787, allocations: 322.8 kB / 0.5753 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.679, allocations: 100.5 kB / 0.5754 GB, free: 3.137 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.6794, allocations: 195.3 kB / 0.5756 GB, free: 2.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.6798, allocations: 131.9 kB / 0.5757 GB, free: 2.781 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6798, allocations: 0 / 0.5757 GB, free: 2.781 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009109/0.6808, allocations: 353.1 kB / 0.5761 GB, free: 2.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.6808, allocations: 8 kB / 0.5761 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.6808, allocations: 0 / 0.5761 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.6809, allocations: 8 kB / 0.5761 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/0.6814, allocations: 64.22 kB / 0.5762 GB, free: 2.352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.6814, allocations: 4 kB / 0.5762 GB, free: 2.348 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.6818, allocations: 31.72 kB / 0.5762 GB, free: 2.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.6818, allocations: 16 kB / 0.5762 GB, free: 2.301 MB / 410.7 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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001566/0.682, allocations: 116.9 kB / 0.5763 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.977e-05/0.6821, allocations: 35.61 kB / 0.5763 GB, free: 2.145 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.6832, allocations: 395.6 kB / 0.5767 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.6833, allocations: 4 kB / 0.5767 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.6833, allocations: 4 kB / 0.5767 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.6833, allocations: 0 / 0.5767 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.6851, allocations: 0.8419 MB / 0.5776 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.6852, allocations: 0 / 0.5776 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/0.6856, allocations: 55.91 kB / 0.5776 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.377e-06/0.6857, allocations: 0 / 0.5776 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.6857, allocations: 16 kB / 0.5776 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.124e-06/0.6857, allocations: 7.922 kB / 0.5776 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.6857, allocations: 3.953 kB / 0.5776 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.6868, allocations: 478.1 kB / 0.5781 GB, free: 268 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.687, allocations: 128.6 kB / 0.5782 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.93e-05/0.6871, allocations: 11.95 kB / 0.5782 GB, free: 108 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.6873, allocations: 12 kB / 0.5782 GB, free: 96 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.6874, allocations: 23.95 kB / 0.5783 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.6875, allocations: 23.92 kB / 0.5783 GB, free: 48 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004675/0.688, allocations: 243 kB / 0.5785 GB, free: 15.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.688, allocations: 0 / 0.5785 GB, free: 15.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006558/0.6887, allocations: 87.94 kB / 0.5786 GB, free: 15.73 MB / 426.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001335/0.69, allocations: 436.4 kB / 0.579 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009108/0.691, allocations: 276.1 kB / 0.5793 GB, free: 15.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.691, allocations: 0.625 kB / 0.5793 GB, free: 15.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.6914, allocations: 151.8 kB / 0.5794 GB, free: 14.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.6921, allocations: 52.66 kB / 0.5795 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.6937, allocations: 0.5126 MB / 0.58 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.6943, allocations: 0.808 MB / 0.5808 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.6946, allocations: 35.42 kB / 0.5808 GB, free: 13.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6946, allocations: 4 kB / 0.5808 GB, free: 13.44 MB / 426.7 MB Notification: Performance of Templates: time 0.01316/0.7078, allocations: 4.63 MB / 0.5853 GB, free: 8.801 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)