Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.7/1.7, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.8e-05, allocations: 8 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2846, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8691/1.154, allocations: 313.3 MB / 0.5582 GB, free: 80.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/1.154, allocations: 90.06 kB / 0.5583 GB, free: 80.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9259/2.08, allocations: 188.9 MB / 0.7428 GB, free: 48.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/2.08, allocations: 0 / 0.7428 GB, free: 48.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.586e-05/2.08, allocations: 27.94 kB / 0.7428 GB, free: 48.61 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003645/2.084, allocations: 1.293 MB / 0.7441 GB, free: 47.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/2.084, allocations: 12.03 kB / 0.7441 GB, free: 47.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005182/2.084, allocations: 112 kB / 0.7442 GB, free: 47.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/2.087, allocations: 0.7755 MB / 0.745 GB, free: 46.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.202e-05/2.087, allocations: 20 kB / 0.745 GB, free: 46.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/2.087, allocations: 40 kB / 0.745 GB, free: 46.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001943/2.089, allocations: 0.8928 MB / 0.7459 GB, free: 45.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/2.091, allocations: 0.9459 MB / 0.7468 GB, free: 44.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/2.091, allocations: 3.906 kB / 0.7468 GB, free: 44.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/2.091, allocations: 4 kB / 0.7468 GB, free: 44.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/2.091, allocations: 61.27 kB / 0.7469 GB, free: 44.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008272/2.099, allocations: 4.266 MB / 0.7511 GB, free: 39.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/2.1, allocations: 0.5197 MB / 0.7516 GB, free: 39.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/2.101, allocations: 286.1 kB / 0.7518 GB, free: 39.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003043/2.104, allocations: 1.969 MB / 0.7538 GB, free: 36.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/2.104, allocations: 34.89 kB / 0.7538 GB, free: 36.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.315e-06/2.104, allocations: 0 / 0.7538 GB, free: 36.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.007339/2.111, allocations: 1.719 MB / 0.7555 GB, free: 35.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/2.111, allocations: 162.2 kB / 0.7556 GB, free: 34.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009479/2.112, allocations: 0.6131 MB / 0.7562 GB, free: 34.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.349e-05/2.113, allocations: 29.7 kB / 0.7563 GB, free: 34.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/2.113, allocations: 0.4942 MB / 0.7567 GB, free: 33.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/2.113, allocations: 161.8 kB / 0.7569 GB, free: 33.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.916e-05/2.113, allocations: 0 / 0.7569 GB, free: 33.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/2.113, allocations: 386.8 kB / 0.7573 GB, free: 33.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006178/2.114, allocations: 286.5 kB / 0.7575 GB, free: 32.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007835/2.115, allocations: 0.637 MB / 0.7582 GB, free: 32.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/2.125, allocations: 1.375 MB / 0.7595 GB, free: 30.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/2.125, allocations: 0 / 0.7595 GB, free: 30.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01215/2.138, allocations: 1.998 MB / 0.7614 GB, free: 28.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008315/2.138, allocations: 4.443 MB / 0.7658 GB, free: 23.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/2.139, allocations: 12 kB / 0.7658 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008811/2.139, allocations: 161.6 kB / 0.766 GB, free: 23.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/2.141, allocations: 187.7 kB / 0.7661 GB, free: 23.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/2.143, allocations: 1.487 MB / 0.7676 GB, free: 21.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/2.145, allocations: 48.02 kB / 0.7676 GB, free: 21.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/2.145, allocations: 47.98 kB / 0.7677 GB, free: 21.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/2.145, allocations: 4 kB / 0.7677 GB, free: 21.89 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01206/2.157, allocations: 1.822 MB / 0.7695 GB, free: 20.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/2.157, allocations: 15.95 kB / 0.7695 GB, free: 20.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008635/2.158, allocations: 149.6 kB / 0.7696 GB, free: 19.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/2.159, allocations: 195.8 kB / 0.7698 GB, free: 19.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/2.161, allocations: 1.382 MB / 0.7712 GB, free: 18.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/2.162, allocations: 43.91 kB / 0.7712 GB, free: 18.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/2.162, allocations: 51.97 kB / 0.7712 GB, free: 18.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002685/2.163, allocations: 143.4 kB / 0.7714 GB, free: 18.03 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002812/2.166, allocations: 0.6888 MB / 0.7721 GB, free: 17.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/2.166, allocations: 83.02 kB / 0.7721 GB, free: 17.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002908/2.169, allocations: 0.7965 MB / 0.7729 GB, free: 16.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/2.169, allocations: 4 kB / 0.7729 GB, free: 16.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.169, allocations: 3.938 kB / 0.7729 GB, free: 16.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/2.169, allocations: 0 / 0.7729 GB, free: 16.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003847/2.173, allocations: 1.493 MB / 0.7744 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/2.173, allocations: 8.062 kB / 0.7744 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006874/2.173, allocations: 75.91 kB / 0.7745 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008684/2.174, allocations: 157.5 kB / 0.7746 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/2.174, allocations: 4 kB / 0.7746 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/2.176, allocations: 1.382 MB / 0.776 GB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/2.176, allocations: 3.984 kB / 0.776 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/2.179, allocations: 1.095 MB / 0.777 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/2.179, allocations: 176 kB / 0.7772 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/2.179, allocations: 0 / 0.7772 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008018/2.18, allocations: 39.88 kB / 0.7772 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/2.18, allocations: 56.31 kB / 0.7773 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/2.18, allocations: 16 kB / 0.7773 GB, free: 11.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007525/2.181, allocations: 471.1 kB / 0.7778 GB, free: 11.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.181, allocations: 0 / 0.7778 GB, free: 11.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002922/2.184, allocations: 0.7531 MB / 0.7785 GB, free: 10.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005291/2.189, allocations: 2.481 MB / 0.7809 GB, free: 8.094 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002792/2.192, allocations: 1.15 MB / 0.782 GB, free: 6.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/2.192, allocations: 10.19 kB / 0.782 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007217/2.193, allocations: 289.5 kB / 0.7823 GB, free: 6.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/2.195, allocations: 286 kB / 0.7826 GB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/2.2, allocations: 1.691 MB / 0.7842 GB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/2.2, allocations: 1.054 MB / 0.7853 GB, free: 3.555 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002005/2.202, allocations: 372.4 kB / 0.7856 GB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/2.203, allocations: 319.3 kB / 0.7859 GB, free: 2.883 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/2.203, allocations: 0 / 0.7859 GB, free: 2.883 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3781/2.581, allocations: 28.85 MB / 0.8141 GB, free: 65.84 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/2.581, allocations: 185.2 kB / 0.8143 GB, free: 65.65 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.788/6.37, allocations: 4 kB / 0.8143 GB, free: 65.65 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat