Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.956/2.956, allocations: 235.2 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.727e-05, allocations: 4 kB / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.489/0.489, allocations: 54.85 MB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.6868, allocations: 79.46 MB / 433.9 MB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.6871, allocations: 63.97 kB / 433.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004607/0.6917, allocations: 0.8976 MB / 434.8 MB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6918, allocations: 4 kB / 434.8 MB, free: 14.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.6918, allocations: 4 kB / 434.8 MB, free: 14.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.0005028/0.6923, allocations: 342.4 kB / 435.2 MB, free: 14.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.6924, allocations: 15.97 kB / 435.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.6924, allocations: 30.56 kB / 435.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.6925, allocations: 7.938 kB / 435.2 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.6927, allocations: 167 kB / 435.4 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.6927, allocations: 4 kB / 435.4 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.6927, allocations: 4 kB / 435.4 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.661e-05/0.6928, allocations: 8 kB / 435.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.693, allocations: 55.34 kB / 435.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.693, allocations: 0 / 435.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.693, allocations: 0 / 435.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.693, allocations: 7.938 kB / 435.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.6936, allocations: 245.5 kB / 435.7 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.995e-05/0.6937, allocations: 26.58 kB / 435.7 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.931e-05/0.6937, allocations: 8.922 kB / 435.7 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.6937, allocations: 3.984 kB / 435.7 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.6938, allocations: 34.5 kB / 435.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 2.275e-06/0.6938, allocations: 4 kB / 435.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002056/0.694, allocations: 45.64 kB / 435.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.6941, allocations: 81.11 kB / 435.9 MB, free: 13.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.6942, allocations: 97 kB / 436 MB, free: 13.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.6942, allocations: 25.7 kB / 436 MB, free: 13.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.6943, allocations: 92.06 kB / 436.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.6944, allocations: 7.906 kB / 436.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-06/0.6944, allocations: 0 / 436.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6945, allocations: 318.9 kB / 436.4 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.712e-05/0.6946, allocations: 8 kB / 436.4 MB, free: 12.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.113e-05/0.6947, allocations: 25.53 kB / 436.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.484e-05/0.6947, allocations: 4 kB / 436.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.6947, allocations: 0 / 436.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001409/0.6949, allocations: 49.62 kB / 436.5 MB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.6949, allocations: 8 kB / 436.5 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.6949, allocations: 0 / 436.5 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.695, allocations: 0 / 436.5 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.6951, allocations: 12.03 kB / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.6951, allocations: 0 / 436.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.6952, allocations: 15.94 kB / 436.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.6953, allocations: 0 / 436.5 MB, free: 12.79 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 9.587e-05/0.6954, allocations: 105 kB / 436.6 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.6954, allocations: 7.906 kB / 436.7 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.372e-05/0.6955, allocations: 7.969 kB / 436.7 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.6955, allocations: 7.984 kB / 436.7 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6955, allocations: 0 / 436.7 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.6955, allocations: 3.938 kB / 436.7 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.6958, allocations: 138.2 kB / 436.8 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6958, allocations: 0 / 436.8 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.966e-05/0.6959, allocations: 7.984 kB / 436.8 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.6959, allocations: 4 kB / 436.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.6959, allocations: 0 / 436.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.6959, allocations: 0 / 436.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.6959, allocations: 3.938 kB / 436.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.6961, allocations: 147.5 kB / 437 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/0.6962, allocations: 81.02 kB / 437 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.6962, allocations: 0 / 437 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.6964, allocations: 11.98 kB / 437.1 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.933e-05/0.6965, allocations: 7.984 kB / 437.1 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.6965, allocations: 4.031 kB / 437.1 MB, free: 12.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.532e-05/0.6966, allocations: 91.27 kB / 437.2 MB, free: 12.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6966, allocations: 0 / 437.2 MB, free: 12.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000368/0.697, allocations: 4 kB / 437.2 MB, free: 12.09 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.0005079/0.6975, allocations: 0.6694 MB / 437.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001439/0.6977, allocations: 24.03 kB / 437.9 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.6977, allocations: 3.938 kB / 437.9 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.353e-05/0.6977, allocations: 4 kB / 437.9 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.698, allocations: 8 kB / 437.9 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004718/0.6984, allocations: 89.12 kB / 438 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.6988, allocations: 0.6846 MB / 438.6 MB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.25e-05/0.6989, allocations: 8.281 kB / 438.7 MB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.165e-05/0.6989, allocations: 7.438 kB / 438.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/0.6989, allocations: 0 / 438.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04801/0.747, allocations: 0.9281 MB / 439.6 MB, free: 9.586 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003526/0.7474, allocations: 131 kB / 439.7 MB, free: 9.387 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.062/3.809, allocations: 0 / 439.7 MB, free: 9.387 MB / 378.7 MB "" Variables in the reference:time,hysteresis.y Variables in the result:Signal.amplitude,Signal.freqHz,Signal.offset,Signal.phase,Signal.startTime,Signal.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time