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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.03/2.03, allocations: 209.4 MB / 217.3 MB, free: 4.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.777e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2629, allocations: 48.68 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8503/1.113, allocations: 362.8 MB / 0.6668 GB, free: 88.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/1.113, allocations: 68.16 kB / 0.6669 GB, free: 88.51 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0605/1.174, allocations: 18.68 MB / 0.6851 GB, free: 73.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.174, allocations: 0 / 0.6851 GB, free: 73.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.542e-05/1.174, allocations: 7.984 kB / 0.6852 GB, free: 73.23 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.001088/1.175, allocations: 0.5617 MB / 0.6857 GB, free: 72.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/1.175, allocations: 8.031 kB / 0.6857 GB, free: 72.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/1.175, allocations: 27.8 kB / 0.6857 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/1.176, allocations: 232.7 kB / 0.686 GB, free: 72.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/1.176, allocations: 115.4 kB / 0.6861 GB, free: 72.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/1.176, allocations: 19.94 kB / 0.6861 GB, free: 72.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000836/1.177, allocations: 0.7144 MB / 0.6868 GB, free: 71.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/1.177, allocations: 287.3 kB / 0.6871 GB, free: 71.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/1.177, allocations: 3.984 kB / 0.6871 GB, free: 71.35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/1.177, allocations: 0 / 0.6871 GB, free: 71.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.108e-05/1.177, allocations: 8 kB / 0.6871 GB, free: 71.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002945/1.18, allocations: 3.495 MB / 0.6905 GB, free: 67.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/1.18, allocations: 45.44 kB / 0.6905 GB, free: 67.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.787e-05/1.18, allocations: 15.2 kB / 0.6905 GB, free: 67.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006014/1.181, allocations: 456.8 kB / 0.691 GB, free: 66.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/1.181, allocations: 36.77 kB / 0.691 GB, free: 66.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 3.755e-06/1.181, allocations: 0 / 0.691 GB, free: 66.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002285/1.181, allocations: 57.44 kB / 0.6911 GB, free: 66.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.902e-05/1.181, allocations: 51.44 kB / 0.6911 GB, free: 66.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/1.182, allocations: 218.2 kB / 0.6913 GB, free: 66.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/1.182, allocations: 25.7 kB / 0.6913 GB, free: 66.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/1.182, allocations: 322.8 kB / 0.6917 GB, free: 66.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.259e-05/1.182, allocations: 11.61 kB / 0.6917 GB, free: 66.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/1.182, allocations: 0 / 0.6917 GB, free: 66.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.965e-05/1.182, allocations: 322.6 kB / 0.692 GB, free: 65.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.493e-05/1.182, allocations: 35.81 kB / 0.692 GB, free: 65.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/1.182, allocations: 342.1 kB / 0.6923 GB, free: 65.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004811/1.183, allocations: 110 kB / 0.6924 GB, free: 65.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/1.183, allocations: 4 kB / 0.6924 GB, free: 65.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009536/1.184, allocations: 342.9 kB / 0.6928 GB, free: 64.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/1.184, allocations: 10.34 kB / 0.6928 GB, free: 64.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/1.184, allocations: 12 kB / 0.6928 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/1.184, allocations: 19.95 kB / 0.6928 GB, free: 64.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/1.184, allocations: 99.64 kB / 0.6929 GB, free: 64.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.872e-05/1.184, allocations: 23.92 kB / 0.6929 GB, free: 64.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/1.185, allocations: 51.38 kB / 0.693 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/1.185, allocations: 24 kB / 0.693 GB, free: 64.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 9.481e-05/1.185, allocations: 132.2 kB / 0.6931 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/1.185, allocations: 19.72 kB / 0.6931 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/1.185, allocations: 16.8 kB / 0.6932 GB, free: 64.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/1.185, allocations: 11.89 kB / 0.6932 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.251e-06/1.185, allocations: 4 kB / 0.6932 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/1.185, allocations: 0 / 0.6932 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/1.185, allocations: 179.9 kB / 0.6933 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.315e-06/1.185, allocations: 0 / 0.6933 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.62e-06/1.185, allocations: 0 / 0.6933 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.89e-06/1.185, allocations: 0 / 0.6933 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.23e-06/1.185, allocations: 0 / 0.6933 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.596e-06/1.185, allocations: 8 kB / 0.6934 GB, free: 64.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.462e-06/1.185, allocations: 0 / 0.6934 GB, free: 64.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/1.185, allocations: 151.1 kB / 0.6935 GB, free: 64.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.244e-05/1.186, allocations: 104.8 kB / 0.6936 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.526e-05/1.186, allocations: 0 / 0.6936 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/1.186, allocations: 3.938 kB / 0.6936 GB, free: 64.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.527e-05/1.186, allocations: 8.031 kB / 0.6936 GB, free: 64.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/1.186, allocations: 3.984 kB / 0.6936 GB, free: 64.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001239/1.186, allocations: 147 kB / 0.6938 GB, free: 63.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.54e-07/1.186, allocations: 0 / 0.6938 GB, free: 63.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00072/1.187, allocations: 95.56 kB / 0.6938 GB, free: 63.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0002459/1.187, allocations: 147.1 kB / 0.694 GB, free: 63.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002837/1.187, allocations: 132 kB / 0.6941 GB, free: 63.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.492e-06/1.187, allocations: 0 / 0.6941 GB, free: 63.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.302e-05/1.187, allocations: 7.984 kB / 0.6941 GB, free: 63.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/1.188, allocations: 11.62 kB / 0.6941 GB, free: 63.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.199, allocations: 4.066 MB / 0.6981 GB, free: 60.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/1.199, allocations: 0.7248 MB / 0.6988 GB, free: 59.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.825e-05/1.199, allocations: 31.42 kB / 0.6988 GB, free: 59.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.606e-06/1.199, allocations: 0 / 0.6988 GB, free: 59.63 MB / 426.7 MB Notification: Performance of Templates: time 0.005795/1.205, allocations: 3.149 MB / 0.7019 GB, free: 56.5 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