Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.428e-05, allocations: 6.031 kB / 292.1 MB, free: 8.867 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.0921, allocations: 50.41 MB / 342.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.192/1.284, allocations: 412.3 MB / 0.7372 GB, free: 128 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/1.285, allocations: 83.95 kB / 0.7373 GB, free: 127.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9579/2.242, allocations: 216.8 MB / 0.949 GB, free: 77.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.946e-06/2.243, allocations: 0 / 0.949 GB, free: 77.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001519/2.243, allocations: 36.92 kB / 0.949 GB, free: 77.74 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006456/2.249, allocations: 1.795 MB / 0.9508 GB, free: 76.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/2.249, allocations: 7.75 kB / 0.9508 GB, free: 76.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/2.25, allocations: 173.2 kB / 0.951 GB, free: 76.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/2.253, allocations: 0.9842 MB / 0.9519 GB, free: 75.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/2.254, allocations: 235.5 kB / 0.9522 GB, free: 75.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005101/2.254, allocations: 101.2 kB / 0.9523 GB, free: 75.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004076/2.258, allocations: 1.763 MB / 0.954 GB, free: 73.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.396e-05/2.258, allocations: 4 kB / 0.954 GB, free: 73.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002393/2.259, allocations: 39.83 kB / 0.954 GB, free: 73.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/2.259, allocations: 102 kB / 0.9541 GB, free: 73.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003901/2.263, allocations: 1.71 MB / 0.9558 GB, free: 71.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/2.279, allocations: 6.807 MB / 0.9624 GB, free: 64.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003346/2.282, allocations: 1.41 MB / 0.9638 GB, free: 63.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/2.284, allocations: 0.8318 MB / 0.9646 GB, free: 62.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007679/2.292, allocations: 3.946 MB / 0.9685 GB, free: 58.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/2.292, allocations: 47.56 kB / 0.9685 GB, free: 58.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 4.907e-06/2.292, allocations: 3.938 kB / 0.9685 GB, free: 58.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01343/2.305, allocations: 4.604 MB / 0.973 GB, free: 53.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/2.305, allocations: 167.2 kB / 0.9732 GB, free: 53.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/2.307, allocations: 0.9788 MB / 0.9741 GB, free: 52.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003815/2.308, allocations: 49.7 kB / 0.9742 GB, free: 52.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/2.308, allocations: 0.4984 MB / 0.9747 GB, free: 51.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005705/2.309, allocations: 417.8 kB / 0.9751 GB, free: 51.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/2.309, allocations: 36 kB / 0.9751 GB, free: 51.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/2.309, allocations: 358.8 kB / 0.9754 GB, free: 51.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/2.31, allocations: 0.7457 MB / 0.9762 GB, free: 50.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/2.312, allocations: 0.9745 MB / 0.9771 GB, free: 49.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/2.314, allocations: 0.8168 MB / 0.9779 GB, free: 48.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.228e-06/2.314, allocations: 0 / 0.9779 GB, free: 48.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.005898/2.32, allocations: 2.3 MB / 0.9802 GB, free: 46.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004463/2.321, allocations: 2.189 MB / 0.9823 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/2.321, allocations: 4 kB / 0.9823 GB, free: 43.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005098/2.326, allocations: 1.191 MB / 0.9835 GB, free: 42.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/2.327, allocations: 215.6 kB / 0.9837 GB, free: 42.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006917/2.334, allocations: 6.171 MB / 0.9897 GB, free: 35.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/2.336, allocations: 99.89 kB / 0.9898 GB, free: 35.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003531/2.337, allocations: 55.97 kB / 0.9899 GB, free: 35.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/2.337, allocations: 6.031 kB / 0.9899 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005435/2.342, allocations: 2.182 MB / 0.992 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/2.342, allocations: 8.25 kB / 0.992 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003261/2.346, allocations: 0.9681 MB / 0.9929 GB, free: 32.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/2.347, allocations: 223.8 kB / 0.9932 GB, free: 32.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006452/2.354, allocations: 6.01 MB / 0.999 GB, free: 25.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/2.355, allocations: 95.84 kB / 0.9991 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/2.356, allocations: 59.97 kB / 0.9992 GB, free: 25.8 MB / 442.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: 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 (128): * Single equations (assignments): 123 * 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.0005084/2.356, allocations: 192.5 kB / 0.9994 GB, free: 25.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004442/2.357, allocations: 138.4 kB / 0.9995 GB, free: 25.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006291/2.363, allocations: 2.572 MB / 1.002 GB, free: 22.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.2e-05/2.363, allocations: 19.98 kB / 1.002 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.743e-06/2.363, allocations: 0 / 1.002 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-05/2.363, allocations: 7.938 kB / 1.002 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/2.373, allocations: 4.151 MB / 1.006 GB, free: 18.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-05/2.373, allocations: 3.953 kB / 1.006 GB, free: 18.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/2.375, allocations: 147.8 kB / 1.006 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00476/2.379, allocations: 1.205 MB / 1.007 GB, free: 17.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003972/2.38, allocations: 35.97 kB / 1.007 GB, free: 17.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006946/2.387, allocations: 6.2 MB / 1.013 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.1e-06/2.387, allocations: 0 / 1.013 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0079/2.395, allocations: 3.542 MB / 1.017 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/2.396, allocations: 431.2 kB / 1.017 GB, free: 6.691 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005231/2.397, allocations: 28 kB / 1.017 GB, free: 6.664 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/2.399, allocations: 107.7 kB / 1.017 GB, free: 6.559 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005163/2.399, allocations: 137.1 kB / 1.018 GB, free: 6.426 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/2.399, allocations: 51.97 kB / 1.018 GB, free: 6.375 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001434/2.401, allocations: 0.7431 MB / 1.018 GB, free: 5.621 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.208e-06/2.401, allocations: 0 / 1.018 GB, free: 5.621 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005289/2.406, allocations: 1.124 MB / 1.019 GB, free: 4.5 MB / 442.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.003032/2.409, allocations: 0.8404 MB / 1.02 GB, free: 3.703 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009007/2.418, allocations: 3.447 MB / 1.024 GB, free: 228 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.07e-06/2.418, allocations: 4 kB / 1.024 GB, free: 224 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2672/2.686, allocations: 1.279 MB / 1.025 GB, free: 76.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003919/2.69, allocations: 0.5425 MB / 1.025 GB, free: 76.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009093/2.699, allocations: 2.596 MB / 1.028 GB, free: 76.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/2.7, allocations: 1.286 MB / 1.029 GB, free: 75.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008883/2.701, allocations: 141 kB / 1.029 GB, free: 75.74 MB / 442.7 MB Notification: Performance of SimCode: time 1.914e-06/2.701, allocations: 0 / 1.029 GB, free: 75.74 MB / 442.7 MB Notification: Performance of Templates: time 0.07729/2.779, allocations: 50.83 MB / 1.079 GB, free: 74.21 MB / 442.7 MB