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/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_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/Complex trunk/package.mo): time 0.002126/0.002126, allocations: 202.1 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.386/1.386, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009626/0.0009626, allocations: 94.25 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.671e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.504/6.62, allocations: 2.799 GB / 3.304 GB, free: 47 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/6.62, allocations: 101.5 kB / 3.304 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.056/8.676, allocations: 0.4911 GB / 3.795 GB, free: 67 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.575e-06/8.676, allocations: 0 / 3.795 GB, free: 67 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.097e-05/8.676, allocations: 21.05 kB / 3.795 GB, free: 67 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.007449/8.684, allocations: 1.698 MB / 3.796 GB, free: 66.37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/8.684, allocations: 10.06 kB / 3.796 GB, free: 66.37 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/8.686, allocations: 232.6 kB / 3.797 GB, free: 66.33 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/8.687, allocations: 0.5829 MB / 3.797 GB, free: 66.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/8.687, allocations: 92.55 kB / 3.797 GB, free: 66.03 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002339/8.687, allocations: 38.33 kB / 3.797 GB, free: 66.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001555/8.689, allocations: 0.6282 MB / 3.798 GB, free: 66.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/8.69, allocations: 0.8779 MB / 3.799 GB, free: 65.71 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/8.69, allocations: 5.844 kB / 3.799 GB, free: 65.71 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/8.69, allocations: 6.375 kB / 3.799 GB, free: 65.71 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.985e-05/8.69, allocations: 46.12 kB / 3.799 GB, free: 65.7 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.1206/8.811, allocations: 74.35 MB / 3.872 GB, free: 33.02 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006953/8.812, allocations: 348 kB / 3.872 GB, free: 33 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/8.812, allocations: 147.4 kB / 3.872 GB, free: 32.99 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09369/8.906, allocations: 52.48 MB / 3.923 GB, free: 29.58 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/8.906, allocations: 41.56 kB / 3.923 GB, free: 29.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=31): time 4.158e-06/8.906, allocations: 0 / 3.923 GB, free: 29.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=36): time 0.00575/8.912, allocations: 1.609 MB / 3.925 GB, free: 29.14 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/8.912, allocations: 139.5 kB / 3.925 GB, free: 28.98 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007719/8.912, allocations: 0.4886 MB / 3.925 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/8.913, allocations: 25.7 kB / 3.925 GB, free: 28.83 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/8.913, allocations: 433.8 kB / 3.926 GB, free: 28.58 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/8.913, allocations: 130.4 kB / 3.926 GB, free: 28.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/8.913, allocations: 0 / 3.926 GB, free: 28.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001534/8.913, allocations: 368 kB / 3.926 GB, free: 28.19 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/8.913, allocations: 202.8 kB / 3.927 GB, free: 28.19 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004359/8.914, allocations: 0.5632 MB / 3.927 GB, free: 27.73 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/8.915, allocations: 423 kB / 3.928 GB, free: 27.71 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/8.915, allocations: 3.969 kB / 3.928 GB, free: 27.71 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00196/8.917, allocations: 0.8758 MB / 3.928 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/8.917, allocations: 14.53 kB / 3.928 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/8.917, allocations: 11.03 kB / 3.928 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002419/8.917, allocations: 77.3 kB / 3.928 GB, free: 27.61 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/8.918, allocations: 284.6 kB / 3.929 GB, free: 27.61 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/8.921, allocations: 2.065 MB / 3.931 GB, free: 25.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007833/8.921, allocations: 43.48 kB / 3.931 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.636e-05/8.921, allocations: 42 kB / 3.931 GB, free: 25.82 MB / 0.5886 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],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete 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 (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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002215/8.922, allocations: 153.7 kB / 3.931 GB, free: 25.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/8.922, allocations: 65.23 kB / 3.931 GB, free: 25.67 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/8.924, allocations: 1.502 MB / 3.933 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/8.924, allocations: 18.22 kB / 3.933 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/8.924, allocations: 1.031 kB / 3.933 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/8.924, allocations: 3.797 kB / 3.933 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/8.927, allocations: 2.35 MB / 3.935 GB, free: 25.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/8.927, allocations: 3.938 kB / 3.935 GB, free: 25.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007817/8.927, allocations: 177.9 kB / 3.935 GB, free: 25.08 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002715/8.928, allocations: 109.5 kB / 3.935 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/8.928, allocations: 8.484 kB / 3.935 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/8.93, allocations: 2.083 MB / 3.937 GB, free: 23.28 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/8.93, allocations: 3.953 kB / 3.937 GB, free: 23.27 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/8.931, allocations: 1.509 MB / 3.939 GB, free: 23.05 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003783/8.932, allocations: 209.9 kB / 3.939 GB, free: 22.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/8.932, allocations: 3.656 kB / 3.939 GB, free: 22.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/8.932, allocations: 31.86 kB / 3.939 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/8.933, allocations: 24.41 kB / 3.939 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/8.933, allocations: 21.34 kB / 3.939 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004175/8.933, allocations: 348.3 kB / 3.939 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.6e-07/8.933, allocations: 0 / 3.939 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006003/8.939, allocations: 1.101 MB / 3.94 GB, free: 22.65 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009124/8.948, allocations: 1.655 MB / 3.942 GB, free: 22.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002012/8.95, allocations: 0.8016 MB / 3.943 GB, free: 22.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/8.95, allocations: 320 / 3.943 GB, free: 22.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001048/8.951, allocations: 0.5367 MB / 3.943 GB, free: 22.29 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/8.953, allocations: 258.8 kB / 3.944 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/8.956, allocations: 1.384 MB / 3.945 GB, free: 21.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000755/8.957, allocations: 1.063 MB / 3.946 GB, free: 21.18 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009507/8.958, allocations: 420.5 kB / 3.946 GB, free: 21.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/8.958, allocations: 61.11 kB / 3.946 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of SimCode: time 9.62e-07/8.958, allocations: 0 / 3.946 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of Templates: time 0.04587/9.004, allocations: 32.7 MB / 3.978 GB, free: 10.55 MB / 0.5886 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../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: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.T,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