Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001612/0.001612, allocations: 111 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 207.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2206/0.2206, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3272, allocations: 62.44 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04174/0.369, allocations: 39.19 MB / 0.5699 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02313/0.3922, allocations: 20.17 MB / 0.5896 GB, free: 6.199 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008617/0.3931, allocations: 19.88 kB / 0.5897 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.3943, allocations: 449.3 kB / 0.5901 GB, free: 5.738 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01461/0.4089, allocations: 5.139 MB / 0.5951 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006951/0.4159, allocations: 2.577 MB / 0.5976 GB, free: 14.02 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002761/0.4187, allocations: 1.981 MB / 0.5996 GB, free: 12.03 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.4199, allocations: 497.5 kB / 0.6 GB, free: 11.53 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01265/0.4326, allocations: 4.172 MB / 0.6041 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01362/0.4462, allocations: 5.452 MB / 0.6094 GB, free: 1.766 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000375/0.4467, allocations: 72 kB / 0.6095 GB, free: 1.695 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01626/0.463, allocations: 7.391 MB / 0.6167 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005897/0.4636, allocations: 279.2 kB / 0.617 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001029/0.4646, allocations: 458 kB / 0.6174 GB, free: 9.574 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01243/0.4771, allocations: 5.106 MB / 0.6224 GB, free: 4.457 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4771, allocations: 4 kB / 0.6224 GB, free: 4.453 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4771, allocations: 0 / 0.6224 GB, free: 4.453 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.4772, allocations: 0 / 0.6224 GB, free: 4.453 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.00491/0.4821, allocations: 1.684 MB / 0.6241 GB, free: 2.719 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4821, allocations: 16.03 kB / 0.6241 GB, free: 2.703 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/0.4845, allocations: 295.7 kB / 0.6244 GB, free: 2.414 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.4858, allocations: 0.5794 MB / 0.6249 GB, free: 1.793 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.486, allocations: 117.2 kB / 0.625 GB, free: 1.664 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.4861, allocations: 68.11 kB / 0.6251 GB, free: 1.598 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002854/0.489, allocations: 1.189 MB / 0.6263 GB, free: 316 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.489, allocations: 4 kB / 0.6263 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.332e-05/0.4891, allocations: 35.98 kB / 0.6263 GB, free: 276 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.403e-05/0.4892, allocations: 53.16 kB / 0.6263 GB, free: 224 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00268/0.4919, allocations: 1.02 MB / 0.6273 GB, free: 15.2 MB / 494.1 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.007026/0.4989, allocations: 5.615 MB / 0.6328 GB, free: 9.211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.5013, allocations: 0.7542 MB / 0.6336 GB, free: 8.441 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006067/0.5019, allocations: 289.6 kB / 0.6338 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03549/0.5374, allocations: 17.36 MB / 0.6508 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.5375, allocations: 42.55 kB / 0.6508 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.615e-06/0.5375, allocations: 0 / 0.6508 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.007332/0.5448, allocations: 2.281 MB / 0.6531 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/0.5449, allocations: 158.7 kB / 0.6532 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007935/0.5457, allocations: 0.6132 MB / 0.6538 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.5458, allocations: 33.73 kB / 0.6538 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.5461, allocations: 399.2 kB / 0.6542 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.5463, allocations: 177.5 kB / 0.6544 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.5465, allocations: 154.5 kB / 0.6545 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5467, allocations: 378.8 kB / 0.6549 GB, free: 284 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000715/0.5474, allocations: 277.8 kB / 0.6552 GB, free: 4 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.5485, allocations: 0.6121 MB / 0.6558 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.5501, allocations: 0.9026 MB / 0.6566 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.5501, allocations: 4 kB / 0.6566 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001978/0.5521, allocations: 0.9563 MB / 0.6576 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.5521, allocations: 8.969 kB / 0.6576 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.5522, allocations: 12 kB / 0.6576 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.5524, allocations: 72.81 kB / 0.6577 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.5537, allocations: 299.5 kB / 0.658 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/0.5554, allocations: 2.078 MB / 0.66 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005692/0.5559, allocations: 43.97 kB / 0.66 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.556, allocations: 43.98 kB / 0.6601 GB, free: 10.51 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003695/0.5564, allocations: 280.9 kB / 0.6603 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.5566, allocations: 79.19 kB / 0.6604 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.5599, allocations: 2.543 MB / 0.6629 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.5599, allocations: 0 / 0.6629 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.56, allocations: 0 / 0.6629 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003837/0.5603, allocations: 255.2 kB / 0.6631 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.5605, allocations: 31.69 kB / 0.6632 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.5611, allocations: 55.94 kB / 0.6632 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.5612, allocations: 48.48 kB / 0.6633 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004283/0.5655, allocations: 1.622 MB / 0.6649 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004093/0.5696, allocations: 2.254 MB / 0.6671 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001222/0.5709, allocations: 0.6579 MB / 0.6677 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001074/0.5719, allocations: 0.5615 MB / 0.6682 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of Backend: time 4.71e-07/0.572, allocations: 0 / 0.6682 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01167/0.5836, allocations: 2.143 MB / 0.6703 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of SimCode: time 0.005828/0.5895, allocations: 2.537 MB / 0.6728 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of Templates: time 0.3411/0.9306, allocations: 51.97 MB / 0.7236 GB, free: 174.5 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:$cse1.R_s,$cse1.T,$cse1.cp,$cse1.cv,$cse1.dpT,$cse1.h,$cse1.p,$cse1.pd,$cse1.phase,$cse1.pt,$cse1.region,$cse1.rho,$cse1.s,$cse1.vp,$cse1.vt,$cse1.x,$cse10.R_s,$cse10.T,$cse10.cp,$cse10.cv,$cse10.d,$cse10.dpT,$cse10.h,$cse10.pd,$cse10.pt,$cse10.region3boundary,$cse10.s,$cse10.vp,$cse10.vt,$cse12.R_s,$cse12.T,$cse12.cp,$cse12.cv,$cse12.dpT,$cse12.h,$cse12.p,$cse12.pd,$cse12.phase,$cse12.pt,$cse12.region,$cse12.rho,$cse12.s,$cse12.vp,$cse12.vt,$cse12.x,$cse9.R_s,$cse9.T,$cse9.cp,$cse9.cv,$cse9.d,$cse9.dpT,$cse9.h,$cse9.pd,$cse9.pt,$cse9.region3boundary,$cse9.s,$cse9.vp,$cse9.vt,T_start,X_start[1],ambient.T,ambient.X[1],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.p,ambient.medium.preferredMediumStates,ambient.medium.sat.psat,ambient.medium.standardOrderComponents,ambient.medium.state.p,ambient.nPorts,ambient.p,ambient.ports[1].p,ambient.state.T,ambient.state.p,ambient.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.T_in_internal,fixedMassFlowRate.X[1],fixedMassFlowRate.X_in_internal[1],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.m_flow_in_internal,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.nPorts,fixedMassFlowRate.ports[1].m_flow,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.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.h,volume.medium.p,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.nPorts,volume.p_start,volume.ports[1].m_flow,volume.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea