Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.272/2.272, allocations: 235 MB / 247.2 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.222e-05/4.245e-05, allocations: 4 kB / 305 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4095, allocations: 54.84 MB / 359.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1756/0.5852, allocations: 80.12 MB / 440 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5855, allocations: 64.75 kB / 440.1 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004617/0.5901, allocations: 0.9091 MB / 441 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5902, allocations: 0 / 441 MB, free: 15.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.5902, allocations: 0 / 441 MB, free: 15.73 MB / 378.7 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.0006737/0.5909, allocations: 348.1 kB / 441.3 MB, free: 15.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.591, allocations: 8.031 kB / 441.3 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.416e-05/0.591, allocations: 34.55 kB / 441.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.5911, allocations: 7.953 kB / 441.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.5913, allocations: 176.1 kB / 441.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.5913, allocations: 0 / 441.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.766e-05/0.5914, allocations: 3.5 kB / 441.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.5916, allocations: 55.41 kB / 441.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5916, allocations: 0 / 441.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.5916, allocations: 5.625 kB / 441.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.5916, allocations: 11.94 kB / 441.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.054e-05/0.5917, allocations: 8 kB / 441.6 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.5924, allocations: 264.9 kB / 441.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.5925, allocations: 26.58 kB / 441.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.292e-05/0.5925, allocations: 12.92 kB / 441.9 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.5926, allocations: 0 / 441.9 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/0.5926, allocations: 34.56 kB / 441.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.893e-06/0.5927, allocations: 0 / 441.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002465/0.5929, allocations: 45.64 kB / 442 MB, free: 14.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.593, allocations: 81.14 kB / 442.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.5932, allocations: 113 kB / 442.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.5932, allocations: 25.7 kB / 442.2 MB, free: 14.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.265e-05/0.5933, allocations: 91.98 kB / 442.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.5933, allocations: 0 / 442.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.5934, allocations: 8 kB / 442.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.5936, allocations: 314.8 kB / 442.6 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.266e-05/0.5936, allocations: 8 kB / 442.6 MB, free: 13.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.986e-05/0.5937, allocations: 25.72 kB / 442.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.594e-05/0.5938, allocations: 4 kB / 442.6 MB, free: 13.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5938, allocations: 0 / 442.6 MB, free: 13.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001819/0.594, allocations: 50.53 kB / 442.7 MB, free: 13.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.594, allocations: 4 kB / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5941, allocations: 0 / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.5941, allocations: 3.953 kB / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.5942, allocations: 11.98 kB / 442.7 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.5943, allocations: 0 / 442.7 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.5944, allocations: 19.97 kB / 442.7 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.5945, allocations: 0 / 442.7 MB, free: 13.74 MB / 378.7 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 0.0001343/0.5946, allocations: 108.3 kB / 442.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/0.5947, allocations: 5.109 kB / 442.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.5948, allocations: 8.219 kB / 442.9 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.5948, allocations: 4 kB / 442.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5948, allocations: 3.953 kB / 442.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.5948, allocations: 4 kB / 442.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.5951, allocations: 157.7 kB / 443 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.5952, allocations: 0 / 443 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.474e-05/0.5953, allocations: 5.594 kB / 443 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.5953, allocations: 0 / 443 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.5953, allocations: 4.938 kB / 443 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.5953, allocations: 3.984 kB / 443 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5954, allocations: 0 / 443 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.5956, allocations: 147.4 kB / 443.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.5957, allocations: 81.09 kB / 443.3 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.5957, allocations: 0 / 443.3 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.596, allocations: 12 kB / 443.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.5961, allocations: 8.484 kB / 443.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.5961, allocations: 7.984 kB / 443.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.112e-05/0.5962, allocations: 87.23 kB / 443.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5962, allocations: 0 / 443.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00057/0.5968, allocations: 12.03 kB / 443.4 MB, free: 13.01 MB / 378.7 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.0006563/0.5975, allocations: 0.6663 MB / 444 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.5977, allocations: 16 kB / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5977, allocations: 0 / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.213e-05/0.5978, allocations: 16.91 kB / 444.1 MB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.5981, allocations: 3.984 kB / 444.1 MB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006676/0.5988, allocations: 95.89 kB / 444.2 MB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.5992, allocations: 0.6809 MB / 444.9 MB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.993e-05/0.5992, allocations: 4.219 kB / 444.9 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.312e-05/0.5993, allocations: 15.42 kB / 444.9 MB, free: 11.43 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5993, allocations: 0.5625 kB / 444.9 MB, free: 11.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06065/0.66, allocations: 1.186 MB / 446.1 MB, free: 10.33 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/0.6603, allocations: 142 kB / 446.2 MB, free: 10.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.215/2.875, allocations: 0 / 446.2 MB, free: 10.1 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat