Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001642/0.001646, allocations: 183.8 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001274/0.001273, allocations: 100.9 kB / 261.4 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2639/0.2639, allocations: 37.97 MB / 347.3 MB, free: 7.523 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.154e-06, allocations: 0 / 409.3 MB, free: 47.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09426, allocations: 56.32 MB / 465.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4206, allocations: 94.22 MB / 0.5467 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.009519/0.4302, allocations: 2.209 MB / 0.5489 GB, free: 14.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05725/0.4874, allocations: 14.47 MB / 0.563 GB, free: 15.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.021e-05/0.4875, allocations: 4 kB / 0.563 GB, free: 15.81 MB / 410.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.001215/0.4888, allocations: 0.601 MB / 0.5636 GB, free: 15.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4888, allocations: 15.97 kB / 0.5636 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/0.49, allocations: 99.5 kB / 0.5637 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008535/0.4909, allocations: 358.1 kB / 0.5641 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.4909, allocations: 4 kB / 0.5641 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.004e-05/0.491, allocations: 12 kB / 0.5641 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009152/0.4919, allocations: 340.6 kB / 0.5644 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007964/0.4927, allocations: 344.3 kB / 0.5647 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.4928, allocations: 0 / 0.5647 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.4928, allocations: 4 kB / 0.5647 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/0.4929, allocations: 12.38 kB / 0.5648 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.496, allocations: 1.599 MB / 0.5663 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006903/0.4967, allocations: 287.4 kB / 0.5666 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/0.497, allocations: 109.7 kB / 0.5667 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.4971, allocations: 8 kB / 0.5667 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004279/0.4975, allocations: 198.7 kB / 0.5669 GB, free: 11.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.565e-06/0.4975, allocations: 0 / 0.5669 GB, free: 11.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009067/0.4984, allocations: 286.6 kB / 0.5672 GB, free: 11.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4986, allocations: 136.6 kB / 0.5673 GB, free: 11.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.4991, allocations: 279.4 kB / 0.5676 GB, free: 10.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.4991, allocations: 33.7 kB / 0.5676 GB, free: 10.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.4993, allocations: 194.6 kB / 0.5678 GB, free: 10.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4994, allocations: 86.75 kB / 0.5679 GB, free: 10.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.168e-05/0.4994, allocations: 3.938 kB / 0.5679 GB, free: 10.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4996, allocations: 322.8 kB / 0.5682 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.4999, allocations: 100.5 kB / 0.5683 GB, free: 10.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.5003, allocations: 183 kB / 0.5684 GB, free: 9.906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.5006, allocations: 135.8 kB / 0.5686 GB, free: 9.773 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5007, allocations: 0 / 0.5686 GB, free: 9.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008871/0.5016, allocations: 329.6 kB / 0.5689 GB, free: 9.445 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5016, allocations: 8.062 kB / 0.5689 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5016, allocations: 7.906 kB / 0.5689 GB, free: 9.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.5016, allocations: 4 kB / 0.5689 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.5022, allocations: 63.91 kB / 0.569 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.5022, allocations: 7.984 kB / 0.569 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.5024, allocations: 15.84 kB / 0.569 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.5025, allocations: 12 kB / 0.569 GB, free: 9.328 MB / 410.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 (34): * Single equations (assignments): 34 * 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.0001046/0.5026, allocations: 37.62 kB / 0.569 GB, free: 9.285 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.42e-05/0.5027, allocations: 31.62 kB / 0.5691 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.5038, allocations: 382.5 kB / 0.5694 GB, free: 8.875 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.5038, allocations: 4 kB / 0.5694 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5038, allocations: 0 / 0.5694 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5039, allocations: 0 / 0.5694 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.5055, allocations: 0.7838 MB / 0.5702 GB, free: 8.043 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.5055, allocations: 0 / 0.5702 GB, free: 8.043 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.506, allocations: 59.91 kB / 0.5703 GB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.506, allocations: 7.906 kB / 0.5703 GB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.506, allocations: 4 kB / 0.5703 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.506, allocations: 0 / 0.5703 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5061, allocations: 3.938 kB / 0.5703 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009464/0.507, allocations: 472.6 kB / 0.5707 GB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.5072, allocations: 120.7 kB / 0.5708 GB, free: 7.336 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.429e-05/0.5073, allocations: 4 kB / 0.5708 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.5075, allocations: 4 kB / 0.5708 GB, free: 7.328 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.702e-05/0.5076, allocations: 19.97 kB / 0.5709 GB, free: 7.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.5077, allocations: 23.98 kB / 0.5709 GB, free: 7.285 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003892/0.5081, allocations: 227 kB / 0.5711 GB, free: 7.062 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005636/0.5086, allocations: 91.78 kB / 0.5712 GB, free: 6.973 MB / 410.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.0009839/0.5096, allocations: 353.3 kB / 0.5715 GB, free: 6.656 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.5104, allocations: 271.5 kB / 0.5718 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5104, allocations: 0 / 0.5718 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.5108, allocations: 147.8 kB / 0.5719 GB, free: 6.246 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005415/0.5113, allocations: 40.95 kB / 0.572 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.5128, allocations: 0.4938 MB / 0.5725 GB, free: 5.672 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007256/0.5135, allocations: 0.8505 MB / 0.5733 GB, free: 4.793 MB / 410.7 MB Notification: Performance of SimCode: time 8.22e-07/0.5135, allocations: 0 / 0.5733 GB, free: 4.793 MB / 410.7 MB Notification: Performance of Templates: time 0.01074/0.5243, allocations: 4.636 MB / 0.5778 GB, free: 156 kB / 410.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)