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.2_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.876e-05/3.903e-05, allocations: 0 / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2578, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.32/13.57, allocations: 5.72 GB / 6.007 GB, free: 95.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/13.57, allocations: 71.94 kB / 6.007 GB, free: 95.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 15.61/29.19, allocations: 4.471 GB / 10.48 GB, free: 75.65 MB / 0.62 GB Notification: Performance of FrontEnd: time 2.159e-06/29.19, allocations: 0 / 10.48 GB, free: 75.65 MB / 0.62 GB Notification: Performance of Transformations before backend: time 2.942e-05/29.19, allocations: 12 kB / 10.48 GB, free: 75.64 MB / 0.62 GB 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.04254/29.23, allocations: 2.195 MB / 10.48 GB, free: 73.87 MB / 0.62 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/29.23, allocations: 8.031 kB / 10.48 GB, free: 73.86 MB / 0.62 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008474/29.23, allocations: 96.84 kB / 10.48 GB, free: 73.77 MB / 0.62 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005844/29.23, allocations: 363.4 kB / 10.48 GB, free: 73.51 MB / 0.62 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/29.23, allocations: 19.94 kB / 10.48 GB, free: 73.49 MB / 0.62 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-05/29.23, allocations: 28 kB / 10.48 GB, free: 73.46 MB / 0.62 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000853/29.23, allocations: 454.7 kB / 10.48 GB, free: 73.21 MB / 0.62 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008748/29.23, allocations: 0.5112 MB / 10.48 GB, free: 72.85 MB / 0.62 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/29.23, allocations: 0 / 10.48 GB, free: 72.85 MB / 0.62 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.883e-05/29.23, allocations: 7.953 kB / 10.48 GB, free: 72.84 MB / 0.62 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/29.23, allocations: 16 kB / 10.48 GB, free: 72.82 MB / 0.62 GB 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.007571/29.24, allocations: 6.405 MB / 10.49 GB, free: 67.5 MB / 0.62 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/29.24, allocations: 339.7 kB / 10.49 GB, free: 67.3 MB / 0.62 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003207/29.24, allocations: 183.4 kB / 10.49 GB, free: 67.19 MB / 0.62 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002876/29.24, allocations: 2.432 MB / 10.49 GB, free: 64.6 MB / 0.62 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/29.24, allocations: 38.06 kB / 10.49 GB, free: 64.55 MB / 0.62 GB Notification: Performance of pre-optimization done (n=44): time 3.485e-06/29.24, allocations: 0 / 10.49 GB, free: 64.55 MB / 0.62 GB Notification: Performance of matching and sorting (n=52): time 0.01875/29.26, allocations: 2.279 MB / 10.49 GB, free: 63.07 MB / 0.62 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/29.26, allocations: 63.53 kB / 10.49 GB, free: 63 MB / 0.62 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/29.26, allocations: 241.2 kB / 10.49 GB, free: 62.82 MB / 0.62 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/29.26, allocations: 25.7 kB / 10.49 GB, free: 62.79 MB / 0.62 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/29.26, allocations: 294.8 kB / 10.49 GB, free: 62.57 MB / 0.62 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/29.26, allocations: 181.5 kB / 10.49 GB, free: 62.45 MB / 0.62 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/29.26, allocations: 0 / 10.49 GB, free: 62.45 MB / 0.62 GB Notification: Performance of setup shared object (initialization): time 6.884e-05/29.26, allocations: 333.6 kB / 10.49 GB, free: 62.13 MB / 0.62 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/29.26, allocations: 157.4 kB / 10.49 GB, free: 62.05 MB / 0.62 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/29.27, allocations: 309.5 kB / 10.49 GB, free: 61.77 MB / 0.62 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005401/29.27, allocations: 0.537 MB / 10.49 GB, free: 61.48 MB / 0.62 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.721e-06/29.27, allocations: 0 / 10.49 GB, free: 61.48 MB / 0.62 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.006559/29.28, allocations: 0.9114 MB / 10.5 GB, free: 60.89 MB / 0.62 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/29.28, allocations: 13.97 kB / 10.5 GB, free: 60.88 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/29.28, allocations: 4 kB / 10.5 GB, free: 60.88 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/29.28, allocations: 90.64 kB / 10.5 GB, free: 60.81 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006448/29.28, allocations: 144.4 kB / 10.5 GB, free: 60.7 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005002/29.28, allocations: 3.148 MB / 10.5 GB, free: 57.6 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/29.28, allocations: 33.66 kB / 10.5 GB, free: 57.58 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.272e-05/29.28, allocations: 25.84 kB / 10.5 GB, free: 57.56 MB / 0.62 GB 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.0001786/29.28, allocations: 134.3 kB / 10.5 GB, free: 57.43 MB / 0.62 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/29.28, allocations: 39.53 kB / 10.5 GB, free: 57.39 MB / 0.62 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/29.29, allocations: 1.06 MB / 10.5 GB, free: 56.79 MB / 0.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/29.29, allocations: 11.66 kB / 10.5 GB, free: 56.78 MB / 0.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.77e-06/29.29, allocations: 0 / 10.5 GB, free: 56.78 MB / 0.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00251/29.29, allocations: 1.104 MB / 10.5 GB, free: 55.97 MB / 0.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/29.29, allocations: 1.651 MB / 10.5 GB, free: 55.02 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.173e-06/29.29, allocations: 0 / 10.5 GB, free: 55.02 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004533/29.29, allocations: 99.64 kB / 10.5 GB, free: 54.93 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004871/29.29, allocations: 119.6 kB / 10.5 GB, free: 54.86 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/29.29, allocations: 10.77 kB / 10.5 GB, free: 54.86 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008566/29.3, allocations: 1.204 MB / 10.5 GB, free: 53.71 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.726e-06/29.3, allocations: 0 / 10.5 GB, free: 53.71 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/29.3, allocations: 1.171 MB / 10.51 GB, free: 52.95 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/29.3, allocations: 128.3 kB / 10.51 GB, free: 52.82 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/29.3, allocations: 0 / 10.51 GB, free: 52.82 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/29.3, allocations: 23.59 kB / 10.51 GB, free: 52.8 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.259e-05/29.3, allocations: 37.48 kB / 10.51 GB, free: 52.78 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/29.3, allocations: 26.11 kB / 10.51 GB, free: 52.77 MB / 0.62 GB Notification: Performance of sorting global known variables: time 0.0002166/29.3, allocations: 185.1 kB / 10.51 GB, free: 52.63 MB / 0.62 GB Notification: Performance of sort global known variables: time 8.62e-07/29.3, allocations: 4 kB / 10.51 GB, free: 52.62 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.01544/29.32, allocations: 1.068 MB / 10.51 GB, free: 51.74 MB / 0.62 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * 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.2062/29.52, allocations: 23.8 MB / 10.53 GB, free: 28.53 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.001631/29.52, allocations: 0.6511 MB / 10.53 GB, free: 28.07 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/29.52, allocations: 0 / 10.53 GB, free: 28.07 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 0.0006731/29.52, allocations: 344.2 kB / 10.53 GB, free: 27.88 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/29.53, allocations: 210.6 kB / 10.53 GB, free: 27.75 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/29.53, allocations: 1.027 MB / 10.53 GB, free: 26.93 MB / 0.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/29.53, allocations: 0.8705 MB / 10.53 GB, free: 26.11 MB / 0.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/29.53, allocations: 53.58 kB / 10.53 GB, free: 26.06 MB / 0.62 GB Notification: Performance of SimCode: time 1.718e-06/29.53, allocations: 0 / 10.53 GB, free: 26.06 MB / 0.62 GB Notification: Performance of Templates: time 0.5176/30.05, allocations: 46.58 MB / 10.58 GB, free: 131.9 MB / 0.6356 GB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.2_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],_D_cse1.T,_D_cse1.cv,_D_cse1.dpT,_D_cse1.h,_D_cse1.p,_D_cse1.pd,_D_cse1.phase,_D_cse1.pt,_D_cse1.rho,_D_cse2,_D_cse3.T,_D_cse3.cv,_D_cse3.dpT,_D_cse3.h,_D_cse3.p,_D_cse3.pd,_D_cse3.phase,_D_cse3.pt,_D_cse3.rho,_D_cse4,_D_cse5.T,_D_cse5.cv,_D_cse5.dpT,_D_cse5.h,_D_cse5.p,_D_cse5.pd,_D_cse5.phase,_D_cse5.pt,_D_cse5.rho,_D_cse6,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