Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.0009721/0.0009721, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.933/0.933, allocations: 194.2 MB / 202.8 MB, free: 8.754 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.001594/0.001594, allocations: 117.6 kB / 247.7 MB, free: 6.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1489/0.1489, allocations: 37.92 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1592/0.3082, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06583/0.3741, allocations: 53.24 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.5898, allocations: 96.75 MB / 0.5272 GB, free: 8.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.5901, allocations: 82.89 kB / 0.5273 GB, free: 8.59 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.04974/0.6398, allocations: 22.19 MB / 0.549 GB, free: 8.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.6399, allocations: 8 kB / 0.549 GB, free: 8.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009687/0.6409, allocations: 166.9 kB / 0.5491 GB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008778/0.6417, allocations: 0.5664 MB / 0.5497 GB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.45e-05/0.6418, allocations: 16 kB / 0.5497 GB, free: 7.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.489e-05/0.6419, allocations: 39.91 kB / 0.5498 GB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007383/0.6426, allocations: 454.3 kB / 0.5502 GB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008673/0.6435, allocations: 0.5844 MB / 0.5508 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.6435, allocations: 4 kB / 0.5508 GB, free: 7.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/0.6436, allocations: 4 kB / 0.5508 GB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.6436, allocations: 29.3 kB / 0.5508 GB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003517/0.6472, allocations: 2.479 MB / 0.5532 GB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009748/0.6481, allocations: 0.6004 MB / 0.5538 GB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.6484, allocations: 187.5 kB / 0.554 GB, free: 4.418 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.296e-05/0.6485, allocations: 4.438 kB / 0.554 GB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.6485, allocations: 38.25 kB / 0.554 GB, free: 4.371 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.6485, allocations: 0 / 0.554 GB, free: 4.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.000751/0.6493, allocations: 421 kB / 0.5544 GB, free: 4.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.6493, allocations: 115.2 kB / 0.5545 GB, free: 3.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.6497, allocations: 380 kB / 0.5549 GB, free: 3.629 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.6498, allocations: 25.7 kB / 0.5549 GB, free: 3.598 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.6499, allocations: 251.1 kB / 0.5552 GB, free: 3.379 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.65, allocations: 172.1 kB / 0.5553 GB, free: 3.227 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.65, allocations: 0 / 0.5553 GB, free: 3.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6502, allocations: 369.3 kB / 0.5557 GB, free: 2.883 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.6504, allocations: 158.8 kB / 0.5558 GB, free: 2.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.6507, allocations: 263.5 kB / 0.5561 GB, free: 2.574 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.651, allocations: 201.1 kB / 0.5563 GB, free: 2.453 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.651, allocations: 4 kB / 0.5563 GB, free: 2.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001077/0.6521, allocations: 0.607 MB / 0.5569 GB, free: 1.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003162/0.6524, allocations: 1.048 MB / 0.5579 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.6524, allocations: 4 kB / 0.5579 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.6528, allocations: 107.7 kB / 0.558 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006123/0.6534, allocations: 139.7 kB / 0.5581 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004862/0.6539, allocations: 0.6892 MB / 0.5588 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.6544, allocations: 75.72 kB / 0.5589 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.6544, allocations: 19.88 kB / 0.5589 GB, free: 15.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.228e-06/0.6544, allocations: 8.016 kB / 0.5589 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008186/0.6553, allocations: 489 kB / 0.5594 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.6553, allocations: 7.984 kB / 0.5594 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002373/0.6555, allocations: 91.8 kB / 0.5595 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.6561, allocations: 143.9 kB / 0.5596 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.6578, allocations: 1.843 MB / 0.5614 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.6582, allocations: 55.91 kB / 0.5615 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.6582, allocations: 19.25 kB / 0.5615 GB, free: 13.59 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 (58): * Single equations (assignments): 57 * 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.0001493/0.6584, allocations: 131.7 kB / 0.5616 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/0.6585, allocations: 55.34 kB / 0.5616 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000761/0.6593, allocations: 466.8 kB / 0.5621 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.6593, allocations: 8 kB / 0.5621 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.6593, allocations: 0 / 0.5621 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.6593, allocations: 3.984 kB / 0.5621 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.6607, allocations: 1.097 MB / 0.5632 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.6607, allocations: 0 / 0.5632 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006779/0.6614, allocations: 131 kB / 0.5633 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.6614, allocations: 0 / 0.5633 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.6615, allocations: 7.984 kB / 0.5633 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.6615, allocations: 4 kB / 0.5633 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6615, allocations: 0 / 0.5633 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001002/0.6625, allocations: 0.7753 MB / 0.5641 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001353/0.6639, allocations: 1.41 MB / 0.5654 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.6641, allocations: 183 kB / 0.5656 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.953e-05/0.6642, allocations: 3.562 kB / 0.5656 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.6646, allocations: 47.95 kB / 0.5657 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.6647, allocations: 39.98 kB / 0.5657 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.6647, allocations: 15.31 kB / 0.5657 GB, free: 10.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002782/0.665, allocations: 286 kB / 0.566 GB, free: 9.949 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001828/0.6669, allocations: 258.4 kB / 0.5662 GB, free: 9.699 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 (51): * Single equations (assignments): 50 * 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.000144/0.667, allocations: 119 kB / 0.5664 GB, free: 9.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.6684, allocations: 0.8155 MB / 0.5672 GB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.6684, allocations: 0 / 0.5672 GB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.6687, allocations: 219 kB / 0.5674 GB, free: 8.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005466/0.6692, allocations: 96.89 kB / 0.5675 GB, free: 8.746 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.6715, allocations: 1.132 MB / 0.5686 GB, free: 7.695 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006295/0.6721, allocations: 1.007 MB / 0.5695 GB, free: 6.676 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6721, allocations: 0 / 0.5695 GB, free: 6.676 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)