Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.001095/0.001095, allocations: 181.9 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9569/0.9569, allocations: 194.2 MB / 202.8 MB, free: 8.773 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.001623/0.001623, allocations: 118.5 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1472/0.1472, allocations: 37.92 MB / 330.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1589/0.3062, allocations: 59.34 MB / 389.9 MB, free: 78.05 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06497/0.3712, allocations: 53.23 MB / 443.1 MB, free: 24.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2178/0.589, allocations: 98.57 MB / 0.529 GB, free: 8.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.5892, allocations: 89.97 kB / 0.5291 GB, free: 8.238 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.06464/0.6539, allocations: 27.9 MB / 0.5563 GB, free: 2.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.6539, allocations: 12 kB / 0.5563 GB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001421/0.6554, allocations: 206.7 kB / 0.5565 GB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.6565, allocations: 0.5866 MB / 0.5571 GB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.6565, allocations: 24 kB / 0.5571 GB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.6566, allocations: 47.72 kB / 0.5572 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001022/0.6577, allocations: 0.5531 MB / 0.5577 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.6588, allocations: 0.6808 MB / 0.5584 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.6588, allocations: 7.125 kB / 0.5584 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/0.6589, allocations: 7.984 kB / 0.5584 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.659e-05/0.659, allocations: 37.3 kB / 0.5584 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.6632, allocations: 2.752 MB / 0.5611 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008222/0.664, allocations: 468.8 kB / 0.5616 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.6644, allocations: 242.7 kB / 0.5618 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.6644, allocations: 12.48 kB / 0.5618 GB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.6645, allocations: 42.81 kB / 0.5618 GB, free: 13.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.154e-06/0.6645, allocations: 0 / 0.5618 GB, free: 13.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=62): time 0.002966/0.6675, allocations: 1.807 MB / 0.5636 GB, free: 12.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.6675, allocations: 111.3 kB / 0.5637 GB, free: 12.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.668, allocations: 382.2 kB / 0.5641 GB, free: 11.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.668, allocations: 25.7 kB / 0.5641 GB, free: 11.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.6682, allocations: 262.8 kB / 0.5644 GB, free: 11.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.6683, allocations: 212.9 kB / 0.5646 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/0.6684, allocations: 4.031 kB / 0.5646 GB, free: 11.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.6685, allocations: 369.6 kB / 0.5649 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.6689, allocations: 213.5 kB / 0.5651 GB, free: 10.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.6693, allocations: 328.2 kB / 0.5654 GB, free: 10.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004012/0.6697, allocations: 252.8 kB / 0.5657 GB, free: 10.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6697, allocations: 0 / 0.5657 GB, free: 10.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001124/0.6709, allocations: 0.6734 MB / 0.5663 GB, free: 10.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003713/0.6712, allocations: 1.137 MB / 0.5674 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.6713, allocations: 0 / 0.5674 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002447/0.6715, allocations: 62.42 kB / 0.5675 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/0.6723, allocations: 179.1 kB / 0.5677 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.6735, allocations: 1.514 MB / 0.5692 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.674, allocations: 55.88 kB / 0.5692 GB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.6741, allocations: 30.81 kB / 0.5692 GB, free: 6.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.941e-06/0.6741, allocations: 4 kB / 0.5692 GB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001014/0.6751, allocations: 0.5614 MB / 0.5698 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.6751, allocations: 7.984 kB / 0.5698 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.6753, allocations: 59.39 kB / 0.5699 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007087/0.676, allocations: 178.5 kB / 0.57 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.6773, allocations: 1.512 MB / 0.5715 GB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.6778, allocations: 40.08 kB / 0.5715 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.6778, allocations: 24 kB / 0.5716 GB, free: 4.719 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.678, allocations: 128.7 kB / 0.5717 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.6781, allocations: 59.25 kB / 0.5717 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.6793, allocations: 0.6395 MB / 0.5724 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.6793, allocations: 8 kB / 0.5724 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.6793, allocations: 0 / 0.5724 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.6794, allocations: 7.984 kB / 0.5724 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003463/0.6828, allocations: 1.866 MB / 0.5742 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.6829, allocations: 4.75 kB / 0.5742 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006198/0.6835, allocations: 135.8 kB / 0.5743 GB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.6837, allocations: 56.81 kB / 0.5744 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.001e-05/0.6838, allocations: 19.98 kB / 0.5744 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.6849, allocations: 1.497 MB / 0.5759 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.6849, allocations: 12.08 kB / 0.5759 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001652/0.6866, allocations: 1.419 MB / 0.5773 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002212/0.6888, allocations: 2.118 MB / 0.5793 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.6891, allocations: 196.3 kB / 0.5795 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.992e-05/0.6892, allocations: 11.98 kB / 0.5795 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.6897, allocations: 43.97 kB / 0.5796 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.6898, allocations: 63.78 kB / 0.5796 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.6898, allocations: 27.89 kB / 0.5797 GB, free: 11.64 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003361/0.6902, allocations: 294.9 kB / 0.5799 GB, free: 11.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002013/0.6922, allocations: 216.7 kB / 0.5802 GB, free: 11.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001654/0.6924, allocations: 123.1 kB / 0.5803 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.694, allocations: 1.07 MB / 0.5813 GB, free: 9.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.694, allocations: 0 / 0.5813 GB, free: 9.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006931/0.6947, allocations: 432.5 kB / 0.5817 GB, free: 9.492 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006163/0.6954, allocations: 114.1 kB / 0.5818 GB, free: 9.387 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.6978, allocations: 1.268 MB / 0.5831 GB, free: 8.004 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007838/0.6986, allocations: 1.057 MB / 0.5841 GB, free: 6.918 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6986, allocations: 0 / 0.5841 GB, free: 6.918 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)