Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") [: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.001611/0.001611, allocations: 200.2 kB / 8.54 MB, free: 1.805 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.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008847/0.0008847, allocations: 91.67 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2261/0.2261, allocations: 45.13 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.046e-06/8.066e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1404, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.022/6.162, allocations: 2.801 GB / 3.305 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/6.163, allocations: 91.52 kB / 3.305 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.667/7.83, allocations: 0.4947 GB / 3.799 GB, free: 20.21 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.67e-05/7.83, allocations: 27.5 kB / 3.799 GB, free: 20.2 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.00892/7.839, allocations: 1.719 MB / 3.801 GB, free: 18.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/7.839, allocations: 8.031 kB / 3.801 GB, free: 18.45 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003238/7.842, allocations: 345.9 kB / 3.801 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/7.844, allocations: 0.6048 MB / 3.802 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/7.844, allocations: 92.64 kB / 3.802 GB, free: 17.37 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/7.844, allocations: 34.25 kB / 3.802 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001343/7.846, allocations: 0.6547 MB / 3.803 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/7.847, allocations: 0.9058 MB / 3.804 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/7.847, allocations: 3.938 kB / 3.804 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/7.847, allocations: 4 kB / 3.804 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.01e-05/7.847, allocations: 45.3 kB / 3.804 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4773/8.325, allocations: 94.07 MB / 3.896 GB, free: 76.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003843/8.325, allocations: 231.1 kB / 3.896 GB, free: 76.91 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/8.325, allocations: 165.9 kB / 3.896 GB, free: 76.91 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08307/8.409, allocations: 43.91 MB / 3.939 GB, free: 48.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.798e-05/8.409, allocations: 41.88 kB / 3.939 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=33): time 4.118e-06/8.409, allocations: 2.344 kB / 3.939 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=37): time 0.004904/8.414, allocations: 1.356 MB / 3.94 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/8.414, allocations: 137.1 kB / 3.94 GB, free: 47.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/8.414, allocations: 0.4889 MB / 3.941 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/8.414, allocations: 25.7 kB / 3.941 GB, free: 47.45 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/8.415, allocations: 367.4 kB / 3.941 GB, free: 47.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/8.415, allocations: 134.4 kB / 3.941 GB, free: 47.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/8.415, allocations: 0 / 3.941 GB, free: 47.18 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001219/8.415, allocations: 373 kB / 3.942 GB, free: 46.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/8.415, allocations: 217.3 kB / 3.942 GB, free: 46.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004878/8.416, allocations: 0.5555 MB / 3.942 GB, free: 46.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006525/8.416, allocations: 326.9 kB / 3.943 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/8.416, allocations: 3.906 kB / 3.943 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002005/8.418, allocations: 1.01 MB / 3.944 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/8.418, allocations: 3.625 kB / 3.944 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/8.419, allocations: 9.75 kB / 3.944 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/8.419, allocations: 64.2 kB / 3.944 GB, free: 46.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/8.42, allocations: 281.8 kB / 3.944 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/8.421, allocations: 1.966 MB / 3.946 GB, free: 44.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000717/8.422, allocations: 47.5 kB / 3.946 GB, free: 44.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/8.422, allocations: 44.77 kB / 3.946 GB, free: 44.52 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002016/8.422, allocations: 147.2 kB / 3.946 GB, free: 44.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007138/8.423, allocations: 272.2 kB / 3.946 GB, free: 44.38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/8.425, allocations: 1.767 MB / 3.948 GB, free: 44.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/8.425, allocations: 20.28 kB / 3.948 GB, free: 44.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/8.425, allocations: 0.6562 kB / 3.948 GB, free: 44.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/8.425, allocations: 10.39 kB / 3.948 GB, free: 44.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/8.428, allocations: 2.66 MB / 3.951 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/8.428, allocations: 4 kB / 3.951 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009027/8.429, allocations: 170.6 kB / 3.951 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/8.429, allocations: 79.84 kB / 3.951 GB, free: 43.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/8.429, allocations: 6.281 kB / 3.951 GB, free: 43.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/8.431, allocations: 2.016 MB / 3.953 GB, free: 42.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/8.431, allocations: 0 / 3.953 GB, free: 42.04 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002584/8.433, allocations: 2.067 MB / 3.955 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/8.434, allocations: 228.8 kB / 3.955 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/8.434, allocations: 7.312 kB / 3.955 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/8.434, allocations: 46.69 kB / 3.955 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.675e-05/8.434, allocations: 25.27 kB / 3.955 GB, free: 41.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/8.434, allocations: 22.3 kB / 3.955 GB, free: 41.65 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004883/8.435, allocations: 359.5 kB / 3.956 GB, free: 41.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006549/8.441, allocations: 1.131 MB / 3.957 GB, free: 41.56 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.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009763/8.451, allocations: 1.728 MB / 3.959 GB, free: 41.36 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002686/8.454, allocations: 1.126 MB / 3.96 GB, free: 41.35 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/8.454, allocations: 0 / 3.96 GB, free: 41.35 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00161/8.456, allocations: 0.9023 MB / 3.96 GB, free: 41.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/8.457, allocations: 262.7 kB / 3.961 GB, free: 41.33 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/8.46, allocations: 1.609 MB / 3.962 GB, free: 40.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007035/8.461, allocations: 1.153 MB / 3.963 GB, free: 40.23 MB / 0.5417 GB Notification: Performance of SimCode: time 1.232e-06/8.461, allocations: 0 / 3.963 GB, free: 40.23 MB / 0.5417 GB Notification: Performance of Templates: time 0.05652/8.517, allocations: 38.04 MB / 4.001 GB, free: 37.98 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,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.h,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