Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.105e-05, allocations: 0 / 225.1 MB, free: 2.203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2644, allocations: 38.77 MB / 263.9 MB, free: 9.684 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.894/1.158, allocations: 316.9 MB / 0.5672 GB, free: 66.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/1.159, allocations: 88.88 kB / 0.5672 GB, free: 66.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.604/2.763, allocations: 321.4 MB / 0.8811 GB, free: 37.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/2.763, allocations: 0 / 0.8811 GB, free: 37.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002291/2.764, allocations: 50.38 kB / 0.8812 GB, free: 37.34 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008349/2.772, allocations: 2.036 MB / 0.8832 GB, free: 35.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/2.772, allocations: 11.97 kB / 0.8832 GB, free: 35.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007892/2.773, allocations: 189.7 kB / 0.8834 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/2.774, allocations: 201.7 kB / 0.8835 GB, free: 34.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004862/2.779, allocations: 1.246 MB / 0.8848 GB, free: 33.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/2.779, allocations: 97.64 kB / 0.8849 GB, free: 33.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005881/2.78, allocations: 123.9 kB / 0.885 GB, free: 33.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00512/2.785, allocations: 1.92 MB / 0.8869 GB, free: 31.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.202e-05/2.785, allocations: 3.938 kB / 0.8869 GB, free: 31.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/2.785, allocations: 59.34 kB / 0.8869 GB, free: 31.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002312/2.785, allocations: 114.3 kB / 0.887 GB, free: 31.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005486/2.791, allocations: 1.918 MB / 0.8889 GB, free: 29.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01972/2.811, allocations: 7.622 MB / 0.8963 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/2.814, allocations: 1.138 MB / 0.8974 GB, free: 20.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/2.815, allocations: 0.7227 MB / 0.8982 GB, free: 19.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007504/2.823, allocations: 3.393 MB / 0.9015 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/2.823, allocations: 51.56 kB / 0.9015 GB, free: 15.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.288e-06/2.823, allocations: 0 / 0.9015 GB, free: 15.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01489/2.838, allocations: 4.076 MB / 0.9055 GB, free: 11.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/2.838, allocations: 171.5 kB / 0.9057 GB, free: 11.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002374/2.84, allocations: 1.157 MB / 0.9068 GB, free: 10.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004673/2.841, allocations: 57.7 kB / 0.9068 GB, free: 10.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007116/2.842, allocations: 0.7257 MB / 0.9076 GB, free: 9.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007245/2.842, allocations: 476.4 kB / 0.908 GB, free: 9.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/2.843, allocations: 36 kB / 0.908 GB, free: 9.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/2.843, allocations: 377.8 kB / 0.9084 GB, free: 8.668 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/2.845, allocations: 0.7301 MB / 0.9091 GB, free: 7.938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002354/2.847, allocations: 1.193 MB / 0.9103 GB, free: 6.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/2.849, allocations: 0.8607 MB / 0.9111 GB, free: 5.695 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.557e-05/2.85, allocations: 4 kB / 0.9111 GB, free: 5.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006494/2.856, allocations: 2.385 MB / 0.9135 GB, free: 3.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2723/3.128, allocations: 5.2 MB / 0.9185 GB, free: 39.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/3.128, allocations: 13.22 kB / 0.9185 GB, free: 39.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009888/3.138, allocations: 0.9398 MB / 0.9195 GB, free: 39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/3.141, allocations: 358.3 kB / 0.9198 GB, free: 39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/3.145, allocations: 2.878 MB / 0.9226 GB, free: 36.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/3.148, allocations: 139.7 kB / 0.9227 GB, free: 36.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004497/3.148, allocations: 84.61 kB / 0.9228 GB, free: 36.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/3.148, allocations: 3.688 kB / 0.9228 GB, free: 36.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005711/3.154, allocations: 2.098 MB / 0.9249 GB, free: 36.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.944e-05/3.154, allocations: 12.66 kB / 0.9249 GB, free: 36.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007347/3.161, allocations: 0.6744 MB / 0.9256 GB, free: 36.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002926/3.164, allocations: 371 kB / 0.9259 GB, free: 36.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/3.167, allocations: 2.642 MB / 0.9285 GB, free: 34.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/3.17, allocations: 131.6 kB / 0.9286 GB, free: 34.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000236/3.17, allocations: 82.44 kB / 0.9287 GB, free: 34.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006411/3.17, allocations: 222.7 kB / 0.9289 GB, free: 34.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004189/3.171, allocations: 166.3 kB / 0.9291 GB, free: 34.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007072/3.178, allocations: 2.307 MB / 0.9313 GB, free: 34.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/3.178, allocations: 17.56 kB / 0.9313 GB, free: 34.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/3.178, allocations: 0 / 0.9313 GB, free: 34.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.079e-05/3.178, allocations: 7.594 kB / 0.9313 GB, free: 34.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/3.189, allocations: 3.914 MB / 0.9352 GB, free: 34.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/3.189, allocations: 5.531 kB / 0.9352 GB, free: 34.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/3.191, allocations: 242.5 kB / 0.9354 GB, free: 34.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006608/3.198, allocations: 0.8699 MB / 0.9362 GB, free: 34.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004226/3.198, allocations: 38.92 kB / 0.9363 GB, free: 34.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/3.201, allocations: 2.824 MB / 0.939 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/3.201, allocations: 3.5 kB / 0.939 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007453/3.209, allocations: 3.165 MB / 0.9421 GB, free: 31.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007512/3.21, allocations: 263.5 kB / 0.9424 GB, free: 31.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004411/3.21, allocations: 46.03 kB / 0.9424 GB, free: 31.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/3.212, allocations: 105 kB / 0.9425 GB, free: 31.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004302/3.212, allocations: 152 kB / 0.9427 GB, free: 31.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/3.213, allocations: 55.86 kB / 0.9427 GB, free: 31.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001768/3.214, allocations: 0.8844 MB / 0.9436 GB, free: 31.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/3.215, allocations: 0 / 0.9436 GB, free: 31.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005769/3.22, allocations: 1.363 MB / 0.9449 GB, free: 31.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0114/3.232, allocations: 5.236 MB / 0.95 GB, free: 29.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008893/3.241, allocations: 3.045 MB / 0.953 GB, free: 29.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/3.241, allocations: 3.625 kB / 0.953 GB, free: 29.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002957/3.244, allocations: 1.043 MB / 0.954 GB, free: 29.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005515/3.249, allocations: 0.6569 MB / 0.9547 GB, free: 29.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/3.26, allocations: 3.563 MB / 0.9582 GB, free: 29.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/3.262, allocations: 1.434 MB / 0.9596 GB, free: 44.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.005203/3.267, allocations: 0.831 MB / 0.9604 GB, free: 44.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001574/3.269, allocations: 0.6285 MB / 0.961 GB, free: 44.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.743e-06/3.269, allocations: 0 / 0.961 GB, free: 44.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1621/3.431, allocations: 64.36 MB / 1.024 GB, free: 22.98 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002902/3.431, allocations: 235.7 kB / 1.024 GB, free: 22.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.798/9.229, allocations: 0 / 1.024 GB, free: 22.67 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat