Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.214/2.214, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.235e-05, allocations: 12.2 kB / 292.8 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 50.41 MB / 343.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.094/1.211, allocations: 324.9 MB / 0.6525 GB, free: 31.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/1.211, allocations: 87.14 kB / 0.6525 GB, free: 31.86 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.746/2.957, allocations: 287.3 MB / 0.9331 GB, free: 71.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.907e-06/2.957, allocations: 0 / 0.9331 GB, free: 71.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001591/2.957, allocations: 38.84 kB / 0.9332 GB, free: 71.57 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006999/2.964, allocations: 1.789 MB / 0.9349 GB, free: 70.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/2.964, allocations: 11.44 kB / 0.9349 GB, free: 70.77 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004659/2.964, allocations: 162.7 kB / 0.9351 GB, free: 70.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008929/2.965, allocations: 165.5 kB / 0.9352 GB, free: 70.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/2.969, allocations: 1.031 MB / 0.9362 GB, free: 70.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.721e-05/2.969, allocations: 77.55 kB / 0.9363 GB, free: 70.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002704/2.969, allocations: 98.86 kB / 0.9364 GB, free: 70.38 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003775/2.973, allocations: 1.594 MB / 0.938 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.412e-05/2.973, allocations: 6.969 kB / 0.938 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000214/2.973, allocations: 47.31 kB / 0.938 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002068/2.973, allocations: 98.91 kB / 0.9381 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003826/2.977, allocations: 1.564 MB / 0.9396 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01499/2.992, allocations: 6.535 MB / 0.946 GB, free: 67.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/2.995, allocations: 0.8941 MB / 0.9469 GB, free: 67.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/2.996, allocations: 0.5466 MB / 0.9474 GB, free: 67.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006692/3.003, allocations: 2.917 MB / 0.9503 GB, free: 65.65 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/3.003, allocations: 48.25 kB / 0.9503 GB, free: 65.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 4.659e-06/3.003, allocations: 2.75 kB / 0.9503 GB, free: 65.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01051/3.013, allocations: 2.82 MB / 0.9531 GB, free: 65.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/3.013, allocations: 187.8 kB / 0.9533 GB, free: 64.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/3.016, allocations: 1.136 MB / 0.9544 GB, free: 64.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003877/3.016, allocations: 52.89 kB / 0.9544 GB, free: 64.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006529/3.017, allocations: 0.6415 MB / 0.955 GB, free: 64.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005472/3.018, allocations: 320.4 kB / 0.9554 GB, free: 64.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/3.018, allocations: 28.72 kB / 0.9554 GB, free: 64.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/3.018, allocations: 368.4 kB / 0.9557 GB, free: 63.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001508/3.019, allocations: 0.5437 MB / 0.9563 GB, free: 63.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/3.021, allocations: 0.9362 MB / 0.9572 GB, free: 63.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/3.023, allocations: 0.6661 MB / 0.9578 GB, free: 63.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.494e-05/3.023, allocations: 3.969 kB / 0.9578 GB, free: 63.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005077/3.028, allocations: 1.78 MB / 0.9596 GB, free: 63.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009904/3.029, allocations: 4.385 MB / 0.9639 GB, free: 58.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.029e-05/3.029, allocations: 8.938 kB / 0.9639 GB, free: 58.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006682/3.036, allocations: 0.6492 MB / 0.9645 GB, free: 58.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/3.038, allocations: 282 kB / 0.9648 GB, free: 58.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/3.041, allocations: 2.161 MB / 0.9669 GB, free: 57.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/3.044, allocations: 100.5 kB / 0.967 GB, free: 57.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000488/3.045, allocations: 67.91 kB / 0.967 GB, free: 57.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/3.045, allocations: 6.719 kB / 0.967 GB, free: 57.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004487/3.049, allocations: 1.568 MB / 0.9686 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.839e-05/3.049, allocations: 11.34 kB / 0.9686 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005464/3.055, allocations: 0.5065 MB / 0.9691 GB, free: 57.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002305/3.057, allocations: 292 kB / 0.9694 GB, free: 57.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/3.059, allocations: 2.004 MB / 0.9713 GB, free: 55.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/3.062, allocations: 102.3 kB / 0.9714 GB, free: 55.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003807/3.062, allocations: 66.61 kB / 0.9715 GB, free: 55.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005692/3.063, allocations: 195.8 kB / 0.9717 GB, free: 55.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000475/3.063, allocations: 143.9 kB / 0.9718 GB, free: 55.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004791/3.068, allocations: 1.496 MB / 0.9733 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/3.068, allocations: 10.16 kB / 0.9733 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/3.068, allocations: 3.312 kB / 0.9733 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/3.068, allocations: 7.312 kB / 0.9733 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007897/3.076, allocations: 2.805 MB / 0.976 GB, free: 54.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/3.076, allocations: 0 / 0.976 GB, free: 54.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/3.078, allocations: 153.2 kB / 0.9762 GB, free: 54.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004845/3.083, allocations: 0.6033 MB / 0.9768 GB, free: 54.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003084/3.083, allocations: 28.56 kB / 0.9768 GB, free: 54.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/3.085, allocations: 2.112 MB / 0.9788 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/3.085, allocations: 3.469 kB / 0.9788 GB, free: 52.93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005111/3.09, allocations: 2.117 MB / 0.9809 GB, free: 51.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008099/3.091, allocations: 248 kB / 0.9812 GB, free: 51.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000492/3.092, allocations: 32.41 kB / 0.9812 GB, free: 51.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/3.094, allocations: 75.69 kB / 0.9813 GB, free: 51.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003489/3.094, allocations: 91.48 kB / 0.9813 GB, free: 51.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/3.094, allocations: 41.27 kB / 0.9814 GB, free: 51.67 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001898/3.096, allocations: 0.882 MB / 0.9822 GB, free: 51.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.723e-06/3.096, allocations: 2.75 kB / 0.9822 GB, free: 51.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005257/3.102, allocations: 1.217 MB / 0.9834 GB, free: 51 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00857/3.11, allocations: 3.959 MB / 0.9873 GB, free: 48.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006404/3.117, allocations: 2.158 MB / 0.9894 GB, free: 48.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/3.117, allocations: 0 / 0.9894 GB, free: 48.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/3.119, allocations: 0.6851 MB / 0.9901 GB, free: 48.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005023/3.124, allocations: 0.5771 MB / 0.9906 GB, free: 47.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008566/3.133, allocations: 2.748 MB / 0.9933 GB, free: 46.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008769/3.134, allocations: 1.282 MB / 0.9946 GB, free: 46.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003938/3.138, allocations: 0.6572 MB / 0.9952 GB, free: 46.01 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/3.139, allocations: 0.5129 MB / 0.9957 GB, free: 45.62 MB / 458.7 MB Notification: Performance of SimCode: time 1.373e-06/3.139, allocations: 0 / 0.9957 GB, free: 45.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1357/3.274, allocations: 54.52 MB / 1.049 GB, free: 8.883 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/3.275, allocations: 254.5 kB / 1.049 GB, free: 8.543 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.399/8.674, allocations: 3.938 kB / 1.049 GB, free: 8.539 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat