Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.001919/0.001919, allocations: 190.3 kB / 8.533 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008843/0.0008844, allocations: 86.81 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 45.16 MB / 383.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.244e-06/7.264e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.023/6.145, allocations: 2.799 GB / 3.303 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/6.145, allocations: 91.7 kB / 3.303 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.673/7.818, allocations: 0.4923 GB / 3.795 GB, free: 35.08 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001054/7.818, allocations: 20.02 kB / 3.795 GB, free: 35.06 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.008316/7.826, allocations: 1.712 MB / 3.797 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/7.826, allocations: 11.44 kB / 3.797 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002318/7.829, allocations: 242.8 kB / 3.797 GB, free: 33.08 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/7.831, allocations: 0.5818 MB / 3.798 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/7.831, allocations: 92.7 kB / 3.798 GB, free: 32.37 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/7.831, allocations: 32 kB / 3.798 GB, free: 32.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001462/7.833, allocations: 0.639 MB / 3.799 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/7.834, allocations: 0.8934 MB / 3.799 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/7.834, allocations: 0 / 3.799 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/7.834, allocations: 7.938 kB / 3.799 GB, free: 30.69 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.506e-05/7.834, allocations: 48.97 kB / 3.799 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4575/8.292, allocations: 75.23 MB / 3.873 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/8.292, allocations: 223.4 kB / 3.873 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/8.293, allocations: 154.2 kB / 3.873 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09768/8.39, allocations: 53.41 MB / 3.925 GB, free: 67.25 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/8.39, allocations: 42.81 kB / 3.926 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=31): time 2.505e-06/8.39, allocations: 0 / 3.926 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36): time 0.00448/8.395, allocations: 1.384 MB / 3.927 GB, free: 66.86 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/8.395, allocations: 136.3 kB / 3.927 GB, free: 66.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008799/8.396, allocations: 0.5005 MB / 3.927 GB, free: 66.57 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/8.396, allocations: 25.7 kB / 3.928 GB, free: 66.54 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/8.396, allocations: 377.9 kB / 3.928 GB, free: 66.33 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/8.396, allocations: 129.8 kB / 3.928 GB, free: 66.27 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/8.396, allocations: 0 / 3.928 GB, free: 66.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000125/8.397, allocations: 371.3 kB / 3.928 GB, free: 65.96 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/8.397, allocations: 228.7 kB / 3.929 GB, free: 65.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005202/8.398, allocations: 0.5798 MB / 3.929 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000792/8.398, allocations: 343.8 kB / 3.929 GB, free: 65.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/8.398, allocations: 2.969 kB / 3.929 GB, free: 65.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002402/8.401, allocations: 1.03 MB / 3.93 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/8.401, allocations: 6.531 kB / 3.93 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/8.401, allocations: 14.47 kB / 3.931 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/8.401, allocations: 81.95 kB / 3.931 GB, free: 65.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/8.402, allocations: 274.8 kB / 3.931 GB, free: 65.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/8.404, allocations: 2.031 MB / 3.933 GB, free: 63.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000949/8.405, allocations: 40.59 kB / 3.933 GB, free: 63.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.828e-05/8.405, allocations: 42.44 kB / 3.933 GB, free: 63.59 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002077/8.405, allocations: 148.7 kB / 3.933 GB, free: 63.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006151/8.406, allocations: 210.8 kB / 3.933 GB, free: 63.45 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/8.408, allocations: 1.677 MB / 3.935 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/8.408, allocations: 18.23 kB / 3.935 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/8.408, allocations: 7.656 kB / 3.935 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/8.408, allocations: 0 / 3.935 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/8.412, allocations: 2.545 MB / 3.937 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/8.412, allocations: 3.516 kB / 3.937 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008855/8.413, allocations: 166.9 kB / 3.938 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003087/8.413, allocations: 114.5 kB / 3.938 GB, free: 62.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/8.413, allocations: 6.672 kB / 3.938 GB, free: 62.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/8.415, allocations: 2.12 MB / 3.94 GB, free: 61.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/8.415, allocations: 2.625 kB / 3.94 GB, free: 61.12 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002413/8.417, allocations: 1.966 MB / 3.942 GB, free: 60.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004367/8.417, allocations: 216.4 kB / 3.942 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/8.418, allocations: 3.891 kB / 3.942 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/8.418, allocations: 18.17 kB / 3.942 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.835e-05/8.418, allocations: 28.55 kB / 3.942 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/8.418, allocations: 14.5 kB / 3.942 GB, free: 60.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005119/8.419, allocations: 366.5 kB / 3.942 GB, free: 60.68 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006829/8.426, allocations: 1.134 MB / 3.943 GB, free: 60.68 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01021/8.436, allocations: 1.734 MB / 3.945 GB, free: 60.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002639/8.439, allocations: 1.11 MB / 3.946 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/8.439, allocations: 320 / 3.946 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001568/8.44, allocations: 0.8607 MB / 3.947 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/8.442, allocations: 256.8 kB / 3.947 GB, free: 60.44 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/8.445, allocations: 1.543 MB / 3.949 GB, free: 60.07 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00076/8.446, allocations: 1.131 MB / 3.95 GB, free: 59.36 MB / 0.5417 GB Notification: Performance of SimCode: time 1.082e-06/8.446, allocations: 0 / 3.95 GB, free: 59.36 MB / 0.5417 GB Notification: Performance of Templates: time 0.05798/8.504, allocations: 37.5 MB / 3.986 GB, free: 57.13 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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