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: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.7/1.7, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009283/0.0009281, allocations: 84.41 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5079/0.5079, allocations: 48.77 MB / 358.8 MB, free: 53.18 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.398e-05, allocations: 4 kB / 425.4 MB, free: 8.129 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1595, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.752/7.912, allocations: 2.937 GB / 3.411 GB, free: 124.1 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/7.912, allocations: 79.44 kB / 3.411 GB, free: 124 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 1.015/8.927, allocations: 303.5 MB / 3.708 GB, free: 34.77 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.054e-06/8.927, allocations: 0 / 3.708 GB, free: 34.77 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 8.335e-05/8.927, allocations: 43.2 kB / 3.708 GB, free: 34.73 MB / 0.5108 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.01373/8.941, allocations: 3.392 MB / 3.711 GB, free: 31.33 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/8.941, allocations: 12.03 kB / 3.711 GB, free: 31.32 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0028/8.944, allocations: 365.5 kB / 3.712 GB, free: 30.96 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004349/8.948, allocations: 1.353 MB / 3.713 GB, free: 29.59 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/8.948, allocations: 64.69 kB / 3.713 GB, free: 29.52 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006495/8.949, allocations: 115.9 kB / 3.713 GB, free: 29.41 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00677/8.956, allocations: 3.696 MB / 3.717 GB, free: 25.71 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004345/8.96, allocations: 3.08 MB / 3.72 GB, free: 22.59 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.134e-05/8.96, allocations: 0 / 3.72 GB, free: 22.59 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000236/8.96, allocations: 4 kB / 3.72 GB, free: 22.58 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.553e-05/8.96, allocations: 75.81 kB / 3.72 GB, free: 22.51 MB / 0.5108 GB Warning: The model contains alias variables with conflicting start and/or 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.01219/8.973, allocations: 8.949 MB / 3.729 GB, free: 13.11 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/8.975, allocations: 1.451 MB / 3.73 GB, free: 11.66 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/8.976, allocations: 0.9389 MB / 3.731 GB, free: 10.72 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4922/9.468, allocations: 63.97 MB / 3.793 GB, free: 40.25 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003397/9.471, allocations: 1.16 MB / 3.794 GB, free: 40.1 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=137): time 1.017e-05/9.471, allocations: 4 kB / 3.794 GB, free: 40.09 MB / 0.5265 GB Notification: Performance of matching and sorting (n=137): time 0.01833/9.49, allocations: 4.557 MB / 3.799 GB, free: 39.97 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/9.49, allocations: 251.6 kB / 3.799 GB, free: 39.69 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002403/9.492, allocations: 1.07 MB / 3.8 GB, free: 39.54 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0005906/9.493, allocations: 29.7 kB / 3.8 GB, free: 39.51 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.001055/9.494, allocations: 1.028 MB / 3.801 GB, free: 38.99 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.001081/9.495, allocations: 496.4 kB / 3.802 GB, free: 38.76 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005716/9.496, allocations: 3.406 kB / 3.802 GB, free: 38.76 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0003881/9.496, allocations: 460.2 kB / 3.802 GB, free: 38.45 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002905/9.499, allocations: 1.371 MB / 3.803 GB, free: 38.44 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003658/9.503, allocations: 2.66 MB / 3.806 GB, free: 36.79 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006502/9.509, allocations: 1.968 MB / 3.808 GB, free: 36.71 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.103e-05/9.509, allocations: 11.81 kB / 3.808 GB, free: 36.71 MB / 0.5265 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.02148/9.531, allocations: 6.107 MB / 3.814 GB, free: 36.48 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.007794/9.539, allocations: 17.1 MB / 3.831 GB, free: 34.52 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002738/9.539, allocations: 43.28 kB / 3.831 GB, free: 34.52 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01205/9.551, allocations: 2.513 MB / 3.833 GB, free: 34.46 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/9.554, allocations: 0.6771 MB / 3.834 GB, free: 34.46 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02565/9.58, allocations: 12.51 MB / 3.846 GB, free: 32.94 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/9.584, allocations: 348.5 kB / 3.846 GB, free: 32.84 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/9.585, allocations: 226.4 kB / 3.847 GB, free: 32.84 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/9.585, allocations: 3.969 kB / 3.847 GB, free: 32.84 MB / 0.5421 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01873/9.603, allocations: 5.848 MB / 3.852 GB, free: 32.7 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002485/9.604, allocations: 44.81 kB / 3.852 GB, free: 32.7 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/9.614, allocations: 2.516 MB / 3.855 GB, free: 32.64 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002966/9.617, allocations: 0.6638 MB / 3.855 GB, free: 32.64 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02491/9.642, allocations: 12.52 MB / 3.868 GB, free: 31.07 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/9.646, allocations: 274.7 kB / 3.868 GB, free: 30.96 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/9.647, allocations: 224.1 kB / 3.868 GB, free: 30.96 MB / 0.5421 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.002257/9.649, allocations: 352.6 kB / 3.868 GB, free: 30.77 MB / 0.5421 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01603/9.665, allocations: 4.665 MB / 3.873 GB, free: 30.56 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007996/9.666, allocations: 142.9 kB / 3.873 GB, free: 30.49 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02501/9.691, allocations: 15.59 MB / 3.888 GB, free: 30.05 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.536e-05/9.691, allocations: 33.64 kB / 3.888 GB, free: 30.05 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/9.691, allocations: 0 / 3.888 GB, free: 30.05 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-05/9.692, allocations: 9.844 kB / 3.888 GB, free: 30.05 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03348/9.725, allocations: 21.23 MB / 3.909 GB, free: 21.08 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/9.725, allocations: 3.75 kB / 3.909 GB, free: 21.08 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/9.727, allocations: 219.6 kB / 3.909 GB, free: 21.04 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01143/9.738, allocations: 2.762 MB / 3.912 GB, free: 20.69 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006662/9.739, allocations: 46.7 kB / 3.912 GB, free: 20.68 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02237/9.761, allocations: 12.67 MB / 3.925 GB, free: 10.04 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/9.761, allocations: 4 kB / 3.925 GB, free: 10.04 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01795/9.779, allocations: 6.536 MB / 3.931 GB, free: 4.652 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/9.781, allocations: 480.9 kB / 3.931 GB, free: 4.219 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000836/9.782, allocations: 28.11 kB / 3.931 GB, free: 4.199 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/9.784, allocations: 106.7 kB / 3.931 GB, free: 4.133 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008722/9.785, allocations: 133.8 kB / 3.932 GB, free: 4.051 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003784/9.785, allocations: 54.97 kB / 3.932 GB, free: 4.008 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.001518/9.787, allocations: 0.7181 MB / 3.932 GB, free: 3.367 MB / 0.5421 GB Notification: Performance of sort global known variables: time 4.01e-07/9.787, allocations: 0 / 3.932 GB, free: 3.367 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01322/9.8, allocations: 1.92 MB / 3.934 GB, free: 1.559 MB / 0.5421 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.4127/10.21, allocations: 8.463 MB / 3.942 GB, free: 84.83 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.01295/10.23, allocations: 6.349 MB / 3.949 GB, free: 84.39 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/10.23, allocations: 0 / 3.949 GB, free: 84.39 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.003783/10.23, allocations: 1.979 MB / 3.951 GB, free: 84.16 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/10.23, allocations: 325.2 kB / 3.951 GB, free: 84.15 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/10.24, allocations: 4.798 MB / 3.956 GB, free: 83.46 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/10.24, allocations: 1.641 MB / 3.957 GB, free: 82.72 MB / 0.5421 GB Notification: Performance of simCode: alias equations: time 0.009498/10.25, allocations: 8.788 MB / 3.966 GB, free: 82.58 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/10.25, allocations: 0.785 MB / 3.967 GB, free: 82.58 MB / 0.5421 GB Notification: Performance of SimCode: time 7.01e-07/10.25, allocations: 5.438 kB / 3.967 GB, free: 82.58 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1657/10.42, allocations: 97.45 MB / 4.062 GB, free: 72.99 MB / 0.5421 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003021/10.42, allocations: 164.4 kB / 4.062 GB, free: 72.79 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.774/15.19, allocations: 0 / 4.062 GB, free: 72.79 MB / 0.5421 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe 2>&1)