Running command: translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir") Notification: Performance of loadModel(Modelica): time 0.9756/0.9756, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.816e-05, allocations: 3.984 kB / 151.4 MB, free: 15.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1429, allocations: 25.15 MB / 176.5 MB, free: 15.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.495/1.638, allocations: 0.6612 GB / 0.8336 GB, free: 63.22 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/1.638, allocations: 57.66 kB / 0.8337 GB, free: 63.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.133/1.771, allocations: 42.8 MB / 0.8755 GB, free: 20.2 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.717e-06/1.771, allocations: 0 / 0.8755 GB, free: 20.2 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/1.771, allocations: 3.938 kB / 0.8755 GB, free: 20.19 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0008237/1.772, allocations: 0.5066 MB / 0.876 GB, free: 19.64 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/1.772, allocations: 12.03 kB / 0.876 GB, free: 19.62 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/1.772, allocations: 23.77 kB / 0.876 GB, free: 19.6 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/1.772, allocations: 222.8 kB / 0.8762 GB, free: 19.34 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/1.772, allocations: 12.38 kB / 0.8763 GB, free: 19.33 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/1.772, allocations: 20 kB / 0.8763 GB, free: 19.31 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005148/1.773, allocations: 321.5 kB / 0.8766 GB, free: 18.99 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/1.773, allocations: 0 / 0.8766 GB, free: 18.99 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/1.773, allocations: 12 kB / 0.8766 GB, free: 18.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.531e-06/1.773, allocations: 4 kB / 0.8766 GB, free: 18.97 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005372/1.773, allocations: 443.7 kB / 0.877 GB, free: 18.54 MB / 234.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.001877/1.775, allocations: 1.192 MB / 0.8782 GB, free: 17.22 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005643/1.776, allocations: 293 kB / 0.8785 GB, free: 16.91 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/1.776, allocations: 109.7 kB / 0.8786 GB, free: 16.8 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002823/1.779, allocations: 2.152 MB / 0.8807 GB, free: 14.33 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/1.779, allocations: 42.56 kB / 0.8807 GB, free: 14.28 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.247e-06/1.779, allocations: 0 / 0.8807 GB, free: 14.28 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005788/1.78, allocations: 234.4 kB / 0.8809 GB, free: 14.04 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/1.78, allocations: 85.05 kB / 0.881 GB, free: 13.94 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/1.78, allocations: 105 kB / 0.8811 GB, free: 13.83 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/1.78, allocations: 29.7 kB / 0.8811 GB, free: 13.8 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/1.78, allocations: 186.8 kB / 0.8813 GB, free: 13.61 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/1.78, allocations: 106.5 kB / 0.8814 GB, free: 13.51 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.734e-05/1.78, allocations: 12 kB / 0.8814 GB, free: 13.5 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.505e-05/1.78, allocations: 318.8 kB / 0.8817 GB, free: 13.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/1.78, allocations: 72.59 kB / 0.8818 GB, free: 13.1 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/1.78, allocations: 155.2 kB / 0.882 GB, free: 12.91 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/1.781, allocations: 109.8 kB / 0.8821 GB, free: 12.8 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.638e-06/1.781, allocations: 0 / 0.8821 GB, free: 12.8 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005917/1.781, allocations: 309.4 kB / 0.8824 GB, free: 12.5 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/1.781, allocations: 4.781 kB / 0.8824 GB, free: 12.49 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.781, allocations: 8 kB / 0.8824 GB, free: 12.48 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/1.781, allocations: 4.312 kB / 0.8824 GB, free: 12.48 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/1.782, allocations: 79.89 kB / 0.8825 GB, free: 12.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/1.782, allocations: 7.938 kB / 0.8825 GB, free: 12.39 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/1.782, allocations: 39.61 kB / 0.8825 GB, free: 12.36 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/1.782, allocations: 20 kB / 0.8825 GB, free: 12.34 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: medium2.X[2]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.8 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [2] medium2.X[1]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.2 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [2] medium2.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 300.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium2.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 200000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 200.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002358/1.782, allocations: 180.6 kB / 0.8827 GB, free: 12.16 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.553e-05/1.782, allocations: 15.86 kB / 0.8827 GB, free: 12.14 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008188/1.783, allocations: 359.6 kB / 0.883 GB, free: 11.78 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/1.783, allocations: 4 kB / 0.8831 GB, free: 11.78 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.274e-06/1.783, allocations: 0 / 0.8831 GB, free: 11.78 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.806e-06/1.783, allocations: 4 kB / 0.8831 GB, free: 11.77 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006517/1.784, allocations: 309.4 kB / 0.8833 GB, free: 11.42 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.784, allocations: 0 / 0.8833 GB, free: 11.42 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/1.784, allocations: 59.86 kB / 0.8834 GB, free: 11.36 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.632e-06/1.784, allocations: 3.984 kB / 0.8834 GB, free: 11.36 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/1.784, allocations: 12 kB / 0.8834 GB, free: 11.35 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/1.784, allocations: 0 / 0.8834 GB, free: 11.35 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.258e-06/1.784, allocations: 0 / 0.8834 GB, free: 11.35 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006557/1.785, allocations: 0.5056 MB / 0.8839 GB, free: 10.82 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/1.785, allocations: 132.9 kB / 0.884 GB, free: 10.67 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/1.785, allocations: 11.98 kB / 0.8841 GB, free: 10.66 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/1.785, allocations: 15.98 kB / 0.8841 GB, free: 10.64 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/1.786, allocations: 15.97 kB / 0.8841 GB, free: 10.63 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.598e-05/1.786, allocations: 27.92 kB / 0.8841 GB, free: 10.6 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.41e-05/1.786, allocations: 87.28 kB / 0.8842 GB, free: 10.52 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.786, allocations: 4 kB / 0.8842 GB, free: 10.51 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001169/1.787, allocations: 279.6 kB / 0.8845 GB, free: 10.24 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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 Backend phase and start with SimCode phase: time 0.001774/1.789, allocations: 0.8133 MB / 0.8853 GB, free: 9.418 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005633/1.789, allocations: 247.8 kB / 0.8855 GB, free: 9.176 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/1.789, allocations: 4.562 kB / 0.8855 GB, free: 9.172 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/1.789, allocations: 126.9 kB / 0.8856 GB, free: 9.051 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/1.79, allocations: 79.88 kB / 0.8857 GB, free: 8.973 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/1.791, allocations: 0.615 MB / 0.8863 GB, free: 8.332 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/1.791, allocations: 0.7365 MB / 0.887 GB, free: 7.57 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/1.792, allocations: 43.42 kB / 0.8871 GB, free: 7.527 MB / 234.7 MB Notification: Performance of SimCode: time 1.899e-06/1.792, allocations: 0 / 0.8871 GB, free: 7.527 MB / 234.7 MB Notification: Performance of Templates: time 0.2115/2.003, allocations: 9.434 MB / 0.8963 GB, free: 51.22 MB / 234.7 MB