Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|p_start|T_start|h_start|X_start.1.|volume.ports.1..m_flow|volume.ports.1..p|volume.ports.1..h_outflow|volume.ports.2..m_flow|volume.ports.2..p|volume.ports.2..h_outflow|volume.ports_H_flow.1.|volume.ports_H_flow.2.|volume.ports_E_flow.1.|volume.ports_E_flow.2.|volume.ports_penetration.1.|volume.ports_penetration.2.|volume.portsData_diameter.1.|volume.portsData_diameter.2.|volume.portsData_height.1.|volume.portsData_height.2.|volume.portsData_zeta_in.1.|volume.portsData_zeta_in.2.|volume.portsData_zeta_out.1.|volume.portsData_zeta_out.2.|fixedMassFlowRate.ports.1..m_flow|fixedMassFlowRate.ports.1..p|fixedMassFlowRate.ports.1..h_outflow|shortPipe.port_b.m_flow|shortPipe.port_b.p|shortPipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002692/0.002697, allocations: 370 kB / 15.97 MB, free: 6.18 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.082/4.082, allocations: 388.9 MB / 405.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003705/0.003705, allocations: 228.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5705/0.5705, allocations: 80.02 MB / 0.5627 GB, free: 19.82 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004645/0.0004648, allocations: 8 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.095, allocations: 54.87 MB / 0.6801 GB, free: 41.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01766/0.1127, allocations: 15.41 MB / 0.6952 GB, free: 26.17 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.008512/0.1213, allocations: 5.196 MB / 0.7002 GB, free: 20.96 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.1225, allocations: 27.75 kB / 0.7003 GB, free: 20.94 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.1236, allocations: 250.5 kB / 0.7005 GB, free: 20.69 MB / 346.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002797/0.1264, allocations: 0.8221 MB / 0.7013 GB, free: 19.87 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003188/0.1296, allocations: 0.7818 MB / 0.7021 GB, free: 19.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002878/0.1325, allocations: 2.175 MB / 0.7042 GB, free: 16.91 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008/0.1333, allocations: 373.1 kB / 0.7045 GB, free: 16.54 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.1348, allocations: 0.6187 MB / 0.7051 GB, free: 15.92 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.136, allocations: 0.6033 MB / 0.7057 GB, free: 15.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.1362, allocations: 28 kB / 0.7058 GB, free: 15.29 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.1372, allocations: 211.8 kB / 0.706 GB, free: 15.08 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002955/0.1375, allocations: 231.3 kB / 0.7062 GB, free: 14.86 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002383/0.1377, allocations: 165.3 kB / 0.7063 GB, free: 14.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.1389, allocations: 0.7832 MB / 0.7071 GB, free: 13.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1389, allocations: 0 / 0.7071 GB, free: 13.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1389, allocations: 0 / 0.7071 GB, free: 13.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1389, allocations: 0 / 0.7071 GB, free: 13.9 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002372/0.1413, allocations: 0.9179 MB / 0.708 GB, free: 12.94 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.1414, allocations: 8.828 kB / 0.708 GB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.1418, allocations: 87.14 kB / 0.7081 GB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1429, allocations: 0.4967 MB / 0.7086 GB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.143, allocations: 96.41 kB / 0.7087 GB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1431, allocations: 59.92 kB / 0.7087 GB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.1448, allocations: 0.8265 MB / 0.7095 GB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.1449, allocations: 4 kB / 0.7095 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-05/0.145, allocations: 24 kB / 0.7096 GB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.827e-05/0.1451, allocations: 48.91 kB / 0.7096 GB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1466, allocations: 0.6322 MB / 0.7102 GB, free: 10.54 MB / 346.7 MB 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.005921/0.1525, allocations: 4.317 MB / 0.7144 GB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008991/0.1535, allocations: 338 kB / 0.7148 GB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.1539, allocations: 169.3 kB / 0.7149 GB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002664/0.1566, allocations: 1.78 MB / 0.7167 GB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.1566, allocations: 34.56 kB / 0.7167 GB, free: 3.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.567e-06/0.1567, allocations: 0 / 0.7167 GB, free: 3.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004395/0.1611, allocations: 1.236 MB / 0.7179 GB, free: 2.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.1611, allocations: 136.5 kB / 0.718 GB, free: 1.879 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009312/0.1621, allocations: 0.6171 MB / 0.7186 GB, free: 1.258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.1622, allocations: 33.7 kB / 0.7187 GB, free: 1.219 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.1625, allocations: 413.9 kB / 0.7191 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1626, allocations: 130.4 kB / 0.7192 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.1626, allocations: 15.94 kB / 0.7192 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1628, allocations: 374.8 kB / 0.7196 GB, free: 296 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.1632, allocations: 177.9 kB / 0.7197 GB, free: 120 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.299/0.4622, allocations: 0.5718 MB / 0.7203 GB, free: 46.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.4631, allocations: 291.2 kB / 0.7206 GB, free: 46.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.4631, allocations: 8.188 kB / 0.7206 GB, free: 46.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002271/0.4654, allocations: 0.7878 MB / 0.7213 GB, free: 46.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.4655, allocations: 10.62 kB / 0.7214 GB, free: 46.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/0.4655, allocations: 13.12 kB / 0.7214 GB, free: 46.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.888e-05/0.4656, allocations: 21.56 kB / 0.7214 GB, free: 46.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.4673, allocations: 213.2 kB / 0.7216 GB, free: 46.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.893e-05/0.4674, allocations: 29.62 kB / 0.7216 GB, free: 46.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.4684, allocations: 49.92 kB / 0.7217 GB, free: 46.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4685, allocations: 41.66 kB / 0.7217 GB, free: 46.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005777/0.4691, allocations: 261.6 kB / 0.722 GB, free: 46.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.4693, allocations: 63.25 kB / 0.722 GB, free: 46.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.4705, allocations: 437.3 kB / 0.7224 GB, free: 46.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.4705, allocations: 2.672 kB / 0.7224 GB, free: 46.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4705, allocations: 0.5156 kB / 0.7224 GB, free: 46.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.4709, allocations: 180.7 kB / 0.7226 GB, free: 46.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.4711, allocations: 10.59 kB / 0.7226 GB, free: 46.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006137/0.4717, allocations: 25.47 kB / 0.7226 GB, free: 46.29 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.4718, allocations: 20.42 kB / 0.7227 GB, free: 46.28 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001158/0.4729, allocations: 447.8 kB / 0.7231 GB, free: 46.05 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001239/0.4742, allocations: 0.6448 MB / 0.7237 GB, free: 45.66 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003039/0.4746, allocations: 133.9 kB / 0.7238 GB, free: 45.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008931/0.4755, allocations: 426.6 kB / 0.7243 GB, free: 45.42 MB / 346.7 MB Notification: Performance of Backend: time 3.81e-07/0.4755, allocations: 0 / 0.7243 GB, free: 45.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.4778, allocations: 0.5861 MB / 0.7248 GB, free: 45.24 MB / 346.7 MB Notification: Performance of SimCode: time 0.004725/0.4826, allocations: 2.028 MB / 0.7268 GB, free: 44.02 MB / 346.7 MB Notification: Performance of Templates: time 0.03459/0.5172, allocations: 11.03 MB / 0.7376 GB, free: 40.54 MB / 346.7 MB "" Variables in the reference:time,volume.medium.T,p_start,T_start,h_start,X_start[1],volume.ports[1].m_flow,volume.ports[1].p,volume.ports[1].h_outflow,volume.ports[2].m_flow,volume.ports[2].p,volume.ports[2].h_outflow,volume.ports_H_flow[1],volume.ports_H_flow[2],volume.ports_E_flow[1],volume.ports_E_flow[2],volume.ports_penetration[1],volume.ports_penetration[2],volume.portsData_diameter[1],volume.portsData_diameter[2],volume.portsData_height[1],volume.portsData_height[2],volume.portsData_zeta_in[1],volume.portsData_zeta_in[2],volume.portsData_zeta_out[1],volume.portsData_zeta_out[2],fixedMassFlowRate.ports[1].m_flow,fixedMassFlowRate.ports[1].p,fixedMassFlowRate.ports[1].h_outflow,shortPipe.port_b.m_flow,shortPipe.port_b.p,shortPipe.port_b.h_outflow Variables in the result:T_start,X_start[1],ambient.T,ambient.X[1],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.nPorts,ambient.p,ambient.state.T,ambient.state.p,ambient.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.X[1],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.m_flow_in_internal,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.nPorts,fixedMassFlowRate.ports[1].h_outflow,fixedMassFlowRate.ports[1].m_flow,fixedMassFlowRate.ports[1].p,h_start,p_start,shortPipe.V,shortPipe.allowFlowReversal,shortPipe.crossArea,shortPipe.diameter,shortPipe.flowModel.Re_turbulent,shortPipe.flowModel.allowFlowReversal,shortPipe.flowModel.crossAreas[1],shortPipe.flowModel.crossAreas[2],shortPipe.flowModel.dheights[1],shortPipe.flowModel.dp_nominal,shortPipe.flowModel.g,shortPipe.flowModel.m,shortPipe.flowModel.m_flow_nominal,shortPipe.flowModel.m_flow_start,shortPipe.flowModel.momentumDynamics,shortPipe.flowModel.mu_nominal,shortPipe.flowModel.mus[1],shortPipe.flowModel.mus[2],shortPipe.flowModel.mus_act[1],shortPipe.flowModel.n,shortPipe.flowModel.nParallel,shortPipe.flowModel.p_a_start,shortPipe.flowModel.p_b_start,shortPipe.flowModel.pathLengths[1],shortPipe.flowModel.rho_nominal,shortPipe.flowModel.roughnesses[1],shortPipe.flowModel.roughnesses[2],shortPipe.flowModel.show_Res,shortPipe.flowModel.states[2].p,shortPipe.flowModel.useUpstreamScheme,shortPipe.flowModel.use_Ib_flows,shortPipe.flowModel.use_mu_nominal,shortPipe.flowModel.use_rho_nominal,shortPipe.height_ab,shortPipe.isCircular,shortPipe.length,shortPipe.m_flow_start,shortPipe.nParallel,shortPipe.p_a_start,shortPipe.p_b_start,shortPipe.perimeter,shortPipe.port_a_exposesState,shortPipe.port_b.h_outflow,shortPipe.port_b.m_flow,shortPipe.port_b.p,shortPipe.port_b_exposesState,shortPipe.roughness,shortPipe.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time,volume.T_start,volume.V,volume.X_start[1],volume.energyDynamics,volume.fluidLevel_max,volume.fluidVolume,volume.h_start,volume.heatTransfer.T_ambient,volume.heatTransfer.k,volume.heatTransfer.n,volume.heatTransfer.use_k,volume.initialize_p,volume.m_flow_nominal,volume.m_flow_small,volume.massDynamics,volume.medium.T,volume.medium.p,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.nPorts,volume.p_start,volume.portsData_diameter[1],volume.portsData_diameter[2],volume.portsData_height[1],volume.portsData_height[2],volume.portsData_zeta_in[1],volume.portsData_zeta_in[2],volume.portsData_zeta_out[1],volume.portsData_zeta_out[2],volume.ports[1].h_outflow,volume.ports[1].m_flow,volume.ports[1].p,volume.ports[2].h_outflow,volume.ports[2].m_flow,volume.ports[2].p,volume.ports_E_flow[1],volume.ports_E_flow[2],volume.ports_H_flow[1],volume.ports_H_flow[2],volume.ports_penetration[1],volume.ports_penetration[2],volume.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea