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.0009275/0.0009276, allocations: 171.6 kB / 16.07 MB, free: 5.695 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.189/1.189, allocations: 205.4 MB / 222.2 MB, free: 9.039 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.0007686/0.0007687, allocations: 92.81 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1647/0.1647, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003538, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2368, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003296/0.2402, allocations: 3.365 MB / 483 MB, free: 7.117 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.242, allocations: 1.663 MB / 484.7 MB, free: 5.949 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.2421, allocations: 11.25 kB / 484.7 MB, free: 5.945 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.2424, allocations: 69.02 kB / 484.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004748/0.2429, allocations: 236.2 kB / 485 MB, free: 5.797 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.2433, allocations: 170.7 kB / 485.1 MB, free: 5.715 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.2437, allocations: 482.4 kB / 485.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000497/0.2443, allocations: 350 kB / 485.9 MB, free: 5.305 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.2445, allocations: 152.7 kB / 486.1 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.2448, allocations: 160.7 kB / 486.3 MB, free: 5.184 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.2448, allocations: 14.97 kB / 486.3 MB, free: 5.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005291/0.2454, allocations: 341.8 kB / 486.6 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.2455, allocations: 107.8 kB / 486.7 MB, free: 5.027 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2456, allocations: 148.6 kB / 486.9 MB, free: 4.922 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.2461, allocations: 398.7 kB / 487.2 MB, free: 4.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2461, allocations: 0 / 487.2 MB, free: 4.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2461, allocations: 0 / 487.2 MB, free: 4.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2461, allocations: 0 / 487.2 MB, free: 4.82 MB / 314.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.0007083/0.2468, allocations: 0.5631 MB / 487.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2469, allocations: 7.938 kB / 487.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006888/0.2476, allocations: 91.81 kB / 487.9 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.248, allocations: 364.1 kB / 488.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.2481, allocations: 21.66 kB / 488.3 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.2481, allocations: 23.38 kB / 488.3 MB, free: 3.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.2487, allocations: 360.5 kB / 488.7 MB, free: 3.793 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2487, allocations: 4.688 kB / 488.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.2487, allocations: 10.73 kB / 488.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.2488, allocations: 15.23 kB / 488.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006588/0.2494, allocations: 386.2 kB / 489.1 MB, free: 3.672 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.2511, allocations: 1.543 MB / 490.6 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.2517, allocations: 318 kB / 490.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.2519, allocations: 105.3 kB / 491 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.2519, allocations: 15.11 kB / 491 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.2522, allocations: 202.3 kB / 491.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.2523, allocations: 0 / 491.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006871/0.253, allocations: 383.1 kB / 491.6 MB, free: 1.988 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.253, allocations: 137 kB / 491.7 MB, free: 1.828 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.2533, allocations: 292.1 kB / 492 MB, free: 1.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2534, allocations: 32.48 kB / 492.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.2534, allocations: 182.9 kB / 492.2 MB, free: 1.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.421e-05/0.2535, allocations: 80.39 kB / 492.3 MB, free: 1.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.2535, allocations: 5 kB / 492.3 MB, free: 1.406 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/0.2536, allocations: 339.5 kB / 492.6 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.2538, allocations: 96.02 kB / 492.7 MB, free: 1.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.254, allocations: 186.6 kB / 492.9 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.2543, allocations: 300.8 kB / 493.2 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2543, allocations: 1.125 kB / 493.2 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005104/0.2549, allocations: 356 kB / 493.6 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.2549, allocations: 8.312 kB / 493.6 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2549, allocations: 2.531 kB / 493.6 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.2549, allocations: 4.656 kB / 493.6 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.2552, allocations: 69.03 kB / 493.6 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2552, allocations: 5.422 kB / 493.7 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.2553, allocations: 33.5 kB / 493.7 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.2554, allocations: 11.05 kB / 493.7 MB, free: 0.5156 MB / 314.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.0001486/0.2555, allocations: 175.8 kB / 493.9 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.2556, allocations: 30.09 kB / 493.9 MB, free: 364 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005305/0.2561, allocations: 315 kB / 494.2 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2561, allocations: 12.41 kB / 494.2 MB, free: 224 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2561, allocations: 5.062 kB / 494.2 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2561, allocations: 6.688 kB / 494.2 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009744/0.2571, allocations: 0.7422 MB / 495 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2571, allocations: 0 / 495 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.2573, allocations: 43.19 kB / 495 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.2573, allocations: 7.078 kB / 495 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.2573, allocations: 5.062 kB / 495 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.2573, allocations: 5.984 kB / 495 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2573, allocations: 9.281 kB / 495 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005426/0.2579, allocations: 404.7 kB / 495.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.258, allocations: 110 kB / 495.5 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.258, allocations: 16.7 kB / 495.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.2582, allocations: 13.09 kB / 495.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.2582, allocations: 18.58 kB / 495.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.2583, allocations: 11.31 kB / 495.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002302/0.2585, allocations: 212 kB / 495.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2585, allocations: 0 / 495.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.2589, allocations: 79.88 kB / 495.9 MB, free: 15.2 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.0008967/0.2598, allocations: 453.8 kB / 496.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004366/0.2602, allocations: 240.6 kB / 496.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.2603, allocations: 1.188 kB / 496.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.2605, allocations: 119.5 kB / 496.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.2609, allocations: 62.91 kB / 496.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.2621, allocations: 0.7325 MB / 497.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.2625, allocations: 0.7865 MB / 498.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2626, allocations: 46.06 kB / 498.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2626, allocations: 0 / 498.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of Templates: time 0.006806/0.2694, allocations: 4.462 MB / 0.491 GB, free: 11.86 MB / 330.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)