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 1.928/1.928, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.195e-05/5.227e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 44.5 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.15, allocations: 321.4 MB / 0.6068 GB, free: 66.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/1.151, allocations: 89.94 kB / 0.6069 GB, free: 66.31 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7794/1.93, allocations: 141.4 MB / 0.745 GB, free: 98.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.434e-06/1.93, allocations: 0 / 0.745 GB, free: 98.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.435e-05/1.93, allocations: 23.94 kB / 0.7451 GB, free: 98.89 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.003109/1.933, allocations: 1.079 MB / 0.7461 GB, free: 97.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/1.933, allocations: 8.031 kB / 0.7461 GB, free: 97.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000204/1.934, allocations: 92.55 kB / 0.7462 GB, free: 97.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005488/1.934, allocations: 98.91 kB / 0.7463 GB, free: 97.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002036/1.936, allocations: 0.6366 MB / 0.7469 GB, free: 96.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/1.936, allocations: 104.3 kB / 0.747 GB, free: 96.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/1.937, allocations: 44 kB / 0.7471 GB, free: 96.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/1.938, allocations: 0.7889 MB / 0.7478 GB, free: 95.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/1.938, allocations: 0 / 0.7478 GB, free: 95.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/1.939, allocations: 22.58 kB / 0.7479 GB, free: 95.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.984e-05/1.939, allocations: 40.97 kB / 0.7479 GB, free: 95.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/1.94, allocations: 0.6538 MB / 0.7485 GB, free: 95.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006663/1.947, allocations: 3.422 MB / 0.7519 GB, free: 91.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000883/1.948, allocations: 392.9 kB / 0.7523 GB, free: 91.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/1.948, allocations: 245.1 kB / 0.7525 GB, free: 90.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002323/1.951, allocations: 1.34 MB / 0.7538 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/1.951, allocations: 300.9 kB / 0.7541 GB, free: 89.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.166e-06/1.951, allocations: 0 / 0.7541 GB, free: 89.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.003969/1.955, allocations: 1.399 MB / 0.7555 GB, free: 87.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/1.955, allocations: 170.5 kB / 0.7556 GB, free: 87.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/1.957, allocations: 0.6051 MB / 0.7562 GB, free: 86.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001782/1.957, allocations: 37.69 kB / 0.7562 GB, free: 86.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000352/1.957, allocations: 416.5 kB / 0.7566 GB, free: 86.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/1.957, allocations: 135 kB / 0.7568 GB, free: 86.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/1.957, allocations: 16 kB / 0.7568 GB, free: 86.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/1.958, allocations: 386.8 kB / 0.7572 GB, free: 85.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/1.958, allocations: 241.5 kB / 0.7574 GB, free: 85.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007373/1.959, allocations: 0.5321 MB / 0.7579 GB, free: 85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007657/1.96, allocations: 355.8 kB / 0.7582 GB, free: 84.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/1.96, allocations: 4 kB / 0.7583 GB, free: 84.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002553/1.962, allocations: 0.8999 MB / 0.7591 GB, free: 83.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007539/1.963, allocations: 3.515 MB / 0.7626 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/1.963, allocations: 8 kB / 0.7626 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009125/1.964, allocations: 132.8 kB / 0.7627 GB, free: 79.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/1.965, allocations: 147.8 kB / 0.7628 GB, free: 79.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006946/1.966, allocations: 0.6693 MB / 0.7635 GB, free: 78.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/1.967, allocations: 55.97 kB / 0.7635 GB, free: 78.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.902e-05/1.967, allocations: 40 kB / 0.7636 GB, free: 78.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/1.967, allocations: 7.953 kB / 0.7636 GB, free: 78.85 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00238/1.969, allocations: 0.8405 MB / 0.7644 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/1.969, allocations: 8 kB / 0.7644 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/1.97, allocations: 125.2 kB / 0.7645 GB, free: 77.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/1.971, allocations: 143.8 kB / 0.7647 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005805/1.972, allocations: 0.6576 MB / 0.7653 GB, free: 77.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008916/1.973, allocations: 48.03 kB / 0.7654 GB, free: 77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.722e-05/1.973, allocations: 40 kB / 0.7654 GB, free: 76.96 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.0003551/1.973, allocations: 198.8 kB / 0.7656 GB, free: 76.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/1.973, allocations: 75.16 kB / 0.7657 GB, free: 76.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/1.975, allocations: 0.6617 MB / 0.7663 GB, free: 76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/1.975, allocations: 8 kB / 0.7663 GB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.975, allocations: 0 / 0.7663 GB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/1.975, allocations: 3.984 kB / 0.7663 GB, free: 75.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/1.978, allocations: 1.334 MB / 0.7676 GB, free: 74.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/1.978, allocations: 0 / 0.7676 GB, free: 74.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/1.979, allocations: 67.88 kB / 0.7677 GB, free: 74.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007304/1.979, allocations: 116.8 kB / 0.7678 GB, free: 74.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.319e-05/1.979, allocations: 12 kB / 0.7678 GB, free: 74.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006299/1.98, allocations: 0.6616 MB / 0.7685 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.98, allocations: 4.031 kB / 0.7685 GB, free: 73.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/1.982, allocations: 0.9971 MB / 0.7694 GB, free: 72.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/1.982, allocations: 148.3 kB / 0.7696 GB, free: 72.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/1.983, allocations: 12.12 kB / 0.7696 GB, free: 72.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007037/1.983, allocations: 35.88 kB / 0.7696 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/1.984, allocations: 39.91 kB / 0.7697 GB, free: 72.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.997e-05/1.984, allocations: 26.09 kB / 0.7697 GB, free: 72.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000816/1.984, allocations: 467.1 kB / 0.7701 GB, free: 71.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.984, allocations: 4 kB / 0.7701 GB, free: 71.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002398/1.987, allocations: 0.5659 MB / 0.7707 GB, free: 71.38 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.003832/1.991, allocations: 2.027 MB / 0.7727 GB, free: 69.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003182/1.994, allocations: 1.165 MB / 0.7738 GB, free: 68.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.994, allocations: 4.062 kB / 0.7738 GB, free: 68.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009154/1.995, allocations: 343.2 kB / 0.7741 GB, free: 67.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/1.997, allocations: 244.2 kB / 0.7744 GB, free: 67.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004105/2.001, allocations: 1.396 MB / 0.7757 GB, free: 66.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/2.002, allocations: 0.9861 MB / 0.7767 GB, free: 65.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001647/2.003, allocations: 281.6 kB / 0.777 GB, free: 64.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/2.004, allocations: 247.3 kB / 0.7772 GB, free: 64.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/2.004, allocations: 3.938 kB / 0.7772 GB, free: 64.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06381/2.068, allocations: 24.31 MB / 0.8009 GB, free: 40.31 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/2.068, allocations: 226.8 kB / 0.8012 GB, free: 40.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.808/5.875, allocations: 0 / 0.8012 GB, free: 40.08 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