Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.769/2.769, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.071e-05/4.078e-05, allocations: 7.938 kB / 323.5 MB, free: 4.234 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4044, allocations: 58.83 MB / 382.3 MB, free: 10.2 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.5632, allocations: 85.05 MB / 467.3 MB, free: 7.359 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.5635, allocations: 63.97 kB / 467.4 MB, free: 7.297 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.003936/0.5674, allocations: 0.9405 MB / 468.3 MB, free: 6.355 MB / 394.8 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5675, allocations: 0 / 468.3 MB, free: 6.355 MB / 394.8 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.5675, allocations: 0 / 468.3 MB, free: 6.355 MB / 394.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004638/0.5679, allocations: 350.9 kB / 468.7 MB, free: 5.969 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.568, allocations: 8.031 kB / 468.7 MB, free: 5.961 MB / 394.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.5681, allocations: 30.56 kB / 468.7 MB, free: 5.922 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.894e-05/0.5681, allocations: 4 kB / 468.7 MB, free: 5.918 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.5683, allocations: 182.9 kB / 468.9 MB, free: 5.699 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.5683, allocations: 0 / 468.9 MB, free: 5.699 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.5683, allocations: 0 / 468.9 MB, free: 5.699 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.5685, allocations: 55.39 kB / 469 MB, free: 5.633 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.5685, allocations: 0 / 469 MB, free: 5.633 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.5685, allocations: 0 / 469 MB, free: 5.633 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5686, allocations: 0 / 469 MB, free: 5.633 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.581e-05/0.5686, allocations: 15.94 kB / 469 MB, free: 5.617 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.5691, allocations: 268.9 kB / 469.2 MB, free: 5.305 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 8.092e-05/0.5692, allocations: 26.58 kB / 469.3 MB, free: 5.27 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.803e-05/0.5693, allocations: 8.922 kB / 469.3 MB, free: 5.258 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.5693, allocations: 0 / 469.3 MB, free: 5.258 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.5694, allocations: 34.56 kB / 469.3 MB, free: 5.215 MB / 394.8 MB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.5694, allocations: 4 kB / 469.3 MB, free: 5.211 MB / 394.8 MB Notification: Performance of matching and sorting (n=2): time 0.0001963/0.5696, allocations: 49.62 kB / 469.4 MB, free: 5.156 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.5696, allocations: 77.11 kB / 469.4 MB, free: 5.062 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.555e-05/0.5697, allocations: 97 kB / 469.5 MB, free: 4.961 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.5698, allocations: 33.64 kB / 469.6 MB, free: 4.922 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.791e-05/0.5698, allocations: 88.12 kB / 469.7 MB, free: 4.832 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.5699, allocations: 3.906 kB / 469.7 MB, free: 4.828 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.5699, allocations: 0 / 469.7 MB, free: 4.828 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.57, allocations: 326.8 kB / 470 MB, free: 4.5 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.43e-05/0.5701, allocations: 4 kB / 470 MB, free: 4.496 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.336e-05/0.5701, allocations: 17.72 kB / 470 MB, free: 4.473 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.87e-05/0.5702, allocations: 11.98 kB / 470 MB, free: 4.461 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5702, allocations: 0 / 470 MB, free: 4.461 MB / 394.8 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001234/0.5703, allocations: 53.59 kB / 470.1 MB, free: 4.402 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.5704, allocations: 7.938 kB / 470.1 MB, free: 4.395 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5704, allocations: 0 / 470.1 MB, free: 4.395 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.5704, allocations: 4.031 kB / 470.1 MB, free: 4.391 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.778e-05/0.5705, allocations: 4 kB / 470.1 MB, free: 4.387 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.5705, allocations: 4 kB / 470.1 MB, free: 4.383 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.5706, allocations: 11.98 kB / 470.1 MB, free: 4.371 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.5707, allocations: 3.938 kB / 470.1 MB, free: 4.367 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.199e-05/0.5708, allocations: 108.9 kB / 470.2 MB, free: 4.254 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.5708, allocations: 4 kB / 470.2 MB, free: 4.25 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.5709, allocations: 7.656 kB / 470.2 MB, free: 4.238 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.5709, allocations: 4 kB / 470.2 MB, free: 4.234 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.5709, allocations: 4 kB / 470.2 MB, free: 4.23 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.5709, allocations: 144 / 470.2 MB, free: 4.23 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.5711, allocations: 165.6 kB / 470.4 MB, free: 4.02 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.5711, allocations: 3.984 kB / 470.4 MB, free: 4.016 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.5712, allocations: 7.984 kB / 470.4 MB, free: 4.008 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.5712, allocations: 0 / 470.4 MB, free: 4.008 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.5712, allocations: 0 / 470.4 MB, free: 4.008 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.5713, allocations: 4 kB / 470.4 MB, free: 4.004 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5713, allocations: 4 kB / 470.4 MB, free: 4 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.5714, allocations: 143.4 kB / 470.5 MB, free: 3.844 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.5715, allocations: 81.02 kB / 470.6 MB, free: 3.746 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.5715, allocations: 0 / 470.6 MB, free: 3.746 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.5717, allocations: 11.98 kB / 470.6 MB, free: 3.734 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.831e-05/0.5718, allocations: 11.98 kB / 470.6 MB, free: 3.723 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.5718, allocations: 4.031 kB / 470.6 MB, free: 3.719 MB / 394.8 MB Notification: Performance of sorting global known variables: time 6.127e-05/0.5719, allocations: 91.2 kB / 470.7 MB, free: 3.629 MB / 394.8 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5719, allocations: 0 / 470.7 MB, free: 3.629 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.000287/0.5722, allocations: 12 kB / 470.8 MB, free: 3.617 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005328/0.5727, allocations: 0.6695 MB / 471.4 MB, free: 2.922 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.5729, allocations: 23.94 kB / 471.4 MB, free: 2.898 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5729, allocations: 0 / 471.4 MB, free: 2.898 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 4.004e-05/0.5729, allocations: 4 kB / 471.4 MB, free: 2.895 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.5731, allocations: 4 kB / 471.5 MB, free: 2.891 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.5736, allocations: 96.11 kB / 471.5 MB, free: 2.762 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.5739, allocations: 0.6848 MB / 472.2 MB, free: 2.051 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 4.597e-05/0.574, allocations: 4.062 kB / 472.2 MB, free: 2.047 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.574, allocations: 11.44 kB / 472.2 MB, free: 2.035 MB / 394.8 MB Notification: Performance of SimCode: time 8.01e-07/0.574, allocations: 0 / 472.2 MB, free: 2.035 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.5969, allocations: 1.178 MB / 473.4 MB, free: 0.9297 MB / 394.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003843/0.5973, allocations: 139.5 kB / 473.6 MB, free: 0.6992 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/2.86, allocations: 4 kB / 473.6 MB, free: 0.6953 MB / 394.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat