Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.244e-05/4.256e-05, allocations: 0 / 269.4 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1421, allocations: 47.58 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.221/1.363, allocations: 323.8 MB / 0.6258 GB, free: 39.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/1.363, allocations: 89.94 kB / 0.6259 GB, free: 39.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.025/2.388, allocations: 192.2 MB / 0.8136 GB, free: 23.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.354e-06/2.388, allocations: 3.938 kB / 0.8136 GB, free: 23.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001717/2.388, allocations: 23.94 kB / 0.8136 GB, free: 23.8 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.006259/2.395, allocations: 1.302 MB / 0.8149 GB, free: 22.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/2.395, allocations: 12.03 kB / 0.8149 GB, free: 22.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004493/2.395, allocations: 110.5 kB / 0.815 GB, free: 22.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009334/2.396, allocations: 118.8 kB / 0.8151 GB, free: 22.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00316/2.399, allocations: 0.7258 MB / 0.8158 GB, free: 21.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/2.399, allocations: 49.3 kB / 0.8159 GB, free: 21.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003473/2.4, allocations: 67.92 kB / 0.8159 GB, free: 21.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/2.403, allocations: 1.028 MB / 0.8169 GB, free: 20.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/2.403, allocations: 7.922 kB / 0.817 GB, free: 20.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001629/2.403, allocations: 27.98 kB / 0.817 GB, free: 20.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/2.403, allocations: 65.28 kB / 0.817 GB, free: 20.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/2.406, allocations: 0.9824 MB / 0.818 GB, free: 19.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/2.417, allocations: 4.398 MB / 0.8223 GB, free: 14.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/2.419, allocations: 0.5471 MB / 0.8228 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007821/2.42, allocations: 310.1 kB / 0.8231 GB, free: 13.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004167/2.424, allocations: 2.086 MB / 0.8252 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/2.424, allocations: 38.89 kB / 0.8252 GB, free: 11.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 4.097e-06/2.424, allocations: 0 / 0.8252 GB, free: 11.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.005362/2.429, allocations: 1.499 MB / 0.8267 GB, free: 9.723 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/2.429, allocations: 158.2 kB / 0.8268 GB, free: 9.531 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/2.431, allocations: 0.8135 MB / 0.8276 GB, free: 8.691 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002217/2.431, allocations: 45.69 kB / 0.8277 GB, free: 8.641 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/2.432, allocations: 475 kB / 0.8281 GB, free: 8.172 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/2.432, allocations: 165.7 kB / 0.8283 GB, free: 8.008 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/2.432, allocations: 16 kB / 0.8283 GB, free: 7.992 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.426e-05/2.432, allocations: 341.9 kB / 0.8286 GB, free: 7.652 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008161/2.433, allocations: 305.9 kB / 0.8289 GB, free: 7.352 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009553/2.434, allocations: 0.5829 MB / 0.8295 GB, free: 6.637 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009498/2.435, allocations: 391 kB / 0.8298 GB, free: 6.258 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/2.435, allocations: 7.938 kB / 0.8298 GB, free: 6.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002871/2.438, allocations: 1.043 MB / 0.8309 GB, free: 5.191 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006803/2.439, allocations: 3.308 MB / 0.8341 GB, free: 1.629 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/2.439, allocations: 8 kB / 0.8341 GB, free: 1.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003702/2.442, allocations: 321.3 kB / 0.8344 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/2.444, allocations: 179.7 kB / 0.8346 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3514/2.795, allocations: 1.338 MB / 0.8359 GB, free: 75.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/2.797, allocations: 66.53 kB / 0.836 GB, free: 75.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002861/2.797, allocations: 42.27 kB / 0.836 GB, free: 75.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/2.798, allocations: 8.109 kB / 0.836 GB, free: 75.65 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003065/2.801, allocations: 0.9145 MB / 0.8369 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/2.801, allocations: 8.062 kB / 0.8369 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003348/2.804, allocations: 294.8 kB / 0.8372 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/2.806, allocations: 179.4 kB / 0.8374 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/2.807, allocations: 1.305 MB / 0.8386 GB, free: 74.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/2.809, allocations: 55.36 kB / 0.8387 GB, free: 74.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002529/2.809, allocations: 43.58 kB / 0.8387 GB, free: 74.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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.0003873/2.81, allocations: 160.9 kB / 0.8389 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003446/2.81, allocations: 94.09 kB / 0.839 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/2.813, allocations: 0.7688 MB / 0.8397 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/2.813, allocations: 5.703 kB / 0.8397 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/2.813, allocations: 3.531 kB / 0.8397 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/2.813, allocations: 3.094 kB / 0.8397 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004688/2.818, allocations: 1.589 MB / 0.8413 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/2.818, allocations: 3.375 kB / 0.8413 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007644/2.819, allocations: 76.67 kB / 0.8414 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002668/2.821, allocations: 283.1 kB / 0.8416 GB, free: 74.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001709/2.822, allocations: 14.14 kB / 0.8416 GB, free: 74.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/2.823, allocations: 1.313 MB / 0.8429 GB, free: 73.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.299e-06/2.823, allocations: 0 / 0.8429 GB, free: 73.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003064/2.826, allocations: 1.086 MB / 0.844 GB, free: 72.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006074/2.827, allocations: 196.8 kB / 0.8442 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/2.827, allocations: 18.78 kB / 0.8442 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/2.828, allocations: 44.19 kB / 0.8442 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/2.829, allocations: 44.41 kB / 0.8443 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/2.829, allocations: 23.39 kB / 0.8443 GB, free: 72.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00163/2.831, allocations: 0.6375 MB / 0.8449 GB, free: 72.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.831, allocations: 6.688 kB / 0.8449 GB, free: 72.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004524/2.835, allocations: 0.8348 MB / 0.8457 GB, free: 72.56 MB / 426.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.006647/2.842, allocations: 2.501 MB / 0.8482 GB, free: 71.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004618/2.846, allocations: 1.202 MB / 0.8494 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/2.847, allocations: 1.281 kB / 0.8494 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/2.848, allocations: 351.2 kB / 0.8497 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/2.852, allocations: 381.5 kB / 0.8501 GB, free: 71.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006408/2.858, allocations: 1.693 MB / 0.8517 GB, free: 71.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/2.859, allocations: 1.055 MB / 0.8527 GB, free: 70.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002978/2.862, allocations: 429.4 kB / 0.8531 GB, free: 70.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007554/2.863, allocations: 321.7 kB / 0.8535 GB, free: 70.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/2.863, allocations: 0 / 0.8535 GB, free: 70.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09975/2.963, allocations: 35.17 MB / 0.8878 GB, free: 68.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/2.963, allocations: 233.7 kB / 0.888 GB, free: 68.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.259/7.222, allocations: 3.562 kB / 0.888 GB, free: 68.67 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat