Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.145/1.145, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.28e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1798, allocations: 25.16 MB / 176.7 MB, free: 12 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6567/0.8366, allocations: 238.5 MB / 415.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.8369, allocations: 67.03 kB / 415.2 MB, free: 22.92 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.403/2.24, allocations: 259.4 MB / 0.6588 GB, free: 26.49 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/2.24, allocations: 0 / 0.6588 GB, free: 26.49 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002146/2.24, allocations: 35.8 kB / 0.6588 GB, free: 26.48 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.006989/2.247, allocations: 1.672 MB / 0.6604 GB, free: 25.69 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/2.247, allocations: 10.97 kB / 0.6604 GB, free: 25.69 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000654/2.248, allocations: 155.1 kB / 0.6606 GB, free: 25.65 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006566/2.249, allocations: 154.6 kB / 0.6607 GB, free: 25.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004074/2.253, allocations: 1.042 MB / 0.6618 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/2.253, allocations: 77.73 kB / 0.6618 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005376/2.254, allocations: 94.33 kB / 0.6619 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004246/2.258, allocations: 1.488 MB / 0.6634 GB, free: 24.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/2.258, allocations: 9.406 kB / 0.6634 GB, free: 24.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/2.258, allocations: 48.22 kB / 0.6634 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002137/2.259, allocations: 102.5 kB / 0.6635 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004294/2.263, allocations: 1.418 MB / 0.6649 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0144/2.277, allocations: 6.399 MB / 0.6712 GB, free: 21.64 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/2.28, allocations: 0.8614 MB / 0.672 GB, free: 21.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/2.281, allocations: 0.515 MB / 0.6725 GB, free: 21.6 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006221/2.287, allocations: 2.788 MB / 0.6752 GB, free: 20.04 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/2.287, allocations: 44.84 kB / 0.6753 GB, free: 20 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.098e-06/2.287, allocations: 0 / 0.6753 GB, free: 20 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.009598/2.297, allocations: 2.669 MB / 0.6779 GB, free: 19.44 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.861e-05/2.297, allocations: 192.2 kB / 0.6781 GB, free: 19.22 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/2.299, allocations: 0.9734 MB / 0.679 GB, free: 19.05 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/2.299, allocations: 42.7 kB / 0.6791 GB, free: 19.02 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005056/2.3, allocations: 0.6444 MB / 0.6797 GB, free: 18.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/2.3, allocations: 315.6 kB / 0.68 GB, free: 18.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/2.3, allocations: 24.47 kB / 0.68 GB, free: 18.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/2.3, allocations: 370.1 kB / 0.6804 GB, free: 18.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/2.302, allocations: 0.4894 MB / 0.6808 GB, free: 18.16 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/2.304, allocations: 0.9617 MB / 0.6818 GB, free: 17.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002154/2.306, allocations: 0.6248 MB / 0.6824 GB, free: 17.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.383e-05/2.306, allocations: 3.938 kB / 0.6824 GB, free: 17.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.006986/2.313, allocations: 1.633 MB / 0.684 GB, free: 17.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/2.313, allocations: 13.69 kB / 0.684 GB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.972e-05/2.313, allocations: 15.91 kB / 0.684 GB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0092/2.322, allocations: 0.6311 MB / 0.6846 GB, free: 17.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/2.325, allocations: 281.3 kB / 0.6849 GB, free: 17.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003686/2.329, allocations: 2.108 MB / 0.687 GB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/2.332, allocations: 106 kB / 0.6871 GB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005186/2.333, allocations: 68.95 kB / 0.6871 GB, free: 15.86 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real 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 (160): * Single equations (assignments): 157 * 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.0008426/2.334, allocations: 228.7 kB / 0.6873 GB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006132/2.335, allocations: 135.6 kB / 0.6875 GB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007101/2.342, allocations: 1.473 MB / 0.6889 GB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/2.342, allocations: 11.09 kB / 0.6889 GB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/2.342, allocations: 6.562 kB / 0.6889 GB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-05/2.342, allocations: 6.844 kB / 0.6889 GB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/2.353, allocations: 2.665 MB / 0.6915 GB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/2.353, allocations: 2.906 kB / 0.6915 GB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/2.355, allocations: 151.1 kB / 0.6917 GB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006975/2.362, allocations: 0.6009 MB / 0.6923 GB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003425/2.362, allocations: 22.28 kB / 0.6923 GB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/2.366, allocations: 2.093 MB / 0.6943 GB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/2.366, allocations: 0 / 0.6943 GB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007509/2.373, allocations: 2.056 MB / 0.6963 GB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008171/2.374, allocations: 216.7 kB / 0.6965 GB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007101/2.375, allocations: 34.03 kB / 0.6966 GB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/2.377, allocations: 76.44 kB / 0.6967 GB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/2.378, allocations: 93.28 kB / 0.6967 GB, free: 11.01 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/2.378, allocations: 31.55 kB / 0.6968 GB, free: 11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001476/2.379, allocations: 0.744 MB / 0.6975 GB, free: 10.69 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.379, allocations: 0 / 0.6975 GB, free: 10.69 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003429/2.383, allocations: 0.7605 MB / 0.6982 GB, free: 10.49 MB / 250.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 (82): * Single equations (assignments): 79 * 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.007827/2.391, allocations: 3.743 MB / 0.7019 GB, free: 8.434 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003928/2.395, allocations: 1.256 MB / 0.7031 GB, free: 7.309 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/2.395, allocations: 0 / 0.7031 GB, free: 7.309 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/2.397, allocations: 0.6761 MB / 0.7038 GB, free: 6.711 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004906/2.402, allocations: 0.5542 MB / 0.7043 GB, free: 6.324 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008592/2.411, allocations: 2.698 MB / 0.707 GB, free: 3.957 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008237/2.411, allocations: 1.269 MB / 0.7082 GB, free: 2.863 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/2.413, allocations: 0.5162 MB / 0.7087 GB, free: 2.395 MB / 250.7 MB Notification: Performance of SimCode: time 1.152e-06/2.413, allocations: 0 / 0.7087 GB, free: 2.395 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.962/6.375, allocations: 47.32 MB / 0.7549 GB, free: 31.23 MB / 266.7 MB