Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.0008935/0.0008935, allocations: 182.1 kB / 8.137 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.9221/0.9221, allocations: 194.2 MB / 202.8 MB, free: 8.652 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.001613/0.001613, allocations: 130.3 kB / 247.8 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1466/0.1466, allocations: 37.92 MB / 330.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1538/0.3004, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0644/0.3648, allocations: 53.22 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2144/0.5792, allocations: 96.55 MB / 0.527 GB, free: 9.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.5795, allocations: 84.36 kB / 0.5271 GB, free: 9.109 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.04913/0.6286, allocations: 22.01 MB / 0.5486 GB, free: 9.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.6287, allocations: 8 kB / 0.5486 GB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009865/0.6296, allocations: 170.8 kB / 0.5488 GB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.6305, allocations: 0.5549 MB / 0.5493 GB, free: 8.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.6306, allocations: 24 kB / 0.5493 GB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.549e-05/0.6307, allocations: 32 kB / 0.5494 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007352/0.6314, allocations: 454.8 kB / 0.5498 GB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000863/0.6323, allocations: 0.5873 MB / 0.5504 GB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.6323, allocations: 3.938 kB / 0.5504 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.6324, allocations: 7.938 kB / 0.5504 GB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.12e-05/0.6324, allocations: 32.61 kB / 0.5504 GB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003442/0.6359, allocations: 2.433 MB / 0.5528 GB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009273/0.6368, allocations: 0.5754 MB / 0.5533 GB, free: 5.262 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.6371, allocations: 175.8 kB / 0.5535 GB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.6371, allocations: 16.41 kB / 0.5535 GB, free: 5.137 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.6372, allocations: 42.75 kB / 0.5536 GB, free: 5.094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.653e-06/0.6372, allocations: 4 kB / 0.5536 GB, free: 5.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.0006762/0.6379, allocations: 414.1 kB / 0.554 GB, free: 4.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.6379, allocations: 107.2 kB / 0.5541 GB, free: 4.652 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.6383, allocations: 365.5 kB / 0.5544 GB, free: 4.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.6383, allocations: 25.7 kB / 0.5544 GB, free: 4.336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.6385, allocations: 254.9 kB / 0.5547 GB, free: 4.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.6386, allocations: 168.6 kB / 0.5548 GB, free: 3.965 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.6386, allocations: 0 / 0.5548 GB, free: 3.965 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.6388, allocations: 369.7 kB / 0.5552 GB, free: 3.621 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.639, allocations: 158.3 kB / 0.5554 GB, free: 3.531 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.6393, allocations: 261.4 kB / 0.5556 GB, free: 3.312 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.6396, allocations: 186.4 kB / 0.5558 GB, free: 3.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.6396, allocations: 0 / 0.5558 GB, free: 3.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00106/0.6406, allocations: 0.6031 MB / 0.5564 GB, free: 2.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002959/0.641, allocations: 1.053 MB / 0.5574 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.641, allocations: 0 / 0.5574 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.6413, allocations: 102.2 kB / 0.5575 GB, free: 1.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.6418, allocations: 130.9 kB / 0.5576 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004916/0.6423, allocations: 0.6926 MB / 0.5583 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/0.6428, allocations: 67.66 kB / 0.5584 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/0.6428, allocations: 19.53 kB / 0.5584 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.6428, allocations: 4 kB / 0.5584 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007788/0.6436, allocations: 476.1 kB / 0.5588 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.6436, allocations: 0 / 0.5588 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.6439, allocations: 95.39 kB / 0.5589 GB, free: 292 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.6444, allocations: 130.8 kB / 0.5591 GB, free: 164 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.646, allocations: 1.842 MB / 0.5609 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.6464, allocations: 47.66 kB / 0.5609 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.6464, allocations: 23.38 kB / 0.5609 GB, free: 14.4 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (57): * Single equations (assignments): 56 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.6466, allocations: 124.6 kB / 0.561 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/0.6467, allocations: 63.08 kB / 0.5611 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006715/0.6473, allocations: 447 kB / 0.5615 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.6474, allocations: 8 kB / 0.5615 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.6474, allocations: 0 / 0.5615 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.6474, allocations: 3.984 kB / 0.5615 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.6487, allocations: 1.078 MB / 0.5626 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.6487, allocations: 3.984 kB / 0.5626 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005741/0.6493, allocations: 115.2 kB / 0.5627 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.6493, allocations: 0 / 0.5627 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.052e-05/0.6493, allocations: 10.81 kB / 0.5627 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.6493, allocations: 4.078 kB / 0.5627 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6493, allocations: 3.984 kB / 0.5627 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008884/0.6502, allocations: 0.76 MB / 0.5635 GB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001239/0.6515, allocations: 1.381 MB / 0.5648 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.6517, allocations: 180 kB / 0.565 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-05/0.6518, allocations: 4 kB / 0.565 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.6522, allocations: 31.97 kB / 0.565 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.111e-05/0.6523, allocations: 34.58 kB / 0.5651 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.6523, allocations: 15.11 kB / 0.5651 GB, free: 11.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002566/0.6526, allocations: 286.4 kB / 0.5653 GB, free: 10.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001764/0.6543, allocations: 250.6 kB / 0.5656 GB, free: 10.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 (50): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001267/0.6545, allocations: 115.1 kB / 0.5657 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.6557, allocations: 0.7994 MB / 0.5665 GB, free: 9.875 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.6557, allocations: 3.938 kB / 0.5665 GB, free: 9.871 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.656, allocations: 210 kB / 0.5667 GB, free: 9.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.6565, allocations: 95.39 kB / 0.5668 GB, free: 9.664 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.6586, allocations: 1.126 MB / 0.5679 GB, free: 8.582 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005806/0.6592, allocations: 1 MB / 0.5688 GB, free: 7.555 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6592, allocations: 0 / 0.5688 GB, free: 7.555 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)