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 1.844/1.844, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.817e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9335/1.049, allocations: 363.5 MB / 0.6739 GB, free: 5.941 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/1.049, allocations: 67.66 kB / 0.6739 GB, free: 5.906 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2829/1.332, allocations: 18.79 MB / 0.6923 GB, free: 153.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.896e-06/1.332, allocations: 1.188 kB / 0.6923 GB, free: 153.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.542e-05/1.332, allocations: 10.22 kB / 0.6923 GB, free: 153.3 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.001197/1.333, allocations: 0.5604 MB / 0.6928 GB, free: 152.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/1.333, allocations: 9.188 kB / 0.6928 GB, free: 152.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/1.333, allocations: 23.97 kB / 0.6929 GB, free: 152.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/1.334, allocations: 234.1 kB / 0.6931 GB, free: 152.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/1.334, allocations: 130.3 kB / 0.6932 GB, free: 152.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/1.334, allocations: 22.16 kB / 0.6932 GB, free: 152.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005462/1.334, allocations: 314.3 kB / 0.6935 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/1.335, allocations: 1.094 kB / 0.6935 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/1.335, allocations: 14.84 kB / 0.6935 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/1.335, allocations: 5.812 kB / 0.6935 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/1.336, allocations: 0.7348 MB / 0.6943 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/1.337, allocations: 1.227 MB / 0.6955 GB, free: 151.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/1.338, allocations: 160.7 kB / 0.6956 GB, free: 151.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/1.338, allocations: 80.53 kB / 0.6957 GB, free: 151.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002846/1.341, allocations: 3 MB / 0.6986 GB, free: 148.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/1.341, allocations: 36.03 kB / 0.6987 GB, free: 148.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 2.84e-06/1.341, allocations: 0 / 0.6987 GB, free: 148.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003216/1.341, allocations: 106.9 kB / 0.6988 GB, free: 148.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/1.341, allocations: 52.84 kB / 0.6988 GB, free: 148.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/1.341, allocations: 194.1 kB / 0.699 GB, free: 148.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/1.341, allocations: 34.73 kB / 0.699 GB, free: 148.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/1.341, allocations: 281.5 kB / 0.6993 GB, free: 148.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/1.341, allocations: 50.31 kB / 0.6993 GB, free: 148.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/1.342, allocations: 10.19 kB / 0.6994 GB, free: 148.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.966e-05/1.342, allocations: 325.4 kB / 0.6997 GB, free: 147.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/1.342, allocations: 53.34 kB / 0.6997 GB, free: 147.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/1.342, allocations: 326.2 kB / 0.7 GB, free: 147.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/1.342, allocations: 102.7 kB / 0.7001 GB, free: 147.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.809e-06/1.342, allocations: 3.031 kB / 0.7001 GB, free: 147.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000723/1.343, allocations: 368.6 kB / 0.7005 GB, free: 147.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/1.343, allocations: 12.44 kB / 0.7005 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/1.343, allocations: 10.44 kB / 0.7005 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/1.343, allocations: 16.16 kB / 0.7005 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/1.343, allocations: 97.97 kB / 0.7006 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/1.343, allocations: 24.52 kB / 0.7006 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/1.344, allocations: 58.03 kB / 0.7007 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/1.344, allocations: 27.84 kB / 0.7007 GB, free: 147.2 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 () * 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.378e-05/1.344, allocations: 139.5 kB / 0.7008 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/1.344, allocations: 18.12 kB / 0.7009 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/1.344, allocations: 167.2 kB / 0.701 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/1.345, allocations: 1.281 kB / 0.701 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.242e-06/1.345, allocations: 5.188 kB / 0.701 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.226e-06/1.345, allocations: 0 / 0.701 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005457/1.345, allocations: 439.1 kB / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/1.345, allocations: 0 / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/1.345, allocations: 17.55 kB / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.402e-06/1.345, allocations: 128 / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/1.345, allocations: 7.906 kB / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/1.345, allocations: 0 / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/1.345, allocations: 5.328 kB / 0.7015 GB, free: 146.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/1.346, allocations: 267.8 kB / 0.7017 GB, free: 146.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.841e-05/1.346, allocations: 113 kB / 0.7018 GB, free: 146.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/1.346, allocations: 2.75 kB / 0.7018 GB, free: 146.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/1.346, allocations: 8.125 kB / 0.7019 GB, free: 146.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/1.346, allocations: 11.67 kB / 0.7019 GB, free: 146.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/1.346, allocations: 8.125 kB / 0.7019 GB, free: 146.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001662/1.346, allocations: 149.2 kB / 0.702 GB, free: 146 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-07/1.346, allocations: 0 / 0.702 GB, free: 146 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000724/1.347, allocations: 104.4 kB / 0.7021 GB, free: 146 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 () * 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.0002341/1.347, allocations: 155 kB / 0.7023 GB, free: 145.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003474/1.348, allocations: 172.9 kB / 0.7024 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.18e-06/1.348, allocations: 7.062 kB / 0.7024 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.1e-05/1.348, allocations: 25.16 kB / 0.7025 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/1.348, allocations: 41.69 kB / 0.7025 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/1.362, allocations: 4.772 MB / 0.7072 GB, free: 143.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/1.362, allocations: 0.7321 MB / 0.7079 GB, free: 142.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/1.362, allocations: 26.81 kB / 0.7079 GB, free: 142.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.89e-06/1.363, allocations: 0 / 0.7079 GB, free: 142.6 MB / 426.7 MB Notification: Performance of Templates: time 0.0062/1.369, allocations: 3.283 MB / 0.7111 GB, free: 141 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