Running command: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.076e-05, allocations: 6.188 kB / 228.1 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08627, allocations: 38.78 MB / 266.9 MB, free: 1.145 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4235/0.5099, allocations: 121.2 MB / 388.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003538/0.5135, allocations: 2.065 MB / 390.1 MB, free: 7.488 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.635e-05/0.5136, allocations: 8 kB / 390.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.5137, allocations: 20.59 kB / 390.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.5148, allocations: 232.1 kB / 390.4 MB, free: 7.234 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.515, allocations: 47.78 kB / 390.4 MB, free: 7.188 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.5152, allocations: 39.94 kB / 390.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.5152, allocations: 0 / 390.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.5154, allocations: 43.84 kB / 390.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.022e-05/0.5155, allocations: 31.91 kB / 390.6 MB, free: 7.074 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.5168, allocations: 379.5 kB / 390.9 MB, free: 6.703 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.417e-05/0.5169, allocations: 20 kB / 390.9 MB, free: 6.684 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.922e-05/0.5169, allocations: 8 kB / 391 MB, free: 6.676 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.04e-05/0.517, allocations: 8 kB / 391 MB, free: 6.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.5175, allocations: 208.2 kB / 391.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.5175, allocations: 0 / 391.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5175, allocations: 0 / 391.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.5176, allocations: 0 / 391.2 MB, free: 6.473 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001118/0.5187, allocations: 431 kB / 391.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.5187, allocations: 8.031 kB / 391.6 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.5298, allocations: 452.6 kB / 392 MB, free: 5.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.53, allocations: 167.5 kB / 392.2 MB, free: 5.352 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.53, allocations: 11.94 kB / 392.2 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.5301, allocations: 8 kB / 392.2 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.5315, allocations: 297.3 kB / 392.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.5316, allocations: 0 / 392.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.5316, allocations: 8 kB / 392.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.5317, allocations: 0 / 392.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.5331, allocations: 271.8 kB / 392.8 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.5347, allocations: 432.3 kB / 393.2 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.5366, allocations: 202.4 kB / 393.4 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.5367, allocations: 4 kB / 393.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.5367, allocations: 38.56 kB / 393.4 MB, free: 4.031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.385e-06/0.5368, allocations: 0 / 393.4 MB, free: 4.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.002934/0.5397, allocations: 421.5 kB / 393.9 MB, free: 3.613 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.756e-05/0.5398, allocations: 63.25 kB / 393.9 MB, free: 3.539 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.506e-05/0.5399, allocations: 96.92 kB / 394 MB, free: 3.438 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.54, allocations: 29.7 kB / 394 MB, free: 3.402 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.5401, allocations: 162.2 kB / 394.2 MB, free: 3.242 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.5402, allocations: 67.03 kB / 394.3 MB, free: 3.176 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.5402, allocations: 4 kB / 394.3 MB, free: 3.172 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5403, allocations: 322.8 kB / 394.6 MB, free: 2.848 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.5408, allocations: 80.25 kB / 394.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005114/0.5414, allocations: 117 kB / 394.8 MB, free: 2.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/0.5419, allocations: 85.98 kB / 394.9 MB, free: 2.559 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5419, allocations: 0 / 394.9 MB, free: 2.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001205/0.5431, allocations: 245.3 kB / 395.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.5431, allocations: 9.984 kB / 395.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5432, allocations: 0 / 395.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.5432, allocations: 4 kB / 395.1 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.5439, allocations: 47.95 kB / 395.2 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.5439, allocations: 8.062 kB / 395.2 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.5444, allocations: 15.98 kB / 395.2 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.5445, allocations: 15.98 kB / 395.2 MB, free: 2.215 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001593/0.5447, allocations: 117.8 kB / 395.3 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.5447, allocations: 7.906 kB / 395.3 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.5462, allocations: 274 kB / 395.6 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.5462, allocations: 4 kB / 395.6 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5463, allocations: 4.625 kB / 395.6 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.5463, allocations: 3.984 kB / 395.6 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.5484, allocations: 0.5777 MB / 396.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5484, allocations: 0 / 396.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006301/0.549, allocations: 44.78 kB / 396.2 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/0.5491, allocations: 4 kB / 396.2 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.5491, allocations: 11.92 kB / 396.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.5491, allocations: 4 kB / 396.2 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5491, allocations: 0 / 396.2 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.5503, allocations: 352.4 kB / 396.6 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.5504, allocations: 93 kB / 396.7 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/0.5505, allocations: 12 kB / 396.7 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.551, allocations: 7.984 kB / 396.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.551, allocations: 19.94 kB / 396.7 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.5511, allocations: 8 kB / 396.7 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.501e-05/0.5511, allocations: 83.27 kB / 396.8 MB, free: 492 kB / 314.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5512, allocations: 0 / 396.8 MB, free: 492 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004526/0.5516, allocations: 48 kB / 396.8 MB, free: 444 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0003131/0.5519, allocations: 119.2 kB / 397 MB, free: 316 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.5531, allocations: 201.8 kB / 397.2 MB, free: 116 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.5531, allocations: 3.938 kB / 397.2 MB, free: 112 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.5536, allocations: 99.88 kB / 397.3 MB, free: 12 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005305/0.5542, allocations: 36.52 kB / 397.3 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.5554, allocations: 334.1 kB / 397.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.5558, allocations: 0.7013 MB / 398.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/0.5561, allocations: 39.41 kB / 398.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5561, allocations: 0 / 398.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of Templates: time 0.006407/0.5625, allocations: 2.315 MB / 400.7 MB, free: 12.54 MB / 330.7 MB