Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.186e-05, allocations: 0 / 292.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1357, allocations: 50.4 MB / 342.6 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5022/0.638, allocations: 83.23 MB / 425.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.6384, allocations: 78.08 kB / 425.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03477/0.6732, allocations: 8.29 MB / 434.2 MB, free: 4.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6732, allocations: 8 kB / 434.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.547e-05/0.6733, allocations: 4 kB / 434.2 MB, free: 4.062 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001126/0.6744, allocations: 0.5939 MB / 434.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.6745, allocations: 8.031 kB / 434.8 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.6746, allocations: 56.98 kB / 434.9 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.6747, allocations: 47.44 kB / 434.9 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006808/0.6754, allocations: 336.2 kB / 435.3 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.6755, allocations: 14.56 kB / 435.3 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.719e-05/0.6755, allocations: 19.5 kB / 435.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006435/0.6762, allocations: 298.3 kB / 435.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.6762, allocations: 0 / 435.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.6763, allocations: 10.19 kB / 435.6 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.6763, allocations: 4 kB / 435.6 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004213/0.6767, allocations: 149.8 kB / 435.8 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.6787, allocations: 0.806 MB / 436.6 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000685/0.6794, allocations: 203.5 kB / 436.8 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.6796, allocations: 79.53 kB / 436.8 MB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.6797, allocations: 7.984 kB / 436.8 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003383/0.68, allocations: 142 kB / 437 MB, free: 1.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.116e-06/0.68, allocations: 0 / 437 MB, free: 1.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007462/0.6808, allocations: 252.2 kB / 437.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.681, allocations: 312.4 kB / 437.5 MB, free: 1.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006765/0.6817, allocations: 378.5 kB / 437.9 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.6817, allocations: 37.08 kB / 437.9 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.6819, allocations: 206.3 kB / 438.1 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.469e-05/0.6821, allocations: 89.41 kB / 438.2 MB, free: 480 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.697e-05/0.6821, allocations: 3.875 kB / 438.2 MB, free: 480 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.6823, allocations: 348.5 kB / 438.6 MB, free: 136 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.6825, allocations: 65.69 kB / 438.6 MB, free: 96 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.6828, allocations: 171 kB / 438.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.683, allocations: 92.53 kB / 438.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.6831, allocations: 3.953 kB / 438.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006664/0.6837, allocations: 273.2 kB / 439.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.6838, allocations: 4 kB / 439.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.6838, allocations: 0 / 439.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.684, allocations: 35.31 kB / 439.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.6844, allocations: 59.53 kB / 439.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.6863, allocations: 1.451 MB / 440.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.6867, allocations: 23.12 kB / 440.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.6867, allocations: 15.61 kB / 440.8 MB, free: 14.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.6869, allocations: 130.4 kB / 440.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.733e-05/0.687, allocations: 43.53 kB / 440.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007364/0.6877, allocations: 273.7 kB / 441.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.6878, allocations: 4 kB / 441.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.6878, allocations: 0 / 441.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006929/0.6885, allocations: 0.5863 MB / 441.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.6899, allocations: 0.7395 MB / 442.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.6899, allocations: 0 / 442.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.6904, allocations: 50.59 kB / 442.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.6904, allocations: 0 / 442.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.6904, allocations: 7.688 kB / 442.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.6904, allocations: 4 kB / 442.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6905, allocations: 0 / 442.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008469/0.6913, allocations: 422.9 kB / 443 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.6916, allocations: 146.2 kB / 443.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.435e-05/0.6917, allocations: 10.88 kB / 443.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.692, allocations: 11.62 kB / 443.2 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.978e-05/0.6921, allocations: 19.91 kB / 443.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.6921, allocations: 11.44 kB / 443.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005324/0.6927, allocations: 312.5 kB / 443.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6927, allocations: 0 / 443.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006284/0.6933, allocations: 118.6 kB / 443.6 MB, free: 11.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002315/0.6957, allocations: 1.258 MB / 444.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008377/0.6965, allocations: 301.3 kB / 445.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.6965, allocations: 0 / 445.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.6968, allocations: 95.36 kB / 445.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008049/0.6976, allocations: 88.12 kB / 445.3 MB, free: 9.988 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.6995, allocations: 0.6576 MB / 446 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.7, allocations: 0.8079 MB / 446.8 MB, free: 8.516 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002921/0.7003, allocations: 42.95 kB / 446.9 MB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.7006, allocations: 123 kB / 447 MB, free: 8.438 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7006, allocations: 4 kB / 447 MB, free: 8.434 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0478/0.7484, allocations: 9.291 MB / 456.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003554/0.7488, allocations: 240.3 kB / 456.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.745, allocations: 0 / 456.5 MB, free: 15.02 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat