Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.343/2.343, allocations: 270 MB / 283.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.607e-05/3.621e-05, allocations: 5.828 kB / 348.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1277, allocations: 61.89 MB / 410.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4825/0.6102, allocations: 86.08 MB / 496.4 MB, free: 1.941 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.6105, allocations: 60.66 kB / 496.5 MB, free: 1.883 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004073/0.6146, allocations: 0.9861 MB / 497.5 MB, free: 0.9062 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6146, allocations: 0 / 497.5 MB, free: 0.9062 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.6146, allocations: 0 / 497.5 MB, free: 0.9062 MB / 394.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.0004373/0.6151, allocations: 343.3 kB / 497.8 MB, free: 0.5273 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.6151, allocations: 12.03 kB / 497.8 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.6152, allocations: 34.56 kB / 497.9 MB, free: 484 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.6152, allocations: 0 / 497.9 MB, free: 484 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.6154, allocations: 174.9 kB / 498 MB, free: 268 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.6154, allocations: 0 / 498 MB, free: 268 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.6154, allocations: 7.953 kB / 498 MB, free: 260 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.6156, allocations: 51.41 kB / 498.1 MB, free: 196 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.6156, allocations: 4 kB / 498.1 MB, free: 192 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.6156, allocations: 0 / 498.1 MB, free: 192 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.6156, allocations: 0 / 498.1 MB, free: 192 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.241e-05/0.6157, allocations: 11.98 kB / 498.1 MB, free: 180 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.6162, allocations: 264.9 kB / 498.4 MB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.712e-05/0.6163, allocations: 30.52 kB / 498.4 MB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.511e-05/0.6164, allocations: 16.91 kB / 498.4 MB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.6164, allocations: 0 / 498.4 MB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.6164, allocations: 34.56 kB / 498.4 MB, free: 15.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.6164, allocations: 0 / 498.4 MB, free: 15.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001702/0.6166, allocations: 37.7 kB / 498.5 MB, free: 15.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.6167, allocations: 77.11 kB / 498.5 MB, free: 15.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.458e-05/0.6168, allocations: 109 kB / 498.7 MB, free: 15.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.6168, allocations: 32.48 kB / 498.7 MB, free: 15.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.6169, allocations: 88.08 kB / 498.8 MB, free: 15.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/0.6169, allocations: 7.906 kB / 498.8 MB, free: 15.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.6169, allocations: 0 / 498.8 MB, free: 15.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.6171, allocations: 318.8 kB / 499.1 MB, free: 15.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.284e-05/0.6171, allocations: 4 kB / 499.1 MB, free: 15.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-05/0.6172, allocations: 25.7 kB / 499.1 MB, free: 15.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.706e-05/0.6172, allocations: 12.03 kB / 499.1 MB, free: 15.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6172, allocations: 0 / 499.1 MB, free: 15.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001228/0.6174, allocations: 49.64 kB / 499.2 MB, free: 14.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.6174, allocations: 4 kB / 499.2 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.6174, allocations: 4 kB / 499.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.6174, allocations: 0.875 kB / 499.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.697e-05/0.6176, allocations: 7.984 kB / 499.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.6176, allocations: 0 / 499.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.6177, allocations: 15.98 kB / 499.2 MB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.6177, allocations: 3.938 kB / 499.2 MB, free: 14.93 MB / 410.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 8.2e-05/0.6178, allocations: 111.4 kB / 499.3 MB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.6178, allocations: 7.859 kB / 499.3 MB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.6179, allocations: 11.66 kB / 499.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.6179, allocations: 0 / 499.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.6179, allocations: 0 / 499.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.6179, allocations: 0 / 499.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.6181, allocations: 161.7 kB / 499.5 MB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.6181, allocations: 4 kB / 499.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.349e-05/0.6182, allocations: 7.984 kB / 499.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.6182, allocations: 11.89 kB / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.6183, allocations: 0 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.6183, allocations: 0 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6183, allocations: 0 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.6184, allocations: 135.5 kB / 499.7 MB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.6185, allocations: 85.05 kB / 499.7 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.6185, allocations: 7.953 kB / 499.8 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.6187, allocations: 15.98 kB / 499.8 MB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.6188, allocations: 11.92 kB / 499.8 MB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.6188, allocations: 0 / 499.8 MB, free: 14.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.365e-05/0.6188, allocations: 87.58 kB / 499.9 MB, free: 14.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6188, allocations: 0 / 499.9 MB, free: 14.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002991/0.6192, allocations: 8 kB / 499.9 MB, free: 14.18 MB / 410.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.0004308/0.6196, allocations: 0.6656 MB / 0.4888 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.6197, allocations: 23.98 kB / 0.4888 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.6198, allocations: 0 / 0.4888 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.137e-05/0.6198, allocations: 7.938 kB / 0.4888 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001776/0.62, allocations: 20.53 kB / 0.4889 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/0.6204, allocations: 94.58 kB / 0.4889 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.6207, allocations: 0.6809 MB / 0.4896 GB, free: 12.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.352e-05/0.6208, allocations: 3.984 kB / 0.4896 GB, free: 12.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.6208, allocations: 15.44 kB / 0.4896 GB, free: 12.58 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/0.6209, allocations: 0 / 0.4896 GB, free: 12.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.6392, allocations: 1.175 MB / 0.4908 GB, free: 11.48 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002646/0.6396, allocations: 145.1 kB / 0.4909 GB, free: 11.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/2.845, allocations: 3.984 kB / 0.4909 GB, free: 11.24 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat