Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.477e-05/3.511e-05, allocations: 5.406 kB / 255.5 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09806, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.019/1.117, allocations: 321.4 MB / 0.6068 GB, free: 65.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/1.118, allocations: 89.14 kB / 0.6069 GB, free: 65.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8082/1.926, allocations: 141.4 MB / 0.745 GB, free: 98.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.155e-06/1.926, allocations: 0 / 0.745 GB, free: 98.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.188e-05/1.926, allocations: 25.5 kB / 0.745 GB, free: 98.38 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003397/1.93, allocations: 1.075 MB / 0.7461 GB, free: 97.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/1.93, allocations: 8.031 kB / 0.7461 GB, free: 97.25 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002564/1.93, allocations: 90.52 kB / 0.7462 GB, free: 97.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005786/1.93, allocations: 102.9 kB / 0.7463 GB, free: 97.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/1.933, allocations: 0.6435 MB / 0.7469 GB, free: 96.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/1.933, allocations: 88.41 kB / 0.747 GB, free: 96.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/1.933, allocations: 51.75 kB / 0.747 GB, free: 96.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/1.935, allocations: 0.7934 MB / 0.7478 GB, free: 95.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/1.935, allocations: 0 / 0.7478 GB, free: 95.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/1.935, allocations: 22.66 kB / 0.7478 GB, free: 95.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-05/1.935, allocations: 40.97 kB / 0.7479 GB, free: 95.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/1.937, allocations: 0.6674 MB / 0.7485 GB, free: 94.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007091/1.944, allocations: 3.427 MB / 0.7519 GB, free: 91.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009396/1.945, allocations: 387.3 kB / 0.7522 GB, free: 90.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005209/1.945, allocations: 245 kB / 0.7525 GB, free: 90.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002611/1.948, allocations: 1.341 MB / 0.7538 GB, free: 88.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006286/1.949, allocations: 292.9 kB / 0.7541 GB, free: 88.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.076e-06/1.949, allocations: 0 / 0.7541 GB, free: 88.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.004276/1.953, allocations: 1.417 MB / 0.7555 GB, free: 87.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/1.953, allocations: 166.5 kB / 0.7556 GB, free: 86.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/1.954, allocations: 0.6051 MB / 0.7562 GB, free: 86.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/1.954, allocations: 33.7 kB / 0.7562 GB, free: 86.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003383/1.955, allocations: 421.5 kB / 0.7566 GB, free: 85.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/1.955, allocations: 135.4 kB / 0.7568 GB, free: 85.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/1.955, allocations: 16 kB / 0.7568 GB, free: 85.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/1.955, allocations: 390.8 kB / 0.7572 GB, free: 85.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/1.956, allocations: 245.5 kB / 0.7574 GB, free: 85.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007329/1.957, allocations: 0.5293 MB / 0.7579 GB, free: 84.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007585/1.957, allocations: 347.9 kB / 0.7582 GB, free: 84.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/1.957, allocations: 4 kB / 0.7582 GB, free: 84.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0025/1.96, allocations: 0.9309 MB / 0.7592 GB, free: 83.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007714/1.961, allocations: 3.516 MB / 0.7626 GB, free: 79.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/1.961, allocations: 12 kB / 0.7626 GB, free: 79.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009613/1.962, allocations: 124.8 kB / 0.7627 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/1.963, allocations: 151.7 kB / 0.7629 GB, free: 79.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007825/1.964, allocations: 0.6655 MB / 0.7635 GB, free: 78.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/1.965, allocations: 48.03 kB / 0.7636 GB, free: 78.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/1.965, allocations: 44 kB / 0.7636 GB, free: 78.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/1.965, allocations: 7.891 kB / 0.7636 GB, free: 78.29 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002786/1.968, allocations: 0.8638 MB / 0.7645 GB, free: 77.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/1.968, allocations: 12 kB / 0.7645 GB, free: 77.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006956/1.969, allocations: 117.3 kB / 0.7646 GB, free: 77.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/1.97, allocations: 143.8 kB / 0.7647 GB, free: 77.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006938/1.97, allocations: 0.6653 MB / 0.7654 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/1.972, allocations: 48.05 kB / 0.7654 GB, free: 76.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/1.972, allocations: 39.98 kB / 0.7654 GB, free: 76.36 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004197/1.972, allocations: 202.8 kB / 0.7656 GB, free: 76.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/1.972, allocations: 71.16 kB / 0.7657 GB, free: 76.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001992/1.974, allocations: 0.6543 MB / 0.7663 GB, free: 75.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/1.974, allocations: 4 kB / 0.7663 GB, free: 75.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/1.974, allocations: 3.938 kB / 0.7664 GB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/1.974, allocations: 8.016 kB / 0.7664 GB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00306/1.977, allocations: 1.334 MB / 0.7677 GB, free: 74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/1.978, allocations: 4 kB / 0.7677 GB, free: 74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005287/1.978, allocations: 63.88 kB / 0.7677 GB, free: 73.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/1.979, allocations: 120.8 kB / 0.7678 GB, free: 73.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-05/1.979, allocations: 16 kB / 0.7679 GB, free: 73.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006509/1.98, allocations: 0.6617 MB / 0.7685 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.98, allocations: 0 / 0.7685 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/1.982, allocations: 0.9971 MB / 0.7695 GB, free: 72.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002698/1.982, allocations: 152.2 kB / 0.7696 GB, free: 71.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/1.982, allocations: 20.12 kB / 0.7696 GB, free: 71.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007008/1.983, allocations: 27.89 kB / 0.7697 GB, free: 71.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/1.983, allocations: 39.89 kB / 0.7697 GB, free: 71.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.257e-05/1.983, allocations: 23.98 kB / 0.7697 GB, free: 71.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008168/1.984, allocations: 471.1 kB / 0.7702 GB, free: 71.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.984, allocations: 4 kB / 0.7702 GB, free: 71.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002616/1.987, allocations: 0.5542 MB / 0.7707 GB, free: 70.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003917/1.991, allocations: 2.017 MB / 0.7727 GB, free: 68.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003122/1.994, allocations: 1.202 MB / 0.7739 GB, free: 67.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.994, allocations: 64 / 0.7739 GB, free: 67.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008763/1.995, allocations: 343.2 kB / 0.7742 GB, free: 67.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/1.997, allocations: 249.5 kB / 0.7744 GB, free: 66.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/2.001, allocations: 1.406 MB / 0.7758 GB, free: 65.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/2.001, allocations: 0.9822 MB / 0.7768 GB, free: 64.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001603/2.003, allocations: 289.6 kB / 0.777 GB, free: 64.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000405/2.003, allocations: 251.3 kB / 0.7773 GB, free: 63.97 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/2.003, allocations: 0 / 0.7773 GB, free: 63.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08683/2.09, allocations: 24.33 MB / 0.801 GB, free: 39.67 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/2.09, allocations: 224.1 kB / 0.8013 GB, free: 39.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.742/5.833, allocations: 0 / 0.8013 GB, free: 39.44 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat