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.0009914/0.0009915, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008463/0.0008463, allocations: 103.2 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.358/0.358, allocations: 45.24 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002926, allocations: 8 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3474, allocations: 63.24 MB / 0.5192 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.368, allocations: 423.9 MB / 0.9331 GB, free: 151.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/1.368, allocations: 100.1 kB / 0.9332 GB, free: 151.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.245/1.613, allocations: 122.3 MB / 1.053 GB, free: 73.32 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.423e-06/1.614, allocations: 3.938 kB / 1.053 GB, free: 73.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.085e-05/1.614, allocations: 20 kB / 1.053 GB, free: 73.29 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002958/1.617, allocations: 1.053 MB / 1.054 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/1.617, allocations: 8.031 kB / 1.054 GB, free: 72.18 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/1.617, allocations: 95.09 kB / 1.054 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/1.618, allocations: 0.5326 MB / 1.054 GB, free: 71.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/1.619, allocations: 104.4 kB / 1.054 GB, free: 71.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/1.619, allocations: 48 kB / 1.054 GB, free: 71.36 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/1.62, allocations: 0.8191 MB / 1.055 GB, free: 70.46 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/1.62, allocations: 0 / 1.055 GB, free: 70.46 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.828e-05/1.62, allocations: 28 kB / 1.055 GB, free: 70.43 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.342e-05/1.62, allocations: 40.92 kB / 1.055 GB, free: 70.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/1.621, allocations: 0.6322 MB / 1.056 GB, free: 69.76 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004251/1.625, allocations: 3.939 MB / 1.06 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007386/1.626, allocations: 391.8 kB / 1.06 GB, free: 65.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003985/1.627, allocations: 0.5068 MB / 1.061 GB, free: 64.58 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/1.627, allocations: 38.83 kB / 1.061 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=40): time 2.254e-06/1.627, allocations: 0 / 1.061 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.003066/1.63, allocations: 1.504 MB / 1.062 GB, free: 62.98 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/1.63, allocations: 136.5 kB / 1.062 GB, free: 62.82 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/1.63, allocations: 0.4943 MB / 1.063 GB, free: 62.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.939e-05/1.63, allocations: 33.7 kB / 1.063 GB, free: 62.28 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/1.631, allocations: 358.9 kB / 1.063 GB, free: 61.92 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/1.631, allocations: 169.7 kB / 1.063 GB, free: 61.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/1.631, allocations: 12 kB / 1.063 GB, free: 61.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001019/1.631, allocations: 374.8 kB / 1.064 GB, free: 61.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/1.631, allocations: 217.9 kB / 1.064 GB, free: 61.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/1.632, allocations: 0.513 MB / 1.064 GB, free: 60.51 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/1.632, allocations: 308.9 kB / 1.065 GB, free: 60.2 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/1.632, allocations: 7.953 kB / 1.065 GB, free: 60.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001586/1.634, allocations: 0.918 MB / 1.066 GB, free: 59.27 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/1.634, allocations: 12.19 kB / 1.066 GB, free: 59.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/1.634, allocations: 12 kB / 1.066 GB, free: 59.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/1.635, allocations: 266.2 kB / 1.066 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/1.635, allocations: 127.8 kB / 1.066 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007571/1.636, allocations: 0.8528 MB / 1.067 GB, free: 57.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000645/1.637, allocations: 51.98 kB / 1.067 GB, free: 57.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.836e-05/1.637, allocations: 39.98 kB / 1.067 GB, free: 57.89 MB / 0.5417 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 () * Number of clocked 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.0003483/1.637, allocations: 241.5 kB / 1.067 GB, free: 57.64 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/1.637, allocations: 79.08 kB / 1.067 GB, free: 57.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/1.638, allocations: 0.6953 MB / 1.068 GB, free: 56.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/1.638, allocations: 15.98 kB / 1.068 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/1.638, allocations: 3.938 kB / 1.068 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/1.638, allocations: 3.953 kB / 1.068 GB, free: 56.83 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/1.641, allocations: 1.379 MB / 1.069 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.641, allocations: 4 kB / 1.069 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009214/1.642, allocations: 191.8 kB / 1.069 GB, free: 55.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002912/1.642, allocations: 68.94 kB / 1.07 GB, free: 55.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/1.642, allocations: 16 kB / 1.07 GB, free: 55.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/1.644, allocations: 2.798 MB / 1.072 GB, free: 52.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.644, allocations: 3.938 kB / 1.072 GB, free: 52.03 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/1.645, allocations: 1.058 MB / 1.073 GB, free: 50.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/1.645, allocations: 208.2 kB / 1.074 GB, free: 50.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/1.646, allocations: 16 kB / 1.074 GB, free: 50.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/1.646, allocations: 27.98 kB / 1.074 GB, free: 50.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/1.646, allocations: 31.95 kB / 1.074 GB, free: 50.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/1.646, allocations: 23.98 kB / 1.074 GB, free: 50.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000457/1.647, allocations: 394.8 kB / 1.074 GB, free: 50.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/1.647, allocations: 0 / 1.074 GB, free: 50.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001001/1.648, allocations: 216 kB / 1.074 GB, free: 49.97 MB / 0.5417 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 () * Number of clocked 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.0006471/1.648, allocations: 282.3 kB / 1.074 GB, free: 49.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001089/1.649, allocations: 0.5889 MB / 1.075 GB, free: 49.11 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.65, allocations: 8 kB / 1.075 GB, free: 49.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001008/1.651, allocations: 466.2 kB / 1.076 GB, free: 48.63 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/1.652, allocations: 332.4 kB / 1.076 GB, free: 48.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/1.654, allocations: 1.644 MB / 1.077 GB, free: 46.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/1.655, allocations: 0.9581 MB / 1.078 GB, free: 45.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007437/1.655, allocations: 201.6 kB / 1.079 GB, free: 45.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/1.656, allocations: 63.36 kB / 1.079 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of SimCode: time 6.31e-07/1.656, allocations: 0 / 1.079 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of Templates: time 0.02241/1.678, allocations: 13.6 MB / 1.092 GB, free: 31.93 MB / 0.5417 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