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 1.008/1.008, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.014e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07082/0.07088, allocations: 25.18 MB / 179.7 MB, free: 9.625 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.629/0.7, allocations: 125.9 MB / 305.6 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.7015, allocations: 0.8065 MB / 306.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.6e-05/0.7016, allocations: 1.797 kB / 306.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.7019, allocations: 30.41 kB / 306.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007354/0.7026, allocations: 187.2 kB / 306.6 MB, free: 15.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.703, allocations: 94.44 kB / 306.7 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.7032, allocations: 84.03 kB / 306.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.7033, allocations: 4.094 kB / 306.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.7036, allocations: 75.5 kB / 306.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.7037, allocations: 41.8 kB / 306.9 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.7048, allocations: 290.2 kB / 307.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.232e-05/0.7049, allocations: 14.97 kB / 307.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.85e-05/0.705, allocations: 20.91 kB / 307.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.223e-05/0.7051, allocations: 10.31 kB / 307.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.7056, allocations: 194.6 kB / 307.4 MB, free: 15.58 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.7056, allocations: 4 kB / 307.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7056, allocations: 0.8438 kB / 307.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.7057, allocations: 0 / 307.4 MB, free: 15.57 MB / 250.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.0006068/0.7063, allocations: 382.6 kB / 307.8 MB, free: 15.2 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.7063, allocations: 9.375 kB / 307.8 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.7064, allocations: 12.44 kB / 307.8 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.7067, allocations: 184.1 kB / 308 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.7067, allocations: 5.25 kB / 308 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.7067, allocations: 12.09 kB / 308 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.7071, allocations: 134.6 kB / 308.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.7071, allocations: 0 / 308.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.7071, allocations: 7.312 kB / 308.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.7071, allocations: 2.812 kB / 308.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.7074, allocations: 102.8 kB / 308.2 MB, free: 14.93 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.001185/0.7086, allocations: 0.6512 MB / 308.9 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.709, allocations: 145.9 kB / 309 MB, free: 14.33 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007195/0.7097, allocations: 0.5765 MB / 309.6 MB, free: 13.67 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.7098, allocations: 38.11 kB / 309.6 MB, free: 13.63 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.7098, allocations: 0 / 309.6 MB, free: 13.63 MB / 250.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.008087/0.7179, allocations: 1.198 MB / 310.8 MB, free: 13.14 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.718, allocations: 53.19 kB / 310.9 MB, free: 13.07 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.7181, allocations: 104.7 kB / 311 MB, free: 12.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.7182, allocations: 32.27 kB / 311 MB, free: 12.95 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.513e-05/0.7183, allocations: 170.2 kB / 311.2 MB, free: 12.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.7184, allocations: 65.02 kB / 311.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.922e-05/0.7184, allocations: 4.375 kB / 311.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.7186, allocations: 318.9 kB / 311.6 MB, free: 12.44 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.7187, allocations: 50.97 kB / 311.6 MB, free: 12.44 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.7189, allocations: 81.58 kB / 311.7 MB, free: 12.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.7191, allocations: 64.03 kB / 311.8 MB, free: 12.4 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.7191, allocations: 5.938 kB / 311.8 MB, free: 12.4 MB / 250.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006179/0.7197, allocations: 233.8 kB / 312 MB, free: 12.35 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.7198, allocations: 3.75 kB / 312 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.7198, allocations: 1.969 kB / 312 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.7201, allocations: 53.45 kB / 312.1 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.7205, allocations: 53.69 kB / 312.1 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005764/0.7211, allocations: 0.5655 MB / 312.7 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.7212, allocations: 5.156 kB / 312.7 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.7213, allocations: 27.59 kB / 312.7 MB, free: 11.82 MB / 250.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" fixed = true nominal = 500.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real medium.p:VARIABLE(flow=false min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" fixed = true 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.0002901/0.7216, allocations: 151.6 kB / 312.9 MB, free: 11.69 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.7217, allocations: 10.97 kB / 312.9 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.7229, allocations: 319.9 kB / 313.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-06/0.7229, allocations: 6.156 kB / 313.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7229, allocations: 0 / 313.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.7229, allocations: 0 / 313.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.7241, allocations: 0.5635 MB / 313.7 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.7242, allocations: 2.25 kB / 313.7 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.7246, allocations: 57.39 kB / 313.8 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.7247, allocations: 20.58 kB / 313.8 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.7248, allocations: 25.25 kB / 313.8 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.7261, allocations: 1.268 MB / 315.1 MB, free: 10 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.7262, allocations: 14.17 kB / 315.1 MB, free: 9.988 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009361/0.7271, allocations: 430.8 kB / 315.6 MB, free: 9.758 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.7272, allocations: 86.45 kB / 315.6 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.853e-05/0.7273, allocations: 11.08 kB / 315.6 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.7275, allocations: 2.375 kB / 315.6 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.7276, allocations: 26.12 kB / 315.7 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/0.7277, allocations: 27.31 kB / 315.7 MB, free: 9.656 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.7277, allocations: 89.06 kB / 315.8 MB, free: 9.582 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7278, allocations: 0 / 315.8 MB, free: 9.582 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000736/0.7285, allocations: 113.7 kB / 315.9 MB, free: 9.566 MB / 250.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.0008261/0.7293, allocations: 215.9 kB / 316.1 MB, free: 9.457 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006479/0.73, allocations: 176.3 kB / 316.3 MB, free: 9.449 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.73, allocations: 3.938 kB / 316.3 MB, free: 9.445 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004378/0.7305, allocations: 206.9 kB / 316.5 MB, free: 9.332 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005753/0.7311, allocations: 42.05 kB / 316.5 MB, free: 9.332 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.7322, allocations: 0.5606 MB / 317.1 MB, free: 8.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.7326, allocations: 0.7115 MB / 317.8 MB, free: 8.281 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003278/0.733, allocations: 51.16 kB / 317.9 MB, free: 8.273 MB / 250.7 MB Notification: Performance of SimCode: time 1.182e-06/0.733, allocations: 0 / 317.9 MB, free: 8.273 MB / 250.7 MB Notification: Performance of Templates: time 0.01377/0.7468, allocations: 4.737 MB / 322.6 MB, free: 6.551 MB / 250.7 MB