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.001021/0.001021, allocations: 201.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.29/1.29, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009751/0.0009754, allocations: 97.33 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.2095/0.2095, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.14e-05/1.143e-05, allocations: 0 / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1158, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.019/1.135, allocations: 423.1 MB / 0.9176 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/1.136, allocations: 93.5 kB / 0.9177 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.5094/1.645, allocations: 120.9 MB / 1.036 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.355e-06/1.645, allocations: 0 / 1.036 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001111/1.645, allocations: 19.94 kB / 1.036 GB, free: 131.1 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.003242/1.648, allocations: 0.9796 MB / 1.037 GB, free: 130 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/1.648, allocations: 16.02 kB / 1.037 GB, free: 130 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006558/1.649, allocations: 95 kB / 1.037 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/1.651, allocations: 0.5384 MB / 1.037 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/1.651, allocations: 80.72 kB / 1.037 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/1.651, allocations: 28 kB / 1.037 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009816/1.652, allocations: 0.5491 MB / 1.038 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/1.653, allocations: 0.7399 MB / 1.039 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/1.653, allocations: 4 kB / 1.039 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/1.653, allocations: 4 kB / 1.039 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-05/1.653, allocations: 41.23 kB / 1.039 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/1.658, allocations: 3.969 MB / 1.043 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005193/1.658, allocations: 323.1 kB / 1.043 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/1.658, allocations: 161.4 kB / 1.043 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002814/1.659, allocations: 352.5 kB / 1.043 GB, free: 122.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/1.659, allocations: 38.84 kB / 1.043 GB, free: 122.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.534e-06/1.659, allocations: 0 / 1.043 GB, free: 122.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=39): time 0.00304/1.662, allocations: 1.276 MB / 1.045 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/1.662, allocations: 132.5 kB / 1.045 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/1.662, allocations: 454 kB / 1.045 GB, free: 120.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.702e-05/1.662, allocations: 25.7 kB / 1.045 GB, free: 120.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/1.663, allocations: 382.9 kB / 1.046 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/1.663, allocations: 134 kB / 1.046 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/1.663, allocations: 4 kB / 1.046 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001112/1.663, allocations: 378.7 kB / 1.046 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/1.663, allocations: 193.5 kB / 1.046 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/1.664, allocations: 490.3 kB / 1.047 GB, free: 119 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/1.664, allocations: 328.5 kB / 1.047 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/1.664, allocations: 4 kB / 1.047 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001708/1.666, allocations: 0.879 MB / 1.048 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/1.666, allocations: 16.16 kB / 1.048 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.666, allocations: 15.95 kB / 1.048 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00075/1.667, allocations: 232.6 kB / 1.048 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/1.667, allocations: 123.8 kB / 1.048 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007364/1.668, allocations: 0.8625 MB / 1.049 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005787/1.669, allocations: 39.89 kB / 1.049 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/1.669, allocations: 35.98 kB / 1.049 GB, free: 116.5 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.0001401/1.669, allocations: 140.7 kB / 1.049 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.882e-05/1.669, allocations: 59.25 kB / 1.049 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/1.67, allocations: 0.5873 MB / 1.05 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/1.67, allocations: 4 kB / 1.05 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.67, allocations: 0 / 1.05 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/1.67, allocations: 11.92 kB / 1.05 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/1.672, allocations: 1.487 MB / 1.052 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.381e-06/1.672, allocations: 4 kB / 1.052 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/1.673, allocations: 183.8 kB / 1.052 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/1.673, allocations: 56.89 kB / 1.052 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/1.673, allocations: 15.98 kB / 1.052 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/1.675, allocations: 2.679 MB / 1.054 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.675, allocations: 7.969 kB / 1.054 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/1.676, allocations: 0.9531 MB / 1.055 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000238/1.676, allocations: 192.3 kB / 1.055 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-05/1.676, allocations: 8.062 kB / 1.056 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/1.677, allocations: 23.83 kB / 1.056 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/1.677, allocations: 35.91 kB / 1.056 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/1.677, allocations: 19.98 kB / 1.056 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003012/1.677, allocations: 326.9 kB / 1.056 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/1.677, allocations: 0 / 1.056 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008516/1.678, allocations: 200 kB / 1.056 GB, free: 109 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (43): * Single equations (assignments): 39 * 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.0005198/1.678, allocations: 257.5 kB / 1.056 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00082/1.679, allocations: 0.5278 MB / 1.057 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.679, allocations: 0 / 1.057 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008456/1.68, allocations: 430.2 kB / 1.057 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/1.681, allocations: 261.2 kB / 1.057 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/1.683, allocations: 0.9617 MB / 1.058 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/1.683, allocations: 0.9458 MB / 1.059 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006111/1.684, allocations: 188.6 kB / 1.06 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/1.684, allocations: 59.42 kB / 1.06 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/1.684, allocations: 0 / 1.06 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.01803/1.702, allocations: 11.83 MB / 1.071 GB, free: 93.71 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.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