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.82/1.82, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.176e-05, allocations: 6.391 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08608/0.08613, allocations: 48.7 MB / 321.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9461/1.032, allocations: 363.5 MB / 0.6692 GB, free: 9.836 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/1.033, allocations: 68.22 kB / 0.6693 GB, free: 9.801 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2769/1.31, allocations: 18.76 MB / 0.6876 GB, free: 152.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.901e-06/1.31, allocations: 1.219 kB / 0.6876 GB, free: 152.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/1.31, allocations: 3.344 kB / 0.6876 GB, free: 152.9 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.001683/1.311, allocations: 0.5668 MB / 0.6881 GB, free: 152.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.311, allocations: 9.125 kB / 0.6881 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/1.312, allocations: 22.81 kB / 0.6882 GB, free: 152.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/1.312, allocations: 232.8 kB / 0.6884 GB, free: 152.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/1.312, allocations: 130.8 kB / 0.6885 GB, free: 152.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.765e-05/1.312, allocations: 25.16 kB / 0.6885 GB, free: 152.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009401/1.313, allocations: 312 kB / 0.6888 GB, free: 152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/1.313, allocations: 0 / 0.6888 GB, free: 152 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/1.313, allocations: 10.66 kB / 0.6888 GB, free: 152 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/1.314, allocations: 10.09 kB / 0.6888 GB, free: 152 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/1.315, allocations: 0.7273 MB / 0.6896 GB, free: 152 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/1.317, allocations: 1.227 MB / 0.6908 GB, free: 151.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/1.318, allocations: 149.2 kB / 0.6909 GB, free: 151.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/1.318, allocations: 80.7 kB / 0.691 GB, free: 151.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003213/1.322, allocations: 3.011 MB / 0.6939 GB, free: 148.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/1.322, allocations: 35.88 kB / 0.6939 GB, free: 148.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 3.003e-06/1.322, allocations: 0 / 0.6939 GB, free: 148.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003229/1.322, allocations: 105.6 kB / 0.694 GB, free: 148.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/1.322, allocations: 56.72 kB / 0.6941 GB, free: 148.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/1.322, allocations: 189.2 kB / 0.6943 GB, free: 148 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/1.322, allocations: 30.89 kB / 0.6943 GB, free: 148 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.959e-05/1.322, allocations: 278.8 kB / 0.6946 GB, free: 147.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.83e-05/1.322, allocations: 51.92 kB / 0.6946 GB, free: 147.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/1.322, allocations: 7.75 kB / 0.6946 GB, free: 147.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.271e-05/1.323, allocations: 337.9 kB / 0.695 GB, free: 147.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/1.323, allocations: 42.5 kB / 0.695 GB, free: 147.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/1.323, allocations: 327 kB / 0.6953 GB, free: 147 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/1.323, allocations: 103.6 kB / 0.6954 GB, free: 147 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.33e-06/1.323, allocations: 2.75 kB / 0.6954 GB, free: 147 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006889/1.324, allocations: 344 kB / 0.6957 GB, free: 146.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/1.324, allocations: 9.625 kB / 0.6957 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/1.324, allocations: 10.66 kB / 0.6958 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.218e-05/1.324, allocations: 14.66 kB / 0.6958 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/1.324, allocations: 99.95 kB / 0.6959 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.517e-05/1.324, allocations: 21.88 kB / 0.6959 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/1.325, allocations: 60.11 kB / 0.6959 GB, free: 146.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.838e-05/1.325, allocations: 27.03 kB / 0.696 GB, free: 146.8 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 8.985e-05/1.325, allocations: 138.7 kB / 0.6961 GB, free: 146.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/1.325, allocations: 17.41 kB / 0.6961 GB, free: 146.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004239/1.325, allocations: 160.7 kB / 0.6963 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/1.325, allocations: 3.094 kB / 0.6963 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.382e-06/1.325, allocations: 0 / 0.6963 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.195e-06/1.325, allocations: 0 / 0.6963 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005412/1.326, allocations: 437.8 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.352e-06/1.326, allocations: 1.281 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.549e-05/1.326, allocations: 12.62 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/1.326, allocations: 2.25 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/1.326, allocations: 5.438 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.383e-06/1.326, allocations: 1.406 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.385e-06/1.326, allocations: 9.922 kB / 0.6967 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/1.326, allocations: 270.9 kB / 0.697 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.898e-05/1.327, allocations: 116 kB / 0.6971 GB, free: 145.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/1.327, allocations: 2.312 kB / 0.6971 GB, free: 145.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/1.327, allocations: 3.969 kB / 0.6971 GB, free: 145.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/1.327, allocations: 17.22 kB / 0.6971 GB, free: 145.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/1.327, allocations: 4.188 kB / 0.6971 GB, free: 145.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001383/1.327, allocations: 149.5 kB / 0.6973 GB, free: 145.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.64e-07/1.327, allocations: 4 kB / 0.6973 GB, free: 145.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007044/1.328, allocations: 106.3 kB / 0.6974 GB, free: 145.8 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.0002474/1.328, allocations: 148.9 kB / 0.6975 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003571/1.328, allocations: 150.2 kB / 0.6977 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.309e-06/1.328, allocations: 4.25 kB / 0.6977 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.841e-05/1.329, allocations: 24.5 kB / 0.6977 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/1.329, allocations: 47.98 kB / 0.6977 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/1.343, allocations: 4.712 MB / 0.7023 GB, free: 144.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/1.343, allocations: 0.7299 MB / 0.703 GB, free: 143.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.878e-05/1.343, allocations: 33 kB / 0.7031 GB, free: 143.7 MB / 426.7 MB Notification: Performance of SimCode: time 2.12e-06/1.343, allocations: 9.438 kB / 0.7031 GB, free: 143.7 MB / 426.7 MB Notification: Performance of Templates: time 0.005816/1.349, allocations: 3.272 MB / 0.7063 GB, free: 142.9 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