Running command: translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.291e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08663/0.08669, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.4486/0.5354, allocations: 121.3 MB / 388.2 MB, free: 9.309 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.5371, allocations: 0.7787 MB / 389 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/0.5372, allocations: 0 / 389 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002343/0.5375, allocations: 27.88 kB / 389 MB, free: 8.504 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006166/0.5381, allocations: 180.4 kB / 389.2 MB, free: 8.328 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.5385, allocations: 91.77 kB / 389.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002047/0.5388, allocations: 79.83 kB / 389.3 MB, free: 8.16 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.5388, allocations: 3.984 kB / 389.3 MB, free: 8.156 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.5391, allocations: 79.77 kB / 389.4 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.5392, allocations: 43.89 kB / 389.5 MB, free: 8.035 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008712/0.5401, allocations: 279.7 kB / 389.7 MB, free: 7.762 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.624e-05/0.5402, allocations: 20 kB / 389.8 MB, free: 7.742 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.5403, allocations: 15.92 kB / 389.8 MB, free: 7.727 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.5403, allocations: 12 kB / 389.8 MB, free: 7.715 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005028/0.5409, allocations: 200.2 kB / 390 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.5409, allocations: 0 / 390 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5409, allocations: 0 / 390 MB, free: 7.527 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.5409, allocations: 4 kB / 390 MB, free: 7.523 MB / 314.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.0005951/0.5415, allocations: 383.2 kB / 390.4 MB, free: 7.102 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.5416, allocations: 8.031 kB / 390.4 MB, free: 7.094 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003478/0.5451, allocations: 188.1 kB / 390.6 MB, free: 6.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.5455, allocations: 211.4 kB / 390.8 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.5455, allocations: 4 kB / 390.8 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-05/0.5456, allocations: 11.91 kB / 390.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.5464, allocations: 224.1 kB / 391 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.5464, allocations: 0 / 391 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.5465, allocations: 0 / 391 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.5465, allocations: 4 kB / 391 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007553/0.5473, allocations: 167.8 kB / 391.2 MB, free: 6.246 MB / 314.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.001613/0.5489, allocations: 0.5892 MB / 391.7 MB, free: 5.598 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005482/0.5495, allocations: 146.5 kB / 391.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.5495, allocations: 7.984 kB / 391.9 MB, free: 5.438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.5496, allocations: 30.56 kB / 391.9 MB, free: 5.398 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.896e-06/0.5496, allocations: 4 kB / 391.9 MB, free: 5.395 MB / 314.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.009125/0.5587, allocations: 1.3 MB / 393.2 MB, free: 4.004 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.5588, allocations: 55.41 kB / 393.3 MB, free: 3.938 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.5589, allocations: 105 kB / 393.4 MB, free: 3.828 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.559, allocations: 33.7 kB / 393.4 MB, free: 3.789 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.5591, allocations: 158.4 kB / 393.6 MB, free: 3.633 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.5592, allocations: 63.02 kB / 393.6 MB, free: 3.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.5592, allocations: 7.938 kB / 393.6 MB, free: 3.562 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5594, allocations: 322.8 kB / 394 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.5597, allocations: 71.95 kB / 394 MB, free: 3.168 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.56, allocations: 103.5 kB / 394.1 MB, free: 3.055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.5603, allocations: 80.67 kB / 394.2 MB, free: 2.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5603, allocations: 4 kB / 394.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008303/0.5611, allocations: 251.2 kB / 394.5 MB, free: 2.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.5612, allocations: 9.562 kB / 394.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.5612, allocations: 4.094 kB / 394.5 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002496/0.5614, allocations: 52.77 kB / 394.5 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005707/0.562, allocations: 51.95 kB / 394.6 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005812/0.5626, allocations: 0.568 MB / 395.1 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.5629, allocations: 4.094 kB / 395.2 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.855e-05/0.563, allocations: 28 kB / 395.2 MB, free: 1.98 MB / 314.7 MB 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.0001695/0.5632, allocations: 125.8 kB / 395.3 MB, free: 1.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.574e-05/0.5633, allocations: 11.81 kB / 395.3 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.5648, allocations: 348.4 kB / 395.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.5649, allocations: 0 / 395.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.5649, allocations: 0 / 395.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.5649, allocations: 11.98 kB / 395.7 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.5664, allocations: 0.6263 MB / 396.3 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.5664, allocations: 4 kB / 396.3 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/0.5671, allocations: 63.89 kB / 396.4 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.5672, allocations: 20.94 kB / 396.4 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.895e-05/0.5673, allocations: 19.94 kB / 396.4 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.5686, allocations: 1.272 MB / 397.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.5686, allocations: 0 / 397.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.5699, allocations: 466.6 kB / 398.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.5699, allocations: 88.95 kB / 398.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.053e-05/0.57, allocations: 8 kB / 398.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.5704, allocations: 15.94 kB / 398.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.5705, allocations: 23.97 kB / 398.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.997e-05/0.5706, allocations: 24 kB / 398.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.601e-05/0.5707, allocations: 99.61 kB / 398.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5707, allocations: 0 / 398.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005763/0.5712, allocations: 76 kB / 398.5 MB, free: 14.42 MB / 330.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 (21): * Single equations (assignments): 20 * 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.0005239/0.5718, allocations: 159.1 kB / 398.6 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007919/0.5726, allocations: 199.8 kB / 398.8 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5726, allocations: 0 / 398.8 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.5732, allocations: 222.9 kB / 399 MB, free: 13.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.5737, allocations: 47.84 kB / 399.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.5751, allocations: 0.5762 MB / 399.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.5755, allocations: 0.7165 MB / 400.4 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004126/0.5759, allocations: 59.41 kB / 400.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5759, allocations: 0 / 400.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of Templates: time 0.01016/0.5861, allocations: 3.926 MB / 404.3 MB, free: 8.441 MB / 330.7 MB