Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.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.Test.WaterComponents.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") translateModel(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed") [: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.00103/0.00103, allocations: 191.2 kB / 8.133 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.116/1.116, 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.0009451/0.0009448, allocations: 95.91 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.3242/0.3242, allocations: 48.76 MB / 358.4 MB, free: 53.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.38e-06, allocations: 224 / 424.7 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.0998, allocations: 60.26 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.956/6.056, allocations: 3.313 GB / 3.786 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/6.056, allocations: 80.5 kB / 3.786 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.8487/6.905, allocations: 335 MB / 4.113 GB, free: 36.17 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000132/6.905, allocations: 47.19 kB / 4.113 GB, free: 36.16 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.009994/6.915, allocations: 2.466 MB / 4.116 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/6.915, allocations: 10.84 kB / 4.116 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/6.918, allocations: 448 kB / 4.116 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003393/6.922, allocations: 1.238 MB / 4.117 GB, free: 33.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.17e-05/6.922, allocations: 51.34 kB / 4.118 GB, free: 33.68 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005826/6.922, allocations: 98.12 kB / 4.118 GB, free: 33.67 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004439/6.927, allocations: 2.4 MB / 4.12 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003953/6.931, allocations: 2.298 MB / 4.122 GB, free: 31.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/6.931, allocations: 1.312 kB / 4.122 GB, free: 31.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/6.931, allocations: 3.125 kB / 4.122 GB, free: 31.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-05/6.931, allocations: 88.86 kB / 4.122 GB, free: 31.25 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3449/7.276, allocations: 95.62 MB / 4.216 GB, free: 64.84 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/7.279, allocations: 1.51 MB / 4.217 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/7.28, allocations: 1.087 MB / 4.218 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4125/7.693, allocations: 133.4 MB / 4.348 GB, free: 118.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.475e-05/7.693, allocations: 55.06 kB / 4.349 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=206): time 4.969e-06/7.693, allocations: 0 / 4.349 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=207): time 0.01918/7.712, allocations: 6.373 MB / 4.355 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/7.712, allocations: 77.22 kB / 4.355 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007692/7.713, allocations: 0.5542 MB / 4.355 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001668/7.713, allocations: 32.36 kB / 4.355 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/7.713, allocations: 457.4 kB / 4.356 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005239/7.714, allocations: 0.6855 MB / 4.357 GB, free: 117 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/7.714, allocations: 0 / 4.357 GB, free: 117 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00014/7.714, allocations: 431.2 kB / 4.357 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/7.716, allocations: 0.9636 MB / 4.358 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/7.717, allocations: 1.216 MB / 4.359 GB, free: 116.5 MB / 0.5417 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.cooledFlow.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01577/7.733, allocations: 4.061 MB / 4.363 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/7.733, allocations: 10.89 kB / 4.363 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.008997/7.742, allocations: 4.084 MB / 4.367 GB, free: 116.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002655/7.742, allocations: 1.665 MB / 4.369 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/7.742, allocations: 6.594 kB / 4.369 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009486/7.752, allocations: 2.782 MB / 4.371 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006734/7.752, allocations: 166.9 kB / 4.372 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/7.763, allocations: 5.708 MB / 4.377 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/7.764, allocations: 115.5 kB / 4.377 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002158/7.765, allocations: 88.11 kB / 4.377 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/7.765, allocations: 3.594 kB / 4.377 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00691/7.772, allocations: 3.52 MB / 4.381 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/7.772, allocations: 3.906 kB / 4.381 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009488/7.781, allocations: 2.817 MB / 4.383 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007068/7.782, allocations: 163.6 kB / 4.384 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/7.792, allocations: 5.718 MB / 4.389 GB, free: 113 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/7.794, allocations: 104.6 kB / 4.389 GB, free: 113 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/7.794, allocations: 84.72 kB / 4.389 GB, free: 113 MB / 0.5417 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.cooledFlow.p = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (cooledFlow.fluidState[6].phase,cooledFlow.fluidState[5].phase,cooledFlow.fluidState[4].phase,cooledFlow.fluidState[3].phase,cooledFlow.fluidState[2].phase,cooledFlow.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {30 141} Notification: Performance of prepare postOptimizeDAE: time 0.0004289/7.794, allocations: 126.2 kB / 4.39 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/7.796, allocations: 0.5201 MB / 4.39 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/7.807, allocations: 8.87 MB / 4.399 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-05/7.807, allocations: 84.77 kB / 4.399 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/7.807, allocations: 7.391 kB / 4.399 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/7.807, allocations: 10.45 kB / 4.399 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/7.821, allocations: 10.44 MB / 4.409 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/7.821, allocations: 3.906 kB / 4.409 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/7.822, allocations: 221.1 kB / 4.409 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00763/7.83, allocations: 3.07 MB / 4.412 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/7.83, allocations: 47.83 kB / 4.412 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/7.843, allocations: 12.67 MB / 4.425 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/7.843, allocations: 3.938 kB / 4.425 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01641/7.86, allocations: 9.426 MB / 4.434 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/7.861, allocations: 0.5311 MB / 4.434 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004627/7.861, allocations: 15 kB / 4.434 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/7.863, allocations: 80.27 kB / 4.434 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/7.863, allocations: 142 kB / 4.435 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/7.863, allocations: 77.84 kB / 4.435 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0006095/7.864, allocations: 463.5 kB / 4.435 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007234/7.871, allocations: 1.884 MB / 4.437 GB, free: 103.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (cooledFlow.htilde[1],cooledFlow.htilde[2],cooledFlow.htilde[3],cooledFlow.htilde[4],cooledFlow.htilde[5],tubeWalls.Tvol[1],tubeWalls.Tvol[2],tubeWalls.Tvol[3],tubeWalls.Tvol[4],tubeWalls.Tvol[5]) * Number of discrete variables: 34 ($cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 5,20 98} Notification: Performance of Backend phase and start with SimCode phase: time 0.008118/7.879, allocations: 1.903 MB / 4.439 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01067/7.89, allocations: 5.893 MB / 4.445 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/7.89, allocations: 3.719 kB / 4.445 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004666/7.895, allocations: 3.714 MB / 4.448 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003248/7.898, allocations: 0.6154 MB / 4.449 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008516/7.907, allocations: 5.642 MB / 4.454 GB, free: 98.32 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/7.908, allocations: 1.899 MB / 4.456 GB, free: 97.47 MB / 0.5417 GB Notification: Performance of SimCode: time 7.91e-07/7.908, allocations: 0 / 4.456 GB, free: 97.47 MB / 0.5417 GB Notification: Performance of Templates: time 0.2515/8.16, allocations: 87.2 MB / 4.541 GB, free: 129.5 MB / 0.5417 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe 2>&1)