Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009913/0.0009912, allocations: 200.7 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009038/0.0009038, allocations: 98.27 kB / 286.7 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 45.15 MB / 383.8 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.784e-05/1.778e-05, allocations: 7.125 kB / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1243, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.232/7.357, allocations: 3.127 GB / 3.631 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/7.357, allocations: 92.16 kB / 3.631 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.3/10.66, allocations: 1.132 GB / 4.763 GB, free: 92.05 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.894e-06/10.66, allocations: 6.75 kB / 4.763 GB, free: 92.05 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.676e-05/10.66, allocations: 15.42 kB / 4.763 GB, free: 92.05 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.005831/10.66, allocations: 1.576 MB / 4.764 GB, free: 91.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/10.66, allocations: 12.86 kB / 4.764 GB, free: 91.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003484/10.66, allocations: 91.23 kB / 4.765 GB, free: 91.36 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008993/10.66, allocations: 0.5378 MB / 4.765 GB, free: 91.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-05/10.66, allocations: 89.58 kB / 4.765 GB, free: 91.04 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.16e-05/10.66, allocations: 25.75 kB / 4.765 GB, free: 91.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008072/10.66, allocations: 0.5454 MB / 4.766 GB, free: 91.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009635/10.67, allocations: 0.7377 MB / 4.766 GB, free: 90.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/10.67, allocations: 10.17 kB / 4.766 GB, free: 90.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/10.67, allocations: 3.953 kB / 4.766 GB, free: 90.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/10.67, allocations: 40.06 kB / 4.766 GB, free: 90.79 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/10.67, allocations: 3.973 MB / 4.77 GB, free: 88.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005085/10.67, allocations: 323.4 kB / 4.771 GB, free: 88.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/10.67, allocations: 163.5 kB / 4.771 GB, free: 88.18 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002854/10.67, allocations: 351.8 kB / 4.771 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/10.67, allocations: 37.44 kB / 4.771 GB, free: 87.76 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=34): time 1.483e-06/10.67, allocations: 3.969 kB / 4.771 GB, free: 87.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=39): time 0.002996/10.67, allocations: 1.273 MB / 4.772 GB, free: 87.37 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/10.67, allocations: 138.3 kB / 4.773 GB, free: 87.21 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/10.67, allocations: 448.4 kB / 4.773 GB, free: 87.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/10.67, allocations: 26.73 kB / 4.773 GB, free: 87.06 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/10.67, allocations: 387.9 kB / 4.773 GB, free: 86.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/10.67, allocations: 135.5 kB / 4.774 GB, free: 86.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/10.67, allocations: 0 / 4.774 GB, free: 86.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001094/10.67, allocations: 368.8 kB / 4.774 GB, free: 86.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/10.68, allocations: 198.9 kB / 4.774 GB, free: 86.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/10.68, allocations: 496.2 kB / 4.775 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/10.68, allocations: 323.7 kB / 4.775 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/10.68, allocations: 2.781 kB / 4.775 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00208/10.68, allocations: 0.8869 MB / 4.776 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/10.68, allocations: 8.781 kB / 4.776 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/10.68, allocations: 9.281 kB / 4.776 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000848/10.68, allocations: 227.6 kB / 4.776 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/10.68, allocations: 127.2 kB / 4.776 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/10.68, allocations: 0.875 MB / 4.777 GB, free: 85.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/10.68, allocations: 32.84 kB / 4.777 GB, free: 85.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/10.68, allocations: 37.23 kB / 4.777 GB, free: 85.45 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 () * 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.0002183/10.68, allocations: 133.8 kB / 4.777 GB, free: 85.33 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/10.68, allocations: 61.84 kB / 4.777 GB, free: 85.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/10.68, allocations: 0.5784 MB / 4.778 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/10.68, allocations: 5.062 kB / 4.778 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/10.68, allocations: 8.672 kB / 4.778 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/10.68, allocations: 2.531 kB / 4.778 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/10.69, allocations: 1.491 MB / 4.779 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/10.69, allocations: 2.625 kB / 4.779 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/10.69, allocations: 188.4 kB / 4.779 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/10.69, allocations: 54.88 kB / 4.779 GB, free: 84.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/10.69, allocations: 12.12 kB / 4.779 GB, free: 84.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/10.69, allocations: 2.685 MB / 4.782 GB, free: 82.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/10.69, allocations: 4.109 kB / 4.782 GB, free: 82.15 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/10.69, allocations: 0.9621 MB / 4.783 GB, free: 81.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/10.69, allocations: 195.3 kB / 4.783 GB, free: 81.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/10.69, allocations: 4.25 kB / 4.783 GB, free: 81.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/10.69, allocations: 16.73 kB / 4.783 GB, free: 81.69 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.583e-05/10.69, allocations: 37.31 kB / 4.783 GB, free: 81.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-05/10.69, allocations: 19.27 kB / 4.783 GB, free: 81.68 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004764/10.69, allocations: 327.9 kB / 4.784 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.3e-07/10.69, allocations: 0 / 4.784 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001184/10.69, allocations: 222.1 kB / 4.784 GB, free: 81.58 MB / 0.5417 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.0007734/10.7, allocations: 423.5 kB / 4.784 GB, free: 81.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001046/10.7, allocations: 0.5221 MB / 4.785 GB, free: 81.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/10.7, allocations: 0.9375 kB / 4.785 GB, free: 81.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009695/10.7, allocations: 425.4 kB / 4.785 GB, free: 81.37 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/10.7, allocations: 267.9 kB / 4.785 GB, free: 81.37 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/10.7, allocations: 0.9648 MB / 4.786 GB, free: 81.08 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/10.7, allocations: 0.9478 MB / 4.787 GB, free: 80.38 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0006445/10.7, allocations: 196.2 kB / 4.787 GB, free: 80.37 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/10.7, allocations: 56.98 kB / 4.787 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of SimCode: time 2.71e-07/10.7, allocations: 0 / 4.787 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of Templates: time 0.02122/10.72, allocations: 12.68 MB / 4.8 GB, free: 80.08 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_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