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_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 270.1 MB / 283.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.363e-05, allocations: 0 / 348.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 61.89 MB / 410.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1/1.113, allocations: 336.4 MB / 0.7292 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/1.113, allocations: 84.95 kB / 0.7292 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.7641/1.877, allocations: 146 MB / 0.8718 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.032e-06/1.877, allocations: 0 / 0.8718 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.161e-05/1.878, allocations: 19.09 kB / 0.8719 GB, free: 140.1 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002863/1.88, allocations: 1.193 MB / 0.873 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/1.881, allocations: 7.531 kB / 0.873 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006543/1.881, allocations: 112.3 kB / 0.8731 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/1.883, allocations: 0.673 MB / 0.8738 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/1.883, allocations: 111.6 kB / 0.8739 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/1.883, allocations: 58.69 kB / 0.874 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/1.885, allocations: 1.007 MB / 0.8749 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/1.885, allocations: 7.734 kB / 0.8749 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/1.885, allocations: 23.62 kB / 0.875 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.155e-05/1.886, allocations: 47.91 kB / 0.875 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/1.887, allocations: 0.8839 MB / 0.8759 GB, free: 138 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007562/1.895, allocations: 4.017 MB / 0.8798 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/1.896, allocations: 0.6395 MB / 0.8804 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007598/1.897, allocations: 407.1 kB / 0.8808 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00394/1.901, allocations: 2.425 MB / 0.8832 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009105/1.902, allocations: 0.4993 MB / 0.8837 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.737e-06/1.902, allocations: 0 / 0.8837 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.008593/1.911, allocations: 2.13 MB / 0.8857 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.69e-05/1.911, allocations: 245.5 kB / 0.886 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002051/1.913, allocations: 0.734 MB / 0.8867 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002563/1.913, allocations: 40.83 kB / 0.8867 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000489/1.914, allocations: 425.6 kB / 0.8871 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000309/1.914, allocations: 181.4 kB / 0.8873 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/1.914, allocations: 11.69 kB / 0.8873 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001103/1.914, allocations: 336.3 kB / 0.8876 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/1.916, allocations: 372.2 kB / 0.888 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/1.917, allocations: 0.5913 MB / 0.8886 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/1.919, allocations: 453.2 kB / 0.889 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/1.919, allocations: 2.969 kB / 0.889 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00485/1.924, allocations: 1.257 MB / 0.8902 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006632/1.924, allocations: 2.476 MB / 0.8927 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/1.924, allocations: 11.23 kB / 0.8927 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/1.926, allocations: 331.4 kB / 0.893 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/1.928, allocations: 147.5 kB / 0.8931 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/1.93, allocations: 1.44 MB / 0.8945 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/1.932, allocations: 68.45 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/1.932, allocations: 38.31 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/1.932, allocations: 2.438 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004621/1.937, allocations: 1.165 MB / 0.8958 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-05/1.937, allocations: 7.812 kB / 0.8958 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/1.939, allocations: 323.1 kB / 0.8961 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/1.94, allocations: 152.1 kB / 0.8962 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/1.942, allocations: 1.423 MB / 0.8976 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/1.944, allocations: 50.59 kB / 0.8977 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/1.944, allocations: 38.55 kB / 0.8977 GB, free: 123.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * 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.0004832/1.945, allocations: 192.5 kB / 0.8979 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/1.945, allocations: 101.1 kB / 0.898 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/1.95, allocations: 1.12 MB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/1.95, allocations: 3.688 kB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.95, allocations: 3.891 kB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/1.95, allocations: 7.906 kB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00661/1.957, allocations: 1.975 MB / 0.901 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.484e-06/1.957, allocations: 0 / 0.901 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000911/1.958, allocations: 80.41 kB / 0.9011 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001705/1.959, allocations: 333.8 kB / 0.9014 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001758/1.96, allocations: 22.36 kB / 0.9014 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/1.962, allocations: 1.431 MB / 0.9028 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.834e-06/1.962, allocations: 80 / 0.9028 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00525/1.967, allocations: 1.598 MB / 0.9044 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/1.968, allocations: 271.9 kB / 0.9047 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/1.969, allocations: 12.12 kB / 0.9047 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/1.97, allocations: 48.14 kB / 0.9047 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/1.97, allocations: 56.38 kB / 0.9048 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/1.97, allocations: 29.22 kB / 0.9048 GB, free: 120 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001462/1.972, allocations: 0.5722 MB / 0.9054 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.149e-06/1.972, allocations: 3.938 kB / 0.9054 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003834/1.976, allocations: 0.6906 MB / 0.906 GB, free: 119.6 MB / 0.5261 GB 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: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002534/1.978, allocations: 0.6482 MB / 0.9067 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005404/1.984, allocations: 1.527 MB / 0.9082 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.566e-06/1.984, allocations: 3.938 kB / 0.9082 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001938/1.986, allocations: 489.2 kB / 0.9086 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/1.989, allocations: 326.2 kB / 0.9089 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005032/1.994, allocations: 1.296 MB / 0.9102 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008494/1.995, allocations: 1.027 MB / 0.9112 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003102/1.998, allocations: 390.2 kB / 0.9116 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/1.998, allocations: 59.42 kB / 0.9116 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of SimCode: time 2.184e-06/1.998, allocations: 4 kB / 0.9116 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.04569/2.044, allocations: 23.19 MB / 0.9343 GB, free: 91.75 MB / 0.5261 GB