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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.23/2.23, allocations: 270.1 MB / 283.6 MB, free: 3.102 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.36e-05, allocations: 9.906 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 61.89 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.125/1.236, allocations: 336.4 MB / 0.7291 GB, free: 70.73 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/1.237, allocations: 86.69 kB / 0.7292 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.9438/2.181, allocations: 146 MB / 0.8718 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.403e-06/2.181, allocations: 0 / 0.8718 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.143e-05/2.181, allocations: 19.75 kB / 0.8718 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.002952/2.184, allocations: 1.191 MB / 0.873 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/2.184, allocations: 10.47 kB / 0.873 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006752/2.184, allocations: 104.9 kB / 0.8731 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/2.186, allocations: 0.68 MB / 0.8738 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/2.186, allocations: 106 kB / 0.8739 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/2.187, allocations: 62.44 kB / 0.8739 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/2.189, allocations: 1.008 MB / 0.8749 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/2.189, allocations: 0 / 0.8749 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/2.189, allocations: 27.03 kB / 0.8749 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-05/2.189, allocations: 51.28 kB / 0.875 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/2.191, allocations: 0.8826 MB / 0.8759 GB, free: 138 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007767/2.199, allocations: 4.026 MB / 0.8798 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/2.2, allocations: 0.628 MB / 0.8804 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007474/2.201, allocations: 411.6 kB / 0.8808 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004149/2.205, allocations: 2.421 MB / 0.8832 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009038/2.206, allocations: 0.5007 MB / 0.8836 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.641e-06/2.206, allocations: 0 / 0.8836 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005238/2.211, allocations: 2.138 MB / 0.8857 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/2.211, allocations: 240.6 kB / 0.886 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/2.212, allocations: 0.7314 MB / 0.8867 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001354/2.213, allocations: 40.08 kB / 0.8867 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003239/2.213, allocations: 424.5 kB / 0.8871 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/2.213, allocations: 180.3 kB / 0.8873 GB, free: 131 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/2.213, allocations: 15.34 kB / 0.8873 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.776e-05/2.213, allocations: 340.5 kB / 0.8876 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007777/2.214, allocations: 366.5 kB / 0.888 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008565/2.215, allocations: 0.5878 MB / 0.8886 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008163/2.216, allocations: 459.7 kB / 0.889 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.299e-06/2.216, allocations: 3.406 kB / 0.889 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002946/2.219, allocations: 1.252 MB / 0.8902 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005067/2.219, allocations: 2.471 MB / 0.8926 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/2.219, allocations: 11.58 kB / 0.8926 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/2.221, allocations: 340.2 kB / 0.893 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008332/2.221, allocations: 143.8 kB / 0.8931 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/2.223, allocations: 1.444 MB / 0.8945 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/2.224, allocations: 58.66 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/2.224, allocations: 43.31 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/2.224, allocations: 8 kB / 0.8946 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002698/2.227, allocations: 1.166 MB / 0.8958 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/2.227, allocations: 7.094 kB / 0.8958 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/2.228, allocations: 321.2 kB / 0.8961 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008523/2.229, allocations: 148.5 kB / 0.8962 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/2.23, allocations: 1.421 MB / 0.8976 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/2.232, allocations: 46.39 kB / 0.8976 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/2.232, allocations: 46.11 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.000332/2.232, allocations: 192.3 kB / 0.8979 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/2.232, allocations: 97.94 kB / 0.898 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002796/2.235, allocations: 1.135 MB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-06/2.235, allocations: 7.25 kB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.856e-06/2.235, allocations: 0 / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/2.235, allocations: 3.656 kB / 0.8991 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/2.239, allocations: 1.972 MB / 0.901 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.773e-06/2.239, allocations: 7.547 kB / 0.901 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006185/2.24, allocations: 76.58 kB / 0.9011 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/2.241, allocations: 332.9 kB / 0.9014 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/2.241, allocations: 23.22 kB / 0.9014 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/2.243, allocations: 1.427 MB / 0.9028 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.872e-06/2.243, allocations: 0 / 0.9028 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003221/2.246, allocations: 1.605 MB / 0.9044 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007019/2.247, allocations: 261 kB / 0.9046 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/2.247, allocations: 17.09 kB / 0.9047 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000823/2.248, allocations: 48.05 kB / 0.9047 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/2.248, allocations: 65.42 kB / 0.9048 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/2.248, allocations: 30.89 kB / 0.9048 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009512/2.249, allocations: 0.5716 MB / 0.9053 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.29e-07/2.249, allocations: 0 / 0.9053 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002402/2.251, allocations: 0.6903 MB / 0.906 GB, free: 119.7 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.001776/2.253, allocations: 0.6323 MB / 0.9066 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003463/2.257, allocations: 1.531 MB / 0.9081 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.419e-06/2.257, allocations: 0 / 0.9081 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00116/2.258, allocations: 498.5 kB / 0.9086 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/2.26, allocations: 323.3 kB / 0.9089 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/2.263, allocations: 1.296 MB / 0.9102 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/2.264, allocations: 1.031 MB / 0.9112 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001839/2.265, allocations: 385.4 kB / 0.9116 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/2.266, allocations: 63.41 kB / 0.9116 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of SimCode: time 3.637e-06/2.266, allocations: 0 / 0.9116 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.04651/2.312, allocations: 23.2 MB / 0.9343 GB, free: 91.81 MB / 0.5261 GB