Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.061e-05/3.051e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 38.76 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.4329/0.5436, allocations: 37.4 MB / 304.3 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.5539, allocations: 3.582 MB / 307.9 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000674/0.5546, allocations: 6 kB / 307.9 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.5559, allocations: 177.6 kB / 308 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.5573, allocations: 232.1 kB / 308.3 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02193/0.5793, allocations: 4.126 MB / 312.4 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.5812, allocations: 451.3 kB / 312.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003402/0.5816, allocations: 65.81 kB / 312.9 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02009/0.6017, allocations: 5.93 MB / 318.8 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.6029, allocations: 256.4 kB / 319.1 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03146/0.6344, allocations: 8.16 MB / 327.2 MB, free: 160 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004414/0.6389, allocations: 428 kB / 327.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006976/0.6396, allocations: 173.3 kB / 327.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005514/0.6402, allocations: 68 kB / 327.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01426/0.6545, allocations: 3.414 MB / 331.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.6546, allocations: 0 / 331.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.6546, allocations: 0 / 331.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.6546, allocations: 0 / 331.3 MB, free: 12.62 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00667/0.6613, allocations: 1.204 MB / 332.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.6614, allocations: 8.031 kB / 332.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008613/0.6623, allocations: 61.41 kB / 332.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.6635, allocations: 345.4 kB / 332.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/0.6636, allocations: 30.25 kB / 333 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.6638, allocations: 47.02 kB / 333 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.6672, allocations: 0.5272 MB / 333.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/0.6673, allocations: 3.312 kB / 333.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.6675, allocations: 21.44 kB / 333.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.6675, allocations: 8 kB / 333.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003537/0.6711, allocations: 0.6429 MB / 334.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03918/0.7103, allocations: 12.05 MB / 346.3 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/0.7133, allocations: 0.6627 MB / 346.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0321/0.7454, allocations: 10.76 MB / 357.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.907e-05/0.7456, allocations: 42.31 kB / 357.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.278e-06/0.7456, allocations: 0 / 357.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.01287/0.7585, allocations: 2.045 MB / 359.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.7586, allocations: 59.97 kB / 359.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007572/0.7594, allocations: 288.2 kB / 360.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.7596, allocations: 36.39 kB / 360.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.7599, allocations: 257 kB / 360.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/0.7602, allocations: 198.4 kB / 360.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.216e-05/0.7603, allocations: 12.31 kB / 360.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.7605, allocations: 334.8 kB / 360.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008993/0.7614, allocations: 217 kB / 361.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.7629, allocations: 321.1 kB / 361.4 MB, free: 12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.7645, allocations: 256.8 kB / 361.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.7645, allocations: 8 kB / 361.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.004231/0.7688, allocations: 0.6969 MB / 362.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.7689, allocations: 8 kB / 362.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.7689, allocations: 0 / 362.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.77, allocations: 109.2 kB / 362.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.7714, allocations: 121.9 kB / 362.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004964/0.7764, allocations: 3.287 MB / 365.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.7775, allocations: 44.22 kB / 366 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.7777, allocations: 31.94 kB / 366 MB, free: 7.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005588/0.7782, allocations: 186.1 kB / 366.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006519/0.7789, allocations: 43.53 kB / 366.2 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003355/0.7823, allocations: 0.696 MB / 366.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.7824, allocations: 8 kB / 366.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.7824, allocations: 0 / 366.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002709/0.7851, allocations: 0.7715 MB / 367.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006126/0.7913, allocations: 1.376 MB / 369.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/0.7914, allocations: 4 kB / 369.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.7927, allocations: 109.6 kB / 369.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.795, allocations: 156.6 kB / 369.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/0.7953, allocations: 19.98 kB / 369.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008245/0.7961, allocations: 0.6515 MB / 370 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.7961, allocations: 0 / 370 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004203/0.8004, allocations: 0.9989 MB / 371 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.8008, allocations: 120.6 kB / 371.1 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.801, allocations: 15.95 kB / 371.1 MB, free: 1.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.8021, allocations: 35.97 kB / 371.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.8023, allocations: 36.52 kB / 371.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.8024, allocations: 35.97 kB / 371.2 MB, free: 1.703 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000566/0.803, allocations: 237.9 kB / 371.5 MB, free: 1.465 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.803, allocations: 2.812 kB / 371.5 MB, free: 1.465 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.007146/0.8102, allocations: 1.28 MB / 372.8 MB, free: 188 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01245/0.8227, allocations: 1.549 MB / 374.3 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003297/0.8261, allocations: 0.7952 MB / 375.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.8261, allocations: 0 / 375.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.8275, allocations: 306.3 kB / 375.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00355/0.8311, allocations: 281.7 kB / 375.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.8356, allocations: 1.387 MB / 377.1 MB, free: 11.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006034/0.8363, allocations: 0.8493 MB / 377.9 MB, free: 11.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.8367, allocations: 63.36 kB / 378 MB, free: 11.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8367, allocations: 0 / 378 MB, free: 11.04 MB / 314.7 MB Notification: Performance of Templates: time 0.09022/0.9269, allocations: 37.52 MB / 415.5 MB, free: 5.488 MB / 346.7 MB