Running command: translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.FlueGas") Notification: Performance of loadModel(Modelica): time 0.9643/0.9643, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.683e-05/2.693e-05, allocations: 4 kB / 151.4 MB, free: 15.63 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 25.15 MB / 176.5 MB, free: 24 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.564/1.705, allocations: 0.6649 GB / 0.8373 GB, free: 59.63 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/1.706, allocations: 63.97 kB / 0.8374 GB, free: 59.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1731/1.879, allocations: 57.8 MB / 0.8938 GB, free: 1.426 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.318e-06/1.879, allocations: 0 / 0.8938 GB, free: 1.426 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.954e-06/1.879, allocations: 4 kB / 0.8939 GB, free: 1.422 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006385/1.879, allocations: 474.5 kB / 0.8943 GB, free: 0.9102 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/1.879, allocations: 12.03 kB / 0.8943 GB, free: 0.8984 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.873e-05/1.88, allocations: 19.77 kB / 0.8943 GB, free: 0.8789 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/1.88, allocations: 218.9 kB / 0.8945 GB, free: 0.625 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/1.88, allocations: 12.33 kB / 0.8946 GB, free: 0.6133 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/1.88, allocations: 27.97 kB / 0.8946 GB, free: 0.5859 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/1.88, allocations: 338.4 kB / 0.8949 GB, free: 248 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.88, allocations: 0 / 0.8949 GB, free: 248 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/1.88, allocations: 12 kB / 0.8949 GB, free: 236 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/1.88, allocations: 11.98 kB / 0.8949 GB, free: 224 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.137/2.018, allocations: 439.8 kB / 0.8953 GB, free: 52.44 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.002381/2.02, allocations: 1.178 MB / 0.8965 GB, free: 51.71 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/2.02, allocations: 205.2 kB / 0.8967 GB, free: 51.66 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/2.021, allocations: 139.6 kB / 0.8968 GB, free: 51.64 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001342/2.022, allocations: 1.067 MB / 0.8979 GB, free: 50.61 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/2.022, allocations: 36.97 kB / 0.8979 GB, free: 50.57 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 3.878e-06/2.022, allocations: 0 / 0.8979 GB, free: 50.57 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007211/2.023, allocations: 284.5 kB / 0.8982 GB, free: 50.54 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/2.023, allocations: 81.8 kB / 0.8983 GB, free: 50.44 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/2.023, allocations: 137.4 kB / 0.8984 GB, free: 50.35 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/2.023, allocations: 27.58 kB / 0.8984 GB, free: 50.32 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/2.023, allocations: 181 kB / 0.8986 GB, free: 50.16 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.068e-05/2.023, allocations: 108.7 kB / 0.8987 GB, free: 50.1 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/2.023, allocations: 6.031 kB / 0.8987 GB, free: 50.1 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.037e-05/2.023, allocations: 325.8 kB / 0.899 GB, free: 49.79 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/2.024, allocations: 105.9 kB / 0.8991 GB, free: 49.79 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/2.024, allocations: 203.6 kB / 0.8993 GB, free: 49.67 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/2.024, allocations: 136.1 kB / 0.8994 GB, free: 49.67 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/2.024, allocations: 5.297 kB / 0.8994 GB, free: 49.66 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008039/2.025, allocations: 389.1 kB / 0.8998 GB, free: 49.62 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/2.025, allocations: 6.312 kB / 0.8998 GB, free: 49.62 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/2.025, allocations: 2.812 kB / 0.8998 GB, free: 49.62 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/2.025, allocations: 6.844 kB / 0.8998 GB, free: 49.62 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/2.025, allocations: 77.48 kB / 0.8999 GB, free: 49.62 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/2.025, allocations: 9.938 kB / 0.8999 GB, free: 49.62 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/2.026, allocations: 32.52 kB / 0.8999 GB, free: 49.61 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.78e-05/2.026, allocations: 27.44 kB / 0.9 GB, free: 49.61 MB / 234.7 MB Warning: Assuming fixed start value for the following 8 variables: state.T:VARIABLE(min = 1.0 max = 10000.0 start = 200.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real state.p:VARIABLE(min = 0.0 max = 100000000.0 start = 100000.0 unit = "Pa" nominal = 1000000.0 ) "Absolute pressure of medium" type: Real medium2.X[4]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.4 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.X[3]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.3 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.X[2]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.1 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] 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 [4] 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * 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.0002888/2.026, allocations: 198.9 kB / 0.9001 GB, free: 49.5 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/2.026, allocations: 16.94 kB / 0.9002 GB, free: 49.5 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009116/2.027, allocations: 385.4 kB / 0.9005 GB, free: 49.45 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/2.027, allocations: 4.781 kB / 0.9005 GB, free: 49.45 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.752e-06/2.027, allocations: 0 / 0.9005 GB, free: 49.45 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.507e-06/2.027, allocations: 1.125 kB / 0.9005 GB, free: 49.45 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008758/2.028, allocations: 341.3 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.38e-06/2.028, allocations: 1.906 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/2.028, allocations: 47.34 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.847e-06/2.028, allocations: 1.125 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/2.028, allocations: 15.31 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/2.029, allocations: 1.188 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.919e-06/2.029, allocations: 2.031 kB / 0.9009 GB, free: 49.25 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008078/2.029, allocations: 0.5599 MB / 0.9015 GB, free: 49 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/2.03, allocations: 133.1 kB / 0.9016 GB, free: 48.91 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/2.03, allocations: 7.219 kB / 0.9016 GB, free: 48.91 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/2.03, allocations: 21.14 kB / 0.9016 GB, free: 48.91 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/2.03, allocations: 20.5 kB / 0.9017 GB, free: 48.91 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-05/2.03, allocations: 23.47 kB / 0.9017 GB, free: 48.91 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.15e-05/2.03, allocations: 102.9 kB / 0.9018 GB, free: 48.83 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.759e-06/2.03, allocations: 1.375 kB / 0.9018 GB, free: 48.83 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001077/2.031, allocations: 217.4 kB / 0.902 GB, free: 48.82 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 1 * 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.001702/2.033, allocations: 0.811 MB / 0.9028 GB, free: 48.69 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005985/2.034, allocations: 320.7 kB / 0.9031 GB, free: 48.69 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.828e-06/2.034, allocations: 2.344 kB / 0.9031 GB, free: 48.69 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002031/2.034, allocations: 152.9 kB / 0.9032 GB, free: 48.69 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/2.035, allocations: 93.22 kB / 0.9033 GB, free: 48.68 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/2.036, allocations: 0.7869 MB / 0.9041 GB, free: 48.47 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/2.036, allocations: 0.7406 MB / 0.9048 GB, free: 47.77 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/2.036, allocations: 42.08 kB / 0.9048 GB, free: 47.77 MB / 234.7 MB Notification: Performance of SimCode: time 1.769e-06/2.036, allocations: 0 / 0.9048 GB, free: 47.77 MB / 234.7 MB Notification: Performance of Templates: time 0.01441/2.051, allocations: 9.11 MB / 0.9137 GB, free: 46.83 MB / 234.7 MB