Running command: translateModel(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient,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.LinearWater_pT_Ambient") Notification: Performance of loadModel(ModelicaTest): time 1.93/1.93, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.435e-05, allocations: 4 kB / 273.1 MB, free: 3.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08636, allocations: 48.7 MB / 321.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.841/6.928, allocations: 2.797 GB / 3.112 GB, free: 1.035 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/6.928, allocations: 63.97 kB / 3.112 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.091/8.018, allocations: 206.1 MB / 3.313 GB, free: 80.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.11e-06/8.018, allocations: 0 / 3.313 GB, free: 80.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/8.018, allocations: 6.75 kB / 3.313 GB, free: 80.51 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.00393/8.022, allocations: 1.154 MB / 3.314 GB, free: 79.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/8.022, allocations: 6.75 kB / 3.314 GB, free: 79.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/8.023, allocations: 33.78 kB / 3.314 GB, free: 79.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/8.023, allocations: 219.5 kB / 3.314 GB, free: 79.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/8.023, allocations: 128.7 kB / 3.314 GB, free: 79.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/8.023, allocations: 28.66 kB / 3.314 GB, free: 79.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/8.024, allocations: 308.7 kB / 3.315 GB, free: 79.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/8.024, allocations: 0 / 3.315 GB, free: 79.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.49e-05/8.024, allocations: 10.44 kB / 3.315 GB, free: 79.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/8.024, allocations: 14.94 kB / 3.315 GB, free: 79.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008509/8.025, allocations: 0.7295 MB / 3.316 GB, free: 79.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/8.026, allocations: 1.223 MB / 3.317 GB, free: 78.58 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/8.026, allocations: 147.9 kB / 3.317 GB, free: 78.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/8.026, allocations: 84.36 kB / 3.317 GB, free: 78.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002637/8.029, allocations: 3.035 MB / 3.32 GB, free: 75.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/8.029, allocations: 37.84 kB / 3.32 GB, free: 75.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 2.807e-06/8.029, allocations: 0 / 3.32 GB, free: 75.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003227/8.03, allocations: 106.3 kB / 3.32 GB, free: 75.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/8.03, allocations: 55.38 kB / 3.32 GB, free: 75.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/8.03, allocations: 194.5 kB / 3.32 GB, free: 75.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/8.03, allocations: 25.7 kB / 3.32 GB, free: 75.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.692e-05/8.03, allocations: 285.1 kB / 3.321 GB, free: 75.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/8.03, allocations: 54.44 kB / 3.321 GB, free: 75.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/8.03, allocations: 6.625 kB / 3.321 GB, free: 75.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/8.03, allocations: 325.5 kB / 3.321 GB, free: 74.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/8.03, allocations: 44.31 kB / 3.321 GB, free: 74.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/8.03, allocations: 327.4 kB / 3.321 GB, free: 74.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/8.031, allocations: 97.52 kB / 3.321 GB, free: 74.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.016e-06/8.031, allocations: 7.75 kB / 3.321 GB, free: 74.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006726/8.031, allocations: 337.8 kB / 3.322 GB, free: 74.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/8.031, allocations: 11.58 kB / 3.322 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/8.031, allocations: 11.5 kB / 3.322 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.707e-05/8.031, allocations: 16.53 kB / 3.322 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/8.032, allocations: 98.47 kB / 3.322 GB, free: 74.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/8.032, allocations: 23.59 kB / 3.322 GB, free: 74.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/8.032, allocations: 57.75 kB / 3.322 GB, free: 74.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/8.032, allocations: 31.06 kB / 3.322 GB, free: 74.36 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.272e-05/8.032, allocations: 133.2 kB / 3.322 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/8.032, allocations: 15.59 kB / 3.322 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/8.033, allocations: 173.2 kB / 3.322 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/8.033, allocations: 3.812 kB / 3.322 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.227e-06/8.033, allocations: 3.562 kB / 3.322 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.757e-06/8.033, allocations: 0 / 3.322 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005327/8.033, allocations: 434.1 kB / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.443e-06/8.033, allocations: 0 / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.85e-05/8.033, allocations: 16.62 kB / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/8.034, allocations: 5.172 kB / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/8.034, allocations: 3.312 kB / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/8.034, allocations: 9.641 kB / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.401e-06/8.034, allocations: 0 / 3.323 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/8.034, allocations: 260.7 kB / 3.323 GB, free: 73.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/8.034, allocations: 118.6 kB / 3.323 GB, free: 73.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/8.034, allocations: 3.688 kB / 3.323 GB, free: 73.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/8.034, allocations: 11.09 kB / 3.323 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.022e-05/8.034, allocations: 11.72 kB / 3.323 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/8.034, allocations: 3.281 kB / 3.323 GB, free: 73.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001326/8.034, allocations: 155.9 kB / 3.323 GB, free: 73.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.02e-07/8.034, allocations: 0 / 3.323 GB, free: 73.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007905/8.035, allocations: 116.9 kB / 3.323 GB, free: 73.35 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.000383/8.036, allocations: 271.8 kB / 3.324 GB, free: 73.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003083/8.036, allocations: 148 kB / 3.324 GB, free: 73.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/8.036, allocations: 0 / 3.324 GB, free: 73.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.656e-05/8.036, allocations: 28.45 kB / 3.324 GB, free: 73.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/8.036, allocations: 43.12 kB / 3.324 GB, free: 73.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2414/8.278, allocations: 93.25 MB / 3.415 GB, free: 24.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/8.278, allocations: 0.7365 MB / 3.416 GB, free: 23.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-05/8.278, allocations: 27.44 kB / 3.416 GB, free: 23.83 MB / 426.7 MB Notification: Performance of SimCode: time 2.351e-06/8.278, allocations: 0 / 3.416 GB, free: 23.83 MB / 426.7 MB Notification: Performance of Templates: time 0.006742/8.285, allocations: 4.183 MB / 3.42 GB, free: 19.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.LinearWater_pT_Ambient_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.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable eps in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable eps from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable t_min in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable t_min from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_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