Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.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.Examples.CISE.Simulators.CISESim180504,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180504",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.CISE.Simulators.CISESim180504,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180504",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.0009405/0.0009405, allocations: 184 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9985/0.9985, 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.0008304/0.0008304, allocations: 93.7 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2848/0.2848, allocations: 48.76 MB / 358.5 MB, free: 53.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09459/0.3794, allocations: 66.37 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.4735, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.06/5.533, allocations: 3.348 GB / 3.822 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/5.533, allocations: 81.45 kB / 3.822 GB, free: 103.1 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: 1223 * Number of variables: 1223 Notification: Performance of Generate backend data structure: time 2.904/8.437, allocations: 1.002 GB / 4.825 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/8.437, allocations: 11.03 kB / 4.825 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01874/8.456, allocations: 2.375 MB / 4.827 GB, free: 26.31 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/8.475, allocations: 5.499 MB / 4.832 GB, free: 25.64 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005742/8.481, allocations: 1.64 MB / 4.834 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005084/8.486, allocations: 315.1 kB / 4.834 GB, free: 25.25 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03943/8.525, allocations: 21.17 MB / 4.855 GB, free: 25.22 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02995/8.555, allocations: 13.28 MB / 4.868 GB, free: 24.64 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/8.555, allocations: 5.203 kB / 4.868 GB, free: 24.64 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00264/8.558, allocations: 3.156 kB / 4.868 GB, free: 24.64 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/8.558, allocations: 221.6 kB / 4.868 GB, free: 24.63 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1297/8.688, allocations: 78.71 MB / 4.945 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01671/8.705, allocations: 9.362 MB / 4.954 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01677/8.722, allocations: 8.662 MB / 4.962 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4421/9.164, allocations: 124.6 MB / 5.084 GB, free: 38.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001443/9.164, allocations: 99.62 kB / 5.084 GB, free: 38.51 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 1.655e-05/9.164, allocations: 2.344 kB / 5.084 GB, free: 38.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.1242/9.288, allocations: 38.43 MB / 5.122 GB, free: 37.01 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/9.288, allocations: 304.7 kB / 5.122 GB, free: 36.71 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003352/9.292, allocations: 1.733 MB / 5.124 GB, free: 36.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.00378/9.296, allocations: 29.42 kB / 5.124 GB, free: 36.47 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007511/9.296, allocations: 1.184 MB / 5.125 GB, free: 35.88 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.005333/9.302, allocations: 1.98 MB / 5.127 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003328/9.305, allocations: 0 / 5.127 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0005318/9.306, allocations: 0.5232 MB / 5.127 GB, free: 34.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01351/9.319, allocations: 8.153 MB / 5.135 GB, free: 34.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/9.333, allocations: 9.074 MB / 5.144 GB, free: 33.33 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01792/9.351, allocations: 7.281 MB / 5.151 GB, free: 33.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-05/9.351, allocations: 5.125 kB / 5.151 GB, free: 33.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.06896/9.42, allocations: 25.32 MB / 5.176 GB, free: 32.72 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001478/9.422, allocations: 5.1 MB / 5.181 GB, free: 27.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.429e-05/9.422, allocations: 12.39 kB / 5.181 GB, free: 27.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.385/9.807, allocations: 56.94 MB / 5.237 GB, free: 110.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03886/9.846, allocations: 6.843 MB / 5.243 GB, free: 110.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04356/9.89, allocations: 27.06 MB / 5.27 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01863/9.908, allocations: 3.239 MB / 5.273 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002211/9.91, allocations: 473.4 kB / 5.273 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/9.91, allocations: 6.438 kB / 5.273 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08916/10, allocations: 33.75 MB / 5.306 GB, free: 107.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/10, allocations: 11.19 kB / 5.306 GB, free: 107.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1228/10.12, allocations: 50.31 MB / 5.355 GB, free: 102.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04033/10.16, allocations: 7.164 MB / 5.362 GB, free: 102.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03519/10.2, allocations: 23.88 MB / 5.386 GB, free: 93.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0193/10.22, allocations: 3.222 MB / 5.389 GB, free: 91.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0036/10.22, allocations: 459.4 kB / 5.389 GB, free: 91.24 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Plant.ValveOpening:VARIABLE() type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 28 (Plant.HeaderUpper.fluidState.phase,Plant.HeaderLower.fluidState.phase,Plant.Pipe2Valve.fluidState[2].phase,Plant.Pipe2Valve.fluidState[1].phase,Plant.SH.fluidState[5].phase,Plant.SH.fluidState[4].phase,Plant.SH.fluidState[3].phase,Plant.SH.fluidState[2].phase,Plant.SH.fluidState[1].phase,Plant.SH.heatTransfer.dew.phase,Plant.SH.heatTransfer.bubble.phase,Plant.Pipe2SH.fluidState[2].phase,Plant.Pipe2SH.fluidState[1].phase,Plant.Pipe2Drum.fluidState[2].phase,Plant.Pipe2Drum.fluidState[1].phase,Plant.Risers.fluidState[7].phase,Plant.Risers.fluidState[6].phase,Plant.Risers.fluidState[5].phase,Plant.Risers.fluidState[4].phase,Plant.Risers.fluidState[3].phase,Plant.Risers.fluidState[2].phase,Plant.Risers.fluidState[1].phase,Plant.Downcomer.fluidState[2].phase,Plant.Downcomer.fluidState[1].phase,Plant.PressDrop.state.phase,Plant.Valve.fluidState.phase,Plant.Drum.vapourState.phase,Plant.Drum.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (419): * Single equations (assignments): 410 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 3,1 5,5 69,2 13,16 181} Notification: Performance of prepare postOptimizeDAE: time 0.003317/10.22, allocations: 208.6 kB / 5.39 GB, free: 91.09 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006252/10.23, allocations: 1.917 MB / 5.391 GB, free: 90.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2922/10.52, allocations: 34.33 MB / 5.425 GB, free: 104.9 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05992/10.58, allocations: 30.56 MB / 5.455 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.951e-05/10.58, allocations: 12.53 kB / 5.455 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001818/10.58, allocations: 38.27 kB / 5.455 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1018/10.68, allocations: 58.47 MB / 5.512 GB, free: 95.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.953e-05/10.69, allocations: 0 / 5.512 GB, free: 95.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02156/10.71, allocations: 4.039 MB / 5.516 GB, free: 95.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02988/10.74, allocations: 10.17 MB / 5.526 GB, free: 94.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004009/10.74, allocations: 364.5 kB / 5.526 GB, free: 94.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05113/10.79, allocations: 45.26 MB / 5.57 GB, free: 67.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/10.79, allocations: 0 / 5.57 GB, free: 67.46 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3253/11.12, allocations: 41.87 MB / 5.611 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1079/11.23, allocations: 57.2 MB / 5.667 GB, free: 104.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008358/11.23, allocations: 2.807 MB / 5.67 GB, free: 104.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003962/11.24, allocations: 50.62 kB / 5.67 GB, free: 104.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01744/11.25, allocations: 3.155 MB / 5.673 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00304/11.26, allocations: 0.6447 MB / 5.674 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002115/11.26, allocations: 417.5 kB / 5.674 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.002101/11.26, allocations: 1.305 MB / 5.675 GB, free: 104.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02613/11.29, allocations: 5.362 MB / 5.681 GB, free: 104 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 41 (Plant.Drum.p,Plant.Drum.hl,Plant.Drum.hv,Plant.Drum.Tm,Plant.Drum.y,Plant.Downcomer.htilde[1],Plant.Risers.p,Plant.Risers.htilde[1],Plant.Risers.htilde[2],Plant.Risers.htilde[3],Plant.Risers.htilde[4],Plant.Risers.htilde[5],Plant.Risers.htilde[6],Plant.Pipe2Drum.htilde[1],Plant.Pipe2SH.p,Plant.Pipe2SH.htilde[1],Plant.SH.htilde[1],Plant.SH.htilde[2],Plant.SH.htilde[3],Plant.SH.htilde[4],Plant.Pipe2Valve.p,Plant.Pipe2Valve.htilde[1],Plant.HeaderLower.p,Plant.HeaderLower.h,Plant.HeaderLower.Tm,Plant.HeaderUpper.h,Plant.HeaderUpper.Tm,Plant.DowncomerWall.Tvol[1],Plant.RisersWalls.Tvol[1],Plant.RisersWalls.Tvol[2],Plant.RisersWalls.Tvol[3],Plant.RisersWalls.Tvol[4],Plant.RisersWalls.Tvol[5],Plant.RisersWalls.Tvol[6],Plant.Pipe2DrumWall.Tvol[1],Plant.Pipe2SHWall.Tvol[1],Plant.SHWall.Tvol[1],Plant.SHWall.Tvol[2],Plant.SHWall.Tvol[3],Plant.SHWall.Tvol[4],Plant.Pipe2ValveWall.Tvol[1]) * Number of discrete variables: 66 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.region3boundary,$cse16.region3boundary,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.region3boundary,$cse37.region3boundary,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (541): * Single equations (assignments): 470 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 46 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(3,77.8%) 6,(1,100.0%) 1,(9,58.0%) 18,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 11,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 5 {4 4,1 2,1 22,1 12,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.009657/11.3, allocations: 3.048 MB / 5.684 GB, free: 103.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.05726/11.36, allocations: 34.22 MB / 5.717 GB, free: 102.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/11.36, allocations: 0.5 kB / 5.717 GB, free: 102.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02655/11.38, allocations: 17.61 MB / 5.734 GB, free: 93.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01183/11.39, allocations: 1.653 MB / 5.736 GB, free: 93.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06299/11.46, allocations: 24.79 MB / 5.76 GB, free: 85.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01108/11.47, allocations: 5.065 MB / 5.765 GB, free: 84.45 MB / 0.6042 GB Notification: Performance of SimCode: time 9.11e-07/11.47, allocations: 0 / 5.765 GB, free: 84.45 MB / 0.6042 GB (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180504_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180504.fmu > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe 2>&1)