Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001593, allocations: 187.4 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 90.88 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2597/0.2597, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004501, allocations: 11.98 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1107, allocations: 56.33 MB / 479 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005558/0.1164, allocations: 3.271 MB / 482.3 MB, free: 14.74 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.1202, allocations: 1.631 MB / 483.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002826/0.1205, allocations: 15.88 kB / 484 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004091/0.1209, allocations: 59.67 kB / 484 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007808/0.1217, allocations: 179.4 kB / 484.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007274/0.1225, allocations: 147.6 kB / 484.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.123, allocations: 211.6 kB / 484.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008533/0.1239, allocations: 334.5 kB / 484.9 MB, free: 12.15 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004331/0.1243, allocations: 135.5 kB / 485 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.1245, allocations: 99.61 kB / 485.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.1246, allocations: 12 kB / 485.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005682/0.1252, allocations: 171.6 kB / 485.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.1253, allocations: 87.78 kB / 485.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1255, allocations: 81.52 kB / 485.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006941/0.1262, allocations: 379.1 kB / 485.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1262, allocations: 0 / 485.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1262, allocations: 0 / 485.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1262, allocations: 3.938 kB / 485.8 MB, free: 11.2 MB / 330.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.001112/0.1273, allocations: 0.5731 MB / 486.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1274, allocations: 12.03 kB / 486.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.1284, allocations: 95.45 kB / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007559/0.1292, allocations: 358.7 kB / 486.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.537e-05/0.1293, allocations: 20.38 kB / 486.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.205e-05/0.1293, allocations: 19.98 kB / 486.9 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008853/0.1302, allocations: 352.4 kB / 487.2 MB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1303, allocations: 4 kB / 487.2 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.1303, allocations: 8 kB / 487.2 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-05/0.1304, allocations: 24.3 kB / 487.3 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.1314, allocations: 388.7 kB / 487.6 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.1342, allocations: 1.547 MB / 489.2 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.1354, allocations: 329.6 kB / 489.5 MB, free: 7.246 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.924e-05/0.1355, allocations: 4.188 kB / 489.5 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004784/0.1359, allocations: 202 kB / 489.7 MB, free: 7.023 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.685e-06/0.136, allocations: 0 / 489.7 MB, free: 7.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.001165/0.1371, allocations: 386.8 kB / 490.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.1373, allocations: 136.5 kB / 490.2 MB, free: 6.477 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.1377, allocations: 283.2 kB / 490.5 MB, free: 6.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.343e-05/0.1378, allocations: 45.69 kB / 490.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.138, allocations: 234.6 kB / 490.8 MB, free: 5.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.1381, allocations: 75 kB / 490.8 MB, free: 5.832 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/0.1381, allocations: 4 kB / 490.8 MB, free: 5.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1383, allocations: 322.8 kB / 491.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.1386, allocations: 92.52 kB / 491.3 MB, free: 5.414 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.139, allocations: 183.3 kB / 491.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.1394, allocations: 128 kB / 491.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1394, allocations: 0 / 491.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009118/0.1403, allocations: 345 kB / 491.9 MB, free: 4.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.1404, allocations: 8 kB / 491.9 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.1404, allocations: 320 / 491.9 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1404, allocations: 8 kB / 491.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.1409, allocations: 63.91 kB / 492 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.1409, allocations: 4 kB / 492 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.1412, allocations: 27.77 kB / 492 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.1412, allocations: 12 kB / 492 MB, free: 4.609 MB / 330.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 (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.0002807/0.1415, allocations: 185.6 kB / 492.2 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.1416, allocations: 31.58 kB / 492.2 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009128/0.1425, allocations: 323.6 kB / 492.5 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.1425, allocations: 4 kB / 492.5 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1426, allocations: 0 / 492.5 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.1426, allocations: 3.984 kB / 492.6 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.1441, allocations: 0.7479 MB / 493.3 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1441, allocations: 3.938 kB / 493.3 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/0.1445, allocations: 39.98 kB / 493.3 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.1445, allocations: 0 / 493.3 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.1445, allocations: 15.98 kB / 493.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.1446, allocations: 4 kB / 493.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1446, allocations: 0 / 493.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008646/0.1454, allocations: 432.1 kB / 493.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.1456, allocations: 116.7 kB / 493.9 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.278e-05/0.1457, allocations: 19.92 kB / 493.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.1459, allocations: 4 kB / 493.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.716e-05/0.146, allocations: 15.98 kB / 493.9 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.146, allocations: 15.98 kB / 494 MB, free: 2.547 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003425/0.1464, allocations: 213.9 kB / 494.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1464, allocations: 0 / 494.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005735/0.147, allocations: 79.84 kB / 494.2 MB, free: 2.258 MB / 330.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 (25): * Single equations (assignments): 22 * 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.00132/0.1483, allocations: 462.1 kB / 494.7 MB, free: 1.859 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007415/0.1491, allocations: 237.2 kB / 494.9 MB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1491, allocations: 128 / 494.9 MB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.1494, allocations: 124.2 kB / 495 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.15, allocations: 49.25 kB / 495.1 MB, free: 1.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.1515, allocations: 0.7345 MB / 495.8 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.1521, allocations: 0.803 MB / 496.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.1523, allocations: 39.42 kB / 496.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of SimCode: time 1.163e-06/0.1523, allocations: 0 / 496.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of Templates: time 0.01106/0.1633, allocations: 4.456 MB / 0.4894 GB, free: 11.37 MB / 346.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)