Running command: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.613/1.613, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.602e-05, allocations: 10.81 kB / 225 MB, free: 2.789 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2144, allocations: 38.76 MB / 263.7 MB, free: 9.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.07/12.28, allocations: 5.484 GB / 5.742 GB, free: 75.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/12.28, allocations: 71.95 kB / 5.742 GB, free: 75.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.672/16.96, allocations: 0.9849 GB / 6.727 GB, free: 25.35 MB / 474.9 MB Notification: Performance of FrontEnd: time 1.889e-06/16.96, allocations: 0 / 6.727 GB, free: 25.35 MB / 474.9 MB Notification: Performance of Transformations before backend: time 2.952e-05/16.96, allocations: 8 kB / 6.727 GB, free: 25.34 MB / 474.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.02518/16.98, allocations: 1.557 MB / 6.728 GB, free: 24.06 MB / 474.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/16.98, allocations: 8.031 kB / 6.728 GB, free: 24.05 MB / 474.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008756/16.98, allocations: 91.3 kB / 6.728 GB, free: 23.98 MB / 474.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005694/16.98, allocations: 391.1 kB / 6.729 GB, free: 23.68 MB / 474.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/16.98, allocations: 33.56 kB / 6.729 GB, free: 23.66 MB / 474.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.507e-05/16.98, allocations: 46.81 kB / 6.729 GB, free: 23.63 MB / 474.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/16.98, allocations: 0.6031 MB / 6.729 GB, free: 23.24 MB / 474.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/16.98, allocations: 7.938 kB / 6.729 GB, free: 23.23 MB / 474.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.724e-05/16.98, allocations: 20.69 kB / 6.729 GB, free: 23.23 MB / 474.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/16.98, allocations: 15.33 kB / 6.729 GB, free: 23.21 MB / 474.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/16.99, allocations: 0.5155 MB / 6.73 GB, free: 22.91 MB / 474.9 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.007642/16.99, allocations: 6.103 MB / 6.736 GB, free: 17.93 MB / 474.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/16.99, allocations: 422.9 kB / 6.736 GB, free: 17.68 MB / 474.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003793/16.99, allocations: 203.8 kB / 6.736 GB, free: 17.56 MB / 474.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003399/17, allocations: 2.831 MB / 6.739 GB, free: 14.54 MB / 474.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/17, allocations: 42.12 kB / 6.739 GB, free: 14.49 MB / 474.9 MB Notification: Performance of pre-optimization done (n=46): time 4.001e-06/17, allocations: 0 / 6.739 GB, free: 14.49 MB / 474.9 MB Notification: Performance of matching and sorting (n=54): time 0.01092/17.01, allocations: 1.82 MB / 6.741 GB, free: 13.23 MB / 474.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/17.01, allocations: 63.36 kB / 6.741 GB, free: 13.16 MB / 474.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/17.01, allocations: 270.2 kB / 6.741 GB, free: 12.96 MB / 474.9 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/17.01, allocations: 33.58 kB / 6.741 GB, free: 12.93 MB / 474.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/17.01, allocations: 285.8 kB / 6.742 GB, free: 12.71 MB / 474.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/17.01, allocations: 191.8 kB / 6.742 GB, free: 12.59 MB / 474.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/17.01, allocations: 15.75 kB / 6.742 GB, free: 12.58 MB / 474.9 MB Notification: Performance of setup shared object (initialization): time 6.775e-05/17.01, allocations: 334.2 kB / 6.742 GB, free: 12.26 MB / 474.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/17.01, allocations: 173.5 kB / 6.742 GB, free: 12.16 MB / 474.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/17.01, allocations: 325.5 kB / 6.743 GB, free: 11.88 MB / 474.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/17.01, allocations: 223.6 kB / 6.743 GB, free: 11.75 MB / 474.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/17.01, allocations: 0 / 6.743 GB, free: 11.75 MB / 474.9 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001577/17.01, allocations: 0.6229 MB / 6.743 GB, free: 11.34 MB / 474.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/17.01, allocations: 4 kB / 6.743 GB, free: 11.33 MB / 474.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/17.01, allocations: 8 kB / 6.743 GB, free: 11.32 MB / 474.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0145/17.03, allocations: 0.5555 MB / 6.744 GB, free: 11.02 MB / 474.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/17.03, allocations: 142.9 kB / 6.744 GB, free: 10.9 MB / 474.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/17.03, allocations: 2.987 MB / 6.747 GB, free: 7.859 MB / 474.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006249/17.03, allocations: 43.77 kB / 6.747 GB, free: 7.832 MB / 474.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-05/17.03, allocations: 34.58 kB / 6.747 GB, free: 7.809 MB / 474.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001706/17.03, allocations: 140.2 kB / 6.747 GB, free: 7.684 MB / 474.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/17.03, allocations: 39.53 kB / 6.747 GB, free: 7.645 MB / 474.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/17.03, allocations: 1.053 MB / 6.748 GB, free: 7.027 MB / 474.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/17.03, allocations: 10.67 kB / 6.748 GB, free: 7.02 MB / 474.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.006e-06/17.03, allocations: 0 / 6.748 GB, free: 7.02 MB / 474.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001312/17.03, allocations: 1.073 MB / 6.749 GB, free: 6.223 MB / 474.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/17.04, allocations: 1.725 MB / 6.751 GB, free: 5.223 MB / 474.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.607e-06/17.04, allocations: 0 / 6.751 GB, free: 5.223 MB / 474.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/17.04, allocations: 99.25 kB / 6.751 GB, free: 5.141 MB / 474.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003897/17.04, allocations: 383.3 kB / 6.751 GB, free: 4.965 MB / 474.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.05e-05/17.04, allocations: 17.72 kB / 6.751 GB, free: 4.961 MB / 474.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006349/17.04, allocations: 1.135 MB / 6.753 GB, free: 3.848 MB / 474.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.83e-06/17.04, allocations: 224 / 6.753 GB, free: 3.848 MB / 474.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/17.04, allocations: 1.116 MB / 6.754 GB, free: 3.133 MB / 474.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/17.05, allocations: 137.1 kB / 6.754 GB, free: 3 MB / 474.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/17.05, allocations: 11 kB / 6.754 GB, free: 2.996 MB / 474.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/17.05, allocations: 32.94 kB / 6.754 GB, free: 2.977 MB / 474.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.367e-05/17.05, allocations: 38.75 kB / 6.754 GB, free: 2.957 MB / 474.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.025e-05/17.05, allocations: 27.41 kB / 6.754 GB, free: 2.941 MB / 474.9 MB Notification: Performance of sorting global known variables: time 0.0003146/17.05, allocations: 247.4 kB / 6.754 GB, free: 2.758 MB / 474.9 MB Notification: Performance of sort global known variables: time 8.2e-07/17.05, allocations: 0 / 6.754 GB, free: 2.758 MB / 474.9 MB Notification: Performance of remove unused functions: time 0.01515/17.06, allocations: 1.113 MB / 6.755 GB, free: 1.852 MB / 474.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.2157/17.28, allocations: 23.75 MB / 6.778 GB, free: 10.64 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.001991/17.28, allocations: 0.6733 MB / 6.779 GB, free: 10.02 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 5.103e-06/17.28, allocations: 0 / 6.779 GB, free: 10.02 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.000979/17.28, allocations: 371.7 kB / 6.779 GB, free: 9.68 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/17.28, allocations: 242.2 kB / 6.78 GB, free: 9.508 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/17.28, allocations: 1.072 MB / 6.781 GB, free: 8.508 MB / 0.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006124/17.29, allocations: 0.8854 MB / 6.782 GB, free: 7.672 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/17.29, allocations: 51.14 kB / 6.782 GB, free: 7.625 MB / 0.495 GB Notification: Performance of SimCode: time 1.948e-06/17.29, allocations: 0 / 6.782 GB, free: 7.625 MB / 0.495 GB Notification: Performance of Templates: time 0.3938/17.68, allocations: 46.99 MB / 6.828 GB, free: 68.86 MB / 0.495 GB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! " Variables in the reference:time,volume.medium.h,volume.medium.p,volume1.medium.h,volume1.medium.p Variables in the result:T_start,X_start[1],ambient.T_ambient,ambient.X_ambient[1],ambient.d_ambient,ambient.h_ambient,ambient.medium.MM,ambient.medium.R,ambient.medium.T,ambient.medium.T_degC,ambient.medium.X[1],ambient.medium.d,ambient.medium.h,ambient.medium.p,ambient.medium.p_bar,ambient.medium.phase,ambient.medium.preferredMediumStates,ambient.medium.quality,ambient.medium.sat.Tsat,ambient.medium.sat.psat,ambient.medium.standardOrderComponents,ambient.medium.state.T,ambient.medium.state.d,ambient.medium.state.h,ambient.medium.state.p,ambient.medium.state.phase,ambient.medium.u,ambient.p_ambient,ambient.port.H_flow,ambient.port.h,ambient.port.m_flow,ambient.port.p,ambient.use_T_ambient,ambient.use_p_ambient,fixedMassFlowRate.T_ambient,fixedMassFlowRate.X_ambient[1],fixedMassFlowRate.h_ambient,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.MM,fixedMassFlowRate.medium.R,fixedMassFlowRate.medium.T,fixedMassFlowRate.medium.T_degC,fixedMassFlowRate.medium.X[1],fixedMassFlowRate.medium.d,fixedMassFlowRate.medium.h,fixedMassFlowRate.medium.p,fixedMassFlowRate.medium.p_bar,fixedMassFlowRate.medium.phase,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.quality,fixedMassFlowRate.medium.sat.Tsat,fixedMassFlowRate.medium.sat.psat,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,fixedMassFlowRate.medium.state.d,fixedMassFlowRate.medium.state.h,fixedMassFlowRate.medium.state.p,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.u,fixedMassFlowRate.port.H_flow,fixedMassFlowRate.port.h,fixedMassFlowRate.port.m_flow,fixedMassFlowRate.port.p,fixedMassFlowRate.use_T_ambient,h_start,p_start,shortPipe.dp,shortPipe.dp_nominal,shortPipe.m_flow,shortPipe.m_flow_nominal,shortPipe.port_a.H_flow,shortPipe.port_a.h,shortPipe.port_a.m_flow,shortPipe.port_a.p,shortPipe.port_b.H_flow,shortPipe.port_b.h,shortPipe.port_b.m_flow,shortPipe.port_b.p,shortPipe1.dp,shortPipe1.dp_nominal,shortPipe1.m_flow,shortPipe1.m_flow_nominal,shortPipe1.port_a.H_flow,shortPipe1.port_a.h,shortPipe1.port_a.m_flow,shortPipe1.port_a.p,shortPipe1.port_b.H_flow,shortPipe1.port_b.h,shortPipe1.port_b.m_flow,shortPipe1.port_b.p,time,volume.T_start,volume.U,volume.V,volume.X_start[1],volume.d_start,der(volume.U),der(volume.m),volume.h_start,volume.m,volume.medium.MM,volume.medium.R,volume.medium.T,volume.medium.T_degC,volume.medium.X[1],volume.medium.d,der(volume.medium.d),der(volume.medium.h),der(volume.medium.p),der(volume.medium.u),volume.medium.h,volume.medium.p,volume.medium.p_bar,volume.medium.phase,volume.medium.preferredMediumStates,volume.medium.quality,volume.medium.sat.Tsat,volume.medium.sat.psat,volume.medium.standardOrderComponents,volume.medium.state.T,volume.medium.state.d,volume.medium.state.h,volume.medium.state.p,volume.medium.state.phase,volume.medium.u,volume.p_start,volume.port.H_flow,volume.port.h,volume.port.m_flow,volume.port.p,volume.use_T_start,volume.use_p_start,volume1.T_start,volume1.U,volume1.V,volume1.X_start[1],volume1.d_start,der(volume1.U),der(volume1.m),volume1.h_start,volume1.m,volume1.medium.MM,volume1.medium.R,volume1.medium.T,volume1.medium.T_degC,volume1.medium.X[1],volume1.medium.d,der(volume1.medium.d),der(volume1.medium.h),der(volume1.medium.p),der(volume1.medium.u),volume1.medium.h,volume1.medium.p,volume1.medium.p_bar,volume1.medium.phase,volume1.medium.preferredMediumStates,volume1.medium.quality,volume1.medium.sat.Tsat,volume1.medium.sat.psat,volume1.medium.standardOrderComponents,volume1.medium.state.T,volume1.medium.state.d,volume1.medium.state.h,volume1.medium.state.p,volume1.medium.state.phase,volume1.medium.u,volume1.p_start,volume1.port.H_flow,volume1.port.h,volume1.port.m_flow,volume1.port.p,volume1.use_T_start,volume1.use_p_start