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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001054/0.001054, allocations: 180.1 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.272/1.272, allocations: 194.5 MB / 211.6 MB, free: 2.965 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.001611/0.001611, allocations: 116.7 kB / 256.9 MB, free: 4.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1794/0.1794, allocations: 37.99 MB / 340.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 12 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08947, allocations: 53.23 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2845/0.374, allocations: 89.32 MB / 0.5336 GB, free: 6.156 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001563/0.3756, allocations: 0.8612 MB / 0.5345 GB, free: 5.691 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.03194/0.4076, allocations: 14.45 MB / 0.5486 GB, free: 9.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4076, allocations: 3.984 kB / 0.5486 GB, free: 9.641 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.606e-05/0.4076, allocations: 4 kB / 0.5486 GB, free: 9.637 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.00114/0.4088, allocations: 0.6602 MB / 0.5492 GB, free: 8.938 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.4089, allocations: 12.02 kB / 0.5492 GB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.409, allocations: 53.98 kB / 0.5493 GB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007945/0.4098, allocations: 111.4 kB / 0.5494 GB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.4104, allocations: 345.8 kB / 0.5497 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.4105, allocations: 13.44 kB / 0.5497 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.4105, allocations: 21 kB / 0.5498 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.4112, allocations: 370.4 kB / 0.5501 GB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4112, allocations: 4 kB / 0.5501 GB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.4112, allocations: 9.359 kB / 0.5501 GB, free: 8.102 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.4113, allocations: 13.5 kB / 0.5501 GB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007003/0.412, allocations: 446.7 kB / 0.5506 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.4139, allocations: 1.623 MB / 0.5522 GB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007291/0.4146, allocations: 367.1 kB / 0.5525 GB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.4147, allocations: 8.734 kB / 0.5525 GB, free: 6.023 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.415, allocations: 215.1 kB / 0.5527 GB, free: 5.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.415, allocations: 0 / 0.5527 GB, free: 5.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007323/0.4157, allocations: 432.5 kB / 0.5531 GB, free: 5.523 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.4158, allocations: 144.3 kB / 0.5533 GB, free: 5.355 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.4161, allocations: 295.1 kB / 0.5535 GB, free: 5.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.4162, allocations: 33.33 kB / 0.5536 GB, free: 5.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.967e-05/0.4163, allocations: 170.5 kB / 0.5537 GB, free: 4.941 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.444e-05/0.4164, allocations: 86.66 kB / 0.5538 GB, free: 4.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.4164, allocations: 3.812 kB / 0.5538 GB, free: 4.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4165, allocations: 342.7 kB / 0.5542 GB, free: 4.535 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.4167, allocations: 121.9 kB / 0.5543 GB, free: 4.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.417, allocations: 204.4 kB / 0.5545 GB, free: 4.273 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.4172, allocations: 191.6 kB / 0.5547 GB, free: 4.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4172, allocations: 0 / 0.5547 GB, free: 4.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006347/0.4179, allocations: 470 kB / 0.5551 GB, free: 3.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.4179, allocations: 41.06 kB / 0.5551 GB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4179, allocations: 0 / 0.5551 GB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.418, allocations: 11.94 kB / 0.5551 GB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.4183, allocations: 59.91 kB / 0.5552 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.4183, allocations: 4 kB / 0.5552 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.4184, allocations: 38.42 kB / 0.5552 GB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/0.4185, allocations: 16 kB / 0.5553 GB, free: 3.617 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.000192/0.4187, allocations: 184.7 kB / 0.5554 GB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.4187, allocations: 31.66 kB / 0.5555 GB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006498/0.4194, allocations: 415 kB / 0.5559 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.4194, allocations: 4 kB / 0.5559 GB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.4194, allocations: 8 kB / 0.5559 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.4194, allocations: 3.984 kB / 0.5559 GB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.4205, allocations: 0.8529 MB / 0.5567 GB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4205, allocations: 4 kB / 0.5567 GB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.4207, allocations: 55.91 kB / 0.5568 GB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4208, allocations: 0 / 0.5568 GB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.4208, allocations: 14.38 kB / 0.5568 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4208, allocations: 0 / 0.5568 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4208, allocations: 4 kB / 0.5568 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006294/0.4214, allocations: 0.5049 MB / 0.5573 GB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.4216, allocations: 154.9 kB / 0.5574 GB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.4217, allocations: 14.23 kB / 0.5574 GB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.4218, allocations: 11.56 kB / 0.5575 GB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.4219, allocations: 27.3 kB / 0.5575 GB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.4219, allocations: 11.06 kB / 0.5575 GB, free: 1.695 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002595/0.4222, allocations: 232.2 kB / 0.5577 GB, free: 1.516 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4222, allocations: 0 / 0.5577 GB, free: 1.516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004455/0.4227, allocations: 114 kB / 0.5578 GB, free: 1.418 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.001889/0.4246, allocations: 1.562 MB / 0.5593 GB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005651/0.4251, allocations: 388.5 kB / 0.5597 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4252, allocations: 0 / 0.5597 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.4254, allocations: 149.4 kB / 0.5599 GB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.4257, allocations: 48.12 kB / 0.5599 GB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.428, allocations: 2.633 MB / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.4285, allocations: 0.8097 MB / 0.5633 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002422/0.4288, allocations: 78.91 kB / 0.5633 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.429, allocations: 108.1 kB / 0.5634 GB, free: 11.97 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.429, allocations: 4 kB / 0.5634 GB, free: 11.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02187/0.4509, allocations: 6.786 MB / 0.5701 GB, free: 5.176 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002733/0.4512, allocations: 217.7 kB / 0.5703 GB, free: 4.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.42, allocations: 4 kB / 0.5703 GB, free: 4.926 MB / 378.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)