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.356/2.356, allocations: 235.1 MB / 242.2 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.514e-05/2.561e-05, allocations: 0 / 299.5 MB, free: 6.359 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3547, allocations: 54.86 MB / 354.3 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4966, allocations: 79.44 MB / 433.8 MB, free: 492 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4969, allocations: 63.97 kB / 433.8 MB, free: 428 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003595/0.5005, allocations: 0.9093 MB / 434.8 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5005, allocations: 0 / 434.8 MB, free: 15.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.5006, allocations: 0 / 434.8 MB, free: 15.51 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.0004327/0.501, allocations: 346.4 kB / 435.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.5011, allocations: 8.031 kB / 435.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.5011, allocations: 7.953 kB / 435.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.5013, allocations: 167 kB / 435.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.5013, allocations: 0 / 435.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.5013, allocations: 7.938 kB / 435.3 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.205e-05/0.5014, allocations: 8 kB / 435.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.5015, allocations: 51.41 kB / 435.3 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.5015, allocations: 3.938 kB / 435.3 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.5016, allocations: 4 kB / 435.3 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.5016, allocations: 3.953 kB / 435.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004361/0.502, allocations: 245.5 kB / 435.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.336e-05/0.5021, allocations: 30.52 kB / 435.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.639e-05/0.5022, allocations: 12.92 kB / 435.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.5022, allocations: 4 kB / 435.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.5022, allocations: 34.56 kB / 435.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.854e-06/0.5023, allocations: 0 / 435.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001671/0.5024, allocations: 41.69 kB / 435.7 MB, free: 14.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.5025, allocations: 85.06 kB / 435.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.5026, allocations: 97 kB / 435.9 MB, free: 14.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.5026, allocations: 25.7 kB / 435.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.5027, allocations: 92.09 kB / 436 MB, free: 14.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.5027, allocations: 11.91 kB / 436 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.5027, allocations: 0 / 436 MB, free: 14.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5029, allocations: 310.8 kB / 436.3 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.523e-05/0.5029, allocations: 11.94 kB / 436.3 MB, free: 13.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-05/0.503, allocations: 21.7 kB / 436.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.626e-05/0.503, allocations: 4 kB / 436.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.503, allocations: 0 / 436.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001121/0.5031, allocations: 53.86 kB / 436.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5032, allocations: 11.94 kB / 436.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.5032, allocations: 0 / 436.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.5032, allocations: 3.984 kB / 436.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.244e-05/0.5033, allocations: 4 kB / 436.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.5033, allocations: 0 / 436.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.5034, allocations: 15.94 kB / 436.4 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.5035, allocations: 0 / 436.4 MB, free: 13.6 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.873e-05/0.5035, allocations: 110.5 kB / 436.6 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001087/0.5037, allocations: 53.53 kB / 436.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.5037, allocations: 0 / 436.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.5037, allocations: 3.969 kB / 436.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.5038, allocations: 4 kB / 436.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5038, allocations: 3.953 kB / 436.6 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.5038, allocations: 0 / 436.6 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.504, allocations: 138.2 kB / 436.8 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.504, allocations: 0 / 436.8 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.504, allocations: 8.031 kB / 436.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5041, allocations: 0 / 436.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.5041, allocations: 3.984 kB / 436.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5041, allocations: 4 kB / 436.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5041, allocations: 3.938 kB / 436.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.5043, allocations: 147.3 kB / 436.9 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.5043, allocations: 81.11 kB / 437 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.5044, allocations: 4.031 kB / 437 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.5045, allocations: 11.98 kB / 437 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.5046, allocations: 7.984 kB / 437 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.5046, allocations: 0 / 437 MB, free: 12.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.5047, allocations: 87.28 kB / 437.1 MB, free: 12.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5047, allocations: 0 / 437.1 MB, free: 12.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003264/0.505, allocations: 4 kB / 437.1 MB, free: 12.86 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.0005091/0.5055, allocations: 0.6733 MB / 437.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.5057, allocations: 19.94 kB / 437.8 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5057, allocations: 0 / 437.8 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.5057, allocations: 15.98 kB / 437.8 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.5059, allocations: 0 / 437.8 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.5064, allocations: 97.62 kB / 437.9 MB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.5067, allocations: 0.6807 MB / 438.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.513e-05/0.5067, allocations: 3.984 kB / 438.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.421e-05/0.5068, allocations: 15.44 kB / 438.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5068, allocations: 0 / 438.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0363/0.5431, allocations: 0.8788 MB / 439.5 MB, free: 10.39 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002491/0.5434, allocations: 121.7 kB / 439.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.161/2.704, allocations: 0 / 439.6 MB, free: 10.19 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