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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007701/0.00077, allocations: 95.8 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2029/0.2029, allocations: 45.15 MB / 383.8 MB, free: 208 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.931e-05, allocations: 4 kB / 453.2 MB, free: 75.79 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1389, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.614/6.753, allocations: 2.801 GB / 3.305 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/6.753, allocations: 93.44 kB / 3.305 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.842/8.595, allocations: 0.4934 GB / 3.799 GB, free: 66.68 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.183e-06/8.596, allocations: 0.9688 kB / 3.799 GB, free: 66.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.417e-05/8.596, allocations: 25.88 kB / 3.799 GB, free: 66.68 MB / 0.5417 GB 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.005667/8.601, allocations: 1.755 MB / 3.8 GB, free: 66.04 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/8.601, allocations: 9.25 kB / 3.8 GB, free: 66.04 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/8.603, allocations: 321.7 kB / 3.801 GB, free: 66 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009065/8.604, allocations: 0.6045 MB / 3.801 GB, free: 65.77 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.392e-05/8.604, allocations: 96.05 kB / 3.801 GB, free: 65.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-05/8.605, allocations: 34.34 kB / 3.801 GB, free: 65.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008944/8.605, allocations: 0.6973 MB / 3.802 GB, free: 65.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/8.606, allocations: 0.8924 MB / 3.803 GB, free: 65.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/8.606, allocations: 11.42 kB / 3.803 GB, free: 65.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/8.607, allocations: 7.328 kB / 3.803 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.273e-05/8.607, allocations: 42.58 kB / 3.803 GB, free: 65.39 MB / 0.5417 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.08511/8.692, allocations: 58.03 MB / 3.86 GB, free: 27.67 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006281/8.692, allocations: 382.2 kB / 3.86 GB, free: 27.64 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/8.693, allocations: 185.9 kB / 3.86 GB, free: 27.64 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/8.708, allocations: 8.874 MB / 3.869 GB, free: 37.64 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/8.708, allocations: 45.05 kB / 3.869 GB, free: 37.6 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/8.708, allocations: 0 / 3.869 GB, free: 37.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=41): time 0.003781/8.712, allocations: 1.453 MB / 3.87 GB, free: 37.21 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/8.712, allocations: 135.5 kB / 3.871 GB, free: 37.05 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005081/8.712, allocations: 476.2 kB / 3.871 GB, free: 36.94 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/8.712, allocations: 33.05 kB / 3.871 GB, free: 36.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/8.712, allocations: 420.7 kB / 3.871 GB, free: 36.66 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.729e-05/8.713, allocations: 143.8 kB / 3.872 GB, free: 36.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/8.713, allocations: 0 / 3.872 GB, free: 36.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001388/8.713, allocations: 370.9 kB / 3.872 GB, free: 36.25 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/8.713, allocations: 216 kB / 3.872 GB, free: 36.25 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/8.713, allocations: 0.5368 MB / 3.873 GB, free: 35.84 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005449/8.714, allocations: 321.2 kB / 3.873 GB, free: 35.82 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/8.714, allocations: 3.906 kB / 3.873 GB, free: 35.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001203/8.715, allocations: 0.7781 MB / 3.874 GB, free: 35.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/8.715, allocations: 18.27 kB / 3.874 GB, free: 35.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/8.715, allocations: 13.23 kB / 3.874 GB, free: 35.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001824/8.715, allocations: 59.48 kB / 3.874 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/8.717, allocations: 308.4 kB / 3.874 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/8.718, allocations: 1.938 MB / 3.876 GB, free: 33.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007938/8.719, allocations: 86.48 kB / 3.876 GB, free: 33.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.775e-05/8.719, allocations: 42.81 kB / 3.876 GB, free: 33.93 MB / 0.5573 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 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001916/8.719, allocations: 142.1 kB / 3.876 GB, free: 33.81 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.964e-05/8.719, allocations: 71.94 kB / 3.876 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/8.721, allocations: 1.86 MB / 3.878 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/8.721, allocations: 27.36 kB / 3.878 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/8.721, allocations: 0 / 3.878 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/8.721, allocations: 5.219 kB / 3.878 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/8.724, allocations: 2.854 MB / 3.881 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/8.724, allocations: 3.969 kB / 3.881 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009275/8.725, allocations: 216 kB / 3.881 GB, free: 33.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002168/8.725, allocations: 75.97 kB / 3.881 GB, free: 33.09 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/8.725, allocations: 7.844 kB / 3.881 GB, free: 33.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/8.726, allocations: 1.979 MB / 3.883 GB, free: 31.31 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/8.726, allocations: 3.562 kB / 3.883 GB, free: 31.31 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/8.728, allocations: 1.799 MB / 3.885 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/8.728, allocations: 231.8 kB / 3.885 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.308e-05/8.728, allocations: 7.562 kB / 3.885 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/8.729, allocations: 48.67 kB / 3.885 GB, free: 30.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/8.729, allocations: 48.38 kB / 3.885 GB, free: 30.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/8.729, allocations: 15.44 kB / 3.885 GB, free: 30.84 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003778/8.729, allocations: 345.4 kB / 3.886 GB, free: 30.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/8.729, allocations: 2.812 kB / 3.886 GB, free: 30.75 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005232/8.735, allocations: 1.098 MB / 3.887 GB, free: 30.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007533/8.742, allocations: 1.642 MB / 3.888 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002036/8.744, allocations: 0.8676 MB / 3.889 GB, free: 30.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/8.744, allocations: 0 / 3.889 GB, free: 30.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001052/8.745, allocations: 0.6421 MB / 3.89 GB, free: 30.23 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/8.747, allocations: 285.5 kB / 3.89 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/8.749, allocations: 1.56 MB / 3.892 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/8.75, allocations: 1.108 MB / 3.893 GB, free: 29.07 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008601/8.751, allocations: 0.5188 MB / 3.893 GB, free: 29.05 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/8.751, allocations: 62.91 kB / 3.893 GB, free: 29.04 MB / 0.5573 GB Notification: Performance of SimCode: time 3.6e-07/8.751, allocations: 0 / 3.893 GB, free: 29.04 MB / 0.5573 GB Notification: Performance of Templates: time 0.042/8.793, allocations: 33.49 MB / 3.926 GB, free: 26.95 MB / 0.5573 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../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: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.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.X[1],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.nPorts,h_start,p_start,shortPipe.V,shortPipe.allowFlowReversal,shortPipe.crossArea,shortPipe.diameter,shortPipe.flowModel.Re_turbulent,shortPipe.flowModel.allowFlowReversal,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.n,shortPipe.flowModel.nParallel,shortPipe.flowModel.p_a_start,shortPipe.flowModel.p_b_start,shortPipe.flowModel.rho_nominal,shortPipe.flowModel.show_Res,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_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.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.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea