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: "" <> buildModelFMU(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve,fileNamePrefix="ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestST3LRh_valve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve,fileNamePrefix="ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestST3LRh_valve",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.0009001/0.0009002, allocations: 181.5 kB / 8.136 MB, free: 2.215 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.005/1.005, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.000829/0.000829, allocations: 92.83 kB / 261.7 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.2907/0.2907, allocations: 48.76 MB / 358.5 MB, free: 53.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09794/0.3887, allocations: 66.37 MB / 424.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09455/0.4833, allocations: 60.25 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.163/4.646, allocations: 3.016 GB / 3.49 GB, free: 30.27 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/4.646, allocations: 85.89 kB / 3.49 GB, free: 30.18 MB / 0.5105 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 2.629/7.275, allocations: 0.9711 GB / 4.461 GB, free: 38.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/7.275, allocations: 8.75 kB / 4.461 GB, free: 38.96 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/7.276, allocations: 257.2 kB / 4.461 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/7.278, allocations: 0.8331 MB / 4.462 GB, free: 38.54 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.131e-05/7.278, allocations: 34.84 kB / 4.462 GB, free: 38.54 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/7.278, allocations: 73.83 kB / 4.462 GB, free: 38.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001525/7.28, allocations: 0.826 MB / 4.463 GB, free: 38.53 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/7.281, allocations: 1.163 MB / 4.464 GB, free: 38.08 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/7.281, allocations: 2.594 kB / 4.464 GB, free: 38.08 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/7.281, allocations: 6.406 kB / 4.464 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/7.281, allocations: 29.38 kB / 4.464 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/7.397, allocations: 70.87 MB / 4.533 GB, free: 21.13 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/7.398, allocations: 0.7219 MB / 4.534 GB, free: 20.47 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/7.398, allocations: 254.1 kB / 4.534 GB, free: 20.23 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3056/7.704, allocations: 64.06 MB / 4.597 GB, free: 89.35 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/7.704, allocations: 42.06 kB / 4.597 GB, free: 89.31 MB / 0.573 GB Notification: Performance of pre-optimization done (n=59): time 3.166e-06/7.704, allocations: 0 / 4.597 GB, free: 89.31 MB / 0.573 GB Notification: Performance of matching and sorting (n=62): time 0.009193/7.713, allocations: 2.38 MB / 4.599 GB, free: 88.94 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/7.713, allocations: 64.12 kB / 4.599 GB, free: 88.88 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009021/7.714, allocations: 0.6224 MB / 4.6 GB, free: 88.75 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.362e-05/7.714, allocations: 25.7 kB / 4.6 GB, free: 88.71 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/7.715, allocations: 475 kB / 4.6 GB, free: 88.49 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000168/7.715, allocations: 210.3 kB / 4.6 GB, free: 88.38 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.503e-05/7.715, allocations: 1.594 kB / 4.6 GB, free: 88.38 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 6.816e-05/7.715, allocations: 343.5 kB / 4.601 GB, free: 88.07 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/7.715, allocations: 299.8 kB / 4.601 GB, free: 88.07 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/7.716, allocations: 0.5685 MB / 4.602 GB, free: 87.68 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/7.717, allocations: 376.9 kB / 4.602 GB, free: 87.68 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/7.717, allocations: 6.406 kB / 4.602 GB, free: 87.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003571/7.721, allocations: 1.447 MB / 4.603 GB, free: 87.56 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006264/7.721, allocations: 4.173 MB / 4.608 GB, free: 83.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/7.721, allocations: 10 kB / 4.608 GB, free: 83.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/7.724, allocations: 0.5081 MB / 4.608 GB, free: 83.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005388/7.725, allocations: 178.2 kB / 4.608 GB, free: 83.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002462/7.727, allocations: 2.809 MB / 4.611 GB, free: 81.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009466/7.728, allocations: 89.27 kB / 4.611 GB, free: 81.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/7.728, allocations: 54.75 kB / 4.611 GB, free: 81.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.342e-06/7.728, allocations: 3.812 kB / 4.611 GB, free: 81.09 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001997/7.73, allocations: 0.8721 MB / 4.612 GB, free: 81.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/7.73, allocations: 7.25 kB / 4.612 GB, free: 81.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007814/7.731, allocations: 228.2 kB / 4.612 GB, free: 81.01 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007066/7.732, allocations: 235.4 kB / 4.612 GB, free: 81.01 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002983/7.735, allocations: 4.623 MB / 4.617 GB, free: 76.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007487/7.735, allocations: 89.61 kB / 4.617 GB, free: 76.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.9e-05/7.735, allocations: 51.33 kB / 4.617 GB, free: 76.91 MB / 0.573 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.0002662/7.736, allocations: 190.9 kB / 4.617 GB, free: 76.79 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007624/7.736, allocations: 331.6 kB / 4.618 GB, free: 76.74 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004391/7.741, allocations: 3.078 MB / 4.621 GB, free: 76.55 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/7.741, allocations: 27.66 kB / 4.621 GB, free: 76.55 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/7.741, allocations: 3.406 kB / 4.621 GB, free: 76.55 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/7.741, allocations: 3.656 kB / 4.621 GB, free: 76.55 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/7.747, allocations: 4.388 MB / 4.625 GB, free: 76.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/7.747, allocations: 0 / 4.625 GB, free: 76.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/7.747, allocations: 86.75 kB / 4.625 GB, free: 76.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002748/7.75, allocations: 1.349 MB / 4.626 GB, free: 76.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.996e-05/7.75, allocations: 16.2 kB / 4.626 GB, free: 76.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002418/7.752, allocations: 3.424 MB / 4.63 GB, free: 73.91 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/7.752, allocations: 0 / 4.63 GB, free: 73.91 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004529/7.757, allocations: 3.056 MB / 4.633 GB, free: 73.61 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00565/7.763, allocations: 4.246 MB / 4.637 GB, free: 72.92 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/7.763, allocations: 189.7 kB / 4.637 GB, free: 72.76 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/7.763, allocations: 7.062 kB / 4.637 GB, free: 72.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/7.764, allocations: 86.52 kB / 4.637 GB, free: 72.76 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.98e-05/7.764, allocations: 44.5 kB / 4.637 GB, free: 72.76 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/7.764, allocations: 29.75 kB / 4.637 GB, free: 72.76 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0004448/7.764, allocations: 462 kB / 4.638 GB, free: 72.66 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008025/7.772, allocations: 2.264 MB / 4.64 GB, free: 72.66 MB / 0.573 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.006456/7.779, allocations: 2.959 MB / 4.643 GB, free: 72.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0028/7.781, allocations: 2.125 MB / 4.645 GB, free: 72.09 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/7.781, allocations: 0 / 4.645 GB, free: 72.09 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001059/7.783, allocations: 1.109 MB / 4.646 GB, free: 72.07 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/7.784, allocations: 327.3 kB / 4.646 GB, free: 72.07 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/7.787, allocations: 2.273 MB / 4.648 GB, free: 71.59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/7.788, allocations: 1.286 MB / 4.65 GB, free: 70.86 MB / 0.573 GB Notification: Performance of SimCode: time 2.71e-07/7.788, allocations: 4 kB / 4.65 GB, free: 70.86 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestST3LRh_valve_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_PowerPlants_SteamTurbineGroup_Tests_TestST3LRh_valve.fmu > ThermoPower_ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestST3LRh_valve.pipe 2>&1)