Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.176/2.176, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.75e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003553/0.1158, allocations: 2.142 MB / 347.1 MB, free: 6.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1175, allocations: 0.6586 MB / 347.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.1177, allocations: 3.938 kB / 347.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.1179, allocations: 43.73 kB / 347.8 MB, free: 6.086 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.1184, allocations: 143.5 kB / 348 MB, free: 5.945 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.1187, allocations: 63.91 kB / 348 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004967/0.1192, allocations: 231.8 kB / 348.2 MB, free: 5.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.1194, allocations: 57.44 kB / 348.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.1196, allocations: 123.7 kB / 348.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.1199, allocations: 131.6 kB / 348.6 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.49e-05/0.12, allocations: 24 kB / 348.6 MB, free: 5.324 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.886e-05/0.1201, allocations: 19.94 kB / 348.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.631e-05/0.1202, allocations: 63.73 kB / 348.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.1203, allocations: 36 kB / 348.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004446/0.1208, allocations: 295.4 kB / 349 MB, free: 4.918 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1208, allocations: 0 / 349 MB, free: 4.918 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1208, allocations: 0 / 349 MB, free: 4.918 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1208, allocations: 0 / 349 MB, free: 4.918 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001344/0.1222, allocations: 0.5825 MB / 349.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1222, allocations: 11.97 kB / 349.6 MB, free: 4.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.1224, allocations: 39.62 kB / 349.6 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004787/0.1229, allocations: 266.4 kB / 349.9 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.123, allocations: 58.12 kB / 349.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.504e-05/0.1231, allocations: 20 kB / 350 MB, free: 3.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.1239, allocations: 317.4 kB / 350.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.124, allocations: 7.953 kB / 350.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.124, allocations: 8 kB / 350.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1241, allocations: 8 kB / 350.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007328/0.1248, allocations: 205.6 kB / 350.5 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.1271, allocations: 0.8064 MB / 351.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.1284, allocations: 298.9 kB / 351.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.1284, allocations: 11.98 kB / 351.6 MB, free: 2.105 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.1285, allocations: 42.52 kB / 351.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.376e-06/0.1285, allocations: 4 kB / 351.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001799/0.1303, allocations: 484.4 kB / 352.1 MB, free: 1.551 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/0.1305, allocations: 320.5 kB / 352.4 MB, free: 1.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/0.1309, allocations: 226.2 kB / 352.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.644e-05/0.131, allocations: 37.7 kB / 352.7 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.1312, allocations: 219.2 kB / 352.9 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1313, allocations: 106.4 kB / 353 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.1314, allocations: 7.938 kB / 353 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1315, allocations: 322.8 kB / 353.3 MB, free: 252 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003805/0.1319, allocations: 99.95 kB / 353.4 MB, free: 152 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005304/0.1325, allocations: 216.2 kB / 353.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004346/0.1329, allocations: 143 kB / 353.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1329, allocations: 0 / 353.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001112/0.1341, allocations: 354.1 kB / 354.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.1341, allocations: 37.66 kB / 354.2 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1342, allocations: 0 / 354.2 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.1344, allocations: 40.84 kB / 354.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/0.1363, allocations: 203.8 kB / 354.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006078/0.1424, allocations: 3.102 MB / 357.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005765/0.1431, allocations: 35.91 kB / 357.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.1431, allocations: 15.94 kB / 357.6 MB, free: 11.68 MB / 298.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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002687/0.1434, allocations: 145.8 kB / 357.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.1435, allocations: 43.56 kB / 357.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1437, allocations: 47.02 kB / 357.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1437, allocations: 0 / 357.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.1437, allocations: 4 kB / 357.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001104/0.1448, allocations: 0.6544 MB / 358.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/0.1455, allocations: 377.2 kB / 358.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1455, allocations: 0 / 358.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002545/0.1481, allocations: 255.7 kB / 359.1 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001352/0.1482, allocations: 28.8 kB / 359.1 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.1483, allocations: 4 kB / 359.1 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005237/0.1535, allocations: 2.926 MB / 362 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1536, allocations: 4 kB / 362 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.1551, allocations: 0.5118 MB / 362.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002432/0.1554, allocations: 140.6 kB / 362.7 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.805e-05/0.1555, allocations: 8 kB / 362.7 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.156, allocations: 23.92 kB / 362.7 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.1561, allocations: 31.89 kB / 362.7 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.1562, allocations: 4 kB / 362.7 MB, free: 6.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000286/0.1565, allocations: 186 kB / 362.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1565, allocations: 3.938 kB / 362.9 MB, free: 5.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006035/0.1571, allocations: 103.9 kB / 363 MB, free: 5.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001952/0.1573, allocations: 114.2 kB / 363.1 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002606/0.1599, allocations: 0.5644 MB / 363.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.16, allocations: 0 / 363.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.1624, allocations: 422.9 kB / 364.1 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.1632, allocations: 72.59 kB / 364.2 MB, free: 4.527 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.1662, allocations: 1.046 MB / 365.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/0.1667, allocations: 0.7794 MB / 366 MB, free: 2.645 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.1669, allocations: 31.44 kB / 366 MB, free: 2.613 MB / 298.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1669, allocations: 0 / 366 MB, free: 2.613 MB / 298.7 MB Notification: Performance of Templates: time 0.01388/0.1808, allocations: 6.277 MB / 372.3 MB, free: 12.36 MB / 314.7 MB