Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.877e-05, allocations: 2.031 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09248, allocations: 50.42 MB / 342.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8693/0.9618, allocations: 321.9 MB / 0.6489 GB, free: 38.25 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.9621, allocations: 84.2 kB / 0.649 GB, free: 38.21 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.399/2.361, allocations: 274.5 MB / 0.917 GB, free: 67.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.253e-06/2.361, allocations: 0 / 0.917 GB, free: 67.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001798/2.361, allocations: 40.48 kB / 0.9171 GB, free: 67.48 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006469/2.368, allocations: 1.807 MB / 0.9188 GB, free: 66.58 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/2.368, allocations: 8.75 kB / 0.9188 GB, free: 66.58 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/2.369, allocations: 175.5 kB / 0.919 GB, free: 66.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003532/2.373, allocations: 1.12 MB / 0.9201 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/2.373, allocations: 182.7 kB / 0.9203 GB, free: 66.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004406/2.373, allocations: 98.31 kB / 0.9204 GB, free: 66.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004486/2.378, allocations: 1.719 MB / 0.922 GB, free: 65.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.564e-05/2.378, allocations: 7.656 kB / 0.9221 GB, free: 65.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/2.378, allocations: 52.36 kB / 0.9221 GB, free: 65.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/2.379, allocations: 108 kB / 0.9222 GB, free: 65.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004478/2.383, allocations: 1.723 MB / 0.9239 GB, free: 65.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/2.4, allocations: 6.38 MB / 0.9301 GB, free: 63.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/2.402, allocations: 1.139 MB / 0.9312 GB, free: 63.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/2.404, allocations: 0.7088 MB / 0.9319 GB, free: 63.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008961/2.413, allocations: 4.267 MB / 0.9361 GB, free: 61.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/2.413, allocations: 46.66 kB / 0.9361 GB, free: 61.42 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001462/2.415, allocations: 210.9 kB / 0.9363 GB, free: 61.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 6.316e-06/2.415, allocations: 0 / 0.9363 GB, free: 61.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01252/2.427, allocations: 3.777 MB / 0.94 GB, free: 60.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/2.427, allocations: 139.6 kB / 0.9402 GB, free: 60.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/2.429, allocations: 1.086 MB / 0.9412 GB, free: 60.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003578/2.43, allocations: 50.97 kB / 0.9413 GB, free: 60.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/2.43, allocations: 0.5798 MB / 0.9418 GB, free: 60.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000558/2.431, allocations: 388.5 kB / 0.9422 GB, free: 59.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/2.431, allocations: 28.56 kB / 0.9422 GB, free: 59.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/2.431, allocations: 367.6 kB / 0.9426 GB, free: 59.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/2.433, allocations: 0.6203 MB / 0.9432 GB, free: 59.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/2.435, allocations: 0.9497 MB / 0.9441 GB, free: 58.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/2.437, allocations: 0.7415 MB / 0.9448 GB, free: 58.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/2.437, allocations: 6.484 kB / 0.9448 GB, free: 58.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005394/2.442, allocations: 1.973 MB / 0.9468 GB, free: 57.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007368/2.443, allocations: 3.49 MB / 0.9502 GB, free: 54.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/2.443, allocations: 9.344 kB / 0.9502 GB, free: 54.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008733/2.452, allocations: 1.209 MB / 0.9514 GB, free: 53.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/2.454, allocations: 295.2 kB / 0.9516 GB, free: 53.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/2.457, allocations: 1.515 MB / 0.9531 GB, free: 53.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/2.459, allocations: 88.14 kB / 0.9532 GB, free: 53.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005419/2.46, allocations: 77.11 kB / 0.9533 GB, free: 53.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/2.46, allocations: 3.188 kB / 0.9533 GB, free: 53.03 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005169/2.465, allocations: 1.829 MB / 0.9551 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.854e-05/2.465, allocations: 7.5 kB / 0.9551 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007783/2.473, allocations: 1.049 MB / 0.9561 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/2.475, allocations: 293.2 kB / 0.9564 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002492/2.477, allocations: 1.338 MB / 0.9577 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/2.479, allocations: 95.83 kB / 0.9578 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003532/2.48, allocations: 64.47 kB / 0.9578 GB, free: 51.44 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005407/2.48, allocations: 193.7 kB / 0.958 GB, free: 51.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004728/2.481, allocations: 145.4 kB / 0.9582 GB, free: 51.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005377/2.486, allocations: 1.996 MB / 0.9601 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/2.486, allocations: 12.84 kB / 0.9601 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.912e-06/2.486, allocations: 2.406 kB / 0.9601 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/2.486, allocations: 3.891 kB / 0.9601 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00841/2.495, allocations: 3.415 MB / 0.9635 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/2.495, allocations: 0 / 0.9635 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/2.496, allocations: 196 kB / 0.9637 GB, free: 49.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004705/2.501, allocations: 0.9376 MB / 0.9646 GB, free: 48.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002991/2.501, allocations: 31.48 kB / 0.9646 GB, free: 48.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002856/2.504, allocations: 1.561 MB / 0.9661 GB, free: 47.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.103e-06/2.504, allocations: 3.938 kB / 0.9661 GB, free: 47.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006076/2.51, allocations: 2.705 MB / 0.9688 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/2.511, allocations: 402.1 kB / 0.9692 GB, free: 45.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005306/2.512, allocations: 28 kB / 0.9692 GB, free: 45.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/2.514, allocations: 75.38 kB / 0.9693 GB, free: 45.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/2.514, allocations: 99.83 kB / 0.9694 GB, free: 45.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/2.514, allocations: 58.45 kB / 0.9694 GB, free: 45.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00161/2.516, allocations: 0.8228 MB / 0.9702 GB, free: 44.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.36e-07/2.516, allocations: 0 / 0.9702 GB, free: 44.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005067/2.521, allocations: 1.249 MB / 0.9714 GB, free: 43.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003329/2.524, allocations: 1.097 MB / 0.9725 GB, free: 42.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007473/2.532, allocations: 2.516 MB / 0.975 GB, free: 40.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.869e-06/2.532, allocations: 0 / 0.975 GB, free: 40.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/2.534, allocations: 0.8033 MB / 0.9757 GB, free: 39.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004522/2.539, allocations: 0.5946 MB / 0.9763 GB, free: 38.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006769/2.546, allocations: 2.488 MB / 0.9788 GB, free: 36.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008566/2.547, allocations: 1.31 MB / 0.98 GB, free: 35.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007612/2.547, allocations: 144 kB / 0.9802 GB, free: 35.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.778e-06/2.547, allocations: 4 kB / 0.9802 GB, free: 35.61 MB / 442.7 MB Notification: Performance of Templates: time 0.05551/2.603, allocations: 35.51 MB / 1.015 GB, free: 2.789 MB / 442.7 MB