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.001114/0.001114, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009014/0.0009011, allocations: 106.2 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3215/0.3215, allocations: 45.23 MB / 394.7 MB, free: 31.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002676, allocations: 8 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3586, allocations: 63.24 MB / 0.5192 GB, free: 43.96 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.922/6.281, allocations: 3.128 GB / 3.647 GB, free: 75.98 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/6.281, allocations: 100.6 kB / 3.647 GB, free: 75.89 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.223/9.504, allocations: 1.145 GB / 4.792 GB, free: 75.81 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.663e-06/9.504, allocations: 0 / 4.792 GB, free: 75.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.566e-05/9.504, allocations: 19.03 kB / 4.792 GB, free: 75.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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.006632/9.51, allocations: 1.659 MB / 4.793 GB, free: 75.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/9.511, allocations: 10.19 kB / 4.793 GB, free: 75.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005325/9.511, allocations: 87.19 kB / 4.793 GB, free: 75.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/9.512, allocations: 0.5402 MB / 4.794 GB, free: 74.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.722e-05/9.512, allocations: 99.88 kB / 4.794 GB, free: 74.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/9.513, allocations: 50.19 kB / 4.794 GB, free: 74.73 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/9.514, allocations: 0.819 MB / 4.795 GB, free: 74.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/9.514, allocations: 9.531 kB / 4.795 GB, free: 74.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.512e-05/9.514, allocations: 25.83 kB / 4.795 GB, free: 74.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.997e-05/9.514, allocations: 39.83 kB / 4.795 GB, free: 74.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009994/9.515, allocations: 0.6372 MB / 4.796 GB, free: 74.49 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/9.519, allocations: 3.923 MB / 4.799 GB, free: 72.07 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000794/9.52, allocations: 395.2 kB / 4.8 GB, free: 72.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003675/9.52, allocations: 0.498 MB / 4.8 GB, free: 71.48 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/9.52, allocations: 40.38 kB / 4.8 GB, free: 71.44 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/9.52, allocations: 0 / 4.8 GB, free: 71.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.003186/9.524, allocations: 1.5 MB / 4.802 GB, free: 71.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/9.524, allocations: 135.8 kB / 4.802 GB, free: 70.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005733/9.524, allocations: 0.5052 MB / 4.802 GB, free: 70.76 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/9.524, allocations: 35.98 kB / 4.802 GB, free: 70.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/9.525, allocations: 351 kB / 4.803 GB, free: 70.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/9.525, allocations: 164 kB / 4.803 GB, free: 70.44 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/9.525, allocations: 12.78 kB / 4.803 GB, free: 70.44 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.494e-05/9.525, allocations: 381 kB / 4.803 GB, free: 70.12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/9.525, allocations: 216.8 kB / 4.803 GB, free: 70.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/9.526, allocations: 0.5131 MB / 4.804 GB, free: 69.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/9.526, allocations: 308.8 kB / 4.804 GB, free: 69.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/9.526, allocations: 2.844 kB / 4.804 GB, free: 69.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001587/9.528, allocations: 0.9291 MB / 4.805 GB, free: 69.67 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/9.528, allocations: 7.594 kB / 4.805 GB, free: 69.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/9.528, allocations: 12.03 kB / 4.805 GB, free: 69.67 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/9.529, allocations: 262.6 kB / 4.805 GB, free: 69.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/9.529, allocations: 127.8 kB / 4.806 GB, free: 69.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007526/9.53, allocations: 0.8531 MB / 4.806 GB, free: 69.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/9.53, allocations: 53.97 kB / 4.806 GB, free: 69.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.304e-05/9.531, allocations: 34.69 kB / 4.806 GB, free: 69.13 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.0002788/9.531, allocations: 244.8 kB / 4.807 GB, free: 69.01 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/9.531, allocations: 69.09 kB / 4.807 GB, free: 68.98 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/9.532, allocations: 0.7012 MB / 4.807 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/9.532, allocations: 4.844 kB / 4.807 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/9.532, allocations: 2.844 kB / 4.807 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/9.532, allocations: 4.938 kB / 4.807 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/9.534, allocations: 1.383 MB / 4.809 GB, free: 68.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/9.534, allocations: 3.219 kB / 4.809 GB, free: 68.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009225/9.535, allocations: 195.2 kB / 4.809 GB, free: 68.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002751/9.535, allocations: 66.62 kB / 4.809 GB, free: 68.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/9.535, allocations: 18.17 kB / 4.809 GB, free: 68.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/9.537, allocations: 2.815 MB / 4.812 GB, free: 65.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/9.537, allocations: 3.406 kB / 4.812 GB, free: 65.92 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/9.538, allocations: 1.059 MB / 4.813 GB, free: 65.56 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/9.539, allocations: 200.4 kB / 4.813 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/9.539, allocations: 14.59 kB / 4.813 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/9.539, allocations: 27.5 kB / 4.813 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/9.539, allocations: 43.67 kB / 4.813 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-05/9.539, allocations: 27.97 kB / 4.813 GB, free: 65.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003675/9.54, allocations: 391 kB / 4.814 GB, free: 65.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/9.54, allocations: 0 / 4.814 GB, free: 65.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0009344/9.541, allocations: 243.5 kB / 4.814 GB, free: 65.32 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.0006688/9.541, allocations: 393.2 kB / 4.814 GB, free: 65.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001003/9.542, allocations: 0.6039 MB / 4.815 GB, free: 65.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/9.542, allocations: 0 / 4.815 GB, free: 65.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009786/9.543, allocations: 473.3 kB / 4.815 GB, free: 65.09 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/9.545, allocations: 318.7 kB / 4.816 GB, free: 65.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/9.546, allocations: 1.639 MB / 4.817 GB, free: 64.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/9.547, allocations: 0.9549 MB / 4.818 GB, free: 63.69 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0006563/9.547, allocations: 208.3 kB / 4.818 GB, free: 63.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/9.548, allocations: 61.78 kB / 4.818 GB, free: 63.67 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/9.548, allocations: 0 / 4.818 GB, free: 63.67 MB / 0.5417 GB Notification: Performance of Templates: time 0.02289/9.57, allocations: 15.58 MB / 4.834 GB, free: 63.34 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.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