Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Media.TestAllProperties.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|ddpT|ddTp|dddX.1.|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is|eps",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater") Notification: Performance of loadModel(ModelicaTest): time 2.071/2.071, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004288/0.000429, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3214, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9104/1.232, allocations: 363.6 MB / 0.6786 GB, free: 93.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/1.232, allocations: 69.72 kB / 0.6786 GB, free: 93.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05969/1.292, allocations: 18.83 MB / 0.697 GB, free: 78.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.055e-06/1.292, allocations: 7.938 kB / 0.697 GB, free: 78.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/1.292, allocations: 0 / 0.697 GB, free: 78.29 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001112/1.293, allocations: 0.5709 MB / 0.6976 GB, free: 77.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/1.293, allocations: 12.03 kB / 0.6976 GB, free: 77.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/1.293, allocations: 27.72 kB / 0.6976 GB, free: 77.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/1.293, allocations: 224.9 kB / 0.6979 GB, free: 77.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/1.294, allocations: 130.5 kB / 0.698 GB, free: 77.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/1.294, allocations: 27.55 kB / 0.698 GB, free: 77.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/1.294, allocations: 319.5 kB / 0.6983 GB, free: 76.97 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/1.294, allocations: 0 / 0.6983 GB, free: 76.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/1.294, allocations: 15.42 kB / 0.6983 GB, free: 76.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/1.294, allocations: 12 kB / 0.6983 GB, free: 76.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008166/1.295, allocations: 0.7348 MB / 0.6991 GB, free: 76.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/1.296, allocations: 1.225 MB / 0.7003 GB, free: 75.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/1.297, allocations: 162.8 kB / 0.7004 GB, free: 75.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002226/1.299, allocations: 2.788 MB / 0.7031 GB, free: 71.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/1.299, allocations: 38.31 kB / 0.7032 GB, free: 71.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 2.551e-06/1.299, allocations: 0 / 0.7032 GB, free: 71.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003325/1.299, allocations: 128.1 kB / 0.7033 GB, free: 71.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.091e-05/1.3, allocations: 51.41 kB / 0.7033 GB, free: 71.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/1.3, allocations: 188.4 kB / 0.7035 GB, free: 71.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/1.3, allocations: 29.7 kB / 0.7035 GB, free: 71.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.624e-05/1.3, allocations: 288.4 kB / 0.7038 GB, free: 71.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/1.3, allocations: 50.62 kB / 0.7039 GB, free: 71.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/1.3, allocations: 7.188 kB / 0.7039 GB, free: 71.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.797e-05/1.3, allocations: 330.2 kB / 0.7042 GB, free: 70.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.761e-05/1.3, allocations: 44.34 kB / 0.7042 GB, free: 70.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/1.3, allocations: 331.9 kB / 0.7046 GB, free: 70.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/1.3, allocations: 102 kB / 0.7046 GB, free: 70.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.064e-06/1.3, allocations: 4 kB / 0.7047 GB, free: 70.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006456/1.301, allocations: 370.1 kB / 0.705 GB, free: 69.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/1.301, allocations: 16.97 kB / 0.705 GB, free: 69.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.301, allocations: 8 kB / 0.705 GB, free: 69.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/1.301, allocations: 16 kB / 0.705 GB, free: 69.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/1.302, allocations: 95.58 kB / 0.7051 GB, free: 69.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/1.302, allocations: 19.94 kB / 0.7052 GB, free: 69.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/1.302, allocations: 58.48 kB / 0.7052 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/1.302, allocations: 27.75 kB / 0.7052 GB, free: 69.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.302, allocations: 160.8 kB / 0.7054 GB, free: 69.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/1.302, allocations: 15.81 kB / 0.7054 GB, free: 69.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/1.303, allocations: 175.3 kB / 0.7056 GB, free: 69.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.303, allocations: 0 / 0.7056 GB, free: 69.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.457e-06/1.303, allocations: 0 / 0.7056 GB, free: 69.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.577e-06/1.303, allocations: 0 / 0.7056 GB, free: 69.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005557/1.303, allocations: 442.4 kB / 0.706 GB, free: 68.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.64e-06/1.303, allocations: 3.938 kB / 0.706 GB, free: 68.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.75e-05/1.303, allocations: 12 kB / 0.706 GB, free: 68.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.293e-06/1.303, allocations: 0 / 0.706 GB, free: 68.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/1.303, allocations: 7.438 kB / 0.706 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.555e-06/1.303, allocations: 0 / 0.706 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.381e-06/1.303, allocations: 7.953 kB / 0.706 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/1.304, allocations: 259.5 kB / 0.7063 GB, free: 68.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.077e-05/1.304, allocations: 114.4 kB / 0.7064 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/1.304, allocations: 4 kB / 0.7064 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/1.304, allocations: 19.67 kB / 0.7064 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/1.304, allocations: 7.984 kB / 0.7064 GB, free: 68.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/1.304, allocations: 4.094 kB / 0.7064 GB, free: 68.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001321/1.304, allocations: 151.9 kB / 0.7066 GB, free: 68.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.95e-07/1.304, allocations: 0 / 0.7066 GB, free: 68.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007176/1.305, allocations: 91.56 kB / 0.7066 GB, free: 68.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * 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 (10): * Single equations (assignments): 9 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002323/1.305, allocations: 170.6 kB / 0.7068 GB, free: 68.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003414/1.306, allocations: 167 kB / 0.707 GB, free: 67.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.412e-06/1.306, allocations: 4.375 kB / 0.707 GB, free: 67.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.349e-05/1.306, allocations: 31.34 kB / 0.707 GB, free: 67.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/1.306, allocations: 39.41 kB / 0.707 GB, free: 67.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/1.32, allocations: 5.09 MB / 0.712 GB, free: 63.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/1.32, allocations: 0.7287 MB / 0.7127 GB, free: 62.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/1.32, allocations: 35.36 kB / 0.7128 GB, free: 62.92 MB / 426.7 MB Notification: Performance of SimCode: time 1.597e-06/1.32, allocations: 0 / 0.7128 GB, free: 62.92 MB / 426.7 MB Notification: Performance of Templates: time 0.005711/1.326, allocations: 3.277 MB / 0.716 GB, free: 59.66 MB / 426.7 MB "Error: Could not read variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable eps in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable eps from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable t_min in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable t_min from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! " Variables in the reference:time,eps_h_is,eta,lambda,Pr,p,T,d,h,u,s,g,f,cp,cp2,cv,cv2,h_is,a,beta,beta2,kappa,kappa2,ddpT,ddTp,dddX[1],MM,h2,d2,err_T,err_d,err_u,s_is,err_h_is,eps Variables in the result:MM,Pr,T,a,beta,beta2,cp,cp2,cv,cv2,d,d2,ddTp,dddX[1],ddpT,eps_h_is,err_T,err_d,err_h_is,err_u,eta,f,g,h,h2,h_is,kappa,kappa2,lambda,medium.MM,medium.R,medium.T,medium.T_degC,medium.X[1],medium.d,medium.h,medium.p,medium.p_bar,medium.preferredMediumStates,medium.standardOrderComponents,medium.state.T,medium.state.p,medium.u,p,s,s_is,state.T,state.p,state2.T,state2.p,state3.T,state3.p,state4.T,state4.p,state5.T,state5.p,state_h_is.T,state_h_is.p,time,u