Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.392e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2656, allocations: 38.76 MB / 263.9 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9453/1.211, allocations: 314.3 MB / 0.5646 GB, free: 69.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/1.211, allocations: 84.45 kB / 0.5647 GB, free: 69.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.527/2.738, allocations: 279.1 MB / 0.8372 GB, free: 48.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.855e-06/2.738, allocations: 0 / 0.8372 GB, free: 48.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001663/2.738, allocations: 44.48 kB / 0.8373 GB, free: 48.64 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006681/2.745, allocations: 1.78 MB / 0.839 GB, free: 47.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/2.745, allocations: 8.438 kB / 0.839 GB, free: 47.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003671/2.745, allocations: 159.6 kB / 0.8392 GB, free: 47.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008362/2.746, allocations: 166 kB / 0.8393 GB, free: 47.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/2.75, allocations: 1.088 MB / 0.8404 GB, free: 47.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.2e-05/2.75, allocations: 87.86 kB / 0.8405 GB, free: 47.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/2.75, allocations: 92.09 kB / 0.8406 GB, free: 47.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003534/2.754, allocations: 1.589 MB / 0.8421 GB, free: 47.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.889e-05/2.754, allocations: 0 / 0.8421 GB, free: 47.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/2.754, allocations: 44.86 kB / 0.8422 GB, free: 47.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002028/2.754, allocations: 99.61 kB / 0.8423 GB, free: 47.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003729/2.758, allocations: 1.57 MB / 0.8438 GB, free: 47.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01405/2.772, allocations: 6.53 MB / 0.8502 GB, free: 43.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/2.774, allocations: 0.8655 MB / 0.851 GB, free: 43.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/2.775, allocations: 0.5306 MB / 0.8515 GB, free: 43.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005261/2.78, allocations: 2.816 MB / 0.8543 GB, free: 42.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/2.78, allocations: 48.62 kB / 0.8543 GB, free: 42.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 2.996e-06/2.78, allocations: 0 / 0.8543 GB, free: 42.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008691/2.789, allocations: 2.759 MB / 0.857 GB, free: 41.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/2.789, allocations: 192 kB / 0.8572 GB, free: 41.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/2.791, allocations: 1.037 MB / 0.8582 GB, free: 41.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/2.791, allocations: 50.02 kB / 0.8583 GB, free: 41.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000556/2.792, allocations: 0.6695 MB / 0.8589 GB, free: 41.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/2.792, allocations: 322.6 kB / 0.8592 GB, free: 40.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/2.792, allocations: 31.38 kB / 0.8593 GB, free: 40.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/2.793, allocations: 362.7 kB / 0.8596 GB, free: 40.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/2.794, allocations: 0.5314 MB / 0.8601 GB, free: 40.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/2.795, allocations: 1.002 MB / 0.8611 GB, free: 40.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/2.797, allocations: 0.6661 MB / 0.8617 GB, free: 40.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/2.797, allocations: 9.062 kB / 0.8618 GB, free: 40.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004502/2.801, allocations: 1.797 MB / 0.8635 GB, free: 39.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001237/2.803, allocations: 5.593 MB / 0.869 GB, free: 33.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.45e-05/2.803, allocations: 20.12 kB / 0.869 GB, free: 33.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00634/2.809, allocations: 0.638 MB / 0.8696 GB, free: 33.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002203/2.811, allocations: 296.6 kB / 0.8699 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/2.814, allocations: 2.142 MB / 0.872 GB, free: 31.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/2.816, allocations: 97.66 kB / 0.8721 GB, free: 31.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/2.816, allocations: 71.98 kB / 0.8721 GB, free: 31.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/2.816, allocations: 3.938 kB / 0.8722 GB, free: 31.72 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004094/2.82, allocations: 1.605 MB / 0.8737 GB, free: 31.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/2.821, allocations: 19.78 kB / 0.8737 GB, free: 31.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005202/2.826, allocations: 0.4966 MB / 0.8742 GB, free: 31.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/2.828, allocations: 305.3 kB / 0.8745 GB, free: 31.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/2.83, allocations: 1.984 MB / 0.8765 GB, free: 29.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/2.832, allocations: 107.9 kB / 0.8766 GB, free: 29.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/2.832, allocations: 69.25 kB / 0.8766 GB, free: 29.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (171): * Single equations (assignments): 168 * 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.00048/2.832, allocations: 210.4 kB / 0.8768 GB, free: 29.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000276/2.833, allocations: 133.1 kB / 0.8769 GB, free: 29.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/2.837, allocations: 1.494 MB / 0.8784 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/2.837, allocations: 13.03 kB / 0.8784 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/2.837, allocations: 0 / 0.8784 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/2.837, allocations: 7.641 kB / 0.8784 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006358/2.843, allocations: 2.735 MB / 0.8811 GB, free: 27.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.844, allocations: 3.812 kB / 0.8811 GB, free: 27.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/2.845, allocations: 151.8 kB / 0.8812 GB, free: 27.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004574/2.849, allocations: 0.5979 MB / 0.8818 GB, free: 27.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/2.85, allocations: 26.3 kB / 0.8819 GB, free: 27.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002087/2.852, allocations: 2.106 MB / 0.8839 GB, free: 25.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/2.852, allocations: 4.062 kB / 0.8839 GB, free: 25.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004436/2.856, allocations: 2.094 MB / 0.886 GB, free: 24.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005051/2.857, allocations: 228.8 kB / 0.8862 GB, free: 24.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/2.857, allocations: 33.88 kB / 0.8862 GB, free: 24.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/2.858, allocations: 77.77 kB / 0.8863 GB, free: 24.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002632/2.859, allocations: 93.14 kB / 0.8864 GB, free: 24.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/2.859, allocations: 36.59 kB / 0.8864 GB, free: 24.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001488/2.86, allocations: 0.7894 MB / 0.8872 GB, free: 23.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.86, allocations: 2.562 kB / 0.8872 GB, free: 23.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004884/2.865, allocations: 1.187 MB / 0.8883 GB, free: 22.73 MB / 362.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.008296/2.874, allocations: 3.926 MB / 0.8922 GB, free: 19.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006335/2.88, allocations: 2.165 MB / 0.8943 GB, free: 17.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/2.88, allocations: 0 / 0.8943 GB, free: 17.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/2.882, allocations: 0.6826 MB / 0.895 GB, free: 16.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/2.886, allocations: 0.4968 MB / 0.8954 GB, free: 16.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008327/2.895, allocations: 2.822 MB / 0.8982 GB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008644/2.896, allocations: 1.287 MB / 0.8995 GB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00366/2.899, allocations: 0.63 MB / 0.9001 GB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009507/2.9, allocations: 0.5082 MB / 0.9006 GB, free: 11.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/2.9, allocations: 0 / 0.9006 GB, free: 11.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4445/3.345, allocations: 51.18 MB / 0.9505 GB, free: 42.59 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002452/3.345, allocations: 238.4 kB / 0.9508 GB, free: 42.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.888/8.233, allocations: 0 / 0.9508 GB, free: 42.28 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.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat