Running command: translateModel(ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eps|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph") Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.3 MB / 221.9 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.79e-05/3.82e-05, allocations: 4 kB / 273.1 MB, free: 3.645 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09165, allocations: 48.7 MB / 321.8 MB, free: 2.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.66/1.752, allocations: 0.6359 GB / 0.9502 GB, free: 56.76 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/1.752, allocations: 81.03 kB / 0.9502 GB, free: 56.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5212/2.273, allocations: 111.1 MB / 1.059 GB, free: 117.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.888e-06/2.273, allocations: 0 / 1.059 GB, free: 117.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.486e-05/2.273, allocations: 4 kB / 1.059 GB, free: 117.1 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003539/2.277, allocations: 1.032 MB / 1.06 GB, free: 116 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/2.277, allocations: 12.03 kB / 1.06 GB, free: 116 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007928/2.278, allocations: 79.66 kB / 1.06 GB, free: 115.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/2.278, allocations: 254.6 kB / 1.06 GB, free: 115.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/2.278, allocations: 20.56 kB / 1.06 GB, free: 115.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/2.278, allocations: 24 kB / 1.06 GB, free: 115.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/2.279, allocations: 488.4 kB / 1.061 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/2.279, allocations: 0 / 1.061 GB, free: 115.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/2.279, allocations: 16 kB / 1.061 GB, free: 115 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/2.279, allocations: 8 kB / 1.061 GB, free: 115 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/2.281, allocations: 0.6841 MB / 1.061 GB, free: 114.3 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/2.291, allocations: 5.373 MB / 1.067 GB, free: 108.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/2.292, allocations: 188 kB / 1.067 GB, free: 108.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/2.292, allocations: 55.44 kB / 1.067 GB, free: 108.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05436/2.346, allocations: 25.85 MB / 1.092 GB, free: 79.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000701/2.347, allocations: 304 kB / 1.092 GB, free: 79.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 4.295e-06/2.347, allocations: 0 / 1.092 GB, free: 79.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001463/2.349, allocations: 356.9 kB / 1.093 GB, free: 78.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/2.349, allocations: 435.6 kB / 1.093 GB, free: 78.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/2.349, allocations: 165.7 kB / 1.093 GB, free: 78.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/2.349, allocations: 29.7 kB / 1.093 GB, free: 78.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9e-05/2.349, allocations: 265.7 kB / 1.093 GB, free: 77.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.812e-05/2.349, allocations: 94.64 kB / 1.094 GB, free: 77.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/2.349, allocations: 8 kB / 1.094 GB, free: 77.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/2.349, allocations: 327.3 kB / 1.094 GB, free: 77.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/2.349, allocations: 56.88 kB / 1.094 GB, free: 77.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/2.35, allocations: 309.9 kB / 1.094 GB, free: 76.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/2.35, allocations: 107.8 kB / 1.094 GB, free: 76.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.632e-06/2.35, allocations: 4 kB / 1.094 GB, free: 76.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008073/2.351, allocations: 360.8 kB / 1.095 GB, free: 76.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/2.351, allocations: 8.969 kB / 1.095 GB, free: 76.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/2.351, allocations: 8 kB / 1.095 GB, free: 76.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.361e-05/2.351, allocations: 20 kB / 1.095 GB, free: 76.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/2.351, allocations: 107.8 kB / 1.095 GB, free: 76.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/2.351, allocations: 19.92 kB / 1.095 GB, free: 76.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003857/2.352, allocations: 51.48 kB / 1.095 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.446e-05/2.352, allocations: 28 kB / 1.095 GB, free: 76.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * 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.0001145/2.352, allocations: 132.8 kB / 1.095 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.123e-05/2.352, allocations: 31.8 kB / 1.095 GB, free: 75.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/2.353, allocations: 0.8097 MB / 1.096 GB, free: 75.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/2.353, allocations: 11.98 kB / 1.096 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.749e-06/2.353, allocations: 4 kB / 1.096 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/2.353, allocations: 0 / 1.096 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03063/2.384, allocations: 12.24 MB / 1.108 GB, free: 61.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.413e-06/2.384, allocations: 4 kB / 1.108 GB, free: 61.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/2.384, allocations: 27.98 kB / 1.108 GB, free: 61.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.626e-06/2.384, allocations: 4 kB / 1.108 GB, free: 61.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/2.384, allocations: 4 kB / 1.108 GB, free: 61.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.981e-06/2.384, allocations: 11.89 kB / 1.108 GB, free: 61.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.211e-06/2.384, allocations: 0 / 1.108 GB, free: 61.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004668/2.385, allocations: 0.4899 MB / 1.108 GB, free: 61.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/2.385, allocations: 192.2 kB / 1.109 GB, free: 60.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/2.385, allocations: 12 kB / 1.109 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/2.385, allocations: 8 kB / 1.109 GB, free: 60.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/2.386, allocations: 11.98 kB / 1.109 GB, free: 60.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/2.386, allocations: 15.98 kB / 1.109 GB, free: 60.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002674/2.386, allocations: 222.2 kB / 1.109 GB, free: 60.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.65e-07/2.386, allocations: 3.938 kB / 1.109 GB, free: 60.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001896/2.388, allocations: 435.3 kB / 1.109 GB, free: 60.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002503/2.39, allocations: 0.7743 MB / 1.11 GB, free: 59.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005637/2.391, allocations: 229.6 kB / 1.11 GB, free: 59.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/2.391, allocations: 8.125 kB / 1.11 GB, free: 59.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/2.391, allocations: 99.92 kB / 1.11 GB, free: 59.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/2.392, allocations: 73.72 kB / 1.11 GB, free: 59.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.433/4.825, allocations: 0.7338 GB / 1.844 GB, free: 99.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/4.825, allocations: 0.8071 MB / 1.845 GB, free: 98.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/4.825, allocations: 42.11 kB / 1.845 GB, free: 98.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.717e-06/4.825, allocations: 3.969 kB / 1.845 GB, free: 98.74 MB / 426.7 MB Notification: Performance of Templates: time 0.0176/4.843, allocations: 10.82 MB / 1.856 GB, free: 92.6 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.IncompleteMedia.ReferenceAir_ph_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.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! " Variables in the reference:time,eps_h_is,eps,eta,lambda,Pr,p,T,d,h,u,s,g,f,cp,cp2,cv,cv2,h_is,a,beta,beta2,kappa,kappa2,MM,h2,d2,err_T,err_d,err_u,s_is,err_h_is Variables in the result:MM,Pr,T,a,beta,beta2,cp,cp2,cv,cv2,d,d2,eps,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.d,medium.state.h,medium.state.p,medium.u,p,s,s_is,state.T,state.d,state.h,state.p,state2.T,state2.d,state2.h,state2.p,state3.T,state3.d,state3.h,state3.p,state4.T,state4.d,state4.h,state4.p,state5.T,state5.d,state5.h,state5.p,state_h_is.T,state_h_is.d,state_h_is.h,state_h_is.p,time,u