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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 206 kB / 8.541 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 96.78 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2053/0.2053, allocations: 45.14 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.783e-06/6.813e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.924/7.057, allocations: 3.127 GB / 3.631 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/7.058, allocations: 89.28 kB / 3.631 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.959/10.02, allocations: 1.139 GB / 4.769 GB, free: 56.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001031/10.02, allocations: 18.89 kB / 4.769 GB, free: 56.55 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.007979/10.02, allocations: 1.579 MB / 4.771 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/10.02, allocations: 8.031 kB / 4.771 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/10.03, allocations: 90.44 kB / 4.771 GB, free: 55.02 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/10.03, allocations: 0.5474 MB / 4.771 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/10.03, allocations: 84.16 kB / 4.772 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/10.03, allocations: 32 kB / 4.772 GB, free: 54.39 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00115/10.03, allocations: 0.5547 MB / 4.772 GB, free: 53.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/10.03, allocations: 0.7465 MB / 4.773 GB, free: 53.18 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/10.03, allocations: 7.938 kB / 4.773 GB, free: 53.17 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.886e-05/10.03, allocations: 4 kB / 4.773 GB, free: 53.16 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.388e-05/10.03, allocations: 40.88 kB / 4.773 GB, free: 53.13 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004973/10.04, allocations: 4.006 MB / 4.777 GB, free: 49.32 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/10.04, allocations: 220.5 kB / 4.777 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/10.04, allocations: 169.8 kB / 4.777 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002987/10.04, allocations: 346.5 kB / 4.777 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/10.04, allocations: 39.55 kB / 4.778 GB, free: 48.51 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.474e-06/10.04, allocations: 0 / 4.778 GB, free: 48.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=39): time 0.003191/10.04, allocations: 1.27 MB / 4.779 GB, free: 47.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/10.04, allocations: 137.2 kB / 4.779 GB, free: 47.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000518/10.04, allocations: 450.7 kB / 4.779 GB, free: 46.78 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/10.04, allocations: 29.7 kB / 4.779 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/10.04, allocations: 318.7 kB / 4.78 GB, free: 46.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/10.04, allocations: 136.7 kB / 4.78 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/10.04, allocations: 4 kB / 4.78 GB, free: 46.33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001203/10.04, allocations: 364.7 kB / 4.78 GB, free: 45.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/10.04, allocations: 205.2 kB / 4.78 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/10.04, allocations: 0.4919 MB / 4.781 GB, free: 45.19 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006531/10.04, allocations: 328.2 kB / 4.781 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/10.04, allocations: 4 kB / 4.781 GB, free: 44.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001895/10.04, allocations: 0.8771 MB / 4.782 GB, free: 44.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/10.04, allocations: 8 kB / 4.782 GB, free: 44.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/10.04, allocations: 8 kB / 4.782 GB, free: 44.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/10.04, allocations: 242.3 kB / 4.782 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/10.04, allocations: 125.6 kB / 4.782 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008432/10.05, allocations: 0.8918 MB / 4.783 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006542/10.05, allocations: 40.03 kB / 4.783 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.377e-05/10.05, allocations: 35.98 kB / 4.783 GB, free: 42.8 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.0001801/10.05, allocations: 124.8 kB / 4.783 GB, free: 42.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.578e-05/10.05, allocations: 59.25 kB / 4.783 GB, free: 42.61 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/10.05, allocations: 0.6369 MB / 4.784 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/10.05, allocations: 4 kB / 4.784 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/10.05, allocations: 6.297 kB / 4.784 GB, free: 41.97 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/10.05, allocations: 3.984 kB / 4.784 GB, free: 41.97 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/10.05, allocations: 1.502 MB / 4.786 GB, free: 40.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/10.05, allocations: 4 kB / 4.786 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009196/10.05, allocations: 176 kB / 4.786 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002718/10.05, allocations: 52.8 kB / 4.786 GB, free: 40.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/10.05, allocations: 11.91 kB / 4.786 GB, free: 40.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/10.05, allocations: 2.669 MB / 4.788 GB, free: 37.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/10.05, allocations: 8.062 kB / 4.788 GB, free: 37.21 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00145/10.06, allocations: 0.9843 MB / 4.789 GB, free: 36.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/10.06, allocations: 188.3 kB / 4.79 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.576e-05/10.06, allocations: 4 kB / 4.79 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/10.06, allocations: 20.05 kB / 4.79 GB, free: 35.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.061e-05/10.06, allocations: 31.86 kB / 4.79 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/10.06, allocations: 19.98 kB / 4.79 GB, free: 35.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004035/10.06, allocations: 326.9 kB / 4.79 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001214/10.06, allocations: 231.9 kB / 4.79 GB, free: 35.33 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.0007622/10.06, allocations: 417 kB / 4.791 GB, free: 34.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009677/10.06, allocations: 0.5432 MB / 4.791 GB, free: 34.44 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/10.06, allocations: 4 kB / 4.791 GB, free: 34.43 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001215/10.06, allocations: 470.3 kB / 4.792 GB, free: 33.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/10.06, allocations: 257.3 kB / 4.792 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/10.07, allocations: 0.9832 MB / 4.793 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007374/10.07, allocations: 1.016 MB / 4.794 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of SimCode: time 2.214e-06/10.07, allocations: 0 / 4.794 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of Templates: time 0.02336/10.09, allocations: 13.24 MB / 4.807 GB, free: 18.71 MB / 0.5261 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