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: translateModel(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc") translateModel(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc") [: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.0009825/0.0009826, allocations: 194.1 kB / 8.136 MB, free: 2.195 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.139/1.139, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0009357/0.0009356, allocations: 100.7 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3384/0.3384, allocations: 48.75 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.48e-06/5.52e-06, allocations: 224 / 424.7 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 60.26 MB / 485 MB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.721/4.83, allocations: 3.117 GB / 3.591 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/4.83, allocations: 73.72 kB / 3.591 GB, free: 128.5 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: Performance of FrontEnd: time 3.969/8.799, allocations: 1.379 GB / 4.97 GB, free: 36.06 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001265/8.799, allocations: 51.89 kB / 4.97 GB, free: 36.05 MB / 0.573 GB 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 0.01214/8.811, allocations: 3.913 MB / 4.973 GB, free: 34.25 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/8.812, allocations: 6.656 kB / 4.973 GB, free: 34.25 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001653/8.813, allocations: 369.1 kB / 4.974 GB, free: 34.15 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/8.816, allocations: 1.389 MB / 4.975 GB, free: 33.77 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.284e-05/8.816, allocations: 100 kB / 4.975 GB, free: 33.73 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/8.816, allocations: 92.69 kB / 4.975 GB, free: 33.73 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00218/8.818, allocations: 1.243 MB / 4.977 GB, free: 33.72 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/8.821, allocations: 1.693 MB / 4.978 GB, free: 33.19 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/8.821, allocations: 5.531 kB / 4.978 GB, free: 33.19 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/8.821, allocations: 7.219 kB / 4.978 GB, free: 33.19 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/8.821, allocations: 40.59 kB / 4.978 GB, free: 33.19 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2166/9.037, allocations: 120.5 MB / 5.096 GB, free: 24.36 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/9.039, allocations: 0.5239 MB / 5.096 GB, free: 24.33 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/9.039, allocations: 346.5 kB / 5.097 GB, free: 24.32 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1274/9.167, allocations: 65.84 MB / 5.161 GB, free: 14.51 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/9.167, allocations: 41.69 kB / 5.161 GB, free: 14.47 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=72): time 2.074e-06/9.167, allocations: 4 kB / 5.161 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of matching and sorting (n=81): time 0.01144/9.178, allocations: 3.16 MB / 5.164 GB, free: 13.78 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/9.178, allocations: 57.94 kB / 5.164 GB, free: 13.71 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001431/9.18, allocations: 0.8908 MB / 5.165 GB, free: 13.55 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/9.18, allocations: 25.7 kB / 5.165 GB, free: 13.52 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/9.18, allocations: 0.6614 MB / 5.166 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/9.18, allocations: 277.7 kB / 5.166 GB, free: 12.93 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.402e-05/9.18, allocations: 3.031 kB / 5.166 GB, free: 12.93 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001558/9.181, allocations: 351 kB / 5.166 GB, free: 12.62 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006581/9.181, allocations: 446 kB / 5.167 GB, free: 12.62 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007425/9.182, allocations: 0.7717 MB / 5.168 GB, free: 12.13 MB / 0.6667 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.008316/9.19, allocations: 1.799 MB / 5.169 GB, free: 12.06 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/9.19, allocations: 7.062 kB / 5.169 GB, free: 12.06 MB / 0.6667 GB Notification: Performance of matching and sorting (n=157) (initialization): time 0.005456/9.196, allocations: 2.038 MB / 5.171 GB, free: 11.89 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001569/9.197, allocations: 5.043 MB / 5.176 GB, free: 6.586 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.715e-05/9.197, allocations: 11.81 kB / 5.176 GB, free: 6.586 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003292/9.201, allocations: 0.6298 MB / 5.177 GB, free: 6.535 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008306/9.202, allocations: 243.1 kB / 5.177 GB, free: 6.535 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004977/9.206, allocations: 4.446 MB / 5.181 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/9.208, allocations: 109.4 kB / 5.182 GB, free: 3.148 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001979/9.208, allocations: 83.77 kB / 5.182 GB, free: 3.145 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/9.208, allocations: 5.688 kB / 5.182 GB, free: 3.145 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003652/9.212, allocations: 1.331 MB / 5.183 GB, free: 3.055 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/9.212, allocations: 19.03 kB / 5.183 GB, free: 3.051 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/9.213, allocations: 377.1 kB / 5.183 GB, free: 2.996 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009761/9.214, allocations: 293.4 kB / 5.184 GB, free: 2.992 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2284/9.443, allocations: 6.828 MB / 5.19 GB, free: 158.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/9.444, allocations: 103.9 kB / 5.19 GB, free: 158.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.957e-05/9.445, allocations: 69.17 kB / 5.19 GB, free: 158.7 MB / 0.6667 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.0004381/9.445, allocations: 177.7 kB / 5.191 GB, free: 158.6 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/9.446, allocations: 420.9 kB / 5.191 GB, free: 158.6 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/9.451, allocations: 3.541 MB / 5.194 GB, free: 158.4 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.417e-05/9.451, allocations: 33.77 kB / 5.195 GB, free: 158.4 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/9.451, allocations: 0 / 5.195 GB, free: 158.4 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/9.451, allocations: 4.906 kB / 5.195 GB, free: 158.4 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006737/9.457, allocations: 5.206 MB / 5.2 GB, free: 158 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/9.457, allocations: 2.031 kB / 5.2 GB, free: 158 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005058/9.458, allocations: 107.3 kB / 5.2 GB, free: 158 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002906/9.461, allocations: 1.334 MB / 5.201 GB, free: 157.9 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.817e-05/9.461, allocations: 19.7 kB / 5.201 GB, free: 157.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00377/9.465, allocations: 5.43 MB / 5.206 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/9.465, allocations: 7.828 kB / 5.206 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006486/9.471, allocations: 3.843 MB / 5.21 GB, free: 153.8 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007015/9.472, allocations: 372.6 kB / 5.21 GB, free: 153.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/9.472, allocations: 0 / 5.21 GB, free: 153.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008325/9.473, allocations: 89.55 kB / 5.211 GB, free: 153.6 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.674e-05/9.473, allocations: 57.88 kB / 5.211 GB, free: 153.6 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.408e-05/9.473, allocations: 35.25 kB / 5.211 GB, free: 153.6 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0008468/9.474, allocations: 0.6517 MB / 5.211 GB, free: 153.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.007866/9.482, allocations: 2.026 MB / 5.213 GB, free: 153.5 MB / 0.6667 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.01117/9.493, allocations: 3.759 MB / 5.217 GB, free: 153.1 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.004573/9.498, allocations: 2.926 MB / 5.22 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/9.498, allocations: 3.438 kB / 5.22 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/9.499, allocations: 1.425 MB / 5.221 GB, free: 152.5 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/9.501, allocations: 387.5 kB / 5.222 GB, free: 152.5 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/9.506, allocations: 3.051 MB / 5.224 GB, free: 151.8 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009514/9.507, allocations: 1.519 MB / 5.226 GB, free: 151.1 MB / 0.6667 GB Notification: Performance of SimCode: time 6.91e-07/9.507, allocations: 3.656 kB / 5.226 GB, free: 151.1 MB / 0.6667 GB Notification: Performance of Templates: time 0.08663/9.594, allocations: 71.98 MB / 5.296 GB, free: 148.2 MB / 0.6667 GB make -j1 -f ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.makefile (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 & ./ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc.pipe 2>&1)