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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) [: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.0009387/0.0009387, allocations: 181 kB / 8.128 MB, free: 2.219 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.01/1.01, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001583/0.001583, allocations: 126.5 kB / 247.7 MB, free: 6.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1562/0.1562, allocations: 37.92 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1666/0.3228, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06531/0.3881, allocations: 53.22 MB / 443.1 MB, free: 24.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2288/0.617, allocations: 88.54 MB / 0.5192 GB, free: 10.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.005558/0.6226, allocations: 2.203 MB / 0.5213 GB, free: 10.25 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: 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.03241/0.655, allocations: 14.6 MB / 0.5356 GB, free: 3.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.6551, allocations: 8 kB / 0.5356 GB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008486/0.6559, allocations: 107.4 kB / 0.5357 GB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.6564, allocations: 350.9 kB / 0.536 GB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.6565, allocations: 11.94 kB / 0.5361 GB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.6565, allocations: 14.94 kB / 0.5361 GB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004573/0.657, allocations: 345.1 kB / 0.5364 GB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004043/0.6574, allocations: 351.1 kB / 0.5367 GB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.6574, allocations: 0 / 0.5367 GB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.6574, allocations: 4 kB / 0.5367 GB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.6575, allocations: 20.17 kB / 0.5368 GB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.659, allocations: 1.615 MB / 0.5383 GB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.6594, allocations: 297.2 kB / 0.5386 GB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.6596, allocations: 116.1 kB / 0.5387 GB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.6596, allocations: 10.89 kB / 0.5387 GB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.6598, allocations: 200.1 kB / 0.5389 GB, free: 1.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/0.6598, allocations: 4 kB / 0.5389 GB, free: 1.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004436/0.6603, allocations: 300.9 kB / 0.5392 GB, free: 0.793 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.6603, allocations: 136 kB / 0.5393 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.6605, allocations: 270.1 kB / 0.5396 GB, free: 420 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.6606, allocations: 37.56 kB / 0.5396 GB, free: 380 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.6606, allocations: 138.9 kB / 0.5398 GB, free: 244 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.676e-05/0.6607, allocations: 87.12 kB / 0.5399 GB, free: 168 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.6607, allocations: 0 / 0.5399 GB, free: 168 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.85e-05/0.6608, allocations: 343.9 kB / 0.5402 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.661, allocations: 116.6 kB / 0.5403 GB, free: 15.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.6612, allocations: 196.1 kB / 0.5405 GB, free: 15.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.6614, allocations: 151.5 kB / 0.5406 GB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.6614, allocations: 0 / 0.5406 GB, free: 15.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005476/0.662, allocations: 403.7 kB / 0.541 GB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.662, allocations: 7.938 kB / 0.541 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.662, allocations: 4 kB / 0.541 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.662, allocations: 4 kB / 0.541 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.6623, allocations: 67.47 kB / 0.5411 GB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.6623, allocations: 4 kB / 0.5411 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.6625, allocations: 27.69 kB / 0.5411 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.6625, allocations: 19.23 kB / 0.5411 GB, free: 15.06 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 9.474e-05/0.6626, allocations: 121 kB / 0.5413 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.572e-05/0.6627, allocations: 31.56 kB / 0.5413 GB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006012/0.6633, allocations: 397.5 kB / 0.5417 GB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.6633, allocations: 7.984 kB / 0.5417 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6633, allocations: 0 / 0.5417 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.6633, allocations: 3.984 kB / 0.5417 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.6643, allocations: 0.7939 MB / 0.5425 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.6643, allocations: 0 / 0.5425 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.6645, allocations: 59.91 kB / 0.5425 GB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.6645, allocations: 0 / 0.5425 GB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.6645, allocations: 7.188 kB / 0.5425 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.6645, allocations: 11.92 kB / 0.5425 GB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6646, allocations: 0 / 0.5425 GB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005004/0.6651, allocations: 474.7 kB / 0.543 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005991/0.6657, allocations: 0.8549 MB / 0.5438 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.6658, allocations: 142.6 kB / 0.544 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.046e-05/0.6659, allocations: 7.375 kB / 0.544 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.666, allocations: 7.984 kB / 0.544 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.6661, allocations: 19.28 kB / 0.544 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.6661, allocations: 12 kB / 0.544 GB, free: 12.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001783/0.6663, allocations: 220.3 kB / 0.5442 GB, free: 12.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009794/0.6673, allocations: 102.5 kB / 0.5443 GB, free: 12.2 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.0007584/0.6681, allocations: 364.8 kB / 0.5447 GB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004359/0.6685, allocations: 341.4 kB / 0.545 GB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6685, allocations: 0 / 0.545 GB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.6687, allocations: 149 kB / 0.5451 GB, free: 11.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.669, allocations: 39.48 kB / 0.5452 GB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008384/0.6699, allocations: 466.9 kB / 0.5456 GB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004478/0.6704, allocations: 0.8562 MB / 0.5464 GB, free: 10.26 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6704, allocations: 0 / 0.5464 GB, free: 10.26 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)