Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.287e-05/2.298e-05, allocations: 0 / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2719, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.96/16.23, allocations: 6.529 GB / 6.816 GB, free: 5.742 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/16.23, allocations: 74.77 kB / 6.816 GB, free: 5.703 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.364/19.59, allocations: 0.6583 GB / 7.475 GB, free: 21.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/19.59, allocations: 3.062 kB / 7.475 GB, free: 21.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.012e-05/19.59, allocations: 15.36 kB / 7.475 GB, free: 21.46 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009175/19.6, allocations: 2.394 MB / 7.477 GB, free: 20.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/19.6, allocations: 7.5 kB / 7.477 GB, free: 20.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006453/19.6, allocations: 80.83 kB / 7.477 GB, free: 20.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009096/19.6, allocations: 446.5 kB / 7.477 GB, free: 20.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/19.6, allocations: 18.16 kB / 7.477 GB, free: 20.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/19.6, allocations: 36.34 kB / 7.477 GB, free: 20.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00165/19.61, allocations: 0.7976 MB / 7.478 GB, free: 20.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/19.61, allocations: 0.5708 MB / 7.479 GB, free: 20.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.594e-05/19.61, allocations: 3.75 kB / 7.479 GB, free: 20.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/19.61, allocations: 0 / 7.479 GB, free: 20.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/19.61, allocations: 18.3 kB / 7.479 GB, free: 20.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01956/19.63, allocations: 12.54 MB / 7.491 GB, free: 24.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/19.63, allocations: 0.8128 MB / 7.492 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008057/19.63, allocations: 381.1 kB / 7.492 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04531/19.68, allocations: 30.2 MB / 7.522 GB, free: 26.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.891e-05/19.68, allocations: 51.2 kB / 7.522 GB, free: 26.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=78): time 4.443e-06/19.68, allocations: 0 / 7.522 GB, free: 26.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=88): time 0.008808/19.68, allocations: 2.344 MB / 7.524 GB, free: 25.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/19.68, allocations: 60.5 kB / 7.524 GB, free: 25.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003847/19.68, allocations: 259.5 kB / 7.524 GB, free: 25.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/19.68, allocations: 25.7 kB / 7.524 GB, free: 25.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/19.69, allocations: 297.7 kB / 7.525 GB, free: 25.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/19.69, allocations: 295.6 kB / 7.525 GB, free: 25.11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/19.69, allocations: 0 / 7.525 GB, free: 25.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/19.69, allocations: 340.5 kB / 7.525 GB, free: 24.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/19.69, allocations: 305.7 kB / 7.526 GB, free: 24.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000675/19.69, allocations: 419 kB / 7.526 GB, free: 24.71 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/19.69, allocations: 494.5 kB / 7.526 GB, free: 24.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.396e-06/19.69, allocations: 2.297 kB / 7.526 GB, free: 24.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003711/19.69, allocations: 1.051 MB / 7.527 GB, free: 24.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/19.69, allocations: 5.875 kB / 7.527 GB, free: 24.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/19.69, allocations: 9.875 kB / 7.527 GB, free: 24.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003618/19.69, allocations: 116.7 kB / 7.528 GB, free: 24.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009913/19.69, allocations: 186.7 kB / 7.528 GB, free: 24.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004112/19.7, allocations: 3.863 MB / 7.532 GB, free: 21.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/19.7, allocations: 45.53 kB / 7.532 GB, free: 21.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/19.7, allocations: 44.27 kB / 7.532 GB, free: 21.01 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.0003846/19.7, allocations: 126.1 kB / 7.532 GB, free: 20.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/19.7, allocations: 58.41 kB / 7.532 GB, free: 20.88 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/19.7, allocations: 1.121 MB / 7.533 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/19.7, allocations: 9.75 kB / 7.533 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.786e-06/19.7, allocations: 1.062 kB / 7.533 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003001/19.71, allocations: 1.369 MB / 7.534 GB, free: 20.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00501/19.71, allocations: 2.011 MB / 7.536 GB, free: 19.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.479e-06/19.71, allocations: 3.625 kB / 7.536 GB, free: 19.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/19.71, allocations: 186.3 kB / 7.536 GB, free: 19.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003369/19.71, allocations: 130.6 kB / 7.537 GB, free: 19.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.881e-05/19.71, allocations: 21.14 kB / 7.537 GB, free: 19.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/19.71, allocations: 1.351 MB / 7.538 GB, free: 18.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.063e-06/19.71, allocations: 0 / 7.538 GB, free: 18.52 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003923/19.72, allocations: 1.512 MB / 7.539 GB, free: 18.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003059/19.72, allocations: 137 kB / 7.539 GB, free: 18.08 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/19.72, allocations: 7.562 kB / 7.539 GB, free: 18.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007836/19.72, allocations: 39.23 kB / 7.54 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/19.72, allocations: 60.42 kB / 7.54 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/19.72, allocations: 57.78 kB / 7.54 GB, free: 18.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002901/19.72, allocations: 206.4 kB / 7.54 GB, free: 17.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.64e-07/19.72, allocations: 0 / 7.54 GB, free: 17.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009027/19.73, allocations: 2.242 MB / 7.542 GB, free: 17.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01573/19.75, allocations: 3.511 MB / 7.545 GB, free: 16.89 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002253/19.75, allocations: 1.064 MB / 7.546 GB, free: 16.67 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/19.75, allocations: 0 / 7.546 GB, free: 16.67 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009188/19.75, allocations: 480.8 kB / 7.547 GB, free: 16.65 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/19.75, allocations: 326.9 kB / 7.547 GB, free: 16.63 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/19.75, allocations: 1.418 MB / 7.549 GB, free: 16.31 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007193/19.75, allocations: 0.9385 MB / 7.55 GB, free: 15.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/19.76, allocations: 83.67 kB / 7.55 GB, free: 15.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.759e-06/19.76, allocations: 0 / 7.55 GB, free: 15.6 MB / 474.7 MB Notification: Performance of Templates: time 0.1098/19.87, allocations: 68.53 MB / 7.617 GB, free: 6.996 MB / 474.7 MB