Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 0.9691/0.9691, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.006e-05, allocations: 8 kB / 151.4 MB, free: 15.62 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1426, allocations: 25.15 MB / 176.5 MB, free: 32 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.619/3.761, allocations: 1.427 GB / 1.6 GB, free: 28.93 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/3.762, allocations: 70.31 kB / 1.6 GB, free: 28.93 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.503/6.265, allocations: 0.5458 GB / 2.146 GB, free: 12.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.368e-06/6.265, allocations: 0 / 2.146 GB, free: 12.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001161/6.265, allocations: 32.98 kB / 2.146 GB, free: 12.12 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009193/6.274, allocations: 2.523 MB / 2.148 GB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/6.274, allocations: 7.719 kB / 2.148 GB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007017/6.275, allocations: 162.4 kB / 2.148 GB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/6.277, allocations: 0.9617 MB / 2.149 GB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003202/6.278, allocations: 262.6 kB / 2.15 GB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002907/6.278, allocations: 109.8 kB / 2.15 GB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004614/6.283, allocations: 1.984 MB / 2.152 GB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.172e-05/6.283, allocations: 9.359 kB / 2.152 GB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/6.283, allocations: 44.28 kB / 2.152 GB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/6.283, allocations: 105.4 kB / 2.152 GB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004614/6.288, allocations: 2.034 MB / 2.154 GB, free: 10.06 MB / 266.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/6.306, allocations: 8.703 MB / 2.162 GB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003829/6.31, allocations: 1.506 MB / 2.164 GB, free: 6.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/6.312, allocations: 0.9039 MB / 2.165 GB, free: 6.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07924/6.391, allocations: 36.14 MB / 2.2 GB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.818e-05/6.391, allocations: 43.88 kB / 2.2 GB, free: 12.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 5.118e-06/6.391, allocations: 0 / 2.2 GB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.01719/6.408, allocations: 5.369 MB / 2.205 GB, free: 9.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/6.409, allocations: 144.2 kB / 2.205 GB, free: 9.242 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/6.41, allocations: 0.8998 MB / 2.206 GB, free: 8.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003854/6.411, allocations: 45.7 kB / 2.206 GB, free: 8.547 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005523/6.411, allocations: 0.5182 MB / 2.207 GB, free: 8.047 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006748/6.412, allocations: 432 kB / 2.207 GB, free: 7.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/6.412, allocations: 28 kB / 2.207 GB, free: 7.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002259/6.413, allocations: 359.2 kB / 2.208 GB, free: 7.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/6.415, allocations: 0.8421 MB / 2.208 GB, free: 6.543 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/6.417, allocations: 1.069 MB / 2.209 GB, free: 5.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/6.419, allocations: 0.905 MB / 2.21 GB, free: 4.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.053e-06/6.419, allocations: 4 kB / 2.21 GB, free: 4.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.007356/6.427, allocations: 2.636 MB / 2.213 GB, free: 2.418 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/6.427, allocations: 8 kB / 2.213 GB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/6.427, allocations: 4 kB / 2.213 GB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008578/6.435, allocations: 1.692 MB / 2.215 GB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/6.437, allocations: 200.3 kB / 2.215 GB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1979/6.635, allocations: 5.587 MB / 2.22 GB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/6.637, allocations: 150.2 kB / 2.22 GB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004022/6.637, allocations: 66.03 kB / 2.22 GB, free: 39.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 5,3 3,1 5,4 13,5 12,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004804/6.638, allocations: 185.6 kB / 2.221 GB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/6.638, allocations: 128.5 kB / 2.221 GB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009591/6.648, allocations: 4.761 MB / 2.225 GB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.934e-05/6.648, allocations: 38.08 kB / 2.225 GB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/6.648, allocations: 0.875 kB / 2.225 GB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.312e-05/6.648, allocations: 11.09 kB / 2.225 GB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/6.662, allocations: 6.925 MB / 2.232 GB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/6.662, allocations: 4.266 kB / 2.232 GB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/6.663, allocations: 158.8 kB / 2.232 GB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/6.675, allocations: 3.979 MB / 2.236 GB, free: 38.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000414/6.676, allocations: 46.55 kB / 2.236 GB, free: 38.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007672/6.683, allocations: 6.133 MB / 2.242 GB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.422e-06/6.683, allocations: 2.688 kB / 2.242 GB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/6.696, allocations: 6.47 MB / 2.249 GB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006212/6.697, allocations: 271 kB / 2.249 GB, free: 35.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005093/6.697, allocations: 26.12 kB / 2.249 GB, free: 35.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/6.699, allocations: 145.4 kB / 2.249 GB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005141/6.7, allocations: 177.6 kB / 2.249 GB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/6.7, allocations: 57.28 kB / 2.249 GB, free: 35.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001234/6.701, allocations: 0.6956 MB / 2.25 GB, free: 35.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.93e-07/6.701, allocations: 2.625 kB / 2.25 GB, free: 35.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.006811/6.708, allocations: 1.88 MB / 2.252 GB, free: 35.22 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse8.phase,$cse9.phase,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse21.phase,$cse21.region,$cse24.phase,$cse25.phase,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 4,3 6,1 5,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0104/6.719, allocations: 2.473 MB / 2.254 GB, free: 34.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007157/6.726, allocations: 2.602 MB / 2.257 GB, free: 34.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.157e-06/6.726, allocations: 6.188 kB / 2.257 GB, free: 34.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005261/6.731, allocations: 1.733 MB / 2.258 GB, free: 34.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003752/6.735, allocations: 0.6181 MB / 2.259 GB, free: 34.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/6.746, allocations: 3.499 MB / 2.262 GB, free: 34.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/6.747, allocations: 1.402 MB / 2.264 GB, free: 33.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007119/6.748, allocations: 125.5 kB / 2.264 GB, free: 33.56 MB / 298.7 MB Notification: Performance of SimCode: time 1.813e-06/6.748, allocations: 0 / 2.264 GB, free: 33.56 MB / 298.7 MB Notification: Performance of Templates: time 0.298/7.046, allocations: 84.97 MB / 2.347 GB, free: 41.85 MB / 298.7 MB