Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.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.TestST3LRh_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve") translateModel(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve") [: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.0009264/0.0009265, allocations: 191.3 kB / 8.138 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.059/1.059, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008082/0.0008082, allocations: 97.28 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3039/0.3039, allocations: 48.75 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.851e-06, allocations: 224 / 424.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 60.25 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.582/4.686, allocations: 3.016 GB / 3.49 GB, free: 50.26 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/4.687, allocations: 79.56 kB / 3.49 GB, free: 50.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.761/7.447, allocations: 0.9681 GB / 4.458 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.461e-05/7.447, allocations: 33.25 kB / 4.458 GB, free: 35.91 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00887/7.456, allocations: 3.058 MB / 4.461 GB, free: 34.37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/7.456, allocations: 7.781 kB / 4.461 GB, free: 34.37 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/7.457, allocations: 262 kB / 4.461 GB, free: 34.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/7.459, allocations: 0.8346 MB / 4.462 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/7.459, allocations: 33.53 kB / 4.462 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/7.459, allocations: 71.41 kB / 4.462 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001651/7.461, allocations: 0.8279 MB / 4.463 GB, free: 33.97 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/7.462, allocations: 1.158 MB / 4.464 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/7.462, allocations: 11.34 kB / 4.464 GB, free: 33.53 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.353e-05/7.462, allocations: 4.094 kB / 4.464 GB, free: 33.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-05/7.463, allocations: 29.5 kB / 4.464 GB, free: 33.53 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/7.581, allocations: 70.85 MB / 4.533 GB, free: 20.38 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/7.583, allocations: 0.7197 MB / 4.534 GB, free: 20.33 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/7.583, allocations: 252.6 kB / 4.534 GB, free: 20.32 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3063/7.889, allocations: 64.57 MB / 4.597 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/7.889, allocations: 41.84 kB / 4.597 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=59): time 2.254e-06/7.889, allocations: 0 / 4.597 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=62): time 0.008748/7.898, allocations: 2.382 MB / 4.6 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/7.898, allocations: 61.88 kB / 4.6 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007009/7.899, allocations: 0.6247 MB / 4.6 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/7.899, allocations: 28.02 kB / 4.6 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/7.899, allocations: 477 kB / 4.601 GB, free: 115.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/7.899, allocations: 207.7 kB / 4.601 GB, free: 115 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/7.899, allocations: 0 / 4.601 GB, free: 115 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.597e-05/7.899, allocations: 344 kB / 4.601 GB, free: 114.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/7.9, allocations: 305.7 kB / 4.602 GB, free: 114.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/7.9, allocations: 0.5619 MB / 4.602 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/7.901, allocations: 382.8 kB / 4.602 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/7.901, allocations: 7.188 kB / 4.602 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003463/7.905, allocations: 1.44 MB / 4.604 GB, free: 114.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006207/7.905, allocations: 4.181 MB / 4.608 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/7.906, allocations: 14 kB / 4.608 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002723/7.908, allocations: 0.4997 MB / 4.608 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/7.909, allocations: 178.2 kB / 4.609 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002492/7.911, allocations: 2.805 MB / 4.611 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009267/7.912, allocations: 92.8 kB / 4.611 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.966e-05/7.912, allocations: 55.7 kB / 4.611 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.722e-06/7.912, allocations: 5.406 kB / 4.611 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002051/7.914, allocations: 0.8699 MB / 4.612 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/7.914, allocations: 12.62 kB / 4.612 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007739/7.915, allocations: 229.1 kB / 4.613 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007042/7.916, allocations: 234.5 kB / 4.613 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/7.919, allocations: 4.617 MB / 4.617 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007386/7.92, allocations: 89.86 kB / 4.617 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/7.92, allocations: 51.42 kB / 4.617 GB, free: 103.5 MB / 0.5886 GB Warning: Assuming fixed start value for the following 2 variables: constantSpeed.phi:VARIABLE(start = 0.0 unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real steamTurbines.mixLP.h:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))))))))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))))))))) start = steamTurbines.mixLP.hstart unit = "J/kg" nominal = 500000.0 stateSelect=StateSelect.prefer ) "Fluid specific enthalpy" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 10 (steamTurbines.ST_LP.steamState_in.phase,steamTurbines.ST_IP.steamState_in.phase,steamTurbines.ST_HP.steamState_in.phase,steamTurbines.valveLP.fluidState.phase,steamTurbines.valveIP.fluidState.phase,steamTurbines.valveHP.fluidState.phase,steamTurbines.mixLP.fluidState.phase,steamTurbines.ST_LP.steamState_iso.phase,steamTurbines.ST_IP.steamState_iso.phase,steamTurbines.ST_HP.steamState_iso.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 8,1 5,1 8,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002854/7.92, allocations: 187.4 kB / 4.618 GB, free: 103.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007749/7.921, allocations: 325.7 kB / 4.618 GB, free: 103.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004656/7.926, allocations: 3.092 MB / 4.621 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/7.926, allocations: 32.05 kB / 4.621 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/7.926, allocations: 0 / 4.621 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/7.926, allocations: 3.516 kB / 4.621 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006021/7.932, allocations: 4.386 MB / 4.625 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/7.932, allocations: 0 / 4.625 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/7.932, allocations: 86.31 kB / 4.625 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002742/7.935, allocations: 1.347 MB / 4.627 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/7.935, allocations: 12.39 kB / 4.627 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/7.937, allocations: 3.431 MB / 4.63 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/7.937, allocations: 0 / 4.63 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004516/7.942, allocations: 3.054 MB / 4.633 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/7.942, allocations: 194.4 kB / 4.633 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/7.942, allocations: 3.281 kB / 4.633 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/7.943, allocations: 80.39 kB / 4.633 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/7.943, allocations: 49.47 kB / 4.633 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.856e-05/7.943, allocations: 27.34 kB / 4.633 GB, free: 100 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0004537/7.943, allocations: 467.3 kB / 4.634 GB, free: 99.93 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006307/7.95, allocations: 1.79 MB / 4.636 GB, free: 99.93 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (steamTurbines.mixLP.h,constantSpeed.phi) * Number of discrete variables: 14 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 11,1 11,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.007872/7.958, allocations: 2.956 MB / 4.638 GB, free: 99.71 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002905/7.961, allocations: 2.124 MB / 4.64 GB, free: 99.39 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/7.961, allocations: 2.719 kB / 4.64 GB, free: 99.39 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001055/7.962, allocations: 1.104 MB / 4.642 GB, free: 99.38 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/7.963, allocations: 326.8 kB / 4.642 GB, free: 99.37 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/7.966, allocations: 2.266 MB / 4.644 GB, free: 98.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006223/7.967, allocations: 1.286 MB / 4.645 GB, free: 98.19 MB / 0.5886 GB Notification: Performance of SimCode: time 2.41e-07/7.967, allocations: 0 / 4.645 GB, free: 98.19 MB / 0.5886 GB Notification: Performance of Templates: time 0.06845/8.035, allocations: 59.36 MB / 4.703 GB, free: 95.38 MB / 0.5886 GB make -j1 -f ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.makefile (rm -f ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.pipe ; mkfifo ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.pipe >> ../files/ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.sim & ./ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.pipe 2>&1)