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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001271/0.001271, allocations: 185.5 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.435/1.435, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001572/0.001572, allocations: 112.7 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1541/0.1541, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.223e-05/1.227e-05, allocations: 0 / 390.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2144, allocations: 53.23 MB / 443.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.3177, allocations: 88.56 MB / 0.5197 GB, free: 9.078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001542/0.3192, allocations: 0.5815 MB / 0.5202 GB, free: 8.496 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.2433/0.5625, allocations: 14.29 MB / 0.5342 GB, free: 87.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5626, allocations: 0 / 0.5342 GB, free: 87.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.5626, allocations: 5.781 kB / 0.5342 GB, free: 87.4 MB / 378.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.0008202/0.5634, allocations: 0.6084 MB / 0.5348 GB, free: 86.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.5635, allocations: 13.28 kB / 0.5348 GB, free: 86.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008143/0.5643, allocations: 109.6 kB / 0.5349 GB, free: 86.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.5649, allocations: 350.2 kB / 0.5353 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.5649, allocations: 6.281 kB / 0.5353 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.806e-05/0.565, allocations: 12.03 kB / 0.5353 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006582/0.5656, allocations: 356.2 kB / 0.5356 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/0.5662, allocations: 341.7 kB / 0.5359 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.5662, allocations: 1.25 kB / 0.5359 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.5662, allocations: 1.531 kB / 0.5359 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/0.5663, allocations: 14.69 kB / 0.536 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.568, allocations: 1.618 MB / 0.5375 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.5685, allocations: 343.6 kB / 0.5379 GB, free: 85.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.5687, allocations: 120.6 kB / 0.538 GB, free: 85.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.5687, allocations: 4.125 kB / 0.538 GB, free: 85.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.569, allocations: 197.8 kB / 0.5382 GB, free: 85.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.895e-06/0.569, allocations: 3.641 kB / 0.5382 GB, free: 85.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.000491/0.5695, allocations: 315.1 kB / 0.5385 GB, free: 85.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.5696, allocations: 139.8 kB / 0.5386 GB, free: 84.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.5698, allocations: 275.3 kB / 0.5389 GB, free: 84.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.5698, allocations: 29.67 kB / 0.5389 GB, free: 84.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.517e-05/0.5699, allocations: 174.1 kB / 0.5391 GB, free: 84.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.741e-05/0.57, allocations: 84.89 kB / 0.5391 GB, free: 84.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.57, allocations: 3.969 kB / 0.5392 GB, free: 84.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.57, allocations: 334.4 kB / 0.5395 GB, free: 84.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.5702, allocations: 117 kB / 0.5396 GB, free: 84.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.5703, allocations: 200.3 kB / 0.5398 GB, free: 84.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.5705, allocations: 146.1 kB / 0.5399 GB, free: 83.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5705, allocations: 3.812 kB / 0.5399 GB, free: 83.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004724/0.571, allocations: 408.1 kB / 0.5403 GB, free: 83.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.5711, allocations: 36.89 kB / 0.5403 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5711, allocations: 3.812 kB / 0.5403 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.5711, allocations: 3.938 kB / 0.5403 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.5714, allocations: 66.23 kB / 0.5404 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5714, allocations: 6.312 kB / 0.5404 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.5715, allocations: 19.28 kB / 0.5404 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.5716, allocations: 15.39 kB / 0.5405 GB, free: 83.74 MB / 378.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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 8.339e-05/0.5716, allocations: 128.7 kB / 0.5406 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.5717, allocations: 26.94 kB / 0.5406 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005525/0.5722, allocations: 392.8 kB / 0.541 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.5723, allocations: 3.5 kB / 0.541 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5723, allocations: 0 / 0.541 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5723, allocations: 0 / 0.541 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007512/0.573, allocations: 0.8009 MB / 0.5418 GB, free: 82.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.5731, allocations: 3.5 kB / 0.5418 GB, free: 82.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/0.5733, allocations: 60.77 kB / 0.5418 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.5733, allocations: 5.531 kB / 0.5418 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.5733, allocations: 11.77 kB / 0.5418 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.5733, allocations: 0 / 0.5418 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5733, allocations: 3.531 kB / 0.5418 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.5738, allocations: 488.3 kB / 0.5423 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.5739, allocations: 149.6 kB / 0.5424 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.5739, allocations: 6.906 kB / 0.5425 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.5741, allocations: 3.906 kB / 0.5425 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.5741, allocations: 32.72 kB / 0.5425 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.5742, allocations: 7.25 kB / 0.5425 GB, free: 82.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001459/0.5743, allocations: 219.7 kB / 0.5427 GB, free: 82.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5743, allocations: 0 / 0.5427 GB, free: 82.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000392/0.5747, allocations: 101.6 kB / 0.5428 GB, free: 82.38 MB / 378.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 (35): * Single equations (assignments): 32 * 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.0007858/0.5755, allocations: 405.3 kB / 0.5432 GB, free: 82.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.5759, allocations: 369.3 kB / 0.5435 GB, free: 81.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5759, allocations: 4 kB / 0.5435 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.5761, allocations: 140.5 kB / 0.5437 GB, free: 81.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.5764, allocations: 43.38 kB / 0.5437 GB, free: 81.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006566/0.5771, allocations: 465.9 kB / 0.5442 GB, free: 81.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.5773, allocations: 0.8114 MB / 0.545 GB, free: 80.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.5775, allocations: 76.16 kB / 0.545 GB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.12e-05/0.5776, allocations: 42.48 kB / 0.5451 GB, free: 80.86 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5776, allocations: 0 / 0.5451 GB, free: 80.86 MB / 378.7 MB Notification: Performance of Templates: time 0.006068/0.5837, allocations: 3.645 MB / 0.5486 GB, free: 79.11 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (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 & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)