Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.424/2.424, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.723e-05/2.719e-05, allocations: 2.469 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.207/1.316, allocations: 316.5 MB / 0.5965 GB, free: 69.08 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/1.317, allocations: 84.45 kB / 0.5966 GB, free: 69.04 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8966/2.213, allocations: 135 MB / 0.7284 GB, free: 110.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.213, allocations: 4 kB / 0.7284 GB, free: 110.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.505e-05/2.213, allocations: 19.83 kB / 0.7284 GB, free: 110.4 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003599/2.217, allocations: 1.029 MB / 0.7294 GB, free: 109.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/2.217, allocations: 8.031 kB / 0.7294 GB, free: 109.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006582/2.218, allocations: 87.09 kB / 0.7295 GB, free: 109.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/2.22, allocations: 0.5817 MB / 0.7301 GB, free: 108.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/2.22, allocations: 16 kB / 0.7301 GB, free: 108.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/2.22, allocations: 32 kB / 0.7301 GB, free: 108.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001869/2.222, allocations: 0.5999 MB / 0.7307 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/2.224, allocations: 0.6619 MB / 0.7313 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/2.224, allocations: 4 kB / 0.7314 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/2.224, allocations: 0 / 0.7314 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/2.224, allocations: 49.23 kB / 0.7314 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008483/2.233, allocations: 2.747 MB / 0.7341 GB, free: 104.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/2.234, allocations: 443.6 kB / 0.7345 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006151/2.235, allocations: 242 kB / 0.7347 GB, free: 103.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004017/2.235, allocations: 336.8 kB / 0.7351 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/2.235, allocations: 54.84 kB / 0.7351 GB, free: 103.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 4.077e-06/2.235, allocations: 0 / 0.7351 GB, free: 103.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.009925/2.245, allocations: 1.807 MB / 0.7369 GB, free: 101.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/2.245, allocations: 85.67 kB / 0.737 GB, free: 101.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008936/2.246, allocations: 454.1 kB / 0.7374 GB, free: 100.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/2.246, allocations: 29.7 kB / 0.7374 GB, free: 100.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000312/2.246, allocations: 332.1 kB / 0.7377 GB, free: 100.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/2.247, allocations: 193.2 kB / 0.7379 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/2.247, allocations: 0 / 0.7379 GB, free: 100.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/2.247, allocations: 374.8 kB / 0.7383 GB, free: 99.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007687/2.248, allocations: 265.5 kB / 0.7385 GB, free: 99.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008367/2.249, allocations: 429.7 kB / 0.7389 GB, free: 99.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008016/2.257, allocations: 0.8435 MB / 0.7398 GB, free: 98.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.481e-05/2.257, allocations: 4 kB / 0.7398 GB, free: 98.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.009955/2.267, allocations: 1.382 MB / 0.7411 GB, free: 96.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004145/2.267, allocations: 1.746 MB / 0.7428 GB, free: 94.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/2.267, allocations: 8 kB / 0.7428 GB, free: 94.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/2.268, allocations: 168.7 kB / 0.743 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/2.27, allocations: 151.7 kB / 0.7431 GB, free: 94.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/2.273, allocations: 0.9425 MB / 0.7441 GB, free: 93.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/2.274, allocations: 32.03 kB / 0.7441 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/2.274, allocations: 31.98 kB / 0.7441 GB, free: 93.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/2.274, allocations: 7.953 kB / 0.7441 GB, free: 93.6 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00938/2.284, allocations: 1.202 MB / 0.7453 GB, free: 92.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/2.284, allocations: 8 kB / 0.7453 GB, free: 92.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007165/2.285, allocations: 104.8 kB / 0.7454 GB, free: 92.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/2.286, allocations: 164.1 kB / 0.7456 GB, free: 92.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/2.288, allocations: 0.7903 MB / 0.7463 GB, free: 91.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/2.289, allocations: 43.88 kB / 0.7464 GB, free: 91.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/2.289, allocations: 27.98 kB / 0.7464 GB, free: 91.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003265/2.29, allocations: 130.5 kB / 0.7465 GB, free: 91.1 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003486/2.293, allocations: 0.7371 MB / 0.7472 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/2.293, allocations: 67.23 kB / 0.7473 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/2.297, allocations: 0.8138 MB / 0.7481 GB, free: 89.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/2.297, allocations: 8 kB / 0.7481 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/2.297, allocations: 8.016 kB / 0.7481 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/2.297, allocations: 11.92 kB / 0.7481 GB, free: 89.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005225/2.302, allocations: 1.571 MB / 0.7497 GB, free: 87.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/2.302, allocations: 0 / 0.7497 GB, free: 87.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/2.303, allocations: 111.8 kB / 0.7498 GB, free: 87.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009538/2.304, allocations: 164.8 kB / 0.7499 GB, free: 87.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-05/2.304, allocations: 7.984 kB / 0.7499 GB, free: 87.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/2.306, allocations: 0.8646 MB / 0.7508 GB, free: 86.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/2.306, allocations: 7.734 kB / 0.7508 GB, free: 86.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/2.311, allocations: 1.244 MB / 0.752 GB, free: 85.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002987/2.311, allocations: 144.3 kB / 0.7521 GB, free: 85.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/2.311, allocations: 7.984 kB / 0.7521 GB, free: 85.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/2.312, allocations: 27.92 kB / 0.7522 GB, free: 85.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/2.312, allocations: 56.42 kB / 0.7522 GB, free: 85.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/2.312, allocations: 27.97 kB / 0.7523 GB, free: 85.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006378/2.313, allocations: 342.9 kB / 0.7526 GB, free: 84.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.313, allocations: 0 / 0.7526 GB, free: 84.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002655/2.316, allocations: 0.5463 MB / 0.7531 GB, free: 84.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006337/2.322, allocations: 2.406 MB / 0.7555 GB, free: 81.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003422/2.326, allocations: 1.067 MB / 0.7565 GB, free: 80.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/2.326, allocations: 0 / 0.7565 GB, free: 80.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/2.327, allocations: 359.5 kB / 0.7569 GB, free: 80.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/2.33, allocations: 289.8 kB / 0.7571 GB, free: 80.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004821/2.335, allocations: 1.442 MB / 0.7585 GB, free: 78.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005972/2.335, allocations: 0.9873 MB / 0.7595 GB, free: 77.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002135/2.337, allocations: 291.6 kB / 0.7598 GB, free: 77.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006059/2.338, allocations: 247.3 kB / 0.76 GB, free: 77.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/2.338, allocations: 0 / 0.76 GB, free: 77.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/2.444, allocations: 24.55 MB / 0.784 GB, free: 52.54 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003217/2.444, allocations: 156.9 kB / 0.7841 GB, free: 52.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.483/6.927, allocations: 0 / 0.7841 GB, free: 52.34 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.TwoTanks_res.mat does not exist to compare? outputFormat=mat