Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.153e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.064/1.192, allocations: 325 MB / 0.652 GB, free: 30.89 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.193, allocations: 92.08 kB / 0.6521 GB, free: 30.85 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.591/2.784, allocations: 287.3 MB / 0.9327 GB, free: 71.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/2.784, allocations: 0 / 0.9327 GB, free: 71.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001816/2.784, allocations: 41.56 kB / 0.9327 GB, free: 71.06 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.007271/2.791, allocations: 1.795 MB / 0.9345 GB, free: 70.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/2.791, allocations: 9.656 kB / 0.9345 GB, free: 70.27 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006562/2.792, allocations: 152 kB / 0.9346 GB, free: 70.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/2.793, allocations: 169.1 kB / 0.9348 GB, free: 70.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003886/2.797, allocations: 1.03 MB / 0.9358 GB, free: 69.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/2.797, allocations: 80.83 kB / 0.9359 GB, free: 69.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005815/2.798, allocations: 98.34 kB / 0.936 GB, free: 69.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0047/2.803, allocations: 1.591 MB / 0.9375 GB, free: 69.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.24e-05/2.803, allocations: 6.844 kB / 0.9375 GB, free: 69.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002675/2.803, allocations: 42.92 kB / 0.9376 GB, free: 69.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002223/2.803, allocations: 103.5 kB / 0.9377 GB, free: 69.63 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004751/2.808, allocations: 1.568 MB / 0.9392 GB, free: 69.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01748/2.826, allocations: 6.532 MB / 0.9456 GB, free: 66.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/2.828, allocations: 0.8982 MB / 0.9465 GB, free: 66.64 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/2.83, allocations: 0.5401 MB / 0.947 GB, free: 66.63 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0063/2.836, allocations: 2.922 MB / 0.9499 GB, free: 65.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/2.836, allocations: 53.56 kB / 0.9499 GB, free: 65.13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 3.216e-06/2.836, allocations: 0 / 0.9499 GB, free: 65.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01026/2.846, allocations: 2.814 MB / 0.9526 GB, free: 64.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/2.846, allocations: 190.4 kB / 0.9528 GB, free: 64.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/2.849, allocations: 1.134 MB / 0.9539 GB, free: 64.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003713/2.849, allocations: 49.42 kB / 0.954 GB, free: 64.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005693/2.85, allocations: 0.6305 MB / 0.9546 GB, free: 63.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005235/2.85, allocations: 316.5 kB / 0.9549 GB, free: 63.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/2.851, allocations: 30.75 kB / 0.9549 GB, free: 63.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/2.851, allocations: 372.6 kB / 0.9553 GB, free: 63.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/2.852, allocations: 0.5432 MB / 0.9558 GB, free: 63.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/2.854, allocations: 0.9361 MB / 0.9567 GB, free: 62.83 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/2.856, allocations: 0.6637 MB / 0.9574 GB, free: 62.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/2.856, allocations: 3.781 kB / 0.9574 GB, free: 62.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00483/2.861, allocations: 1.695 MB / 0.959 GB, free: 62.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001027/2.862, allocations: 4.359 MB / 0.9633 GB, free: 58.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.661e-05/2.862, allocations: 7.531 kB / 0.9633 GB, free: 58.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006962/2.869, allocations: 0.6517 MB / 0.9639 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/2.871, allocations: 281 kB / 0.9642 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/2.874, allocations: 2.161 MB / 0.9663 GB, free: 56.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/2.877, allocations: 101.2 kB / 0.9664 GB, free: 56.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002936/2.877, allocations: 68.41 kB / 0.9665 GB, free: 56.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/2.877, allocations: 3.625 kB / 0.9665 GB, free: 56.59 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004084/2.881, allocations: 1.57 MB / 0.968 GB, free: 56.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/2.881, allocations: 11.69 kB / 0.968 GB, free: 56.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005279/2.886, allocations: 0.4886 MB / 0.9685 GB, free: 56.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/2.889, allocations: 294.2 kB / 0.9688 GB, free: 56.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/2.891, allocations: 1.987 MB / 0.9707 GB, free: 54.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/2.893, allocations: 101.9 kB / 0.9708 GB, free: 54.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/2.893, allocations: 57.39 kB / 0.9709 GB, free: 54.95 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.0005057/2.894, allocations: 197.8 kB / 0.9711 GB, free: 54.84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004584/2.894, allocations: 144.1 kB / 0.9712 GB, free: 54.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/2.899, allocations: 1.497 MB / 0.9727 GB, free: 54.65 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/2.899, allocations: 13.53 kB / 0.9727 GB, free: 54.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/2.899, allocations: 0 / 0.9727 GB, free: 54.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/2.899, allocations: 10.03 kB / 0.9727 GB, free: 54.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007221/2.906, allocations: 2.799 MB / 0.9754 GB, free: 54.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/2.906, allocations: 3.75 kB / 0.9754 GB, free: 54.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/2.907, allocations: 156.4 kB / 0.9756 GB, free: 54.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004815/2.912, allocations: 0.5995 MB / 0.9762 GB, free: 54.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/2.912, allocations: 26.64 kB / 0.9762 GB, free: 54.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/2.915, allocations: 2.115 MB / 0.9783 GB, free: 52.56 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/2.915, allocations: 0 / 0.9783 GB, free: 52.56 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/2.92, allocations: 2.112 MB / 0.9803 GB, free: 51.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/2.921, allocations: 251 kB / 0.9806 GB, free: 51.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004463/2.921, allocations: 27.2 kB / 0.9806 GB, free: 51.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/2.923, allocations: 79.44 kB / 0.9807 GB, free: 51.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003243/2.923, allocations: 91.48 kB / 0.9807 GB, free: 51.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/2.923, allocations: 45.8 kB / 0.9808 GB, free: 51.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001795/2.925, allocations: 0.885 MB / 0.9817 GB, free: 50.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.925, allocations: 0 / 0.9817 GB, free: 50.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005106/2.93, allocations: 1.218 MB / 0.9828 GB, free: 50.64 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.008596/2.939, allocations: 3.968 MB / 0.9867 GB, free: 48.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006454/2.945, allocations: 2.107 MB / 0.9888 GB, free: 47.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/2.945, allocations: 3.188 kB / 0.9888 GB, free: 47.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/2.948, allocations: 0.6853 MB / 0.9894 GB, free: 47.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004838/2.953, allocations: 0.573 MB / 0.99 GB, free: 47.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008296/2.961, allocations: 2.789 MB / 0.9927 GB, free: 46.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008821/2.962, allocations: 1.28 MB / 0.994 GB, free: 45.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/2.963, allocations: 0.5328 MB / 0.9945 GB, free: 45.27 MB / 458.7 MB Notification: Performance of SimCode: time 1.442e-06/2.963, allocations: 0 / 0.9945 GB, free: 45.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.619/6.582, allocations: 50.97 MB / 1.044 GB, free: 12.32 MB / 458.7 MB