Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.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.Examples.CISE.Simulators.CISESim2States120501,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501") translateModel(ThermoPower.Examples.CISE.Simulators.CISESim2States120501,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501") [: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.0009261/0.0009263, allocations: 191.8 kB / 8.136 MB, free: 2.199 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.062/1.062, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008674/0.0008674, allocations: 98.92 kB / 261.8 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.3156/0.3156, allocations: 48.76 MB / 358.5 MB, free: 53.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.652e-06/6.672e-06, allocations: 4 kB / 424.7 MB, free: 8.219 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1052, allocations: 60.25 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.951/5.056, allocations: 3.174 GB / 3.648 GB, free: 82.18 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/5.057, allocations: 95.62 kB / 3.648 GB, free: 82.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.585/6.642, allocations: 0.495 GB / 4.143 GB, free: 42.42 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002571/6.642, allocations: 63.47 kB / 4.143 GB, free: 42.41 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 566 * Number of variables: 566 Notification: Performance of Generate backend data structure: time 0.02332/6.665, allocations: 5.729 MB / 4.149 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/6.665, allocations: 11.28 kB / 4.149 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007679/6.673, allocations: 1.017 MB / 4.15 GB, free: 41.05 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008629/6.682, allocations: 2.742 MB / 4.152 GB, free: 40.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002343/6.684, allocations: 0.8886 MB / 4.153 GB, free: 40.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001697/6.686, allocations: 141.7 kB / 4.153 GB, free: 40.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01665/6.702, allocations: 9.753 MB / 4.163 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01082/6.713, allocations: 6.278 MB / 4.169 GB, free: 40.04 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.263e-05/6.713, allocations: 0 / 4.169 GB, free: 40.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008765/6.714, allocations: 0 / 4.169 GB, free: 40.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.653e-05/6.714, allocations: 102 kB / 4.169 GB, free: 40.03 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05334/6.768, allocations: 36.48 MB / 4.205 GB, free: 23.83 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006398/6.774, allocations: 4.368 MB / 4.209 GB, free: 23.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005581/6.78, allocations: 4.053 MB / 4.213 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2256/7.005, allocations: 122.9 MB / 4.333 GB, free: 9.609 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.257e-05/7.006, allocations: 68.75 kB / 4.333 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=268): time 5.681e-06/7.006, allocations: 0 / 4.333 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of matching and sorting (n=280): time 0.06087/7.066, allocations: 18.97 MB / 4.352 GB, free: 5.559 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/7.067, allocations: 162.7 kB / 4.352 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/7.068, allocations: 0.923 MB / 4.353 GB, free: 4.52 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001614/7.07, allocations: 29.7 kB / 4.353 GB, free: 4.484 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004293/7.07, allocations: 0.6037 MB / 4.353 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.002251/7.073, allocations: 0.9353 MB / 4.354 GB, free: 3.094 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/7.074, allocations: 0 / 4.354 GB, free: 3.094 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0003013/7.074, allocations: 413.6 kB / 4.355 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009488/7.084, allocations: 4.122 MB / 4.359 GB, free: 0 / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1864/7.27, allocations: 4.286 MB / 4.363 GB, free: 149 MB / 0.5886 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.Plant.SH.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.08473/7.355, allocations: 30.32 MB / 4.393 GB, free: 148.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/7.355, allocations: 3.969 kB / 4.393 GB, free: 148.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.02582/7.381, allocations: 11.06 MB / 4.403 GB, free: 148.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004374/7.381, allocations: 2.493 MB / 4.406 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/7.381, allocations: 3.812 kB / 4.406 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05451/7.436, allocations: 21.18 MB / 4.426 GB, free: 144.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03324/7.469, allocations: 6.148 MB / 4.432 GB, free: 144 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02143/7.491, allocations: 12.22 MB / 4.444 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009329/7.5, allocations: 1.708 MB / 4.446 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001829/7.502, allocations: 234.2 kB / 4.446 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/7.502, allocations: 7.25 kB / 4.446 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07288/7.575, allocations: 22.69 MB / 4.468 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.233e-05/7.575, allocations: 5.406 kB / 4.468 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03471/7.61, allocations: 15.89 MB / 4.484 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03472/7.644, allocations: 6.306 MB / 4.49 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/7.659, allocations: 11.51 MB / 4.501 GB, free: 131.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00938/7.669, allocations: 1.71 MB / 4.503 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/7.671, allocations: 229 kB / 4.503 GB, free: 130.2 MB / 0.5886 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.Plant.SH.p = 0.0 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: 28 * Number of states: 0 () * Number of discrete variables: 12 (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.Valve.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 3,1 8,5 70,2 13} Notification: Performance of prepare postOptimizeDAE: time 0.002682/7.673, allocations: 163.4 kB / 4.503 GB, free: 130.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003559/7.677, allocations: 0.8336 MB / 4.504 GB, free: 129.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03515/7.712, allocations: 17.22 MB / 4.521 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03203/7.744, allocations: 15.44 MB / 4.536 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.121e-05/7.744, allocations: 5.031 kB / 4.536 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.822e-05/7.744, allocations: 17.3 kB / 4.536 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05413/7.798, allocations: 29.97 MB / 4.565 GB, free: 83.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.998e-05/7.798, allocations: 0 / 4.565 GB, free: 83.25 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009214/7.808, allocations: 1.999 MB / 4.567 GB, free: 81.78 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02008/7.828, allocations: 7.831 MB / 4.575 GB, free: 75.58 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001677/7.829, allocations: 176.3 kB / 4.575 GB, free: 75.51 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1921/8.022, allocations: 24.03 MB / 4.599 GB, free: 138.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/8.022, allocations: 7.781 kB / 4.599 GB, free: 138.5 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03812/8.06, allocations: 20.6 MB / 4.619 GB, free: 138 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003117/8.063, allocations: 1.399 MB / 4.62 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009307/8.064, allocations: 20.16 kB / 4.62 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007236/8.071, allocations: 1.677 MB / 4.622 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007137/8.072, allocations: 323.8 kB / 4.622 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006246/8.072, allocations: 215 kB / 4.622 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0008763/8.073, allocations: 0.6959 MB / 4.623 GB, free: 137.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01186/8.085, allocations: 2.847 MB / 4.626 GB, free: 137.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (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.Pipe2SHWall.Tvol[1],Plant.SHWall.Tvol[1],Plant.SHWall.Tvol[2],Plant.SHWall.Tvol[3],Plant.SHWall.Tvol[4],Plant.Pipe2ValveWall.Tvol[1],Plant.DrumBoiler.Vld,Plant.DrumBoiler.p) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse36.region3boundary,$cse37.region3boundary) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 22 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 13,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {2 7,1 11,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.008113/8.093, allocations: 2.153 MB / 4.628 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02526/8.119, allocations: 16.12 MB / 4.644 GB, free: 137 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/8.119, allocations: 0 / 4.644 GB, free: 137 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01108/8.13, allocations: 8.048 MB / 4.651 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005193/8.135, allocations: 0.7848 MB / 4.652 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02629/8.161, allocations: 11.55 MB / 4.663 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006023/8.167, allocations: 2.715 MB / 4.666 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of SimCode: time 1.533e-06/8.167, allocations: 0 / 4.666 GB, free: 134.4 MB / 0.5886 GB Notification: Performance of Templates: time 0.4116/8.579, allocations: 209.7 MB / 4.871 GB, free: 136.3 MB / 0.5886 GB make -j1 -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.makefile (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.sim & ./ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe 2>&1)