Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 1.943/1.943, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.13e-05/6.171e-05, allocations: 7.984 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1302, allocations: 48.7 MB / 321.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8383/0.9685, allocations: 323.8 MB / 0.6304 GB, free: 47.78 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.9688, allocations: 90.61 kB / 0.6305 GB, free: 47.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6826/1.651, allocations: 141.4 MB / 0.7686 GB, free: 79.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.128e-06/1.651, allocations: 0 / 0.7686 GB, free: 79.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.497e-05/1.651, allocations: 20 kB / 0.7686 GB, free: 79.89 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003123/1.655, allocations: 1.175 MB / 0.7698 GB, free: 78.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/1.655, allocations: 15.97 kB / 0.7698 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000685/1.655, allocations: 110.8 kB / 0.7699 GB, free: 78.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/1.657, allocations: 0.6994 MB / 0.7706 GB, free: 77.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/1.657, allocations: 108.6 kB / 0.7707 GB, free: 77.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/1.658, allocations: 52 kB / 0.7707 GB, free: 77.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/1.66, allocations: 0.9826 MB / 0.7717 GB, free: 76.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/1.66, allocations: 8 kB / 0.7717 GB, free: 76.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/1.66, allocations: 34.58 kB / 0.7717 GB, free: 76.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-05/1.66, allocations: 57.17 kB / 0.7718 GB, free: 76.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001785/1.662, allocations: 0.8654 MB / 0.7726 GB, free: 75.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007409/1.669, allocations: 3.98 MB / 0.7765 GB, free: 71.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/1.67, allocations: 0.6163 MB / 0.7771 GB, free: 70.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006922/1.671, allocations: 385.9 kB / 0.7775 GB, free: 70.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003846/1.675, allocations: 2.369 MB / 0.7798 GB, free: 67.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007354/1.676, allocations: 425.7 kB / 0.7802 GB, free: 67.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 5.098e-06/1.676, allocations: 4 kB / 0.7802 GB, free: 67.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.004937/1.681, allocations: 2.012 MB / 0.7822 GB, free: 65.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/1.681, allocations: 162.2 kB / 0.7823 GB, free: 65.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/1.682, allocations: 0.6758 MB / 0.783 GB, free: 64.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/1.682, allocations: 37.7 kB / 0.783 GB, free: 64.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/1.682, allocations: 455.1 kB / 0.7835 GB, free: 64.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/1.683, allocations: 170.9 kB / 0.7836 GB, free: 63.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.044e-05/1.683, allocations: 16 kB / 0.7837 GB, free: 63.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.677e-05/1.683, allocations: 338.8 kB / 0.784 GB, free: 63.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000692/1.683, allocations: 349.6 kB / 0.7843 GB, free: 63.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007874/1.684, allocations: 0.6173 MB / 0.7849 GB, free: 62.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007947/1.685, allocations: 452.6 kB / 0.7853 GB, free: 61.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.879e-06/1.685, allocations: 4 kB / 0.7853 GB, free: 61.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002607/1.688, allocations: 1.193 MB / 0.7865 GB, free: 60.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006801/1.688, allocations: 3.43 MB / 0.7899 GB, free: 57.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/1.688, allocations: 8 kB / 0.7899 GB, free: 57.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/1.69, allocations: 345.5 kB / 0.7902 GB, free: 56.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008563/1.691, allocations: 159.7 kB / 0.7904 GB, free: 56.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/1.692, allocations: 1.444 MB / 0.7918 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/1.693, allocations: 39.98 kB / 0.7918 GB, free: 55.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/1.693, allocations: 51.92 kB / 0.7918 GB, free: 54.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/1.693, allocations: 4 kB / 0.7919 GB, free: 54.97 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002319/1.696, allocations: 1.079 MB / 0.7929 GB, free: 53.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/1.696, allocations: 16.08 kB / 0.7929 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007887/1.696, allocations: 249.6 kB / 0.7932 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007789/1.697, allocations: 155.7 kB / 0.7933 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/1.699, allocations: 2.328 MB / 0.7956 GB, free: 50.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007891/1.7, allocations: 48.14 kB / 0.7956 GB, free: 50.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/1.7, allocations: 47.98 kB / 0.7957 GB, free: 50.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003069/1.701, allocations: 195.1 kB / 0.7959 GB, free: 50.67 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/1.701, allocations: 90.97 kB / 0.7959 GB, free: 50.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/1.703, allocations: 1.056 MB / 0.797 GB, free: 49.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.559e-06/1.703, allocations: 12 kB / 0.797 GB, free: 49.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.703e-06/1.703, allocations: 7.953 kB / 0.797 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/1.703, allocations: 7.922 kB / 0.797 GB, free: 49.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/1.707, allocations: 1.876 MB / 0.7988 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.925e-06/1.707, allocations: 0 / 0.7988 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005487/1.708, allocations: 79.89 kB / 0.7989 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/1.709, allocations: 325.5 kB / 0.7992 GB, free: 47.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.775e-05/1.709, allocations: 16 kB / 0.7992 GB, free: 47.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/1.71, allocations: 1.426 MB / 0.8006 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.459e-06/1.71, allocations: 0 / 0.8006 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/1.713, allocations: 1.515 MB / 0.8021 GB, free: 44.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005433/1.714, allocations: 244.2 kB / 0.8023 GB, free: 43.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/1.714, allocations: 31.81 kB / 0.8024 GB, free: 43.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007444/1.715, allocations: 43.88 kB / 0.8024 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/1.715, allocations: 44.36 kB / 0.8025 GB, free: 43.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.572e-05/1.715, allocations: 27.98 kB / 0.8025 GB, free: 43.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008135/1.716, allocations: 0.5225 MB / 0.803 GB, free: 43.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.79e-07/1.716, allocations: 4 kB / 0.803 GB, free: 43.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002487/1.718, allocations: 0.6465 MB / 0.8036 GB, free: 42.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/1.72, allocations: 0.6429 MB / 0.8043 GB, free: 41.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00319/1.723, allocations: 1.499 MB / 0.8057 GB, free: 40.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.202e-06/1.723, allocations: 4 kB / 0.8057 GB, free: 40.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/1.724, allocations: 445.2 kB / 0.8062 GB, free: 39.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/1.726, allocations: 270.9 kB / 0.8064 GB, free: 39.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/1.729, allocations: 1.384 MB / 0.8078 GB, free: 38.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/1.73, allocations: 1.017 MB / 0.8088 GB, free: 37.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/1.73, allocations: 75.34 kB / 0.8088 GB, free: 37.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.818e-06/1.73, allocations: 4 kB / 0.8088 GB, free: 37.12 MB / 426.7 MB Notification: Performance of Templates: time 0.03069/1.761, allocations: 21.66 MB / 0.83 GB, free: 15.49 MB / 426.7 MB