Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.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.DistributedParameterComponents.TestWaterFlow1DFEM_G,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G") [: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.001059/0.001059, allocations: 189.2 kB / 8.138 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 1.121/1.121, 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.000846/0.0008461, allocations: 94.66 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.3222/0.3222, allocations: 48.75 MB / 358.4 MB, free: 53.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.714e-06/8.145e-06, allocations: 0 / 424.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 60.26 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.32/4.43, allocations: 2.937 GB / 3.411 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/4.43, allocations: 85.5 kB / 3.411 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.7796/5.21, allocations: 303 MB / 3.707 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.667e-05/5.21, allocations: 36 kB / 3.707 GB, free: 29.34 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: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.01136/5.221, allocations: 3.235 MB / 3.71 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/5.221, allocations: 8.031 kB / 3.71 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002451/5.224, allocations: 369.4 kB / 3.71 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003918/5.228, allocations: 1.342 MB / 3.712 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-05/5.228, allocations: 60 kB / 3.712 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007848/5.229, allocations: 112 kB / 3.712 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008513/5.237, allocations: 3.766 MB / 3.715 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003936/5.241, allocations: 3.149 MB / 3.718 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.626e-05/5.241, allocations: 0 / 3.718 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/5.241, allocations: 4 kB / 3.718 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.392e-05/5.242, allocations: 75.81 kB / 3.719 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/5.252, allocations: 9.24 MB / 3.728 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/5.254, allocations: 1.478 MB / 3.729 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/5.255, allocations: 0.9575 MB / 3.73 GB, free: 4.961 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2559/5.511, allocations: 64.04 MB / 3.792 GB, free: 67.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00243/5.513, allocations: 1.194 MB / 3.794 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=137): time 3.597e-06/5.513, allocations: 2.844 kB / 3.794 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137): time 0.01203/5.525, allocations: 4.004 MB / 3.798 GB, free: 67.42 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/5.525, allocations: 250.8 kB / 3.798 GB, free: 67.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001431/5.527, allocations: 1.083 MB / 3.799 GB, free: 67 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000206/5.527, allocations: 29.7 kB / 3.799 GB, free: 66.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005185/5.528, allocations: 0.9585 MB / 3.8 GB, free: 66.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003862/5.528, allocations: 494.6 kB / 3.8 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/5.528, allocations: 0 / 3.8 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001419/5.528, allocations: 464.4 kB / 3.801 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/5.53, allocations: 1.085 MB / 3.802 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/5.531, allocations: 2.386 MB / 3.804 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/5.533, allocations: 1.582 MB / 3.806 GB, free: 64.19 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/5.533, allocations: 11.88 kB / 3.806 GB, free: 64.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.01314/5.546, allocations: 5.434 MB / 3.811 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002582/5.549, allocations: 17.03 MB / 3.828 GB, free: 46.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.69e-05/5.549, allocations: 44.34 kB / 3.828 GB, free: 46.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01029/5.559, allocations: 2.414 MB / 3.83 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/5.561, allocations: 0.536 MB / 3.831 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/5.579, allocations: 11.56 MB / 3.842 GB, free: 44.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/5.582, allocations: 329.9 kB / 3.842 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/5.582, allocations: 162.2 kB / 3.842 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/5.582, allocations: 3.719 kB / 3.842 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01174/5.594, allocations: 4.807 MB / 3.847 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.84e-05/5.594, allocations: 42.75 kB / 3.847 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00985/5.604, allocations: 2.406 MB / 3.849 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/5.606, allocations: 0.5332 MB / 3.85 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/5.624, allocations: 11.57 MB / 3.861 GB, free: 42.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/5.626, allocations: 247.4 kB / 3.861 GB, free: 42.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/5.626, allocations: 158.5 kB / 3.862 GB, free: 42.5 MB / 0.5105 GB Warning: Assuming fixed start value for the following 6 variables: hex.h[6]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = hex.hstart[6] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[5]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[5] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[4]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[4] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[3]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[3] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[2]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[2] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[1]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 196 * Number of states: 0 () * Number of discrete variables: 15 (hex.fluidState[6].phase,hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,$PRE.MassFlowRate.nextEvent,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 1 * 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 {6 49} Notification: Performance of prepare postOptimizeDAE: time 0.0007857/5.627, allocations: 350.4 kB / 3.862 GB, free: 42.32 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/5.628, allocations: 489.1 kB / 3.862 GB, free: 42.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/5.641, allocations: 6.66 MB / 3.869 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.842e-05/5.641, allocations: 43.73 kB / 3.869 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/5.641, allocations: 7.219 kB / 3.869 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/5.641, allocations: 7.031 kB / 3.869 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/5.656, allocations: 8.664 MB / 3.877 GB, free: 41.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/5.656, allocations: 0 / 3.877 GB, free: 41.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006373/5.657, allocations: 155.9 kB / 3.878 GB, free: 41.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01107/5.668, allocations: 2.641 MB / 3.88 GB, free: 41.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/5.668, allocations: 46.56 kB / 3.88 GB, free: 41.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/5.686, allocations: 11.67 MB / 3.892 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/5.686, allocations: 6.719 kB / 3.892 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01539/5.701, allocations: 7.583 MB / 3.899 GB, free: 37.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000859/5.702, allocations: 465.7 kB / 3.899 GB, free: 37.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/5.703, allocations: 28.02 kB / 3.899 GB, free: 37.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/5.704, allocations: 76.3 kB / 3.9 GB, free: 37.69 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/5.704, allocations: 86.47 kB / 3.9 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/5.704, allocations: 61.31 kB / 3.9 GB, free: 37.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0008314/5.705, allocations: 0.7188 MB / 3.9 GB, free: 37.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007846/5.713, allocations: 1.828 MB / 3.902 GB, free: 37.22 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (hex.h[1],hex.h[2],hex.h[3],hex.h[4],hex.h[5],hex.h[6]) * Number of discrete variables: 22 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled) * Number of discrete states: 6 (MassFlowRate.nextEvent,MassFlowRate.last,MassFlowRate.nextEventScaled,MassFlowRate.b,MassFlowRate.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * 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 {6 54} Notification: Performance of Backend phase and start with SimCode phase: time 0.007398/5.72, allocations: 1.53 MB / 3.904 GB, free: 36.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009723/5.73, allocations: 6.073 MB / 3.91 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/5.73, allocations: 0 / 3.91 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003239/5.733, allocations: 2.644 MB / 3.912 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/5.735, allocations: 316.6 kB / 3.912 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006948/5.742, allocations: 4.772 MB / 3.917 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/5.743, allocations: 1.741 MB / 3.919 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of SimCode: time 5.01e-07/5.743, allocations: 0 / 3.919 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of Templates: time 0.2243/5.967, allocations: 80.66 MB / 3.998 GB, free: 94.5 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.makefile (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.sim & ./ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe 2>&1)