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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001396/0.001396, allocations: 191 kB / 8.135 MB, free: 2.203 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.205/1.205, allocations: 194.2 MB / 202.8 MB, free: 8.797 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.001822/0.001822, allocations: 124.3 kB / 247.8 MB, free: 6.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1743/0.1743, allocations: 37.91 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.848e-06/9.868e-06, allocations: 0 / 389.8 MB, free: 78.08 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1294, allocations: 53.22 MB / 443 MB, free: 24.95 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3856/0.515, allocations: 88.54 MB / 0.5191 GB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.007252/0.5223, allocations: 2.203 MB / 0.5213 GB, free: 10.03 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: time 0.03454/0.5569, allocations: 13.93 MB / 0.5349 GB, free: 4.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.557, allocations: 4 kB / 0.5349 GB, free: 4.406 MB / 346.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.000976/0.558, allocations: 0.6615 MB / 0.5355 GB, free: 3.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.558, allocations: 19.91 kB / 0.5355 GB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008022/0.5588, allocations: 95.52 kB / 0.5356 GB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005173/0.5593, allocations: 349.1 kB / 0.5359 GB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.5594, allocations: 15.67 kB / 0.536 GB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.5594, allocations: 12 kB / 0.536 GB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004759/0.5599, allocations: 351 kB / 0.5363 GB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004552/0.5604, allocations: 340.3 kB / 0.5366 GB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.5604, allocations: 7.938 kB / 0.5366 GB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.5604, allocations: 0 / 0.5366 GB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.638e-05/0.5605, allocations: 20.23 kB / 0.5367 GB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.5623, allocations: 1.618 MB / 0.5382 GB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.5628, allocations: 297.2 kB / 0.5385 GB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.5629, allocations: 117.2 kB / 0.5386 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.563, allocations: 6.938 kB / 0.5386 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.5632, allocations: 206 kB / 0.5388 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.784e-06/0.5632, allocations: 0 / 0.5388 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005444/0.5638, allocations: 300.9 kB / 0.5391 GB, free: 0.543 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.5639, allocations: 132.5 kB / 0.5393 GB, free: 392 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.5641, allocations: 275.5 kB / 0.5395 GB, free: 160 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.5641, allocations: 32.39 kB / 0.5395 GB, free: 124 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.5642, allocations: 144.1 kB / 0.5397 GB, free: 15.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.5643, allocations: 84.62 kB / 0.5398 GB, free: 15.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.5643, allocations: 0 / 0.5398 GB, free: 15.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5645, allocations: 340.9 kB / 0.5401 GB, free: 15.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.5646, allocations: 113.9 kB / 0.5402 GB, free: 15.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.5649, allocations: 206.1 kB / 0.5404 GB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.5651, allocations: 148.1 kB / 0.5405 GB, free: 15.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5651, allocations: 0 / 0.5405 GB, free: 15.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005574/0.5657, allocations: 401.7 kB / 0.5409 GB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.5657, allocations: 8 kB / 0.5409 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5657, allocations: 4.312 kB / 0.5409 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.5658, allocations: 4 kB / 0.5409 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.566, allocations: 67.66 kB / 0.541 GB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.5661, allocations: 11.92 kB / 0.541 GB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.5662, allocations: 23.69 kB / 0.541 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.5663, allocations: 12 kB / 0.541 GB, free: 14.8 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 () * 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 0.0001114/0.5664, allocations: 116.3 kB / 0.5412 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.5665, allocations: 35.61 kB / 0.5412 GB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006837/0.5671, allocations: 399.6 kB / 0.5416 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.5672, allocations: 4 kB / 0.5416 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5672, allocations: 0 / 0.5416 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.5672, allocations: 4 kB / 0.5416 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009368/0.5681, allocations: 0.7946 MB / 0.5424 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5681, allocations: 0 / 0.5424 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.5684, allocations: 71.47 kB / 0.5424 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.5684, allocations: 4 kB / 0.5424 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.5684, allocations: 0 / 0.5424 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.5684, allocations: 4 kB / 0.5424 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5684, allocations: 0 / 0.5424 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005619/0.569, allocations: 476.2 kB / 0.5429 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.5692, allocations: 149.9 kB / 0.543 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.046e-05/0.5692, allocations: 3.984 kB / 0.543 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.5694, allocations: 4 kB / 0.543 GB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.5695, allocations: 23.22 kB / 0.5431 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.5695, allocations: 14.97 kB / 0.5431 GB, free: 13 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001915/0.5697, allocations: 213.9 kB / 0.5433 GB, free: 12.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004504/0.5702, allocations: 98.92 kB / 0.5434 GB, free: 12.75 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) * 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.0008247/0.571, allocations: 372.1 kB / 0.5437 GB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.5715, allocations: 335.2 kB / 0.544 GB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5715, allocations: 0 / 0.544 GB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.5717, allocations: 149.1 kB / 0.5442 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.572, allocations: 39.23 kB / 0.5442 GB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000884/0.5729, allocations: 470.5 kB / 0.5447 GB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004806/0.5734, allocations: 0.8534 MB / 0.5455 GB, free: 10.8 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5734, allocations: 0 / 0.5455 GB, free: 10.8 MB / 362.7 MB Notification: Performance of Templates: time 0.007619/0.5811, allocations: 3.801 MB / 0.5492 GB, free: 7.035 MB / 362.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)