Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.864e-05/2.884e-05, allocations: 2.812 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09122, allocations: 50.4 MB / 342.5 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8668/0.9581, allocations: 321.8 MB / 0.6487 GB, free: 38.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.9584, allocations: 78.89 kB / 0.6488 GB, free: 38.33 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6742/1.633, allocations: 134.3 MB / 0.78 GB, free: 81.92 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.633, allocations: 3.938 kB / 0.78 GB, free: 81.92 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.114e-05/1.633, allocations: 20 kB / 0.78 GB, free: 81.9 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002953/1.636, allocations: 1.083 MB / 0.7811 GB, free: 80.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/1.636, allocations: 8.031 kB / 0.7811 GB, free: 80.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005562/1.636, allocations: 91.06 kB / 0.7812 GB, free: 80.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/1.638, allocations: 0.6597 MB / 0.7818 GB, free: 79.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/1.638, allocations: 104.7 kB / 0.7819 GB, free: 79.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/1.638, allocations: 51.98 kB / 0.7819 GB, free: 79.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/1.64, allocations: 0.8712 MB / 0.7828 GB, free: 78.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/1.64, allocations: 7.906 kB / 0.7828 GB, free: 78.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/1.64, allocations: 23.98 kB / 0.7828 GB, free: 78.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.286e-05/1.64, allocations: 57.22 kB / 0.7829 GB, free: 78.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/1.642, allocations: 0.803 MB / 0.7837 GB, free: 78.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006954/1.649, allocations: 3.289 MB / 0.7869 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/1.65, allocations: 0.652 MB / 0.7875 GB, free: 73.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006701/1.651, allocations: 362.4 kB / 0.7879 GB, free: 73.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003499/1.655, allocations: 2.051 MB / 0.7899 GB, free: 71.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/1.655, allocations: 39.12 kB / 0.7899 GB, free: 71.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 4.001e-06/1.655, allocations: 0 / 0.7899 GB, free: 71.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.005792/1.661, allocations: 2.226 MB / 0.7921 GB, free: 68.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/1.661, allocations: 85.62 kB / 0.7922 GB, free: 68.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009746/1.662, allocations: 0.5894 MB / 0.7927 GB, free: 68.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/1.662, allocations: 41.7 kB / 0.7928 GB, free: 68.24 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/1.662, allocations: 358.9 kB / 0.7931 GB, free: 67.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/1.662, allocations: 228.7 kB / 0.7933 GB, free: 67.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/1.662, allocations: 19.94 kB / 0.7934 GB, free: 67.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.665e-05/1.662, allocations: 338.8 kB / 0.7937 GB, free: 67.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007193/1.663, allocations: 353.4 kB / 0.794 GB, free: 66.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007797/1.664, allocations: 495.2 kB / 0.7945 GB, free: 66.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007915/1.665, allocations: 401.9 kB / 0.7949 GB, free: 66.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.611e-06/1.665, allocations: 0 / 0.7949 GB, free: 66.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002362/1.667, allocations: 1.067 MB / 0.7959 GB, free: 64.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003198/1.667, allocations: 1.575 MB / 0.7974 GB, free: 63.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.668, allocations: 7.938 kB / 0.7975 GB, free: 63.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/1.669, allocations: 436.5 kB / 0.7979 GB, free: 62.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009074/1.67, allocations: 151.8 kB / 0.798 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/1.671, allocations: 1.028 MB / 0.799 GB, free: 61.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000985/1.672, allocations: 47.95 kB / 0.7991 GB, free: 61.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/1.673, allocations: 31.98 kB / 0.7991 GB, free: 61.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/1.673, allocations: 4 kB / 0.7991 GB, free: 61.52 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002194/1.675, allocations: 0.9719 MB / 0.8001 GB, free: 60.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.675, allocations: 8.031 kB / 0.8001 GB, free: 60.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000845/1.676, allocations: 304.6 kB / 0.8003 GB, free: 60.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008896/1.677, allocations: 163.8 kB / 0.8005 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/1.678, allocations: 0.8957 MB / 0.8014 GB, free: 59.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/1.678, allocations: 39.89 kB / 0.8014 GB, free: 59.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.679, allocations: 39.98 kB / 0.8015 GB, free: 59.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002745/1.679, allocations: 152.8 kB / 0.8016 GB, free: 58.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/1.679, allocations: 79 kB / 0.8017 GB, free: 58.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/1.682, allocations: 1.086 MB / 0.8027 GB, free: 57.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/1.682, allocations: 8 kB / 0.8027 GB, free: 57.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.205e-06/1.682, allocations: 0 / 0.8027 GB, free: 57.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/1.682, allocations: 7.984 kB / 0.8028 GB, free: 57.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/1.686, allocations: 1.982 MB / 0.8047 GB, free: 55.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/1.686, allocations: 7.953 kB / 0.8047 GB, free: 55.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/1.686, allocations: 115.9 kB / 0.8048 GB, free: 55.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/1.688, allocations: 440.5 kB / 0.8052 GB, free: 55.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/1.688, allocations: 19.98 kB / 0.8052 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/1.69, allocations: 1.026 MB / 0.8062 GB, free: 54.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.69, allocations: 0 / 0.8062 GB, free: 54.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003006/1.693, allocations: 1.588 MB / 0.8078 GB, free: 52.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006151/1.693, allocations: 244 kB / 0.808 GB, free: 52.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/1.693, allocations: 16 kB / 0.808 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/1.694, allocations: 47.81 kB / 0.8081 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.695, allocations: 60.69 kB / 0.8082 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.695, allocations: 27.98 kB / 0.8082 GB, free: 52.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007433/1.695, allocations: 479 kB / 0.8086 GB, free: 51.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.68e-07/1.695, allocations: 0 / 0.8086 GB, free: 51.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002302/1.698, allocations: 0.64 MB / 0.8093 GB, free: 50.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001674/1.699, allocations: 0.6073 MB / 0.8099 GB, free: 50.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003444/1.703, allocations: 1.331 MB / 0.8112 GB, free: 49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.071e-06/1.703, allocations: 2.125 kB / 0.8112 GB, free: 49 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/1.704, allocations: 454.7 kB / 0.8116 GB, free: 48.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.706, allocations: 349 kB / 0.8119 GB, free: 48.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/1.71, allocations: 1.381 MB / 0.8133 GB, free: 46.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/1.71, allocations: 1.003 MB / 0.8142 GB, free: 45.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/1.711, allocations: 83.34 kB / 0.8143 GB, free: 45.69 MB / 442.7 MB Notification: Performance of SimCode: time 2.331e-06/1.711, allocations: 0 / 0.8143 GB, free: 45.69 MB / 442.7 MB Notification: Performance of Templates: time 0.02919/1.74, allocations: 19.22 MB / 0.8331 GB, free: 26.57 MB / 442.7 MB