Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.002285/0.002285, allocations: 195.1 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009771/0.000977, allocations: 94.3 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2118/0.2118, allocations: 45.14 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.454e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.938/6.063, allocations: 2.801 GB / 3.305 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/6.063, allocations: 91.42 kB / 3.305 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.69/7.753, allocations: 0.4946 GB / 3.799 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001277/7.753, allocations: 16 kB / 3.799 GB, free: 32.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.009241/7.762, allocations: 1.776 MB / 3.801 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/7.762, allocations: 8.031 kB / 3.801 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003065/7.765, allocations: 344.4 kB / 3.801 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001814/7.767, allocations: 0.6057 MB / 3.802 GB, free: 29.44 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/7.767, allocations: 96.7 kB / 3.802 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002324/7.768, allocations: 35.09 kB / 3.802 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001546/7.769, allocations: 0.7132 MB / 3.803 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/7.771, allocations: 0.9029 MB / 3.804 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/7.771, allocations: 7.938 kB / 3.804 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/7.771, allocations: 6.75 kB / 3.804 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.029e-05/7.771, allocations: 44.72 kB / 3.804 GB, free: 27.53 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4144/8.185, allocations: 59.06 MB / 3.861 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/8.186, allocations: 254.6 kB / 3.862 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/8.186, allocations: 186.2 kB / 3.862 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01552/8.202, allocations: 8.793 MB / 3.87 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.483e-05/8.202, allocations: 40.25 kB / 3.87 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=37): time 3.917e-06/8.202, allocations: 6.938 kB / 3.87 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=41): time 0.00411/8.206, allocations: 1.443 MB / 3.872 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/8.206, allocations: 132.4 kB / 3.872 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006387/8.207, allocations: 490.9 kB / 3.872 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/8.207, allocations: 29.22 kB / 3.872 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/8.207, allocations: 365.5 kB / 3.873 GB, free: 103 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/8.207, allocations: 140 kB / 3.873 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/8.207, allocations: 0 / 3.873 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001003/8.207, allocations: 369.7 kB / 3.873 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/8.207, allocations: 250.1 kB / 3.874 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004781/8.208, allocations: 0.5512 MB / 3.874 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006352/8.208, allocations: 341.4 kB / 3.874 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/8.208, allocations: 3.906 kB / 3.874 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00228/8.211, allocations: 1.101 MB / 3.876 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/8.211, allocations: 7.938 kB / 3.876 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/8.211, allocations: 7.906 kB / 3.876 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002223/8.211, allocations: 69.41 kB / 3.876 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/8.212, allocations: 301.4 kB / 3.876 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/8.214, allocations: 1.983 MB / 3.878 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008113/8.215, allocations: 91.45 kB / 3.878 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/8.215, allocations: 42.73 kB / 3.878 GB, free: 100.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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.0001676/8.215, allocations: 136.8 kB / 3.878 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007049/8.216, allocations: 271.8 kB / 3.878 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/8.217, allocations: 1.816 MB / 3.88 GB, free: 100 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/8.217, allocations: 22.41 kB / 3.88 GB, free: 100 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/8.217, allocations: 0 / 3.88 GB, free: 100 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/8.218, allocations: 3.188 kB / 3.88 GB, free: 100 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002958/8.22, allocations: 2.768 MB / 3.883 GB, free: 99.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/8.22, allocations: 0 / 3.883 GB, free: 99.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009426/8.221, allocations: 192.5 kB / 3.883 GB, free: 99.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000249/8.222, allocations: 83.52 kB / 3.883 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/8.222, allocations: 10.73 kB / 3.883 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/8.223, allocations: 2.023 MB / 3.885 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/8.223, allocations: 2.188 kB / 3.885 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002563/8.226, allocations: 2.173 MB / 3.887 GB, free: 97.54 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003146/8.226, allocations: 232.6 kB / 3.887 GB, free: 97.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/8.226, allocations: 3.844 kB / 3.887 GB, free: 97.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/8.227, allocations: 48.33 kB / 3.887 GB, free: 97.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/8.227, allocations: 45.48 kB / 3.888 GB, free: 97.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/8.227, allocations: 21.77 kB / 3.888 GB, free: 97.39 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004128/8.227, allocations: 353.5 kB / 3.888 GB, free: 97.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006206/8.233, allocations: 1.123 MB / 3.889 GB, free: 97.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.006824/8.24, allocations: 1.738 MB / 3.891 GB, free: 97.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002281/8.242, allocations: 1.162 MB / 3.892 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/8.243, allocations: 3.688 kB / 3.892 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001541/8.244, allocations: 0.937 MB / 3.893 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/8.246, allocations: 264.7 kB / 3.893 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/8.249, allocations: 1.645 MB / 3.895 GB, free: 96.85 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006677/8.249, allocations: 1.158 MB / 3.896 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of SimCode: time 8.11e-07/8.249, allocations: 0 / 3.896 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of Templates: time 0.06599/8.315, allocations: 38.79 MB / 3.934 GB, free: 94.58 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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