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.001161/0.001161, allocations: 184.1 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.434/1.434, allocations: 194.5 MB / 212.6 MB, free: 2.855 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.001881/0.001881, allocations: 120 kB / 257.9 MB, free: 4.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1746/0.1746, allocations: 38.01 MB / 341.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.000401, allocations: 8 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2981/0.3981, allocations: 89.36 MB / 0.5348 GB, free: 5.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001456/0.3996, allocations: 0.8833 MB / 0.5356 GB, free: 5.355 MB / 346.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.03414/0.4338, allocations: 14.47 MB / 0.5498 GB, free: 9.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4338, allocations: 0 / 0.5498 GB, free: 9.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.4339, allocations: 4 kB / 0.5498 GB, free: 9.281 MB / 362.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.001071/0.4349, allocations: 0.6643 MB / 0.5504 GB, free: 8.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.435, allocations: 8.031 kB / 0.5504 GB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007979/0.4358, allocations: 103.9 kB / 0.5505 GB, free: 8.469 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.4364, allocations: 357.6 kB / 0.5509 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.4365, allocations: 17.61 kB / 0.5509 GB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.4365, allocations: 16.81 kB / 0.5509 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.4371, allocations: 366.4 kB / 0.5513 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4371, allocations: 0 / 0.5513 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.4372, allocations: 14.17 kB / 0.5513 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.4372, allocations: 19.86 kB / 0.5513 GB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006757/0.4379, allocations: 447.9 kB / 0.5517 GB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.4398, allocations: 1.623 MB / 0.5533 GB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.4405, allocations: 375.8 kB / 0.5537 GB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.4407, allocations: 122 kB / 0.5538 GB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.4408, allocations: 4.062 kB / 0.5538 GB, free: 5.621 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003098/0.4411, allocations: 205.1 kB / 0.554 GB, free: 5.449 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.204e-06/0.4411, allocations: 7.938 kB / 0.554 GB, free: 5.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007832/0.4419, allocations: 430.8 kB / 0.5544 GB, free: 5.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.442, allocations: 136.5 kB / 0.5545 GB, free: 4.965 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.4423, allocations: 327.3 kB / 0.5548 GB, free: 4.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.4424, allocations: 32.45 kB / 0.5549 GB, free: 4.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4425, allocations: 173.7 kB / 0.555 GB, free: 4.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.8e-05/0.4426, allocations: 82.14 kB / 0.5551 GB, free: 4.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.4426, allocations: 7.625 kB / 0.5551 GB, free: 4.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4427, allocations: 337.8 kB / 0.5554 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.4429, allocations: 123.9 kB / 0.5556 GB, free: 4.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.4432, allocations: 213.3 kB / 0.5558 GB, free: 3.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000467/0.4437, allocations: 374.4 kB / 0.5561 GB, free: 3.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4437, allocations: 4 kB / 0.5561 GB, free: 3.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006816/0.4444, allocations: 478.2 kB / 0.5566 GB, free: 3.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.964e-05/0.4444, allocations: 41.62 kB / 0.5566 GB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4444, allocations: 4 kB / 0.5566 GB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.4445, allocations: 4 kB / 0.5566 GB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.4447, allocations: 63.47 kB / 0.5567 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.4447, allocations: 4 kB / 0.5567 GB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.4449, allocations: 30.88 kB / 0.5567 GB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.4449, allocations: 19.05 kB / 0.5567 GB, free: 3.031 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 0.0001749/0.4451, allocations: 185.4 kB / 0.5569 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.4452, allocations: 27.66 kB / 0.5569 GB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006687/0.4459, allocations: 420.6 kB / 0.5573 GB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4459, allocations: 4 kB / 0.5573 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4459, allocations: 0 / 0.5573 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4459, allocations: 0 / 0.5573 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4469, allocations: 0.8617 MB / 0.5582 GB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.447, allocations: 0 / 0.5582 GB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.4472, allocations: 55.91 kB / 0.5582 GB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.4472, allocations: 4 kB / 0.5582 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.4472, allocations: 10.38 kB / 0.5583 GB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4472, allocations: 3.984 kB / 0.5583 GB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4472, allocations: 4 kB / 0.5583 GB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.4478, allocations: 498.8 kB / 0.5587 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.448, allocations: 151.7 kB / 0.5589 GB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.448, allocations: 10.56 kB / 0.5589 GB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.4482, allocations: 7.062 kB / 0.5589 GB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.099e-05/0.4483, allocations: 23.59 kB / 0.5589 GB, free: 1.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.4483, allocations: 14.42 kB / 0.5589 GB, free: 1.141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002359/0.4485, allocations: 238.9 kB / 0.5592 GB, free: 0.957 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4485, allocations: 0 / 0.5592 GB, free: 0.957 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004309/0.449, allocations: 108.1 kB / 0.5593 GB, free: 0.8633 MB / 362.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) * Number of clocked states: 0 () * 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.001003/0.45, allocations: 484.5 kB / 0.5597 GB, free: 432 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.4506, allocations: 400.2 kB / 0.5601 GB, free: 124 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4506, allocations: 0 / 0.5601 GB, free: 124 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.4508, allocations: 157.9 kB / 0.5603 GB, free: 12 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.4513, allocations: 48.3 kB / 0.5603 GB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.4525, allocations: 0.7487 MB / 0.561 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.4529, allocations: 0.7992 MB / 0.5618 GB, free: 14.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00024/0.4531, allocations: 86.89 kB / 0.5619 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.4532, allocations: 39.3 kB / 0.5619 GB, free: 14.35 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4532, allocations: 0 / 0.5619 GB, free: 14.35 MB / 378.7 MB Notification: Performance of Templates: time 0.00882/0.462, allocations: 3.901 MB / 0.5657 GB, free: 10.45 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)