Running command: translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadModel(Modelica): time 0.9546/0.9546, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.496e-05, allocations: 4 kB / 151.4 MB, free: 15.64 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.141, allocations: 25.15 MB / 176.5 MB, free: 4 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8564/0.9974, allocations: 296.4 MB / 472.9 MB, free: 56.14 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.9976, allocations: 62.91 kB / 473 MB, free: 56.11 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09182/1.089, allocations: 31.05 MB / 0.4922 GB, free: 28.93 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.986e-06/1.089, allocations: 224 / 0.4922 GB, free: 28.93 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.18e-05/1.09, allocations: 4 kB / 0.4922 GB, free: 28.93 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0003735/1.09, allocations: 394.5 kB / 0.4926 GB, free: 28.5 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/1.09, allocations: 11.97 kB / 0.4926 GB, free: 28.48 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/1.09, allocations: 7.906 kB / 0.4926 GB, free: 28.48 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/1.09, allocations: 190.9 kB / 0.4928 GB, free: 28.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/1.09, allocations: 8 kB / 0.4928 GB, free: 28.24 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/1.09, allocations: 12 kB / 0.4928 GB, free: 28.23 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/1.09, allocations: 131.1 kB / 0.4929 GB, free: 28.09 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/1.091, allocations: 3.938 kB / 0.493 GB, free: 28.09 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/1.091, allocations: 4 kB / 0.493 GB, free: 28.08 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/1.091, allocations: 3.953 kB / 0.493 GB, free: 28.08 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/1.091, allocations: 95.95 kB / 0.493 GB, free: 27.98 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.0007748/1.092, allocations: 0.6442 MB / 0.4937 GB, free: 27.26 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/1.092, allocations: 130.6 kB / 0.4938 GB, free: 27.12 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.493e-05/1.092, allocations: 48.84 kB / 0.4939 GB, free: 27.07 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004119/1.092, allocations: 0.5747 MB / 0.4944 GB, free: 26.37 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/1.092, allocations: 38.56 kB / 0.4944 GB, free: 26.32 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 2.632e-06/1.092, allocations: 0 / 0.4944 GB, free: 26.32 MB / 234.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004685/1.097, allocations: 1.034 MB / 0.4955 GB, free: 25.21 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/1.097, allocations: 51.41 kB / 0.4955 GB, free: 25.14 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.971e-05/1.097, allocations: 105 kB / 0.4956 GB, free: 25.04 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/1.097, allocations: 29.7 kB / 0.4956 GB, free: 25 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.505e-05/1.097, allocations: 158.8 kB / 0.4958 GB, free: 24.84 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.884e-05/1.097, allocations: 74.94 kB / 0.4959 GB, free: 24.77 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/1.097, allocations: 8 kB / 0.4959 GB, free: 24.76 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.205e-05/1.097, allocations: 314.8 kB / 0.4962 GB, free: 24.45 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/1.098, allocations: 48.19 kB / 0.4962 GB, free: 24.4 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/1.098, allocations: 83.55 kB / 0.4963 GB, free: 24.3 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/1.098, allocations: 70.17 kB / 0.4964 GB, free: 24.24 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.207e-06/1.098, allocations: 0 / 0.4964 GB, free: 24.24 MB / 234.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004697/1.098, allocations: 228.5 kB / 0.4966 GB, free: 24.01 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.098, allocations: 4 kB / 0.4966 GB, free: 24.01 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.899e-06/1.098, allocations: 4 kB / 0.4966 GB, free: 24 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/1.099, allocations: 48.83 kB / 0.4966 GB, free: 23.95 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/1.099, allocations: 55.84 kB / 0.4967 GB, free: 23.9 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003509/1.099, allocations: 0.5641 MB / 0.4972 GB, free: 23.31 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/1.099, allocations: 8.031 kB / 0.4972 GB, free: 23.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.653e-05/1.1, allocations: 24 kB / 0.4973 GB, free: 23.28 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.T:VARIABLE(min = max(200.0, 200.0) max = min(6000.0, 6000.0) start = 300.0 unit = "K" nominal = 500.0 stateSelect=StateSelect.prefer ) "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 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001716/1.1, allocations: 135.6 kB / 0.4974 GB, free: 23.14 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/1.1, allocations: 11.91 kB / 0.4974 GB, free: 23.13 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000887/1.101, allocations: 320.2 kB / 0.4977 GB, free: 22.8 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.408e-06/1.101, allocations: 0 / 0.4977 GB, free: 22.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.844e-06/1.101, allocations: 7.984 kB / 0.4977 GB, free: 22.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.224e-06/1.101, allocations: 0 / 0.4977 GB, free: 22.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008638/1.102, allocations: 0.5538 MB / 0.4983 GB, free: 22.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.102, allocations: 8.094 kB / 0.4983 GB, free: 22.17 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/1.102, allocations: 63.89 kB / 0.4983 GB, free: 22.11 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.88e-05/1.102, allocations: 20.84 kB / 0.4983 GB, free: 22.08 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/1.102, allocations: 11.98 kB / 0.4984 GB, free: 22.07 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007438/1.103, allocations: 1.265 MB / 0.4996 GB, free: 20.68 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.953e-06/1.103, allocations: 4.016 kB / 0.4996 GB, free: 20.67 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/1.103, allocations: 427.2 kB / 0.5 GB, free: 20.21 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/1.104, allocations: 85.05 kB / 0.5001 GB, free: 20.11 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/1.104, allocations: 8 kB / 0.5001 GB, free: 20.1 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/1.104, allocations: 7.938 kB / 0.5001 GB, free: 20.09 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.408e-05/1.104, allocations: 28.03 kB / 0.5001 GB, free: 20.07 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.784e-05/1.104, allocations: 23.98 kB / 0.5002 GB, free: 20.04 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.421e-05/1.104, allocations: 87.28 kB / 0.5002 GB, free: 19.96 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.4e-07/1.104, allocations: 0 / 0.5002 GB, free: 19.96 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0007415/1.105, allocations: 147.9 kB / 0.5004 GB, free: 19.81 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 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 (20): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001052/1.106, allocations: 0.6101 MB / 0.501 GB, free: 19.2 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004269/1.106, allocations: 167.1 kB / 0.5011 GB, free: 19.04 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.373e-06/1.106, allocations: 0 / 0.5011 GB, free: 19.04 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/1.107, allocations: 197.5 kB / 0.5013 GB, free: 18.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/1.107, allocations: 57.84 kB / 0.5014 GB, free: 18.78 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/1.108, allocations: 335.8 kB / 0.5017 GB, free: 18.42 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/1.108, allocations: 0.7165 MB / 0.5024 GB, free: 17.68 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/1.108, allocations: 55.41 kB / 0.5024 GB, free: 17.62 MB / 234.7 MB Notification: Performance of SimCode: time 1.461e-06/1.108, allocations: 4 kB / 0.5025 GB, free: 17.62 MB / 234.7 MB Notification: Performance of Templates: time 0.01579/1.124, allocations: 7.248 MB / 0.5095 GB, free: 10.38 MB / 234.7 MB