Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.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.CISESim180503,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180503",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.CISE.Simulators.CISESim180503,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180503",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.001026/0.001026, allocations: 181.5 kB / 8.134 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.017/1.017, 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.0007973/0.0007972, allocations: 91.41 kB / 261.8 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2857/0.2857, allocations: 48.74 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09528/0.381, allocations: 66.38 MB / 424.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.4749, allocations: 60.25 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.088/5.563, allocations: 3.348 GB / 3.822 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/5.564, allocations: 85.92 kB / 3.822 GB, free: 70.95 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.08/8.643, allocations: 1.002 GB / 4.824 GB, free: 26.96 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/8.643, allocations: 7.875 kB / 4.824 GB, free: 26.96 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01882/8.662, allocations: 2.382 MB / 4.827 GB, free: 26.67 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01825/8.68, allocations: 5.496 MB / 4.832 GB, free: 25.99 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005391/8.686, allocations: 1.638 MB / 4.834 GB, free: 25.6 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004741/8.691, allocations: 314.1 kB / 4.834 GB, free: 25.59 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04664/8.737, allocations: 21.17 MB / 4.855 GB, free: 25.57 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03919/8.776, allocations: 13.28 MB / 4.868 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002834/8.777, allocations: 2.75 kB / 4.868 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005419/8.782, allocations: 3.812 kB / 4.868 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002313/8.783, allocations: 228.3 kB / 4.868 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3731/9.156, allocations: 78.55 MB / 4.945 GB, free: 94.69 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01521/9.171, allocations: 9.362 MB / 4.954 GB, free: 94.67 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01355/9.184, allocations: 8.655 MB / 4.962 GB, free: 94.63 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2144/9.399, allocations: 124.5 MB / 5.084 GB, free: 31.82 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/9.399, allocations: 100.2 kB / 5.084 GB, free: 31.78 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 1.303e-05/9.399, allocations: 1.125 kB / 5.084 GB, free: 31.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.1169/9.516, allocations: 38.43 MB / 5.121 GB, free: 46.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/9.516, allocations: 297.6 kB / 5.122 GB, free: 45.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/9.52, allocations: 1.737 MB / 5.123 GB, free: 45.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.003607/9.523, allocations: 31.06 kB / 5.123 GB, free: 45.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007793/9.524, allocations: 1.183 MB / 5.125 GB, free: 45.19 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.005219/9.529, allocations: 1.984 MB / 5.127 GB, free: 43.85 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003162/9.533, allocations: 0 / 5.127 GB, free: 43.85 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.00058/9.533, allocations: 0.5246 MB / 5.127 GB, free: 43.54 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01344/9.547, allocations: 8.159 MB / 5.135 GB, free: 43.52 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01523/9.562, allocations: 9.071 MB / 5.144 GB, free: 42.63 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01898/9.581, allocations: 7.278 MB / 5.151 GB, free: 42.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.208e-05/9.581, allocations: 8.25 kB / 5.151 GB, free: 42.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.07016/9.651, allocations: 25.32 MB / 5.176 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001428/9.653, allocations: 5.1 MB / 5.181 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.308e-05/9.653, allocations: 12 kB / 5.181 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3831/10.04, allocations: 57.12 MB / 5.237 GB, free: 125.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03915/10.08, allocations: 6.843 MB / 5.243 GB, free: 125 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04503/10.12, allocations: 27.06 MB / 5.27 GB, free: 122.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01917/10.14, allocations: 3.238 MB / 5.273 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004477/10.14, allocations: 479.6 kB / 5.273 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/10.14, allocations: 2.094 kB / 5.273 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1106/10.25, allocations: 33.74 MB / 5.306 GB, free: 120.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.88e-05/10.25, allocations: 18.12 kB / 5.306 GB, free: 120.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1257/10.38, allocations: 50.31 MB / 5.355 GB, free: 114.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03989/10.42, allocations: 7.16 MB / 5.362 GB, free: 109.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03728/10.46, allocations: 23.87 MB / 5.386 GB, free: 96.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01949/10.48, allocations: 3.221 MB / 5.389 GB, free: 94.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004209/10.48, allocations: 466.7 kB / 5.389 GB, free: 93.93 MB / 0.6198 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.004488/10.49, allocations: 210.9 kB / 5.389 GB, free: 93.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006634/10.49, allocations: 1.915 MB / 5.391 GB, free: 92.92 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3002/10.79, allocations: 34.3 MB / 5.425 GB, free: 120.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05681/10.85, allocations: 30.56 MB / 5.455 GB, free: 119.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-05/10.85, allocations: 12.62 kB / 5.455 GB, free: 119.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001725/10.85, allocations: 36.33 kB / 5.455 GB, free: 119.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09641/10.95, allocations: 58.46 MB / 5.512 GB, free: 110.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.177e-05/10.95, allocations: 2.688 kB / 5.512 GB, free: 110.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02011/10.97, allocations: 4.046 MB / 5.516 GB, free: 110.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02901/11, allocations: 10.17 MB / 5.526 GB, free: 110.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004017/11, allocations: 362.8 kB / 5.526 GB, free: 110.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05282/11.05, allocations: 45.27 MB / 5.57 GB, free: 83.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/11.05, allocations: 0 / 5.57 GB, free: 83.86 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08732/11.14, allocations: 41.52 MB / 5.611 GB, free: 67.02 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3415/11.48, allocations: 57.21 MB / 5.667 GB, free: 120.9 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008575/11.49, allocations: 2.806 MB / 5.669 GB, free: 120.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003777/11.49, allocations: 51.97 kB / 5.669 GB, free: 120.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01846/11.51, allocations: 3.148 MB / 5.672 GB, free: 120.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003781/11.52, allocations: 0.6465 MB / 5.673 GB, free: 120.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002904/11.52, allocations: 414.3 kB / 5.674 GB, free: 120.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.002128/11.52, allocations: 1.304 MB / 5.675 GB, free: 120.6 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02721/11.55, allocations: 5.368 MB / 5.68 GB, free: 120.6 MB / 0.6198 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.01025/11.56, allocations: 3.041 MB / 5.683 GB, free: 120.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.05762/11.62, allocations: 34.22 MB / 5.716 GB, free: 119.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/11.62, allocations: 5.422 kB / 5.716 GB, free: 119.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.02642/11.64, allocations: 17.61 MB / 5.734 GB, free: 111.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/11.65, allocations: 1.648 MB / 5.735 GB, free: 111 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05774/11.71, allocations: 24.8 MB / 5.759 GB, free: 102.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01129/11.72, allocations: 5.058 MB / 5.764 GB, free: 101.5 MB / 0.6198 GB Notification: Performance of SimCode: time 8.92e-07/11.72, allocations: 0 / 5.764 GB, free: 101.5 MB / 0.6198 GB (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180503_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim180503.fmu > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe 2>&1)