Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.655e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2576, allocations: 38.78 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9312/1.189, allocations: 316.2 MB / 0.5611 GB, free: 77.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/1.189, allocations: 96.89 kB / 0.5612 GB, free: 77.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.54/2.73, allocations: 319.6 MB / 0.8733 GB, free: 47.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.655e-06/2.73, allocations: 0 / 0.8733 GB, free: 47.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001762/2.73, allocations: 46.91 kB / 0.8733 GB, free: 47.09 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.007646/2.738, allocations: 2.044 MB / 0.8753 GB, free: 45.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/2.738, allocations: 7.938 kB / 0.8753 GB, free: 45.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/2.739, allocations: 200.4 kB / 0.8755 GB, free: 45.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00434/2.743, allocations: 1.248 MB / 0.8767 GB, free: 45.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/2.743, allocations: 41.31 kB / 0.8768 GB, free: 45.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003323/2.744, allocations: 69.12 kB / 0.8768 GB, free: 45.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004217/2.748, allocations: 1.754 MB / 0.8785 GB, free: 44.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004129/2.752, allocations: 1.747 MB / 0.8802 GB, free: 43.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-05/2.752, allocations: 3.906 kB / 0.8802 GB, free: 43.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/2.753, allocations: 11.42 kB / 0.8803 GB, free: 43.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002305/2.753, allocations: 116.6 kB / 0.8804 GB, free: 43.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01613/2.769, allocations: 7.361 MB / 0.8876 GB, free: 39.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002323/2.771, allocations: 1.097 MB / 0.8886 GB, free: 38.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/2.773, allocations: 0.7004 MB / 0.8893 GB, free: 38.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006848/2.78, allocations: 3.302 MB / 0.8925 GB, free: 36.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/2.78, allocations: 50.47 kB / 0.8926 GB, free: 36.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.078e-06/2.78, allocations: 3.938 kB / 0.8926 GB, free: 36.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.02324/2.803, allocations: 4.621 MB / 0.8971 GB, free: 31.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/2.803, allocations: 173.8 kB / 0.8973 GB, free: 31.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/2.805, allocations: 0.9298 MB / 0.8982 GB, free: 30.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003679/2.805, allocations: 33.7 kB / 0.8982 GB, free: 30.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005805/2.806, allocations: 0.7195 MB / 0.8989 GB, free: 29.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005483/2.806, allocations: 449.5 kB / 0.8993 GB, free: 29.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/2.807, allocations: 2.156 kB / 0.8993 GB, free: 29.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/2.807, allocations: 374.8 kB / 0.8997 GB, free: 28.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/2.808, allocations: 0.7106 MB / 0.9004 GB, free: 28.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/2.81, allocations: 1.15 MB / 0.9015 GB, free: 26.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01943/2.83, allocations: 2.523 MB / 0.904 GB, free: 24.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.533e-05/2.83, allocations: 8 kB / 0.904 GB, free: 24.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02319/2.853, allocations: 3.829 MB / 0.9077 GB, free: 20.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00111/2.854, allocations: 5.149 MB / 0.9128 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/2.854, allocations: 12 kB / 0.9128 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/2.856, allocations: 458.9 kB / 0.9132 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/2.859, allocations: 355.5 kB / 0.9135 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/2.866, allocations: 3.282 MB / 0.9167 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/2.869, allocations: 107 kB / 0.9168 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003139/2.869, allocations: 87.97 kB / 0.9169 GB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/2.869, allocations: 8 kB / 0.9169 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02204/2.891, allocations: 3.53 MB / 0.9204 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/2.891, allocations: 12 kB / 0.9204 GB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/2.893, allocations: 319.6 kB / 0.9207 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/2.895, allocations: 375.4 kB / 0.9211 GB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/2.9, allocations: 2.908 MB / 0.9239 GB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/2.902, allocations: 99.81 kB / 0.924 GB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002427/2.903, allocations: 79.97 kB / 0.9241 GB, free: 3.188 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.0005655/2.903, allocations: 176.6 kB / 0.9242 GB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008764/2.912, allocations: 2.001 MB / 0.9262 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000459/2.913, allocations: 158.2 kB / 0.9263 GB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2713/3.184, allocations: 2.315 MB / 0.9286 GB, free: 45.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.833e-05/3.184, allocations: 21.22 kB / 0.9286 GB, free: 45.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/3.184, allocations: 0.8438 kB / 0.9286 GB, free: 45.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.965e-05/3.184, allocations: 7.547 kB / 0.9286 GB, free: 45.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/3.198, allocations: 3.821 MB / 0.9324 GB, free: 45.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/3.198, allocations: 2.844 kB / 0.9324 GB, free: 45.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/3.2, allocations: 243.2 kB / 0.9326 GB, free: 45.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/3.202, allocations: 442.8 kB / 0.933 GB, free: 45.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/3.202, allocations: 25.03 kB / 0.933 GB, free: 45.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004953/3.207, allocations: 3.029 MB / 0.936 GB, free: 43.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/3.207, allocations: 6.828 kB / 0.936 GB, free: 43.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00972/3.217, allocations: 3.198 MB / 0.9391 GB, free: 42.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007563/3.218, allocations: 245.1 kB / 0.9394 GB, free: 42.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006271/3.219, allocations: 10.52 kB / 0.9394 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/3.22, allocations: 84.19 kB / 0.9395 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000476/3.221, allocations: 148.3 kB / 0.9396 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/3.221, allocations: 59.34 kB / 0.9397 GB, free: 42.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001288/3.222, allocations: 0.6894 MB / 0.9403 GB, free: 42.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/3.222, allocations: 0 / 0.9403 GB, free: 42.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005785/3.228, allocations: 1.256 MB / 0.9416 GB, free: 42.79 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.0136/3.242, allocations: 5.25 MB / 0.9467 GB, free: 41.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008102/3.25, allocations: 2.846 MB / 0.9495 GB, free: 41.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/3.25, allocations: 3.844 kB / 0.9495 GB, free: 41.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/3.253, allocations: 1.012 MB / 0.9505 GB, free: 41.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005568/3.259, allocations: 0.614 MB / 0.9511 GB, free: 41.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/3.27, allocations: 3.431 MB / 0.9544 GB, free: 40.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/3.272, allocations: 1.42 MB / 0.9558 GB, free: 55.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/3.273, allocations: 0.6602 MB / 0.9564 GB, free: 55.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.333e-06/3.273, allocations: 0 / 0.9564 GB, free: 55.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.088/7.361, allocations: 65.53 MB / 1.02 GB, free: 40.68 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat