Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.351e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2563, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9054/1.162, allocations: 404.2 MB / 0.682 GB, free: 20.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/1.162, allocations: 85.89 kB / 0.6821 GB, free: 20.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.18/2.342, allocations: 208.5 MB / 0.8857 GB, free: 66.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.353e-06/2.342, allocations: 6.781 kB / 0.8857 GB, free: 66.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002072/2.342, allocations: 29.06 kB / 0.8857 GB, free: 66.1 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008261/2.35, allocations: 1.794 MB / 0.8874 GB, free: 65.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/2.35, allocations: 13.14 kB / 0.8875 GB, free: 65.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/2.351, allocations: 157.6 kB / 0.8876 GB, free: 65.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003021/2.354, allocations: 0.992 MB / 0.8886 GB, free: 64.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/2.355, allocations: 198.7 kB / 0.8888 GB, free: 64.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004188/2.355, allocations: 58.03 kB / 0.8888 GB, free: 64.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003735/2.359, allocations: 1.606 MB / 0.8904 GB, free: 64.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003862/2.363, allocations: 1.645 MB / 0.892 GB, free: 64.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.263e-05/2.363, allocations: 4.969 kB / 0.892 GB, free: 64.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002179/2.363, allocations: 7.922 kB / 0.892 GB, free: 64.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/2.363, allocations: 98.17 kB / 0.8921 GB, free: 64.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01564/2.379, allocations: 6.564 MB / 0.8985 GB, free: 62.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/2.382, allocations: 1.394 MB / 0.8999 GB, free: 62.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/2.384, allocations: 0.8074 MB / 0.9007 GB, free: 62.49 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007948/2.392, allocations: 3.876 MB / 0.9044 GB, free: 60.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/2.392, allocations: 49.44 kB / 0.9045 GB, free: 60.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 4.605e-06/2.392, allocations: 0 / 0.9045 GB, free: 60.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.02757/2.419, allocations: 6.466 MB / 0.9108 GB, free: 60.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/2.419, allocations: 168.8 kB / 0.911 GB, free: 60.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/2.421, allocations: 0.6584 MB / 0.9116 GB, free: 59.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/2.421, allocations: 29.58 kB / 0.9116 GB, free: 59.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/2.421, allocations: 0.5528 MB / 0.9122 GB, free: 59.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005206/2.422, allocations: 395.9 kB / 0.9126 GB, free: 59.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/2.422, allocations: 0 / 0.9126 GB, free: 59.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/2.422, allocations: 367.5 kB / 0.9129 GB, free: 58.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/2.424, allocations: 0.7223 MB / 0.9136 GB, free: 58.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/2.425, allocations: 0.9879 MB / 0.9146 GB, free: 58.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01316/2.439, allocations: 2.36 MB / 0.9169 GB, free: 58.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.679e-05/2.439, allocations: 3.875 kB / 0.9169 GB, free: 58.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.01779/2.456, allocations: 3.805 MB / 0.9206 GB, free: 58.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004911/2.457, allocations: 2.357 MB / 0.9229 GB, free: 56.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/2.457, allocations: 8.438 kB / 0.9229 GB, free: 56.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00307/2.46, allocations: 1.001 MB / 0.9239 GB, free: 56.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/2.462, allocations: 221.8 kB / 0.9241 GB, free: 56.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/2.472, allocations: 6.597 MB / 0.9305 GB, free: 51.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/2.474, allocations: 72.56 kB / 0.9306 GB, free: 51.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003822/2.474, allocations: 65.42 kB / 0.9307 GB, free: 51.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/2.474, allocations: 5.125 kB / 0.9307 GB, free: 51.94 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01377/2.488, allocations: 3.025 MB / 0.9336 GB, free: 51.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/2.488, allocations: 7.781 kB / 0.9336 GB, free: 51.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/2.491, allocations: 0.6974 MB / 0.9343 GB, free: 51.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/2.492, allocations: 237.9 kB / 0.9345 GB, free: 51.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006939/2.499, allocations: 6.589 MB / 0.941 GB, free: 46.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/2.501, allocations: 63.8 kB / 0.941 GB, free: 46.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002871/2.501, allocations: 61.56 kB / 0.9411 GB, free: 46.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005492/2.501, allocations: 136.7 kB / 0.9412 GB, free: 46.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004063/2.502, allocations: 115.5 kB / 0.9413 GB, free: 46.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/2.513, allocations: 3.066 MB / 0.9443 GB, free: 46.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/2.513, allocations: 19.77 kB / 0.9444 GB, free: 46.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/2.513, allocations: 2.812 kB / 0.9444 GB, free: 46.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.899e-05/2.513, allocations: 10.72 kB / 0.9444 GB, free: 46.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/2.527, allocations: 4.532 MB / 0.9488 GB, free: 44.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/2.527, allocations: 0 / 0.9488 GB, free: 44.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/2.529, allocations: 159.4 kB / 0.9489 GB, free: 44.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003387/2.532, allocations: 1.016 MB / 0.9499 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/2.532, allocations: 21.75 kB / 0.95 GB, free: 44.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/2.543, allocations: 6.592 MB / 0.9564 GB, free: 39.24 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/2.543, allocations: 3.969 kB / 0.9564 GB, free: 39.24 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/2.555, allocations: 4.043 MB / 0.9603 GB, free: 37.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/2.556, allocations: 403.4 kB / 0.9607 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004338/2.557, allocations: 4 kB / 0.9607 GB, free: 37.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/2.559, allocations: 70.66 kB / 0.9608 GB, free: 37.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004864/2.559, allocations: 141.5 kB / 0.9609 GB, free: 37.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000216/2.559, allocations: 55.39 kB / 0.961 GB, free: 37.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000858/2.56, allocations: 492.2 kB / 0.9615 GB, free: 36.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.25e-07/2.56, allocations: 0 / 0.9615 GB, free: 36.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004946/2.565, allocations: 1.05 MB / 0.9625 GB, free: 35.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002845/2.568, allocations: 0.8007 MB / 0.9633 GB, free: 35.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008019/2.576, allocations: 3.414 MB / 0.9666 GB, free: 32.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.642e-06/2.576, allocations: 0 / 0.9666 GB, free: 32.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/2.58, allocations: 1.26 MB / 0.9678 GB, free: 30.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00301/2.583, allocations: 480.1 kB / 0.9683 GB, free: 30.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007665/2.59, allocations: 2.492 MB / 0.9707 GB, free: 28.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009324/2.591, allocations: 1.293 MB / 0.972 GB, free: 27.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007051/2.592, allocations: 127.9 kB / 0.9721 GB, free: 27.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.845e-06/2.592, allocations: 2.812 kB / 0.9721 GB, free: 27.43 MB / 394.7 MB Notification: Performance of Templates: time 0.3098/2.902, allocations: 49.77 MB / 1.021 GB, free: 74.59 MB / 410.7 MB