Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc,fileNamePrefix="ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestSTG_cc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc,fileNamePrefix="ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestSTG_cc",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.3+maint.om/package.mo): time 0.0009353/0.0009352, allocations: 180.3 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.004/1.004, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008763/0.0008764, allocations: 93.61 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2874/0.2874, allocations: 48.75 MB / 358.4 MB, free: 53.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09573/0.3831, allocations: 66.38 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0971/0.4802, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.505/4.985, allocations: 3.117 GB / 3.591 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/4.986, allocations: 82.12 kB / 3.591 GB, free: 122.1 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/PowerPlants.mo:3950:70-3951:22:writable] Error: Variable q_nom not found in scope ThermoPower.PowerPlants.HRSG.Components. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/PowerPlants.mo:3960:21-3960:69:writable] Error: Cyclically dependent constants or parameters found in scope : {q_nom}, {head_nom} (ignore with -d=ignoreCycles). Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 3.684/8.67, allocations: 1.383 GB / 4.974 GB, free: 7.918 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/8.67, allocations: 8 kB / 4.974 GB, free: 7.91 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/8.672, allocations: 361.3 kB / 4.974 GB, free: 7.555 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/8.674, allocations: 1.382 MB / 4.975 GB, free: 6.145 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/8.675, allocations: 96.84 kB / 4.975 GB, free: 6.043 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/8.675, allocations: 99.16 kB / 4.975 GB, free: 5.949 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00236/8.677, allocations: 1.24 MB / 4.977 GB, free: 4.707 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/8.68, allocations: 1.689 MB / 4.978 GB, free: 2.836 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/8.68, allocations: 11.66 kB / 4.978 GB, free: 2.828 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/8.68, allocations: 4 kB / 4.978 GB, free: 2.824 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/8.68, allocations: 40 kB / 4.978 GB, free: 2.785 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4037/9.084, allocations: 120.5 MB / 5.096 GB, free: 45.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009747/9.085, allocations: 0.5245 MB / 5.097 GB, free: 45.43 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/9.085, allocations: 349.3 kB / 5.097 GB, free: 45.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1183/9.203, allocations: 65.84 MB / 5.161 GB, free: 35.71 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/9.203, allocations: 38.94 kB / 5.161 GB, free: 35.67 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=72): time 2.174e-06/9.203, allocations: 0 / 5.161 GB, free: 35.67 MB / 0.6511 GB Notification: Performance of matching and sorting (n=81): time 0.01069/9.214, allocations: 3.155 MB / 5.164 GB, free: 35.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/9.214, allocations: 62.94 kB / 5.164 GB, free: 34.98 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/9.215, allocations: 0.8848 MB / 5.165 GB, free: 34.83 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.719e-05/9.215, allocations: 25.7 kB / 5.165 GB, free: 34.8 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000326/9.216, allocations: 0.6645 MB / 5.166 GB, free: 34.49 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/9.216, allocations: 283.1 kB / 5.166 GB, free: 34.35 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/9.216, allocations: 0 / 5.166 GB, free: 34.35 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001153/9.216, allocations: 358.8 kB / 5.166 GB, free: 34.04 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006123/9.217, allocations: 445.1 kB / 5.167 GB, free: 34.03 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007115/9.218, allocations: 0.7667 MB / 5.168 GB, free: 33.55 MB / 0.6511 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.008261/9.226, allocations: 1.815 MB / 5.169 GB, free: 33.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/9.226, allocations: 3.75 kB / 5.169 GB, free: 33.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=157) (initialization): time 0.005184/9.231, allocations: 2.033 MB / 5.171 GB, free: 33.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001308/9.232, allocations: 5.036 MB / 5.176 GB, free: 28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/9.232, allocations: 14.09 kB / 5.176 GB, free: 28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0033/9.236, allocations: 0.6277 MB / 5.177 GB, free: 27.96 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/9.236, allocations: 242.7 kB / 5.177 GB, free: 27.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2039/9.44, allocations: 4.442 MB / 5.182 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/9.442, allocations: 116 kB / 5.182 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/9.442, allocations: 82.91 kB / 5.182 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/9.442, allocations: 7.812 kB / 5.182 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003353/9.446, allocations: 1.335 MB / 5.183 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/9.446, allocations: 17.19 kB / 5.183 GB, free: 146.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/9.447, allocations: 377.7 kB / 5.183 GB, free: 146.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009841/9.448, allocations: 295.2 kB / 5.184 GB, free: 146.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/9.452, allocations: 6.831 MB / 5.19 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/9.453, allocations: 107.9 kB / 5.19 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.565e-05/9.453, allocations: 67.31 kB / 5.191 GB, free: 140.4 MB / 0.6511 GB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(start = 0.0 unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real sTG_3LRh.controlledCondeser.condenserIdeal_tap.Vl:VARIABLE(start = sTG_3LRh.controlledCondeser.condenserIdeal_tap.Vlstart unit = "m3" stateSelect=StateSelect.prefer ) "Liquid volume" type: Real sTG_3LRh.controlledCondeser.pID.I:VARIABLE(start = sTG_3LRh.controlledCondeser.pID.CSstart / sTG_3LRh.controlledCondeser.pID.Kp ) "Integral action / Kp" type: Real Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.sTG_3LRh.steamTurbines.mixLP.p = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (sTG_3LRh.totalFeedPump.feedWaterPump.int_Np,sTG_3LRh.steamTurbines.ST_LP.steamState_in.phase,sTG_3LRh.steamTurbines.ST_IP.steamState_in.phase,sTG_3LRh.steamTurbines.ST_HP.steamState_in.phase,sTG_3LRh.totalFeedPump.feedWaterPump.inletFluidState.phase,sTG_3LRh.steamTurbines.valveLP.fluidState.phase,sTG_3LRh.steamTurbines.valveIP.fluidState.phase,sTG_3LRh.steamTurbines.valveHP.fluidState.phase,sTG_3LRh.steamTurbines.mixLP.fluidState.phase,sTG_3LRh.steamTurbines.ST_LP.steamState_iso.phase,sTG_3LRh.steamTurbines.ST_IP.steamState_iso.phase,sTG_3LRh.steamTurbines.ST_HP.steamState_iso.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 4 {2 14,1 7,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003207/9.454, allocations: 165.6 kB / 5.191 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/9.455, allocations: 428.3 kB / 5.191 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004425/9.459, allocations: 3.54 MB / 5.195 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/9.459, allocations: 31.53 kB / 5.195 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/9.459, allocations: 0 / 5.195 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/9.459, allocations: 6.984 kB / 5.195 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006202/9.466, allocations: 5.21 MB / 5.2 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/9.466, allocations: 0 / 5.2 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005029/9.466, allocations: 106.1 kB / 5.2 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002797/9.469, allocations: 1.344 MB / 5.201 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/9.469, allocations: 13.5 kB / 5.201 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003517/9.472, allocations: 5.436 MB / 5.206 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/9.472, allocations: 0 / 5.206 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00629/9.479, allocations: 3.843 MB / 5.21 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007796/9.487, allocations: 5.275 MB / 5.215 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006282/9.487, allocations: 370.8 kB / 5.216 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/9.487, allocations: 3.812 kB / 5.216 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000836/9.488, allocations: 91.2 kB / 5.216 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/9.488, allocations: 59.52 kB / 5.216 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.278e-05/9.488, allocations: 28.75 kB / 5.216 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000825/9.489, allocations: 0.6495 MB / 5.216 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009329/9.499, allocations: 2.658 MB / 5.219 GB, free: 134.3 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (constantSpeed.phi,sTG_3LRh.steamTurbines.mixLP.h,sTG_3LRh.controlledCondeser.pID.I,sTG_3LRh.controlledCondeser.condenserIdeal_tap.Vl) * Number of discrete variables: 16 ($cse1.phase,$cse1.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 4,1 10,1 10,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009313/9.508, allocations: 3.751 MB / 5.223 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00433/9.512, allocations: 2.934 MB / 5.226 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/9.512, allocations: 0 / 5.226 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00147/9.514, allocations: 1.424 MB / 5.227 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/9.516, allocations: 379.3 kB / 5.227 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004664/9.521, allocations: 3.066 MB / 5.23 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/9.522, allocations: 1.521 MB / 5.232 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of SimCode: time 5.91e-07/9.522, allocations: 0 / 5.232 GB, free: 131.9 MB / 0.6511 GB (rm -f ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.pipe ; mkfifo ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.pipe ; head -c 1048576 < ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.pipe >> ../files/ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestSTG_cc_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestSTG_cc.fmu > ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.pipe 2>&1)