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.838/1.838, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.896e-05/4.911e-05, allocations: 9.219 kB / 255.4 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08224, allocations: 44.49 MB / 299.9 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.82/12.9, allocations: 5.72 GB / 6.013 GB, free: 23.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/12.9, allocations: 71.97 kB / 6.013 GB, free: 23.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 15.78/28.68, allocations: 4.512 GB / 10.53 GB, free: 3.863 MB / 0.62 GB Notification: Performance of FrontEnd: time 2.524e-06/28.68, allocations: 0 / 10.53 GB, free: 3.863 MB / 0.62 GB Notification: Performance of Transformations before backend: time 3.04e-05/28.68, allocations: 11.52 kB / 10.53 GB, free: 3.855 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.05082/28.73, allocations: 2.179 MB / 10.53 GB, free: 1.953 MB / 0.62 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/28.73, allocations: 12.03 kB / 10.53 GB, free: 1.941 MB / 0.62 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001588/28.73, allocations: 90.89 kB / 10.53 GB, free: 1.855 MB / 0.62 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009626/28.73, allocations: 374.4 kB / 10.53 GB, free: 1.535 MB / 0.62 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/28.73, allocations: 37.81 kB / 10.53 GB, free: 1.512 MB / 0.62 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/28.73, allocations: 47.73 kB / 10.53 GB, free: 1.484 MB / 0.62 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002482/28.74, allocations: 0.6141 MB / 10.53 GB, free: 1 MB / 0.62 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/28.74, allocations: 8.25 kB / 10.53 GB, free: 0.9922 MB / 0.62 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/28.74, allocations: 24.39 kB / 10.53 GB, free: 0.9844 MB / 0.62 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/28.74, allocations: 12 kB / 10.53 GB, free: 0.9727 MB / 0.62 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/28.74, allocations: 0.5094 MB / 10.53 GB, free: 0.625 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.01025/28.75, allocations: 6.095 MB / 10.54 GB, free: 10.82 MB / 0.6356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/28.75, allocations: 426.7 kB / 10.54 GB, free: 10.54 MB / 0.6356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/28.75, allocations: 198.7 kB / 10.54 GB, free: 10.41 MB / 0.6356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004495/28.76, allocations: 2.838 MB / 10.54 GB, free: 7.199 MB / 0.6356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/28.76, allocations: 41.66 kB / 10.54 GB, free: 7.156 MB / 0.6356 GB Notification: Performance of pre-optimization done (n=46): time 3.72e-06/28.76, allocations: 0 / 10.54 GB, free: 7.156 MB / 0.6356 GB Notification: Performance of matching and sorting (n=54): time 0.01143/28.77, allocations: 1.829 MB / 10.54 GB, free: 5.656 MB / 0.6356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/28.77, allocations: 59.83 kB / 10.54 GB, free: 5.586 MB / 0.6356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000454/28.77, allocations: 272.6 kB / 10.54 GB, free: 5.316 MB / 0.6356 GB Notification: Performance of collectPreVariables (initialization): time 6.261e-05/28.77, allocations: 33.7 kB / 10.54 GB, free: 5.277 MB / 0.6356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/28.77, allocations: 281.1 kB / 10.54 GB, free: 5.016 MB / 0.6356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/28.77, allocations: 197.8 kB / 10.54 GB, free: 4.852 MB / 0.6356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/28.77, allocations: 12 kB / 10.54 GB, free: 4.84 MB / 0.6356 GB Notification: Performance of setup shared object (initialization): time 0.0001846/28.77, allocations: 334.8 kB / 10.54 GB, free: 4.504 MB / 0.6356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004762/28.77, allocations: 169.6 kB / 10.54 GB, free: 4.34 MB / 0.6356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005745/28.77, allocations: 319.8 kB / 10.54 GB, free: 3.969 MB / 0.6356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005595/28.77, allocations: 225.5 kB / 10.54 GB, free: 3.746 MB / 0.6356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.396e-06/28.77, allocations: 0 / 10.54 GB, free: 3.746 MB / 0.6356 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001841/28.77, allocations: 0.6307 MB / 10.54 GB, free: 3.102 MB / 0.6356 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/28.77, allocations: 12.88 kB / 10.54 GB, free: 3.09 MB / 0.6356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/28.77, allocations: 4 kB / 10.54 GB, free: 3.086 MB / 0.6356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01525/28.79, allocations: 0.5531 MB / 10.54 GB, free: 2.523 MB / 0.6356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008522/28.79, allocations: 139.8 kB / 10.54 GB, free: 2.387 MB / 0.6356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4283/29.22, allocations: 2.979 MB / 10.55 GB, free: 115.4 MB / 0.6356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/29.22, allocations: 49.39 kB / 10.55 GB, free: 115.4 MB / 0.6356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.138e-05/29.22, allocations: 28.48 kB / 10.55 GB, free: 115.4 MB / 0.6356 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.0001852/29.22, allocations: 142.3 kB / 10.55 GB, free: 115.3 MB / 0.6356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/29.22, allocations: 45.73 kB / 10.55 GB, free: 115.3 MB / 0.6356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/29.22, allocations: 1.045 MB / 10.55 GB, free: 115.2 MB / 0.6356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/29.22, allocations: 14.83 kB / 10.55 GB, free: 115.2 MB / 0.6356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.395e-06/29.22, allocations: 0 / 10.55 GB, free: 115.2 MB / 0.6356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001705/29.22, allocations: 1.074 MB / 10.55 GB, free: 114.8 MB / 0.6356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/29.22, allocations: 1.709 MB / 10.55 GB, free: 114.5 MB / 0.6356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.901e-06/29.23, allocations: 0 / 10.55 GB, free: 114.5 MB / 0.6356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005896/29.23, allocations: 101.6 kB / 10.55 GB, free: 114.5 MB / 0.6356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004489/29.23, allocations: 386.9 kB / 10.55 GB, free: 114.5 MB / 0.6356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.493e-05/29.23, allocations: 17.25 kB / 10.55 GB, free: 114.5 MB / 0.6356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006813/29.23, allocations: 1.144 MB / 10.55 GB, free: 113.4 MB / 0.6356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/29.23, allocations: 0 / 10.55 GB, free: 113.4 MB / 0.6356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/29.23, allocations: 1.107 MB / 10.55 GB, free: 113.3 MB / 0.6356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/29.23, allocations: 140.3 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/29.23, allocations: 16.95 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004778/29.23, allocations: 27.62 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/29.23, allocations: 36.11 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.929e-05/29.23, allocations: 21.52 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of sorting global known variables: time 0.000402/29.23, allocations: 245.8 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of sort global known variables: time 7.88e-07/29.23, allocations: 1.375 kB / 10.55 GB, free: 113.1 MB / 0.6356 GB Notification: Performance of remove unused functions: time 0.01528/29.25, allocations: 1.114 MB / 10.55 GB, free: 113.1 MB / 0.6356 GB 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.2079/29.46, allocations: 23.73 MB / 10.58 GB, free: 101.3 MB / 0.6356 GB Notification: Performance of simCode: created initialization part: time 0.001853/29.46, allocations: 0.6753 MB / 10.58 GB, free: 101.2 MB / 0.6356 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/29.46, allocations: 3.25 kB / 10.58 GB, free: 101.2 MB / 0.6356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008811/29.46, allocations: 365.6 kB / 10.58 GB, free: 101.2 MB / 0.6356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/29.46, allocations: 247 kB / 10.58 GB, free: 101.2 MB / 0.6356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/29.46, allocations: 1.073 MB / 10.58 GB, free: 100.9 MB / 0.6356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/29.46, allocations: 0.879 MB / 10.58 GB, free: 100.2 MB / 0.6356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/29.47, allocations: 55.91 kB / 10.58 GB, free: 100.2 MB / 0.6356 GB Notification: Performance of SimCode: time 1.769e-06/29.47, allocations: 0.9375 kB / 10.58 GB, free: 100.2 MB / 0.6356 GB Notification: Performance of Templates: time 0.07682/29.54, allocations: 47.03 MB / 10.63 GB, free: 96.33 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],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