Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000848/0.0008479, allocations: 88.25 kB / 292.1 MB, free: 5.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1766/0.1766, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.461e-05, allocations: 8 kB / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 63.25 MB / 0.5114 GB, free: 6.793 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8863/0.9915, allocations: 423.8 MB / 0.9253 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.9918, allocations: 97.88 kB / 0.9254 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.5301/1.522, allocations: 121.8 MB / 1.044 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.173e-06/1.522, allocations: 0 / 1.044 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.072e-05/1.522, allocations: 20 kB / 1.044 GB, free: 116.4 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002484/1.525, allocations: 0.98 MB / 1.045 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/1.525, allocations: 8.031 kB / 1.045 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005055/1.525, allocations: 95 kB / 1.045 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/1.526, allocations: 0.5327 MB / 1.046 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/1.526, allocations: 96.41 kB / 1.046 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/1.527, allocations: 55.98 kB / 1.046 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/1.528, allocations: 0.8074 MB / 1.047 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/1.528, allocations: 3.984 kB / 1.047 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.641e-05/1.528, allocations: 27.98 kB / 1.047 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.278e-05/1.528, allocations: 40.92 kB / 1.047 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00093/1.529, allocations: 0.6206 MB / 1.048 GB, free: 113 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003954/1.533, allocations: 3.918 MB / 1.051 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006963/1.534, allocations: 388.9 kB / 1.052 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/1.534, allocations: 201.5 kB / 1.052 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003631/1.534, allocations: 0.5029 MB / 1.052 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/1.534, allocations: 42.83 kB / 1.052 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=40): time 3.086e-06/1.534, allocations: 0 / 1.052 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=45): time 0.002504/1.537, allocations: 1.337 MB / 1.054 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/1.537, allocations: 132.5 kB / 1.054 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005383/1.537, allocations: 0.4969 MB / 1.054 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.643e-05/1.538, allocations: 37.7 kB / 1.054 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/1.538, allocations: 355 kB / 1.055 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.785e-05/1.538, allocations: 169.6 kB / 1.055 GB, free: 105 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/1.538, allocations: 8 kB / 1.055 GB, free: 105 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001022/1.538, allocations: 374.8 kB / 1.055 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/1.538, allocations: 213.5 kB / 1.055 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/1.539, allocations: 0.5024 MB / 1.056 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/1.539, allocations: 316.6 kB / 1.056 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/1.539, allocations: 4 kB / 1.056 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001485/1.541, allocations: 0.9057 MB / 1.057 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/1.541, allocations: 12 kB / 1.057 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/1.541, allocations: 15.97 kB / 1.057 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/1.542, allocations: 257.4 kB / 1.057 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/1.542, allocations: 135.8 kB / 1.058 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007312/1.543, allocations: 0.8461 MB / 1.058 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006156/1.543, allocations: 51.94 kB / 1.058 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.416e-05/1.544, allocations: 36 kB / 1.058 GB, free: 101.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001447/1.544, allocations: 156.6 kB / 1.059 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/1.544, allocations: 67.23 kB / 1.059 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/1.545, allocations: 0.6859 MB / 1.059 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/1.545, allocations: 7.938 kB / 1.059 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/1.545, allocations: 7.891 kB / 1.059 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.545, allocations: 3.984 kB / 1.059 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/1.547, allocations: 1.375 MB / 1.061 GB, free: 98.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/1.547, allocations: 8.219 kB / 1.061 GB, free: 98.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000852/1.548, allocations: 187.8 kB / 1.061 GB, free: 98.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/1.548, allocations: 64.62 kB / 1.061 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/1.548, allocations: 8 kB / 1.061 GB, free: 98.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/1.549, allocations: 2.785 MB / 1.064 GB, free: 95.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.549, allocations: 7.891 kB / 1.064 GB, free: 95.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/1.551, allocations: 1.054 MB / 1.065 GB, free: 94.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/1.551, allocations: 196.3 kB / 1.065 GB, free: 94.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/1.551, allocations: 8 kB / 1.065 GB, free: 94.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/1.551, allocations: 35.94 kB / 1.065 GB, free: 94.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/1.551, allocations: 35.95 kB / 1.065 GB, free: 94 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/1.552, allocations: 19.98 kB / 1.065 GB, free: 93.98 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004324/1.552, allocations: 389.5 kB / 1.065 GB, free: 93.61 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.552, allocations: 4 kB / 1.065 GB, free: 93.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0009337/1.553, allocations: 219.9 kB / 1.066 GB, free: 93.39 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005998/1.554, allocations: 268 kB / 1.066 GB, free: 93.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009642/1.554, allocations: 0.5771 MB / 1.066 GB, free: 92.55 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.555, allocations: 0 / 1.066 GB, free: 92.55 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009262/1.555, allocations: 471.2 kB / 1.067 GB, free: 92.08 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/1.557, allocations: 321.4 kB / 1.067 GB, free: 91.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/1.558, allocations: 1.003 MB / 1.068 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/1.559, allocations: 0.9505 MB / 1.069 GB, free: 89.74 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006974/1.56, allocations: 197.3 kB / 1.069 GB, free: 89.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/1.56, allocations: 67.36 kB / 1.069 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/1.56, allocations: 0 / 1.069 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of Templates: time 0.02/1.58, allocations: 13.69 MB / 1.083 GB, free: 75.95 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.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.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.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