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.729/1.729, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.764e-05/3.779e-05, allocations: 8 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2675, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8821/1.15, allocations: 313.6 MB / 0.5586 GB, free: 52.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/1.15, allocations: 90.39 kB / 0.5587 GB, free: 52.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.539/2.689, allocations: 277.3 MB / 0.8295 GB, free: 42.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.775e-06/2.689, allocations: 0 / 0.8295 GB, free: 42.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002098/2.689, allocations: 40.36 kB / 0.8295 GB, free: 42.93 MB / 346.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.007436/2.697, allocations: 1.788 MB / 0.8313 GB, free: 41.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/2.697, allocations: 10.44 kB / 0.8313 GB, free: 41.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/2.698, allocations: 168 kB / 0.8314 GB, free: 41.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/2.703, allocations: 1.095 MB / 0.8325 GB, free: 40.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/2.703, allocations: 37.69 kB / 0.8325 GB, free: 40.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005477/2.703, allocations: 55.5 kB / 0.8326 GB, free: 40.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004345/2.708, allocations: 1.42 MB / 0.834 GB, free: 40.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004726/2.712, allocations: 1.471 MB / 0.8354 GB, free: 39.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-05/2.713, allocations: 7.844 kB / 0.8354 GB, free: 39.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/2.713, allocations: 4 kB / 0.8354 GB, free: 39.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002191/2.713, allocations: 97.94 kB / 0.8355 GB, free: 38.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01705/2.73, allocations: 6.314 MB / 0.8417 GB, free: 32.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/2.732, allocations: 0.8481 MB / 0.8425 GB, free: 31.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/2.734, allocations: 0.5097 MB / 0.843 GB, free: 30.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006518/2.74, allocations: 2.752 MB / 0.8457 GB, free: 28.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/2.74, allocations: 43.34 kB / 0.8457 GB, free: 27.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 4.248e-06/2.74, allocations: 1.469 kB / 0.8457 GB, free: 27.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.01644/2.757, allocations: 3.105 MB / 0.8488 GB, free: 24.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.53e-05/2.757, allocations: 192.7 kB / 0.849 GB, free: 24.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/2.759, allocations: 0.8499 MB / 0.8498 GB, free: 23.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000335/2.759, allocations: 33.64 kB / 0.8498 GB, free: 23.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006564/2.76, allocations: 0.6733 MB / 0.8505 GB, free: 23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005281/2.76, allocations: 314.3 kB / 0.8508 GB, free: 22.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/2.76, allocations: 3.938 kB / 0.8508 GB, free: 22.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/2.761, allocations: 361.9 kB / 0.8511 GB, free: 22.33 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/2.762, allocations: 0.5193 MB / 0.8516 GB, free: 21.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/2.764, allocations: 0.9812 MB / 0.8526 GB, free: 20.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/2.781, allocations: 2.172 MB / 0.8547 GB, free: 18.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-05/2.781, allocations: 4 kB / 0.8547 GB, free: 18.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.02118/2.803, allocations: 3.245 MB / 0.8579 GB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001289/2.804, allocations: 5.576 MB / 0.8633 GB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.807e-05/2.804, allocations: 12 kB / 0.8633 GB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/2.806, allocations: 334.2 kB / 0.8637 GB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002326/2.808, allocations: 291.5 kB / 0.8639 GB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005363/2.814, allocations: 2.437 MB / 0.8663 GB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/2.816, allocations: 75.97 kB / 0.8664 GB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/2.817, allocations: 63.98 kB / 0.8664 GB, free: 5.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/2.817, allocations: 4 kB / 0.8665 GB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02025/2.837, allocations: 2.956 MB / 0.8693 GB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.001e-05/2.837, allocations: 12 kB / 0.8693 GB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/2.839, allocations: 266.3 kB / 0.8696 GB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/2.841, allocations: 307.5 kB / 0.8699 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/2.845, allocations: 2.191 MB / 0.872 GB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/2.848, allocations: 83.86 kB / 0.8721 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005785/2.848, allocations: 67.98 kB / 0.8722 GB, free: 15.95 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.0006397/2.849, allocations: 152.5 kB / 0.8723 GB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007097/2.856, allocations: 1.333 MB / 0.8736 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000661/2.857, allocations: 126.5 kB / 0.8737 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007422/2.864, allocations: 1.514 MB / 0.8752 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/2.864, allocations: 11.95 kB / 0.8752 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/2.864, allocations: 0 / 0.8752 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.965e-05/2.864, allocations: 19.91 kB / 0.8753 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/2.875, allocations: 2.654 MB / 0.8778 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/2.875, allocations: 7.938 kB / 0.8779 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/2.877, allocations: 155.7 kB / 0.878 GB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001914/2.879, allocations: 310.2 kB / 0.8783 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002848/2.879, allocations: 15.98 kB / 0.8783 GB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004805/2.884, allocations: 2.26 MB / 0.8805 GB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/2.884, allocations: 0 / 0.8805 GB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007782/2.892, allocations: 2.137 MB / 0.8826 GB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007267/2.893, allocations: 215.5 kB / 0.8828 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006908/2.893, allocations: 7.984 kB / 0.8828 GB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/2.895, allocations: 55.8 kB / 0.8829 GB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005075/2.896, allocations: 97.16 kB / 0.883 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001976/2.896, allocations: 39.98 kB / 0.883 GB, free: 4.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001629/2.898, allocations: 0.6302 MB / 0.8836 GB, free: 3.992 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.011e-06/2.898, allocations: 0 / 0.8836 GB, free: 3.992 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006284/2.904, allocations: 1.108 MB / 0.8847 GB, free: 2.887 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.2817/3.186, allocations: 3.919 MB / 0.8885 GB, free: 56.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007286/3.193, allocations: 2.09 MB / 0.8906 GB, free: 56.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/3.193, allocations: 1.625 kB / 0.8906 GB, free: 56.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/3.196, allocations: 0.6422 MB / 0.8912 GB, free: 56.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/3.2, allocations: 477.2 kB / 0.8917 GB, free: 56.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009386/3.209, allocations: 2.682 MB / 0.8943 GB, free: 56.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009599/3.21, allocations: 1.286 MB / 0.8955 GB, free: 55.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004075/3.214, allocations: 0.5799 MB / 0.8961 GB, free: 55.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/3.216, allocations: 0.5022 MB / 0.8966 GB, free: 55.34 MB / 362.7 MB Notification: Performance of SimCode: time 2.835e-06/3.216, allocations: 2.625 kB / 0.8966 GB, free: 55.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1283/3.344, allocations: 45.83 MB / 0.9413 GB, free: 52.77 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/3.344, allocations: 187.9 kB / 0.9415 GB, free: 52.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.615/7.959, allocations: 0 / 0.9415 GB, free: 52.58 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