Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadModel(Modelica): time 2.141/2.141, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.931e-05, allocations: 6.812 kB / 292.1 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.0916, allocations: 50.41 MB / 342.5 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3681/0.4597, allocations: 83.24 MB / 425.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.46, allocations: 78.2 kB / 425.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03296/0.493, allocations: 8.287 MB / 434.1 MB, free: 4.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.493, allocations: 4 kB / 434.2 MB, free: 4.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.086e-05/0.4931, allocations: 4 kB / 434.2 MB, free: 4.055 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001014/0.4941, allocations: 0.5813 MB / 434.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4942, allocations: 12.03 kB / 434.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.4943, allocations: 51.38 kB / 434.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.495, allocations: 324.4 kB / 435.1 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.495, allocations: 14.25 kB / 435.1 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.4951, allocations: 22.94 kB / 435.2 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.4956, allocations: 281.5 kB / 435.4 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.4957, allocations: 7.953 kB / 435.4 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.4957, allocations: 6.5 kB / 435.4 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.4958, allocations: 15.98 kB / 435.5 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.4962, allocations: 149.7 kB / 435.6 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.498, allocations: 0.7861 MB / 436.4 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/0.4986, allocations: 194.1 kB / 436.6 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.4988, allocations: 89.05 kB / 436.7 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.4989, allocations: 8 kB / 436.7 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003213/0.4992, allocations: 135 kB / 436.8 MB, free: 1.676 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.893e-06/0.4992, allocations: 3.938 kB / 436.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006688/0.4999, allocations: 246.4 kB / 437.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.5001, allocations: 315.6 kB / 437.4 MB, free: 1.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/0.5008, allocations: 380.1 kB / 437.7 MB, free: 0.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.329e-05/0.5008, allocations: 35.02 kB / 437.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.501, allocations: 200.5 kB / 438 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.5012, allocations: 88.55 kB / 438 MB, free: 0.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.5012, allocations: 7.875 kB / 438.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.5014, allocations: 348 kB / 438.4 MB, free: 212 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.5016, allocations: 57.44 kB / 438.5 MB, free: 176 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.5019, allocations: 183.6 kB / 438.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.5021, allocations: 84.28 kB / 438.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.533e-06/0.5021, allocations: 4 kB / 438.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006479/0.5028, allocations: 281.5 kB / 439 MB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.5028, allocations: 4 kB / 439 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.385e-06/0.5029, allocations: 0 / 439 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001648/0.503, allocations: 35.59 kB / 439 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003621/0.5034, allocations: 51.72 kB / 439.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.5053, allocations: 1.449 MB / 440.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.5056, allocations: 23.34 kB / 440.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.5057, allocations: 7.625 kB / 440.6 MB, free: 14.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.5058, allocations: 130.7 kB / 440.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.506, allocations: 47.52 kB / 440.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007019/0.5067, allocations: 272.9 kB / 441 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.21e-06/0.5067, allocations: 4 kB / 441 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.717e-06/0.5067, allocations: 4 kB / 441 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006897/0.5074, allocations: 0.5878 MB / 441.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.5088, allocations: 0.7411 MB / 442.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.026e-06/0.5088, allocations: 4 kB / 442.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.5092, allocations: 39.98 kB / 442.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.5092, allocations: 3.984 kB / 442.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.5092, allocations: 6.938 kB / 442.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.5093, allocations: 0 / 442.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5093, allocations: 0 / 442.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007967/0.5101, allocations: 421.4 kB / 442.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.5103, allocations: 149.8 kB / 442.9 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.42e-05/0.5104, allocations: 6.562 kB / 443 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.5107, allocations: 15.48 kB / 443 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.5108, allocations: 15.48 kB / 443 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.5108, allocations: 7.984 kB / 443 MB, free: 11.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004895/0.5113, allocations: 306.8 kB / 443.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.41e-07/0.5114, allocations: 3.938 kB / 443.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005785/0.5119, allocations: 106.3 kB / 443.4 MB, free: 11.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001497/0.5135, allocations: 435 kB / 443.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007409/0.5142, allocations: 298.2 kB / 444.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.564e-06/0.5142, allocations: 0 / 444.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.5145, allocations: 95.17 kB / 444.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.5152, allocations: 87.47 kB / 444.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.5166, allocations: 0.5558 MB / 444.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.5172, allocations: 0.807 MB / 445.7 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000242/0.5174, allocations: 46.94 kB / 445.7 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.5176, allocations: 35.42 kB / 445.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of SimCode: time 2.255e-06/0.5176, allocations: 0 / 445.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of Templates: time 0.01678/0.5344, allocations: 5.75 MB / 451.5 MB, free: 3.738 MB / 362.7 MB