Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.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.CISESim120501,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim120501",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.CISE.Simulators.CISESim120501,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim120501",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.0009916/0.0009917, allocations: 188.2 kB / 8.14 MB, free: 2.203 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.028/1.028, 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.0009131/0.000913, allocations: 101 kB / 261.7 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.2818/0.2818, allocations: 48.76 MB / 358.5 MB, free: 53.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09334/0.3752, allocations: 66.38 MB / 424.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.4653, allocations: 60.24 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.956/5.422, allocations: 3.348 GB / 3.822 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/5.422, allocations: 89.77 kB / 3.822 GB, free: 103.5 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 3.091/8.513, allocations: 1.001 GB / 4.823 GB, free: 26.23 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/8.514, allocations: 13.38 kB / 4.823 GB, free: 26.22 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01945/8.533, allocations: 2.376 MB / 4.825 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01965/8.553, allocations: 5.495 MB / 4.83 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005459/8.558, allocations: 1.641 MB / 4.832 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004903/8.563, allocations: 312.2 kB / 4.832 GB, free: 24.86 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04407/8.607, allocations: 21.18 MB / 4.853 GB, free: 24.84 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02864/8.636, allocations: 13.27 MB / 4.866 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002126/8.636, allocations: 3.375 kB / 4.866 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002934/8.639, allocations: 5.844 kB / 4.866 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001934/8.639, allocations: 225.5 kB / 4.866 GB, free: 24.25 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1293/8.769, allocations: 78.72 MB / 4.943 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/8.785, allocations: 9.358 MB / 4.952 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01427/8.799, allocations: 8.663 MB / 4.961 GB, free: 5.406 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4398/9.239, allocations: 125 MB / 5.083 GB, free: 39.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/9.239, allocations: 106.3 kB / 5.083 GB, free: 39.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 1.092e-05/9.239, allocations: 6.156 kB / 5.083 GB, free: 39.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.101/9.34, allocations: 38.44 MB / 5.12 GB, free: 37.91 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/9.34, allocations: 295.8 kB / 5.121 GB, free: 37.62 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002547/9.343, allocations: 1.74 MB / 5.122 GB, free: 37.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.003324/9.346, allocations: 29.48 kB / 5.122 GB, free: 37.37 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005262/9.347, allocations: 1.178 MB / 5.123 GB, free: 36.78 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.003536/9.35, allocations: 1.983 MB / 5.125 GB, free: 35.44 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009881/9.351, allocations: 0 / 5.125 GB, free: 35.44 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0003065/9.351, allocations: 0.5217 MB / 5.126 GB, free: 35.13 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/9.362, allocations: 8.16 MB / 5.134 GB, free: 35.11 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01109/9.373, allocations: 9.073 MB / 5.143 GB, free: 34.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01452/9.388, allocations: 7.274 MB / 5.15 GB, free: 34.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/9.388, allocations: 3.844 kB / 5.15 GB, free: 34.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.05055/9.438, allocations: 25.33 MB / 5.175 GB, free: 33.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001435/9.44, allocations: 5.1 MB / 5.18 GB, free: 28.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/9.44, allocations: 9.25 kB / 5.18 GB, free: 28.19 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3787/9.818, allocations: 56.94 MB / 5.235 GB, free: 110.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03852/9.857, allocations: 6.841 MB / 5.242 GB, free: 110.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0445/9.901, allocations: 27.07 MB / 5.268 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01842/9.92, allocations: 3.236 MB / 5.271 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002969/9.923, allocations: 475.6 kB / 5.272 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/9.923, allocations: 12.19 kB / 5.272 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08955/10.01, allocations: 33.74 MB / 5.305 GB, free: 107.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.552e-05/10.01, allocations: 12.88 kB / 5.305 GB, free: 107.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.121/10.13, allocations: 50.31 MB / 5.354 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03971/10.17, allocations: 7.167 MB / 5.361 GB, free: 102.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03932/10.21, allocations: 23.87 MB / 5.384 GB, free: 97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01888/10.23, allocations: 3.227 MB / 5.387 GB, free: 94.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00351/10.24, allocations: 463.8 kB / 5.388 GB, free: 94.35 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.008169/10.24, allocations: 207.4 kB / 5.388 GB, free: 94.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008923/10.25, allocations: 1.916 MB / 5.39 GB, free: 93.34 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3031/10.56, allocations: 34.27 MB / 5.423 GB, free: 104 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05535/10.61, allocations: 30.56 MB / 5.453 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.91e-05/10.61, allocations: 12.78 kB / 5.453 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001321/10.61, allocations: 35.12 kB / 5.453 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09433/10.71, allocations: 58.46 MB / 5.51 GB, free: 94.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.8e-05/10.71, allocations: 5.125 kB / 5.51 GB, free: 94.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01987/10.73, allocations: 4.043 MB / 5.514 GB, free: 94.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02938/10.75, allocations: 10.16 MB / 5.524 GB, free: 94.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003601/10.76, allocations: 366.5 kB / 5.525 GB, free: 94.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05141/10.81, allocations: 45.27 MB / 5.569 GB, free: 67.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/10.81, allocations: 5.938 kB / 5.569 GB, free: 67.43 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08531/10.9, allocations: 41.51 MB / 5.609 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3088/11.2, allocations: 57.28 MB / 5.665 GB, free: 105.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009054/11.21, allocations: 2.801 MB / 5.668 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003875/11.22, allocations: 59.55 kB / 5.668 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01758/11.23, allocations: 3.146 MB / 5.671 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003837/11.24, allocations: 0.6461 MB / 5.672 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002574/11.24, allocations: 415.5 kB / 5.672 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.002187/11.24, allocations: 1.304 MB / 5.673 GB, free: 105.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02881/11.27, allocations: 5.37 MB / 5.679 GB, free: 105.3 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.01257/11.28, allocations: 3.047 MB / 5.682 GB, free: 105.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.05812/11.34, allocations: 34.23 MB / 5.715 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/11.34, allocations: 6.656 kB / 5.715 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02829/11.37, allocations: 17.6 MB / 5.732 GB, free: 95.62 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01284/11.38, allocations: 1.654 MB / 5.734 GB, free: 95.34 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05286/11.44, allocations: 24.79 MB / 5.758 GB, free: 87.26 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008967/11.45, allocations: 5.06 MB / 5.763 GB, free: 86.09 MB / 0.6042 GB Notification: Performance of SimCode: time 7.41e-07/11.45, allocations: 2.75 kB / 5.763 GB, free: 86.09 MB / 0.6042 GB (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim120501_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim120501.fmu > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe 2>&1)