Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.12e-05, allocations: 4 kB / 292.3 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 50.4 MB / 342.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5469, allocations: 89.12 MB / 431.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.5472, allocations: 85.64 kB / 431.9 MB, free: 5.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04817/0.5954, allocations: 9.469 MB / 441.3 MB, free: 12.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.76e-06/0.5954, allocations: 4 kB / 441.3 MB, free: 12.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.5955, allocations: 4 kB / 441.3 MB, free: 12.92 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001687/0.5972, allocations: 0.586 MB / 441.9 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5972, allocations: 12.03 kB / 441.9 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.5973, allocations: 63.17 kB / 442 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.5975, allocations: 39.53 kB / 442 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006031/0.5981, allocations: 322.3 kB / 442.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-05/0.5982, allocations: 47.89 kB / 442.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.5985, allocations: 42.06 kB / 442.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007293/0.5992, allocations: 289 kB / 442.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.5992, allocations: 4 kB / 442.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.5993, allocations: 13.75 kB / 442.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.5993, allocations: 4 kB / 442.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000743/0.6001, allocations: 257.4 kB / 443 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.6028, allocations: 1.172 MB / 444.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/0.6035, allocations: 264.4 kB / 444.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.6039, allocations: 149.9 kB / 444.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.6039, allocations: 4 kB / 444.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.604, allocations: 38.94 kB / 444.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 3.397e-06/0.604, allocations: 0 / 444.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.01552/0.6195, allocations: 2.147 MB / 446.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.6197, allocations: 84.89 kB / 446.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005478/0.6202, allocations: 264.9 kB / 447.1 MB, free: 7.883 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.014e-05/0.6203, allocations: 36.7 kB / 447.1 MB, free: 7.848 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.6205, allocations: 161.6 kB / 447.3 MB, free: 7.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.6207, allocations: 147 kB / 447.4 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.6207, allocations: 10.56 kB / 447.4 MB, free: 7.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.6209, allocations: 340.3 kB / 447.8 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/0.6213, allocations: 142.8 kB / 447.9 MB, free: 7.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004716/0.6218, allocations: 197.2 kB / 448.1 MB, free: 7.031 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004869/0.6223, allocations: 159.8 kB / 448.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6223, allocations: 0 / 448.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01217/0.6345, allocations: 1.472 MB / 449.7 MB, free: 5.664 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.6346, allocations: 4 kB / 449.7 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.6346, allocations: 4 kB / 449.7 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/0.646, allocations: 1.038 MB / 450.8 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.6466, allocations: 63.89 kB / 450.8 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/0.665, allocations: 4.356 MB / 455.2 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008211/0.6658, allocations: 34.77 kB / 455.2 MB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.6659, allocations: 19.73 kB / 455.3 MB, free: 1.207 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 20} Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.6661, allocations: 125.5 kB / 455.4 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.6663, allocations: 31.62 kB / 455.4 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.6688, allocations: 0.5932 MB / 456 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.6688, allocations: 4 kB / 456 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.6689, allocations: 0 / 456 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.6689, allocations: 7.938 kB / 456 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/0.6737, allocations: 1.232 MB / 457.2 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.6738, allocations: 3.953 kB / 457.3 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009307/0.6747, allocations: 87.89 kB / 457.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.6773, allocations: 272.5 kB / 457.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.6774, allocations: 4 kB / 457.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005316/0.6828, allocations: 2.135 MB / 459.7 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6828, allocations: 0 / 459.7 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.6861, allocations: 0.9419 MB / 460.7 MB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.6864, allocations: 144.7 kB / 460.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-05/0.6865, allocations: 12 kB / 460.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008025/0.6873, allocations: 35.97 kB / 460.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.6876, allocations: 32.39 kB / 460.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.6876, allocations: 19.98 kB / 460.9 MB, free: 11.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003753/0.688, allocations: 205.4 kB / 461.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.688, allocations: 0 / 461.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001107/0.6892, allocations: 140 kB / 461.3 MB, free: 11.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.003964/0.6932, allocations: 1.603 MB / 462.9 MB, free: 9.711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.6948, allocations: 0.5367 MB / 463.4 MB, free: 9.168 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6948, allocations: 0 / 463.4 MB, free: 9.168 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007778/0.6956, allocations: 347 kB / 463.7 MB, free: 8.816 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.6961, allocations: 39.44 kB / 463.8 MB, free: 8.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.6988, allocations: 0.7974 MB / 464.6 MB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.6992, allocations: 0.8048 MB / 465.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002789/0.6995, allocations: 30.97 kB / 465.4 MB, free: 7.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.6998, allocations: 119.4 kB / 465.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6998, allocations: 0 / 465.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04599/0.7458, allocations: 11.21 MB / 476.7 MB, free: 11.86 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003399/0.7463, allocations: 204.3 kB / 476.9 MB, free: 11.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.815/3.562, allocations: 0 / 476.9 MB, free: 11.64 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat