Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.057/2.057, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004311/0.0004313, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3552, allocations: 48.7 MB / 331.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.12/1.475, allocations: 363.6 MB / 0.6791 GB, free: 124 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/1.476, allocations: 84.56 kB / 0.6792 GB, free: 123.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06646/1.542, allocations: 18.84 MB / 0.6976 GB, free: 108.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.542, allocations: 0 / 0.6976 GB, free: 108.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.373e-05/1.542, allocations: 0 / 0.6976 GB, free: 108.3 MB / 442.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.001309/1.544, allocations: 0.5798 MB / 0.6981 GB, free: 107.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/1.544, allocations: 8.031 kB / 0.6981 GB, free: 107.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/1.544, allocations: 27.72 kB / 0.6982 GB, free: 107.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/1.544, allocations: 222 kB / 0.6984 GB, free: 107.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/1.544, allocations: 126.7 kB / 0.6985 GB, free: 107.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/1.544, allocations: 27.31 kB / 0.6985 GB, free: 107.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/1.545, allocations: 329.1 kB / 0.6988 GB, free: 107 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/1.545, allocations: 0 / 0.6988 GB, free: 107 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/1.545, allocations: 14.55 kB / 0.6988 GB, free: 107 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/1.545, allocations: 4 kB / 0.6988 GB, free: 107 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009851/1.546, allocations: 0.7436 MB / 0.6996 GB, free: 106.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/1.548, allocations: 1.229 MB / 0.7008 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/1.548, allocations: 159.5 kB / 0.7009 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002787/1.551, allocations: 2.776 MB / 0.7036 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/1.551, allocations: 46.38 kB / 0.7037 GB, free: 101.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/1.551, allocations: 0 / 0.7037 GB, free: 101.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=13): time 0.000389/1.552, allocations: 123.6 kB / 0.7038 GB, free: 101.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/1.552, allocations: 55.34 kB / 0.7038 GB, free: 101.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/1.552, allocations: 211.5 kB / 0.7041 GB, free: 101.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/1.552, allocations: 25.7 kB / 0.7041 GB, free: 101.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/1.552, allocations: 283.6 kB / 0.7043 GB, free: 101.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.801e-05/1.552, allocations: 50.75 kB / 0.7044 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/1.552, allocations: 19.3 kB / 0.7044 GB, free: 101.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.832e-05/1.552, allocations: 330.1 kB / 0.7047 GB, free: 100.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/1.552, allocations: 43.97 kB / 0.7048 GB, free: 100.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/1.553, allocations: 333.7 kB / 0.7051 GB, free: 100.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/1.553, allocations: 93.67 kB / 0.7052 GB, free: 100.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/1.553, allocations: 4 kB / 0.7052 GB, free: 100.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006916/1.553, allocations: 378.3 kB / 0.7055 GB, free: 99.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/1.554, allocations: 8.969 kB / 0.7056 GB, free: 99.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/1.554, allocations: 12 kB / 0.7056 GB, free: 99.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/1.554, allocations: 20 kB / 0.7056 GB, free: 99.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/1.554, allocations: 95.14 kB / 0.7057 GB, free: 99.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/1.554, allocations: 15.94 kB / 0.7057 GB, free: 99.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/1.554, allocations: 55.3 kB / 0.7057 GB, free: 99.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/1.554, allocations: 27.19 kB / 0.7058 GB, free: 99.72 MB / 442.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.0001366/1.555, allocations: 155.9 kB / 0.7059 GB, free: 99.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/1.555, allocations: 15.81 kB / 0.7059 GB, free: 99.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004405/1.555, allocations: 174.1 kB / 0.7061 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/1.555, allocations: 4 kB / 0.7061 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.555, allocations: 0 / 0.7061 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.555, allocations: 0 / 0.7061 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005656/1.556, allocations: 437.2 kB / 0.7065 GB, free: 98.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.556, allocations: 4 kB / 0.7065 GB, free: 98.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/1.556, allocations: 24 kB / 0.7065 GB, free: 98.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/1.556, allocations: 0 / 0.7065 GB, free: 98.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/1.556, allocations: 4 kB / 0.7065 GB, free: 98.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/1.556, allocations: 0 / 0.7065 GB, free: 98.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.556, allocations: 7.953 kB / 0.7066 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/1.556, allocations: 209.5 kB / 0.7068 GB, free: 98.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.677e-05/1.556, allocations: 120.2 kB / 0.7069 GB, free: 98.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/1.556, allocations: 0 / 0.7069 GB, free: 98.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/1.557, allocations: 7.984 kB / 0.7069 GB, free: 98.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/1.557, allocations: 15.88 kB / 0.7069 GB, free: 98.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/1.557, allocations: 11.94 kB / 0.7069 GB, free: 98.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001379/1.557, allocations: 155.3 kB / 0.7071 GB, free: 98.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.557, allocations: 4 kB / 0.7071 GB, free: 98.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006712/1.558, allocations: 91.62 kB / 0.7071 GB, free: 98.3 MB / 442.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.0002736/1.558, allocations: 158.9 kB / 0.7073 GB, free: 98.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000358/1.558, allocations: 167.5 kB / 0.7075 GB, free: 98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.558, allocations: 0 / 0.7075 GB, free: 98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.763e-05/1.558, allocations: 23.92 kB / 0.7075 GB, free: 97.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/1.559, allocations: 49.33 kB / 0.7075 GB, free: 97.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.574, allocations: 5.107 MB / 0.7125 GB, free: 93.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/1.574, allocations: 0.7287 MB / 0.7132 GB, free: 93.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/1.575, allocations: 39.3 kB / 0.7133 GB, free: 93 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/1.575, allocations: 0 / 0.7133 GB, free: 93 MB / 442.7 MB Notification: Performance of Templates: time 0.007233/1.582, allocations: 3.27 MB / 0.7165 GB, free: 89.75 MB / 442.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