Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 171.2 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.603e-05/3.613e-05, allocations: 4 kB / 228.1 MB, free: 8 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.387/0.4976, allocations: 47.69 MB / 314.6 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.5102, allocations: 3.835 MB / 318.4 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.5113, allocations: 7.219 kB / 318.4 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.5124, allocations: 251 kB / 318.7 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.5138, allocations: 332.5 kB / 319 MB, free: 3.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01572/0.5295, allocations: 4.288 MB / 323.3 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00177/0.5313, allocations: 0.6219 MB / 323.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.5316, allocations: 106.4 kB / 324 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.533, allocations: 0.492 MB / 324.5 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008218/0.5338, allocations: 363.4 kB / 324.9 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0225/0.5563, allocations: 8.246 MB / 333.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003259/0.5596, allocations: 442 kB / 333.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006663/0.5603, allocations: 243.4 kB / 333.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005008/0.5609, allocations: 92.38 kB / 333.9 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.5716, allocations: 3.693 MB / 337.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.5717, allocations: 0 / 337.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5717, allocations: 4 kB / 337.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.5717, allocations: 0 / 337.6 MB, free: 10.3 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004959/0.5767, allocations: 1.349 MB / 338.9 MB, free: 8.906 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.5767, allocations: 8.031 kB / 338.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006384/0.5774, allocations: 83.23 kB / 339 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.5784, allocations: 432.9 kB / 339.4 MB, free: 8.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/0.5785, allocations: 49.25 kB / 339.5 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001841/0.5787, allocations: 72 kB / 339.5 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00285/0.5816, allocations: 0.717 MB / 340.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.5817, allocations: 0 / 340.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.5818, allocations: 28 kB / 340.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.5819, allocations: 16 kB / 340.3 MB, free: 7.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003128/0.585, allocations: 0.899 MB / 341.2 MB, free: 6.562 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02962/0.6147, allocations: 12.76 MB / 353.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002768/0.6175, allocations: 0.8758 MB / 354.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/0.6407, allocations: 11.11 MB / 365.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/0.6408, allocations: 43.22 kB / 366 MB, free: 9.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=78): time 3.737e-06/0.6408, allocations: 0 / 366 MB, free: 9.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=88): time 0.01628/0.6571, allocations: 3.293 MB / 369.3 MB, free: 6.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.6572, allocations: 64.41 kB / 369.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006304/0.6579, allocations: 319.6 kB / 369.6 MB, free: 5.652 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001837/0.6581, allocations: 45.7 kB / 369.7 MB, free: 5.602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.6583, allocations: 287.2 kB / 370 MB, free: 5.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004198/0.6588, allocations: 307.5 kB / 370.3 MB, free: 5.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.063e-05/0.6589, allocations: 16 kB / 370.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.6591, allocations: 350.8 kB / 370.6 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.6601, allocations: 341.8 kB / 371 MB, free: 4.309 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/0.6621, allocations: 463.3 kB / 371.4 MB, free: 3.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.6648, allocations: 410.9 kB / 371.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.6649, allocations: 0 / 371.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.006948/0.6718, allocations: 1.035 MB / 372.9 MB, free: 2.371 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.6719, allocations: 9.875 kB / 372.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.672, allocations: 8.25 kB / 372.9 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001965/0.6739, allocations: 155.3 kB / 373 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/0.6764, allocations: 191.7 kB / 373.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.6829, allocations: 3.939 MB / 377.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.6846, allocations: 55.91 kB / 377.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/0.6849, allocations: 43.97 kB / 377.2 MB, free: 13.65 MB / 314.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,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.0009091/0.6858, allocations: 225.6 kB / 377.5 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/0.6869, allocations: 63.34 kB / 377.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005691/0.6927, allocations: 1.085 MB / 378.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.539e-05/0.6927, allocations: 8 kB / 378.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.6928, allocations: 0 / 378.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00429/0.6971, allocations: 1.331 MB / 380 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008267/0.7054, allocations: 2.03 MB / 382 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.7055, allocations: 0 / 382 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00204/0.7075, allocations: 171.8 kB / 382.2 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01631/0.7239, allocations: 309.1 kB / 382.5 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002552/0.7242, allocations: 31.98 kB / 382.5 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.7257, allocations: 1.281 MB / 383.8 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/0.7258, allocations: 11.92 kB / 383.8 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01864/0.7444, allocations: 1.497 MB / 385.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.7449, allocations: 132.5 kB / 385.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002937/0.7452, allocations: 31.92 kB / 385.4 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/0.7469, allocations: 55.81 kB / 385.5 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.7471, allocations: 60.92 kB / 385.6 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/0.7474, allocations: 43.95 kB / 385.6 MB, free: 4.949 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006798/0.7481, allocations: 267 kB / 385.9 MB, free: 4.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7481, allocations: 0 / 385.9 MB, free: 4.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.006434/0.7545, allocations: 1.366 MB / 387.2 MB, free: 3.324 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01012/0.7647, allocations: 1.598 MB / 388.8 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003638/0.7684, allocations: 1.133 MB / 390 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.7685, allocations: 0 / 390 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.77, allocations: 0.4918 MB / 390.4 MB, free: 60 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/0.7738, allocations: 386.6 kB / 390.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005252/0.7791, allocations: 2.075 MB / 392.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.7798, allocations: 0.9405 MB / 393.8 MB, free: 12.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.7804, allocations: 87.41 kB / 393.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.7804, allocations: 0 / 393.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of Templates: time 0.102/0.8824, allocations: 44.15 MB / 438.1 MB, free: 300 kB / 362.7 MB