Running command: translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadModel(Modelica): time 2.064/2.064, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.331e-05/3.322e-05, allocations: 4 kB / 294.5 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 50.41 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005753/0.1171, allocations: 3.608 MB / 348.6 MB, free: 5.328 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.1196, allocations: 1.485 MB / 350.1 MB, free: 3.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.083e-05/0.1197, allocations: 0 / 350.1 MB, free: 3.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.12, allocations: 35.81 kB / 350.1 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003174/0.1203, allocations: 95.69 kB / 350.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000872/0.1212, allocations: 215.4 kB / 350.4 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.1215, allocations: 123.8 kB / 350.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.196e-05/0.1215, allocations: 4 kB / 350.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.1218, allocations: 107.7 kB / 350.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.122, allocations: 59.83 kB / 350.7 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003558/0.1224, allocations: 87.89 kB / 350.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.454e-05/0.1224, allocations: 12 kB / 350.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.22e-05/0.1225, allocations: 31.89 kB / 350.8 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.397e-05/0.1226, allocations: 20 kB / 350.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.1229, allocations: 140 kB / 351 MB, free: 2.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.123, allocations: 0 / 351 MB, free: 2.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.123, allocations: 0 / 351 MB, free: 2.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.123, allocations: 0 / 351 MB, free: 2.926 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001225/0.1242, allocations: 451.2 kB / 351.4 MB, free: 2.434 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1243, allocations: 16.03 kB / 351.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.1245, allocations: 15.91 kB / 351.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.1248, allocations: 210.7 kB / 351.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1249, allocations: 12.28 kB / 351.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.1249, allocations: 12 kB / 351.7 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006083/0.1255, allocations: 220.6 kB / 351.9 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.1256, allocations: 3.938 kB / 351.9 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.1256, allocations: 15.95 kB / 351.9 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1256, allocations: 4 kB / 351.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005857/0.1262, allocations: 147.8 kB / 352 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1281, allocations: 0.9324 MB / 353 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.1287, allocations: 150.8 kB / 353.1 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000731/0.1295, allocations: 0.5112 MB / 353.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.1295, allocations: 42.55 kB / 353.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.595e-06/0.1295, allocations: 0 / 353.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.004157/0.1337, allocations: 0.7622 MB / 354.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.1338, allocations: 51.41 kB / 354.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.134, allocations: 136.9 kB / 354.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.134, allocations: 33.7 kB / 354.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1342, allocations: 214.2 kB / 354.9 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.1343, allocations: 71 kB / 354.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.1343, allocations: 4 kB / 354.9 MB, free: 14.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1345, allocations: 330.8 kB / 355.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004245/0.1349, allocations: 75.94 kB / 355.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.1354, allocations: 197.7 kB / 355.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/0.1359, allocations: 108.9 kB / 355.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1359, allocations: 0 / 355.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001188/0.1371, allocations: 316.8 kB / 355.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1372, allocations: 8 kB / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1372, allocations: 4 kB / 356 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.1372, allocations: 4 kB / 356 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006738/0.1379, allocations: 83.83 kB / 356 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1379, allocations: 4.281 kB / 356.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003966/0.1384, allocations: 23.98 kB / 356.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/0.1384, allocations: 19.92 kB / 356.1 MB, free: 13.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001698/0.1386, allocations: 133.7 kB / 356.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/0.1387, allocations: 15.81 kB / 356.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.1398, allocations: 242.6 kB / 356.5 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.1399, allocations: 8 kB / 356.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1399, allocations: 0 / 356.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1399, allocations: 0 / 356.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.1419, allocations: 0.599 MB / 357.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.142, allocations: 0 / 357.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005287/0.1425, allocations: 47.95 kB / 357.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.1425, allocations: 8.125 kB / 357.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.1426, allocations: 11.98 kB / 357.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.1426, allocations: 0 / 357.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.1426, allocations: 11.89 kB / 357.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.144, allocations: 445.4 kB / 357.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.22e-05/0.1441, allocations: 92.94 kB / 357.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.1442, allocations: 4 kB / 357.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.1446, allocations: 15.98 kB / 357.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.1447, allocations: 15.92 kB / 357.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.1447, allocations: 8 kB / 357.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001082/0.1449, allocations: 109.9 kB / 357.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1449, allocations: 4.062 kB / 357.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005182/0.1454, allocations: 63.94 kB / 357.9 MB, free: 11.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (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): 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002715/0.1457, allocations: 123.2 kB / 358 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1467, allocations: 218.4 kB / 358.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.1467, allocations: 0 / 358.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.1472, allocations: 96.88 kB / 358.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.1477, allocations: 36.45 kB / 358.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1493, allocations: 0.5788 MB / 358.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1496, allocations: 0.7206 MB / 359.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.1498, allocations: 31.36 kB / 359.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.1498, allocations: 0 / 359.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of Templates: time 0.006942/0.1568, allocations: 2.59 MB / 362.3 MB, free: 6.973 MB / 298.7 MB