Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.249/2.249, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.759e-05/3.777e-05, allocations: 4 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1349, allocations: 50.41 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.252/1.387, allocations: 325 MB / 0.652 GB, free: 31.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004018/1.388, allocations: 86.89 kB / 0.6521 GB, free: 31.01 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813/3.201, allocations: 287.3 MB / 0.9327 GB, free: 70.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/3.201, allocations: 0 / 0.9327 GB, free: 70.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002131/3.202, allocations: 40.11 kB / 0.9327 GB, free: 70.89 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.007435/3.209, allocations: 1.791 MB / 0.9344 GB, free: 70.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/3.209, allocations: 11.5 kB / 0.9345 GB, free: 70.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007266/3.21, allocations: 158.4 kB / 0.9346 GB, free: 70.06 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/3.211, allocations: 165 kB / 0.9348 GB, free: 69.99 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004117/3.215, allocations: 1.028 MB / 0.9358 GB, free: 69.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/3.216, allocations: 84.72 kB / 0.9358 GB, free: 69.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004073/3.216, allocations: 98.95 kB / 0.9359 GB, free: 69.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0043/3.22, allocations: 1.593 MB / 0.9375 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/3.22, allocations: 3.469 kB / 0.9375 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/3.221, allocations: 43.97 kB / 0.9375 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/3.221, allocations: 102.5 kB / 0.9376 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004513/3.225, allocations: 1.565 MB / 0.9392 GB, free: 69.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/3.243, allocations: 6.529 MB / 0.9455 GB, free: 66.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/3.245, allocations: 0.8956 MB / 0.9464 GB, free: 66.46 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/3.247, allocations: 0.5483 MB / 0.947 GB, free: 66.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006918/3.254, allocations: 2.922 MB / 0.9498 GB, free: 65 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/3.254, allocations: 52.33 kB / 0.9499 GB, free: 64.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 4.839e-06/3.254, allocations: 2.812 kB / 0.9499 GB, free: 64.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01047/3.264, allocations: 2.805 MB / 0.9526 GB, free: 64.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/3.264, allocations: 200.1 kB / 0.9528 GB, free: 64.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/3.267, allocations: 1.135 MB / 0.9539 GB, free: 63.99 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/3.267, allocations: 49.02 kB / 0.9539 GB, free: 63.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006419/3.268, allocations: 0.644 MB / 0.9546 GB, free: 63.69 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/3.269, allocations: 324.5 kB / 0.9549 GB, free: 63.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/3.269, allocations: 28.75 kB / 0.9549 GB, free: 63.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/3.269, allocations: 363 kB / 0.9553 GB, free: 63.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/3.271, allocations: 0.5468 MB / 0.9558 GB, free: 63.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/3.272, allocations: 0.9362 MB / 0.9567 GB, free: 62.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/3.274, allocations: 0.6648 MB / 0.9574 GB, free: 62.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.516e-05/3.274, allocations: 3.719 kB / 0.9574 GB, free: 62.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005483/3.28, allocations: 1.781 MB / 0.9591 GB, free: 62.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001099/3.281, allocations: 4.381 MB / 0.9634 GB, free: 58.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.432e-05/3.281, allocations: 10.84 kB / 0.9634 GB, free: 58.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006756/3.288, allocations: 0.6492 MB / 0.964 GB, free: 58.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/3.29, allocations: 279.9 kB / 0.9643 GB, free: 58.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002991/3.293, allocations: 2.164 MB / 0.9664 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/3.296, allocations: 107.9 kB / 0.9665 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004807/3.297, allocations: 68.89 kB / 0.9666 GB, free: 56.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/3.297, allocations: 3.875 kB / 0.9666 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004597/3.301, allocations: 1.567 MB / 0.9681 GB, free: 56.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.357e-05/3.302, allocations: 11.69 kB / 0.9681 GB, free: 56.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005518/3.307, allocations: 0.5007 MB / 0.9686 GB, free: 56.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/3.309, allocations: 293.7 kB / 0.9689 GB, free: 56.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/3.312, allocations: 2.011 MB / 0.9708 GB, free: 54.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/3.314, allocations: 93.62 kB / 0.9709 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/3.315, allocations: 68.23 kB / 0.971 GB, free: 54.8 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.0006142/3.315, allocations: 192.2 kB / 0.9712 GB, free: 54.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004982/3.316, allocations: 145.9 kB / 0.9713 GB, free: 54.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/3.321, allocations: 1.492 MB / 0.9728 GB, free: 54.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/3.321, allocations: 11.52 kB / 0.9728 GB, free: 54.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/3.321, allocations: 3.469 kB / 0.9728 GB, free: 54.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/3.321, allocations: 11.06 kB / 0.9728 GB, free: 54.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008536/3.329, allocations: 2.806 MB / 0.9755 GB, free: 54.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/3.329, allocations: 0 / 0.9755 GB, free: 54.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/3.331, allocations: 159.4 kB / 0.9757 GB, free: 54.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004889/3.336, allocations: 0.5968 MB / 0.9763 GB, free: 54.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002982/3.336, allocations: 28.78 kB / 0.9763 GB, free: 54.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/3.338, allocations: 2.112 MB / 0.9784 GB, free: 52.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/3.338, allocations: 1.406 kB / 0.9784 GB, free: 52.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004994/3.343, allocations: 2.113 MB / 0.9804 GB, free: 51.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008152/3.344, allocations: 247.6 kB / 0.9807 GB, free: 51.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004912/3.345, allocations: 34.53 kB / 0.9807 GB, free: 51.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/3.347, allocations: 76.97 kB / 0.9808 GB, free: 51.17 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/3.347, allocations: 93.97 kB / 0.9809 GB, free: 51.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/3.347, allocations: 45 kB / 0.9809 GB, free: 51.15 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001824/3.349, allocations: 0.881 MB / 0.9818 GB, free: 50.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.81e-07/3.349, allocations: 0 / 0.9818 GB, free: 50.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005319/3.354, allocations: 1.216 MB / 0.983 GB, free: 50.48 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.008856/3.363, allocations: 3.969 MB / 0.9868 GB, free: 48.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006636/3.37, allocations: 2.149 MB / 0.9889 GB, free: 47.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/3.37, allocations: 5.531 kB / 0.9889 GB, free: 47.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/3.372, allocations: 0.688 MB / 0.9896 GB, free: 47.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005179/3.378, allocations: 0.5745 MB / 0.9902 GB, free: 47.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008766/3.386, allocations: 2.743 MB / 0.9928 GB, free: 46.31 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009261/3.387, allocations: 1.289 MB / 0.9941 GB, free: 45.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003818/3.391, allocations: 0.6583 MB / 0.9947 GB, free: 45.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/3.392, allocations: 0.508 MB / 0.9952 GB, free: 45.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.453e-06/3.392, allocations: 2.094 kB / 0.9952 GB, free: 45.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/3.528, allocations: 54.53 MB / 1.048 GB, free: 8.094 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002628/3.528, allocations: 250.5 kB / 1.049 GB, free: 7.758 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.406/8.934, allocations: 7.594 kB / 1.049 GB, free: 7.754 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat