Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.465/2.465, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.422e-05, allocations: 3.688 kB / 249.8 MB, free: 5.219 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.158/1.268, allocations: 321.6 MB / 0.6014 GB, free: 64.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003766/1.268, allocations: 85.2 kB / 0.6015 GB, free: 64.06 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.117/3.385, allocations: 319.6 MB / 0.9136 GB, free: 58.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.885e-06/3.386, allocations: 0 / 0.9136 GB, free: 58.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002422/3.386, allocations: 47.44 kB / 0.9137 GB, free: 58.96 MB / 410.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.00991/3.396, allocations: 2.044 MB / 0.9157 GB, free: 58.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.213e-05/3.396, allocations: 7.656 kB / 0.9157 GB, free: 58.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/3.398, allocations: 200.8 kB / 0.9159 GB, free: 57.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00582/3.404, allocations: 1.245 MB / 0.9171 GB, free: 57.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/3.404, allocations: 46.22 kB / 0.9171 GB, free: 57.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006794/3.405, allocations: 75.38 kB / 0.9172 GB, free: 57.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005928/3.41, allocations: 1.747 MB / 0.9189 GB, free: 57.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005903/3.416, allocations: 1.746 MB / 0.9206 GB, free: 57.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.658e-05/3.417, allocations: 10.48 kB / 0.9206 GB, free: 57.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003492/3.417, allocations: 11.02 kB / 0.9206 GB, free: 57.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000306/3.417, allocations: 122.9 kB / 0.9207 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02267/3.44, allocations: 7.351 MB / 0.9279 GB, free: 52.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00332/3.443, allocations: 1.099 MB / 0.929 GB, free: 51.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/3.445, allocations: 0.6985 MB / 0.9297 GB, free: 51.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009428/3.455, allocations: 3.299 MB / 0.9329 GB, free: 49.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.201e-05/3.455, allocations: 57.69 kB / 0.9329 GB, free: 49.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.229e-06/3.455, allocations: 0 / 0.9329 GB, free: 49.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.03113/3.486, allocations: 4.614 MB / 0.9375 GB, free: 47.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.898e-05/3.486, allocations: 172 kB / 0.9376 GB, free: 47.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/3.489, allocations: 0.9287 MB / 0.9385 GB, free: 47.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004862/3.489, allocations: 32.95 kB / 0.9386 GB, free: 47.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008202/3.49, allocations: 0.7339 MB / 0.9393 GB, free: 46.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007798/3.491, allocations: 455.4 kB / 0.9397 GB, free: 46.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/3.491, allocations: 0 / 0.9397 GB, free: 46.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/3.491, allocations: 374.2 kB / 0.9401 GB, free: 45.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/3.493, allocations: 0.7054 MB / 0.9408 GB, free: 45.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002615/3.496, allocations: 1.161 MB / 0.9419 GB, free: 44.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.025/3.521, allocations: 2.529 MB / 0.9444 GB, free: 44.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.648e-05/3.521, allocations: 3.906 kB / 0.9444 GB, free: 44.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02995/3.551, allocations: 3.898 MB / 0.9482 GB, free: 42.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001249/3.552, allocations: 5.153 MB / 0.9532 GB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.556e-05/3.553, allocations: 12 kB / 0.9532 GB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/3.555, allocations: 455.9 kB / 0.9536 GB, free: 37.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003457/3.559, allocations: 360.2 kB / 0.954 GB, free: 36.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008605/3.567, allocations: 3.285 MB / 0.9572 GB, free: 33.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003438/3.571, allocations: 104.7 kB / 0.9573 GB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004539/3.571, allocations: 83.08 kB / 0.9574 GB, free: 33.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/3.571, allocations: 4 kB / 0.9574 GB, free: 33.53 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02822/3.6, allocations: 3.533 MB / 0.9608 GB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.848e-05/3.6, allocations: 12 kB / 0.9608 GB, free: 30.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/3.602, allocations: 337.9 kB / 0.9612 GB, free: 30.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/3.605, allocations: 376.3 kB / 0.9615 GB, free: 30.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006539/3.612, allocations: 2.931 MB / 0.9644 GB, free: 27.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/3.615, allocations: 96.88 kB / 0.9645 GB, free: 27.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003921/3.616, allocations: 87.78 kB / 0.9646 GB, free: 27.2 MB / 410.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.0006948/3.616, allocations: 173.8 kB / 0.9647 GB, free: 27.03 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01144/3.628, allocations: 2.006 MB / 0.9667 GB, free: 25.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006524/3.629, allocations: 154.1 kB / 0.9668 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/3.64, allocations: 2.326 MB / 0.9691 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.281e-05/3.64, allocations: 16 kB / 0.9691 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/3.64, allocations: 3.938 kB / 0.9691 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.495e-05/3.64, allocations: 7.969 kB / 0.9691 GB, free: 22.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/3.656, allocations: 3.821 MB / 0.9729 GB, free: 18.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/3.656, allocations: 4 kB / 0.9729 GB, free: 18.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/3.658, allocations: 238.6 kB / 0.9731 GB, free: 18.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002683/3.661, allocations: 442.8 kB / 0.9735 GB, free: 18.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/3.661, allocations: 23.92 kB / 0.9735 GB, free: 18.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006056/3.667, allocations: 3.049 MB / 0.9765 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/3.667, allocations: 0 / 0.9765 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/3.679, allocations: 3.187 MB / 0.9796 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008177/3.68, allocations: 254.9 kB / 0.9799 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007147/3.681, allocations: 11.98 kB / 0.9799 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002394/3.683, allocations: 79.81 kB / 0.98 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005741/3.684, allocations: 145 kB / 0.9801 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/3.684, allocations: 59.97 kB / 0.9802 GB, free: 11.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001548/3.686, allocations: 0.6882 MB / 0.9808 GB, free: 10.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/3.686, allocations: 0 / 0.9808 GB, free: 10.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006639/3.692, allocations: 1.257 MB / 0.9821 GB, free: 9.164 MB / 410.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.0165/3.709, allocations: 5.241 MB / 0.9872 GB, free: 3.973 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009598/3.718, allocations: 2.879 MB / 0.99 GB, free: 1.102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/3.718, allocations: 1.062 kB / 0.99 GB, free: 1.102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003523/3.722, allocations: 1.017 MB / 0.991 GB, free: 84 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3668/4.089, allocations: 0.6055 MB / 0.9916 GB, free: 56.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/4.103, allocations: 3.383 MB / 0.9949 GB, free: 55.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002004/4.105, allocations: 1.438 MB / 0.9963 GB, free: 54.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006908/4.112, allocations: 0.7496 MB / 0.997 GB, free: 54.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002027/4.114, allocations: 0.6291 MB / 0.9976 GB, free: 54.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/4.114, allocations: 1.531 kB / 0.9976 GB, free: 54.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2121/4.326, allocations: 57.83 MB / 1.054 GB, free: 51.57 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003074/4.327, allocations: 191.9 kB / 1.054 GB, free: 51.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.814/11.14, allocations: 3.906 kB / 1.054 GB, free: 51.31 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat