Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 107.8 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001917/0.001917, allocations: 207.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.11 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 75.88 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3487, 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_pT): time 0.0384/0.3871, allocations: 39.19 MB / 0.5699 GB, free: 10.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02294/0.4101, allocations: 20.17 MB / 0.5896 GB, free: 6.211 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007444/0.4109, allocations: 19.88 kB / 0.5897 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.4121, allocations: 449.3 kB / 0.5901 GB, free: 5.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01249/0.4246, allocations: 5.123 MB / 0.5951 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006247/0.4308, allocations: 2.569 MB / 0.5976 GB, free: 14.05 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002323/0.4332, allocations: 1.958 MB / 0.5995 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006246/0.4338, allocations: 485.5 kB / 0.6 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007535/0.4413, allocations: 4.152 MB / 0.604 GB, free: 7.391 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009266/0.4506, allocations: 5.432 MB / 0.6093 GB, free: 1.875 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002176/0.4509, allocations: 68 kB / 0.6094 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01374/0.4646, allocations: 7.247 MB / 0.6165 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004365/0.4651, allocations: 279.2 kB / 0.6167 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007732/0.4659, allocations: 438.1 kB / 0.6172 GB, free: 9.852 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009661/0.4755, allocations: 4.974 MB / 0.622 GB, free: 4.867 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.4756, allocations: 4 kB / 0.622 GB, free: 4.863 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4756, allocations: 0 / 0.622 GB, free: 4.863 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.45e-05/0.4756, allocations: 8 kB / 0.622 GB, free: 4.855 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.004477/0.4801, allocations: 1.621 MB / 0.6236 GB, free: 3.184 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4801, allocations: 12.03 kB / 0.6236 GB, free: 3.172 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/0.4817, allocations: 215.8 kB / 0.6238 GB, free: 2.961 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009838/0.4827, allocations: 0.5637 MB / 0.6244 GB, free: 2.355 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.4829, allocations: 109.3 kB / 0.6245 GB, free: 2.234 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.483, allocations: 68.11 kB / 0.6246 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.485, allocations: 1.075 MB / 0.6256 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.485, allocations: 4 kB / 0.6256 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.683e-05/0.4851, allocations: 31.94 kB / 0.6256 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-05/0.4852, allocations: 40.98 kB / 0.6257 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.4869, allocations: 0.8194 MB / 0.6265 GB, free: 92 kB / 478.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.005847/0.4927, allocations: 5.562 MB / 0.6319 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.494, allocations: 0.5348 MB / 0.6324 GB, free: 9.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.4943, allocations: 210.4 kB / 0.6326 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0976/0.5919, allocations: 52.8 MB / 0.6842 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.592, allocations: 46.5 kB / 0.6842 GB, free: 13.88 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 2.966e-06/0.592, allocations: 0 / 0.6842 GB, free: 13.88 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.006482/0.5985, allocations: 2.123 MB / 0.6863 GB, free: 11.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.191e-05/0.5986, allocations: 191.9 kB / 0.6865 GB, free: 11.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007521/0.5994, allocations: 0.629 MB / 0.6871 GB, free: 10.83 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.5995, allocations: 37.7 kB / 0.6871 GB, free: 10.79 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.5997, allocations: 407.1 kB / 0.6875 GB, free: 10.38 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.5999, allocations: 161.8 kB / 0.6877 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.6001, allocations: 158.4 kB / 0.6878 GB, free: 10.06 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.6003, allocations: 386.8 kB / 0.6882 GB, free: 9.676 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.6007, allocations: 229.9 kB / 0.6884 GB, free: 9.449 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006132/0.6013, allocations: 0.59 MB / 0.689 GB, free: 8.688 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.6024, allocations: 0.856 MB / 0.6898 GB, free: 7.668 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.6024, allocations: 7.938 kB / 0.6898 GB, free: 7.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00151/0.6039, allocations: 0.9078 MB / 0.6907 GB, free: 6.742 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.604, allocations: 8 kB / 0.6907 GB, free: 6.734 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.604, allocations: 12 kB / 0.6908 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003438/0.6074, allocations: 268.5 kB / 0.691 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.6086, allocations: 283.7 kB / 0.6913 GB, free: 6.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.6103, allocations: 2.121 MB / 0.6934 GB, free: 3.895 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005706/0.6109, allocations: 31.94 kB / 0.6934 GB, free: 3.863 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.477e-05/0.611, allocations: 43.98 kB / 0.6934 GB, free: 3.82 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {(2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004378/0.6114, allocations: 277.5 kB / 0.6937 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.6117, allocations: 71.16 kB / 0.6938 GB, free: 3.469 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002448/0.6141, allocations: 2.006 MB / 0.6957 GB, free: 1.438 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6141, allocations: 8 kB / 0.6957 GB, free: 1.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.6142, allocations: 3.984 kB / 0.6957 GB, free: 1.426 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003682/0.6145, allocations: 227.6 kB / 0.6959 GB, free: 1.184 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.6147, allocations: 31.69 kB / 0.696 GB, free: 1.152 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004384/0.6151, allocations: 11.98 kB / 0.696 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.6152, allocations: 28.41 kB / 0.696 GB, free: 1.113 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002181/0.6174, allocations: 1.39 MB / 0.6974 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001952/0.6194, allocations: 1.884 MB / 0.6992 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005374/0.6199, allocations: 0.4963 MB / 0.6997 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007409/0.6207, allocations: 0.5771 MB / 0.7003 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of Backend: time 3.31e-07/0.6207, allocations: 0 / 0.7003 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007869/0.6285, allocations: 1.995 MB / 0.7022 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of SimCode: time 0.003781/0.6323, allocations: 2.396 MB / 0.7045 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of Templates: time 0.2916/0.924, allocations: 50.15 MB / 0.7535 GB, free: 177 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,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,$cse2.R_s,$cse2.T,$cse2.cp,$cse2.cv,$cse2.dpT,$cse2.h,$cse2.p,$cse2.pd,$cse2.phase,$cse2.pt,$cse2.region,$cse2.rho,$cse2.s,$cse2.vp,$cse2.vt,$cse2.x,$cse7.R_s,$cse7.T,$cse7.cp,$cse7.cv,$cse7.dpT,$cse7.h,$cse7.p,$cse7.pd,$cse7.phase,$cse7.pt,$cse7.region,$cse7.rho,$cse7.s,$cse7.vp,$cse7.vt,$cse7.x,T_start,X_start[1],ambient.T,ambient.X[1],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.T,ambient.medium.p,ambient.medium.preferredMediumStates,ambient.medium.sat.psat,ambient.medium.standardOrderComponents,ambient.medium.state.T,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.T,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,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.T,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