Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009119/0.0009116, allocations: 91.84 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2212/0.2212, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.513e-05/1.516e-05, allocations: 3.984 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1178, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.404/6.522, allocations: 2.801 GB / 3.305 GB, free: 45.57 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/6.522, allocations: 94.56 kB / 3.305 GB, free: 45.52 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.133/8.656, allocations: 0.4935 GB / 3.799 GB, free: 66.81 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.684e-06/8.656, allocations: 0 / 3.799 GB, free: 66.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.21e-05/8.656, allocations: 24.36 kB / 3.799 GB, free: 66.81 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.007099/8.663, allocations: 1.721 MB / 3.801 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/8.663, allocations: 9.531 kB / 3.801 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002347/8.665, allocations: 326.9 kB / 3.801 GB, free: 66.12 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/8.667, allocations: 0.5991 MB / 3.801 GB, free: 65.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-05/8.667, allocations: 88.2 kB / 3.801 GB, free: 65.82 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.623e-05/8.667, allocations: 33.03 kB / 3.802 GB, free: 65.82 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009773/8.668, allocations: 0.6551 MB / 3.802 GB, free: 65.82 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/8.669, allocations: 0.8842 MB / 3.803 GB, free: 65.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/8.669, allocations: 6.969 kB / 3.803 GB, free: 65.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/8.669, allocations: 7.453 kB / 3.803 GB, free: 65.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.218e-05/8.669, allocations: 44.34 kB / 3.803 GB, free: 65.52 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.1512/8.82, allocations: 91.93 MB / 3.893 GB, free: 37.43 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006596/8.821, allocations: 363.4 kB / 3.893 GB, free: 37.4 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/8.821, allocations: 157.6 kB / 3.893 GB, free: 37.39 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07941/8.901, allocations: 42.89 MB / 3.935 GB, free: 25.01 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/8.901, allocations: 43.77 kB / 3.935 GB, free: 24.97 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=33): time 2.915e-06/8.901, allocations: 0 / 3.935 GB, free: 24.97 MB / 0.5886 GB Notification: Performance of matching and sorting (n=37): time 0.00413/8.905, allocations: 1.363 MB / 3.937 GB, free: 24.57 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/8.905, allocations: 140.7 kB / 3.937 GB, free: 24.42 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006807/8.906, allocations: 488.9 kB / 3.937 GB, free: 24.29 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.096e-05/8.906, allocations: 25.7 kB / 3.937 GB, free: 24.26 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/8.906, allocations: 430.9 kB / 3.938 GB, free: 24.01 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/8.906, allocations: 134.9 kB / 3.938 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/8.906, allocations: 0 / 3.938 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001673/8.906, allocations: 376.1 kB / 3.938 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/8.907, allocations: 196.8 kB / 3.938 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004408/8.907, allocations: 0.5287 MB / 3.939 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006381/8.908, allocations: 313 kB / 3.939 GB, free: 23.15 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/8.908, allocations: 7.531 kB / 3.939 GB, free: 23.15 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001484/8.909, allocations: 0.7521 MB / 3.94 GB, free: 23.06 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/8.909, allocations: 12.16 kB / 3.94 GB, free: 23.06 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/8.909, allocations: 18.39 kB / 3.94 GB, free: 23.06 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/8.91, allocations: 60.11 kB / 3.94 GB, free: 23.05 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/8.911, allocations: 284.4 kB / 3.94 GB, free: 23.05 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/8.913, allocations: 1.933 MB / 3.942 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007861/8.913, allocations: 50.34 kB / 3.942 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.84e-05/8.913, allocations: 48.05 kB / 3.942 GB, free: 21.25 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.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 () * 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.0002249/8.914, allocations: 143.2 kB / 3.942 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/8.914, allocations: 64.56 kB / 3.942 GB, free: 21.11 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/8.915, allocations: 1.586 MB / 3.944 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/8.915, allocations: 26.23 kB / 3.944 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/8.916, allocations: 0 / 3.944 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/8.916, allocations: 3.328 kB / 3.944 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/8.918, allocations: 2.443 MB / 3.946 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/8.918, allocations: 0 / 3.946 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/8.919, allocations: 174.2 kB / 3.947 GB, free: 20.49 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002215/8.919, allocations: 81.77 kB / 3.947 GB, free: 20.48 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/8.919, allocations: 3.438 kB / 3.947 GB, free: 20.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/8.921, allocations: 1.975 MB / 3.949 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/8.921, allocations: 7.75 kB / 3.949 GB, free: 18.69 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/8.922, allocations: 1.52 MB / 3.95 GB, free: 18.46 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/8.923, allocations: 216.2 kB / 3.95 GB, free: 18.31 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/8.923, allocations: 0 / 3.95 GB, free: 18.31 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005361/8.923, allocations: 45.27 kB / 3.95 GB, free: 18.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.711e-05/8.923, allocations: 29.23 kB / 3.95 GB, free: 18.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/8.923, allocations: 23.2 kB / 3.95 GB, free: 18.3 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001064/8.924, allocations: 349 kB / 3.951 GB, free: 34.21 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/8.924, allocations: 4 kB / 3.951 GB, free: 34.21 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005212/8.93, allocations: 1.095 MB / 3.952 GB, free: 34.06 MB / 0.6042 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.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.008866/8.939, allocations: 1.646 MB / 3.953 GB, free: 33.72 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001951/8.94, allocations: 0.7875 MB / 3.954 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/8.941, allocations: 2.906 kB / 3.954 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001043/8.942, allocations: 0.5324 MB / 3.955 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/8.943, allocations: 268.2 kB / 3.955 GB, free: 33.69 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/8.946, allocations: 1.421 MB / 3.956 GB, free: 33.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/8.947, allocations: 1.075 MB / 3.957 GB, free: 32.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0009704/8.948, allocations: 0.4941 MB / 3.958 GB, free: 32.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/8.948, allocations: 64.31 kB / 3.958 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of SimCode: time 7.51e-07/8.948, allocations: 0 / 3.958 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of Templates: time 0.04655/8.994, allocations: 33.04 MB / 3.99 GB, free: 17.92 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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