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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001053/0.001054, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.155/1.155, allocations: 194.5 MB / 211.6 MB, free: 3.055 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.001592/0.001592, allocations: 117.5 kB / 256.9 MB, free: 4.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1539/0.1539, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003414, allocations: 15.98 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07529/0.07565, allocations: 53.22 MB / 457 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.282/0.3577, allocations: 89.33 MB / 0.5335 GB, free: 6.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001363/0.3591, allocations: 0.8616 MB / 0.5344 GB, free: 5.734 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 - DAE generated: time 0.0308/0.3899, allocations: 14.45 MB / 0.5485 GB, free: 9.695 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.39, allocations: 0 / 0.5485 GB, free: 9.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.39, allocations: 8 kB / 0.5485 GB, free: 9.688 MB / 362.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.0007938/0.3908, allocations: 0.6595 MB / 0.5491 GB, free: 8.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3908, allocations: 12.02 kB / 0.5491 GB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007018/0.3915, allocations: 103.5 kB / 0.5492 GB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.3921, allocations: 349.1 kB / 0.5496 GB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3921, allocations: 13.62 kB / 0.5496 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.3922, allocations: 16.88 kB / 0.5496 GB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.3927, allocations: 370.2 kB / 0.5499 GB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3928, allocations: 7.938 kB / 0.55 GB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.3928, allocations: 13 kB / 0.55 GB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.3928, allocations: 14.12 kB / 0.55 GB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006664/0.3935, allocations: 442.4 kB / 0.5504 GB, free: 7.871 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.3954, allocations: 1.63 MB / 0.552 GB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.396, allocations: 359.4 kB / 0.5523 GB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.3961, allocations: 8.734 kB / 0.5523 GB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.3964, allocations: 207.3 kB / 0.5525 GB, free: 5.953 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/0.3964, allocations: 3.938 kB / 0.5525 GB, free: 5.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000728/0.3971, allocations: 433.9 kB / 0.553 GB, free: 5.637 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.3972, allocations: 140.7 kB / 0.5531 GB, free: 5.469 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003029/0.3975, allocations: 291.4 kB / 0.5534 GB, free: 5.227 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.3976, allocations: 36.39 kB / 0.5534 GB, free: 5.191 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3977, allocations: 170.1 kB / 0.5536 GB, free: 5.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.292e-05/0.3978, allocations: 84.66 kB / 0.5537 GB, free: 4.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.712e-05/0.3978, allocations: 7.5 kB / 0.5537 GB, free: 4.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3979, allocations: 337.5 kB / 0.554 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3981, allocations: 120.6 kB / 0.5541 GB, free: 4.578 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.3984, allocations: 214.5 kB / 0.5543 GB, free: 4.383 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.3986, allocations: 180.8 kB / 0.5545 GB, free: 4.258 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.3986, allocations: 7.953 kB / 0.5545 GB, free: 4.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006785/0.3993, allocations: 476.2 kB / 0.5549 GB, free: 3.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.3994, allocations: 37.69 kB / 0.555 GB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3994, allocations: 4 kB / 0.555 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3994, allocations: 4 kB / 0.555 GB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.3997, allocations: 63.34 kB / 0.555 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.3997, allocations: 4 kB / 0.555 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.3999, allocations: 38.36 kB / 0.5551 GB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.3999, allocations: 15.19 kB / 0.5551 GB, free: 3.73 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001831/0.4001, allocations: 188.8 kB / 0.5553 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.007e-05/0.4001, allocations: 27.67 kB / 0.5553 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007197/0.4009, allocations: 415.4 kB / 0.5557 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.4009, allocations: 4 kB / 0.5557 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4009, allocations: 3.938 kB / 0.5557 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.4009, allocations: 3.984 kB / 0.5557 GB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.402, allocations: 0.8649 MB / 0.5566 GB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.402, allocations: 4 kB / 0.5566 GB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.4022, allocations: 59.59 kB / 0.5566 GB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.4022, allocations: 4 kB / 0.5566 GB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.4022, allocations: 7.312 kB / 0.5566 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4022, allocations: 0 / 0.5566 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4022, allocations: 4 kB / 0.5566 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.4028, allocations: 0.5053 MB / 0.5571 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.403, allocations: 149.1 kB / 0.5573 GB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.4031, allocations: 11.38 kB / 0.5573 GB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.4033, allocations: 15.55 kB / 0.5573 GB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.4033, allocations: 26.11 kB / 0.5573 GB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.4034, allocations: 19.31 kB / 0.5573 GB, free: 1.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002345/0.4036, allocations: 230.9 kB / 0.5576 GB, free: 1.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4036, allocations: 0 / 0.5576 GB, free: 1.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004193/0.404, allocations: 108.8 kB / 0.5577 GB, free: 1.523 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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.000999/0.405, allocations: 486.6 kB / 0.5581 GB, free: 1.074 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005556/0.4056, allocations: 392.1 kB / 0.5585 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4056, allocations: 0 / 0.5585 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.4058, allocations: 155.9 kB / 0.5586 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.4062, allocations: 44.61 kB / 0.5587 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009887/0.4072, allocations: 0.7542 MB / 0.5594 GB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.4075, allocations: 0.8052 MB / 0.5602 GB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002086/0.4078, allocations: 82.91 kB / 0.5603 GB, free: 15.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.832e-05/0.4079, allocations: 35.42 kB / 0.5603 GB, free: 15 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4079, allocations: 0 / 0.5603 GB, free: 15 MB / 378.7 MB Notification: Performance of Templates: time 0.007089/0.415, allocations: 3.891 MB / 0.5641 GB, free: 11.12 MB / 378.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)