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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001375/0.001375, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001117/0.001117, allocations: 93.95 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5701/0.5701, allocations: 48.78 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003663, allocations: 8 kB / 438.6 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1612, allocations: 60.26 MB / 498.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.95/8.111, allocations: 2.938 GB / 3.425 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/8.111, allocations: 86.17 kB / 3.425 GB, free: 20.93 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.42/9.532, allocations: 307.3 MB / 3.725 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.966e-06/9.532, allocations: 0 / 3.725 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001027/9.532, allocations: 38 kB / 3.725 GB, free: 71.91 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.01589/9.548, allocations: 3.494 MB / 3.729 GB, free: 70.78 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/9.548, allocations: 13.36 kB / 3.729 GB, free: 70.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002936/9.551, allocations: 368.1 kB / 3.729 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005169/9.556, allocations: 1.352 MB / 3.73 GB, free: 70.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/9.556, allocations: 141.5 kB / 3.731 GB, free: 70.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/9.557, allocations: 195.8 kB / 3.731 GB, free: 69.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/9.568, allocations: 4.602 MB / 3.735 GB, free: 68.35 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/9.568, allocations: 0 / 3.735 GB, free: 68.35 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002977/9.568, allocations: 88.06 kB / 3.735 GB, free: 68.28 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-05/9.568, allocations: 72.48 kB / 3.735 GB, free: 68.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01216/9.581, allocations: 5.045 MB / 3.74 GB, free: 66.84 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/9.594, allocations: 9.214 MB / 3.749 GB, free: 61.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005129/9.6, allocations: 2.194 MB / 3.751 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1118/9.711, allocations: 63.74 MB / 3.814 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006675/9.718, allocations: 1.903 MB / 3.816 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=137): time 7.624e-06/9.718, allocations: 0 / 3.816 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137): time 0.03736/9.756, allocations: 8.751 MB / 3.824 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/9.756, allocations: 248.6 kB / 3.824 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001813/9.758, allocations: 1.221 MB / 3.826 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008033/9.758, allocations: 49.7 kB / 3.826 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007179/9.759, allocations: 1.018 MB / 3.827 GB, free: 9.168 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009147/9.76, allocations: 0.5029 MB / 3.827 GB, free: 8.668 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/9.76, allocations: 56 kB / 3.827 GB, free: 8.613 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001958/9.76, allocations: 469.3 kB / 3.828 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/9.763, allocations: 1.446 MB / 3.829 GB, free: 6.699 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002768/9.765, allocations: 2.748 MB / 3.832 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/9.768, allocations: 1.912 MB / 3.833 GB, free: 1.406 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.283e-05/9.768, allocations: 12 kB / 3.834 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.01706/9.785, allocations: 6.365 MB / 3.84 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.3693/10.15, allocations: 17.09 MB / 3.856 GB, free: 74.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002006/10.15, allocations: 44.06 kB / 3.856 GB, free: 74.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01374/10.17, allocations: 2.555 MB / 3.859 GB, free: 74.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003326/10.17, allocations: 0.6768 MB / 3.86 GB, free: 74.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02544/10.2, allocations: 13.81 MB / 3.873 GB, free: 73.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003874/10.2, allocations: 429.3 kB / 3.874 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008625/10.2, allocations: 223 kB / 3.874 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/10.2, allocations: 3.469 kB / 3.874 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01605/10.22, allocations: 6.168 MB / 3.88 GB, free: 73.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002485/10.22, allocations: 40.19 kB / 3.88 GB, free: 73.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/10.23, allocations: 2.56 MB / 3.882 GB, free: 73.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/10.23, allocations: 0.6698 MB / 3.883 GB, free: 73.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02418/10.26, allocations: 13.82 MB / 3.896 GB, free: 71.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00344/10.26, allocations: 334.2 kB / 3.897 GB, free: 71.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006458/10.26, allocations: 226.5 kB / 3.897 GB, free: 71.61 MB / 0.5261 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 = 100000.0 unit = "J/kg" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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 () * Number of clocked 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.002404/10.26, allocations: 0.8569 MB / 3.898 GB, free: 71.37 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006228/10.26, allocations: 157.7 kB / 3.898 GB, free: 71.29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02838/10.29, allocations: 15.15 MB / 3.913 GB, free: 70.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.543e-05/10.29, allocations: 38.64 kB / 3.913 GB, free: 70.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/10.29, allocations: 1.375 kB / 3.913 GB, free: 70.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-05/10.29, allocations: 11.34 kB / 3.913 GB, free: 70.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.029/10.32, allocations: 21.15 MB / 3.933 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-05/10.32, allocations: 1.062 kB / 3.933 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/10.32, allocations: 218 kB / 3.934 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01163/10.33, allocations: 2.803 MB / 3.936 GB, free: 60.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008083/10.34, allocations: 61.3 kB / 3.936 GB, free: 60.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02405/10.36, allocations: 13.81 MB / 3.95 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/10.36, allocations: 3 kB / 3.95 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/10.38, allocations: 6.722 MB / 3.957 GB, free: 52.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/10.38, allocations: 493 kB / 3.957 GB, free: 52.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003396/10.38, allocations: 45.48 kB / 3.957 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/10.38, allocations: 128.2 kB / 3.957 GB, free: 52.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005785/10.38, allocations: 132.2 kB / 3.957 GB, free: 52.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/10.38, allocations: 57.2 kB / 3.957 GB, free: 52.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001135/10.38, allocations: 0.8473 MB / 3.958 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/10.38, allocations: 0 / 3.958 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01213/10.39, allocations: 2.049 MB / 3.96 GB, free: 51.59 MB / 0.5261 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) * Number of clocked states: 0 () * 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.009257/10.4, allocations: 1.356 MB / 3.961 GB, free: 51.39 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01688/10.42, allocations: 6.764 MB / 3.968 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/10.42, allocations: 3.531 kB / 3.968 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004331/10.42, allocations: 2.082 MB / 3.97 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/10.43, allocations: 455.5 kB / 3.971 GB, free: 47.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008103/10.43, allocations: 5.79 MB / 3.976 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/10.44, allocations: 1.64 MB / 3.978 GB, free: 44.37 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01007/10.45, allocations: 8.773 MB / 3.986 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009152/10.45, allocations: 200.5 kB / 3.987 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of SimCode: time 3.587e-06/10.45, allocations: 0 / 3.987 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of Templates: time 0.4542/10.9, allocations: 86.23 MB / 4.071 GB, free: 93.2 MB / 0.5417 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)