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.251/2.251, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.77e-05/3.771e-05, allocations: 8 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3815, allocations: 54.85 MB / 359.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1424/0.5239, allocations: 80.11 MB / 440 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.5242, allocations: 57.16 kB / 440 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003689/0.5279, allocations: 0.9165 MB / 440.9 MB, free: 15.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5279, allocations: 0 / 440.9 MB, free: 15.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.5279, allocations: 0 / 440.9 MB, free: 15.76 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.0004093/0.5283, allocations: 350.4 kB / 441.3 MB, free: 15.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.5284, allocations: 12.69 kB / 441.3 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.5284, allocations: 31.56 kB / 441.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.5285, allocations: 3.953 kB / 441.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.5286, allocations: 171 kB / 441.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.5286, allocations: 0 / 441.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.5287, allocations: 8 kB / 441.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.5288, allocations: 59.92 kB / 441.6 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.5288, allocations: 4 kB / 441.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.5289, allocations: 0 / 441.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.5289, allocations: 3.953 kB / 441.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.388e-05/0.529, allocations: 15.94 kB / 441.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004346/0.5294, allocations: 265.8 kB / 441.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.375e-05/0.5295, allocations: 22.58 kB / 441.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.357e-05/0.5295, allocations: 8.922 kB / 441.9 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.5296, allocations: 4 kB / 441.9 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.5296, allocations: 34.56 kB / 441.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.583e-06/0.5296, allocations: 0 / 441.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001771/0.5298, allocations: 50.89 kB / 442 MB, free: 14.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.5299, allocations: 85.14 kB / 442 MB, free: 14.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.53, allocations: 97 kB / 442.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.53, allocations: 25.7 kB / 442.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.927e-05/0.5301, allocations: 95.98 kB / 442.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.5301, allocations: 3.984 kB / 442.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.5301, allocations: 0 / 442.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.5303, allocations: 310.8 kB / 442.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.658e-05/0.5303, allocations: 8 kB / 442.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.783e-05/0.5304, allocations: 25.72 kB / 442.6 MB, free: 13.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.894e-05/0.5304, allocations: 11.98 kB / 442.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5304, allocations: 0 / 442.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001226/0.5306, allocations: 49.55 kB / 442.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.5306, allocations: 11.98 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5306, allocations: 1.312 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.5306, allocations: 3.953 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.835e-05/0.5307, allocations: 4 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.5308, allocations: 5.469 kB / 442.7 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.5309, allocations: 11.98 kB / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.5309, allocations: 0 / 442.7 MB, free: 13.77 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 7.917e-05/0.531, allocations: 109 kB / 442.8 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.531, allocations: 7.281 kB / 442.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.075e-05/0.5311, allocations: 3.797 kB / 442.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.5311, allocations: 3.984 kB / 442.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5311, allocations: 3.953 kB / 442.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.5311, allocations: 4 kB / 442.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.5313, allocations: 165.7 kB / 443 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.5314, allocations: 0 / 443 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.5314, allocations: 9.641 kB / 443 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.5314, allocations: 0 / 443 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.5315, allocations: 0 / 443 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5315, allocations: 3.938 kB / 443 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5315, allocations: 0 / 443 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.5316, allocations: 147.4 kB / 443.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.5317, allocations: 81.11 kB / 443.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.5317, allocations: 1.219 kB / 443.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.5319, allocations: 13.05 kB / 443.2 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.5319, allocations: 11.98 kB / 443.2 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.532, allocations: 0 / 443.2 MB, free: 13.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.726e-05/0.532, allocations: 89.27 kB / 443.3 MB, free: 13.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.532, allocations: 4.031 kB / 443.3 MB, free: 13.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002665/0.5323, allocations: 8 kB / 443.3 MB, free: 13.04 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.0004213/0.5327, allocations: 0.6695 MB / 444 MB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.5329, allocations: 20 kB / 444 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5329, allocations: 4.031 kB / 444 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.113e-05/0.5329, allocations: 8 kB / 444 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000155/0.5331, allocations: 6.25 kB / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004183/0.5335, allocations: 99.83 kB / 444.1 MB, free: 12.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.5338, allocations: 0.6809 MB / 444.8 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.315e-05/0.5339, allocations: 4 kB / 444.8 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.5339, allocations: 11.44 kB / 444.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.534, allocations: 4.062 kB / 444.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.5525, allocations: 1.187 MB / 446 MB, free: 10.35 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003478/0.553, allocations: 146.7 kB / 446.2 MB, free: 10.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.829, allocations: 0 / 446.2 MB, free: 10.12 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