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.001875/0.001875, allocations: 112.1 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002453/0.002453, allocations: 206.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.727/2.727, 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.4451/0.4451, allocations: 46.11 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00312/0.00312, allocations: 79.81 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5871/0.5902, allocations: 62.44 MB / 0.5317 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.08933/0.6796, allocations: 39.19 MB / 0.57 GB, free: 10.58 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.04806/0.7277, allocations: 20.17 MB / 0.5897 GB, free: 6.352 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.7293, allocations: 19.88 kB / 0.5897 GB, free: 6.332 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.7317, allocations: 445.3 kB / 0.5901 GB, free: 5.895 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02846/0.7602, allocations: 5.139 MB / 0.5951 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01458/0.7748, allocations: 2.585 MB / 0.5976 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.009363/0.7842, allocations: 1.958 MB / 0.5996 GB, free: 12.2 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001547/0.7858, allocations: 485.5 kB / 0.6 GB, free: 11.71 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02509/0.8109, allocations: 4.164 MB / 0.6041 GB, free: 7.492 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02333/0.8344, allocations: 5.424 MB / 0.6094 GB, free: 1.984 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000525/0.835, allocations: 71.94 kB / 0.6094 GB, free: 1.914 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03048/0.8655, allocations: 7.239 MB / 0.6165 GB, free: 10.67 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000991/0.8665, allocations: 279.2 kB / 0.6168 GB, free: 10.39 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.8682, allocations: 446 kB / 0.6172 GB, free: 9.957 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02183/0.8901, allocations: 4.988 MB / 0.6221 GB, free: 4.957 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.8901, allocations: 0 / 0.6221 GB, free: 4.957 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.8902, allocations: 0 / 0.6221 GB, free: 4.957 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.832e-05/0.8902, allocations: 0 / 0.6221 GB, free: 4.957 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.008696/0.8989, allocations: 1.672 MB / 0.6237 GB, free: 3.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.899, allocations: 8.031 kB / 0.6237 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003391/0.9024, allocations: 224.3 kB / 0.6239 GB, free: 3.004 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.9045, allocations: 0.5758 MB / 0.6245 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.9047, allocations: 113.2 kB / 0.6246 GB, free: 2.262 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002431/0.905, allocations: 64.12 kB / 0.6247 GB, free: 2.199 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004165/0.9092, allocations: 1.079 MB / 0.6257 GB, free: 1.012 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.753e-05/0.9092, allocations: 3.938 kB / 0.6257 GB, free: 1.008 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.9094, allocations: 28 kB / 0.6257 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001194/0.9096, allocations: 40.98 kB / 0.6258 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00354/0.9131, allocations: 0.8193 MB / 0.6266 GB, free: 124 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.01169/0.9248, allocations: 5.552 MB / 0.632 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/0.9274, allocations: 0.5388 MB / 0.6325 GB, free: 9.641 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006934/0.9282, allocations: 214.4 kB / 0.6327 GB, free: 9.422 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2217/1.15, allocations: 52.8 MB / 0.6843 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.208e-05/1.15, allocations: 38.56 kB / 0.6843 GB, free: 13.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 6.492e-06/1.15, allocations: 4 kB / 0.6843 GB, free: 13.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.01308/1.163, allocations: 2.162 MB / 0.6865 GB, free: 11.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/1.163, allocations: 191.8 kB / 0.6866 GB, free: 11.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/1.165, allocations: 0.6368 MB / 0.6873 GB, free: 10.82 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.165, allocations: 37.7 kB / 0.6873 GB, free: 10.78 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005347/1.166, allocations: 416.2 kB / 0.6877 GB, free: 10.37 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/1.166, allocations: 166.6 kB / 0.6878 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004495/1.167, allocations: 166.6 kB / 0.688 GB, free: 10.04 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002815/1.167, allocations: 378.8 kB / 0.6884 GB, free: 9.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008818/1.168, allocations: 233.9 kB / 0.6886 GB, free: 9.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/1.169, allocations: 0.5822 MB / 0.6892 GB, free: 8.676 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006083/1.175, allocations: 0.8677 MB / 0.69 GB, free: 7.645 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.928e-05/1.175, allocations: 4 kB / 0.69 GB, free: 7.641 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003426/1.179, allocations: 0.9044 MB / 0.6909 GB, free: 6.727 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/1.179, allocations: 12 kB / 0.6909 GB, free: 6.715 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.902e-05/1.179, allocations: 12 kB / 0.6909 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01004/1.189, allocations: 268.5 kB / 0.6912 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002563/1.191, allocations: 279.6 kB / 0.6914 GB, free: 6.164 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003136/1.195, allocations: 2.121 MB / 0.6935 GB, free: 3.879 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005382/1.2, allocations: 32 kB / 0.6935 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/1.2, allocations: 43.98 kB / 0.6936 GB, free: 3.805 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.0009792/1.201, allocations: 273.6 kB / 0.6938 GB, free: 3.527 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004561/1.202, allocations: 75.53 kB / 0.6939 GB, free: 3.453 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004668/1.207, allocations: 2.011 MB / 0.6959 GB, free: 1.418 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/1.207, allocations: 7.875 kB / 0.6959 GB, free: 1.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/1.207, allocations: 4.062 kB / 0.6959 GB, free: 1.406 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006823/1.207, allocations: 228.1 kB / 0.6961 GB, free: 1.164 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/1.208, allocations: 39.77 kB / 0.6961 GB, free: 1.125 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009223/1.209, allocations: 16 kB / 0.6962 GB, free: 1.109 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/1.209, allocations: 32.39 kB / 0.6962 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008491/1.217, allocations: 1.382 MB / 0.6975 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004459/1.222, allocations: 1.892 MB / 0.6994 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001052/1.223, allocations: 0.4963 MB / 0.6999 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001625/1.224, allocations: 0.5732 MB / 0.7004 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of Backend: time 1.132e-06/1.225, allocations: 0 / 0.7004 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01934/1.244, allocations: 2.017 MB / 0.7024 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of SimCode: time 0.007474/1.251, allocations: 2.4 MB / 0.7047 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of Templates: time 0.5906/1.842, allocations: 49.81 MB / 0.7534 GB, free: 177.2 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