Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.389/2.389, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.28e-05/2.291e-05, allocations: 2.25 kB / 249.8 MB, free: 5.281 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.09941, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5158/0.6153, allocations: 81.21 MB / 375.5 MB, free: 7.32 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.6157, allocations: 84.33 kB / 375.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05193/0.6676, allocations: 9.067 MB / 384.7 MB, free: 20.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6677, allocations: 0 / 384.7 MB, free: 20.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.18e-05/0.6677, allocations: 3.875 kB / 384.7 MB, free: 20.56 MB / 314.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.001697/0.6694, allocations: 0.5898 MB / 385.3 MB, free: 20.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.6695, allocations: 7.844 kB / 385.3 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.6696, allocations: 42.95 kB / 385.3 MB, free: 20.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.6703, allocations: 321.3 kB / 385.6 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.792e-05/0.6704, allocations: 37.95 kB / 385.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002691/0.6706, allocations: 35.23 kB / 385.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007347/0.6714, allocations: 238.2 kB / 385.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006743/0.6721, allocations: 258 kB / 386.2 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.6721, allocations: 3.781 kB / 386.2 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.6722, allocations: 0 / 386.2 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.6722, allocations: 15.91 kB / 386.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.6749, allocations: 1.116 MB / 387.3 MB, free: 18.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005704/0.6755, allocations: 253.4 kB / 387.6 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.6758, allocations: 134.3 kB / 387.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.6759, allocations: 3.906 kB / 387.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.6759, allocations: 34.5 kB / 387.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.527e-06/0.6759, allocations: 0 / 387.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=42): time 0.01454/0.6905, allocations: 1.918 MB / 389.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.6906, allocations: 86.05 kB / 389.7 MB, free: 17.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004464/0.691, allocations: 244.3 kB / 390 MB, free: 17.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.797e-05/0.6911, allocations: 25.7 kB / 390 MB, free: 17.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.6912, allocations: 165.3 kB / 390.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.6914, allocations: 137.5 kB / 390.3 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.6914, allocations: 6.75 kB / 390.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.6916, allocations: 338.8 kB / 390.6 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003833/0.692, allocations: 132.5 kB / 390.8 MB, free: 17.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.6925, allocations: 192.3 kB / 390.9 MB, free: 17.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.6929, allocations: 148 kB / 391.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.6929, allocations: 3.984 kB / 391.1 MB, free: 17.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01307/0.706, allocations: 1.424 MB / 392.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.7061, allocations: 7.5 kB / 392.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.7061, allocations: 0 / 392.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/0.7185, allocations: 1.04 MB / 393.6 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/0.7191, allocations: 65.12 kB / 393.6 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02275/0.7419, allocations: 4.264 MB / 397.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008805/0.7428, allocations: 27.11 kB / 397.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.7429, allocations: 19.33 kB / 397.9 MB, free: 14.61 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real 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.0002677/0.7432, allocations: 116.9 kB / 398 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004321/0.7475, allocations: 0.6648 MB / 398.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.7477, allocations: 30 kB / 398.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002503/0.7502, allocations: 0.5523 MB / 399.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.7502, allocations: 7.75 kB / 399.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7502, allocations: 0 / 399.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.7503, allocations: 3.984 kB / 399.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0049/0.7552, allocations: 1.143 MB / 400.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.7552, allocations: 4 kB / 400.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009987/0.7562, allocations: 100.4 kB / 400.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002783/0.759, allocations: 256.1 kB / 400.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.642e-05/0.7591, allocations: 3.938 kB / 400.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005469/0.7646, allocations: 2.085 MB / 402.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.7646, allocations: 15.92 kB / 402.9 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.7678, allocations: 0.8898 MB / 403.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000316/0.7681, allocations: 143.2 kB / 403.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.7682, allocations: 11.77 kB / 403.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008704/0.7691, allocations: 31.16 kB / 404 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.7693, allocations: 31.83 kB / 404 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.7694, allocations: 15.55 kB / 404 MB, free: 11.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002959/0.7697, allocations: 193.4 kB / 404.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7697, allocations: 0 / 404.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001101/0.7708, allocations: 119.9 kB / 404.3 MB, free: 11.44 MB / 314.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.003644/0.7745, allocations: 1.564 MB / 405.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.7759, allocations: 0.5119 MB / 406.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.7759, allocations: 0 / 406.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007043/0.7767, allocations: 331.4 kB / 406.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005834/0.7773, allocations: 31.66 kB / 406.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.7801, allocations: 0.7682 MB / 407.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.7806, allocations: 0.8059 MB / 408.3 MB, free: 8.918 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003491/0.781, allocations: 34.73 kB / 408.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/0.7813, allocations: 123.9 kB / 408.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7814, allocations: 0 / 408.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/0.8839, allocations: 10 MB / 418.5 MB, free: 15.5 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003281/0.8843, allocations: 180.3 kB / 418.7 MB, free: 15.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.301/4.186, allocations: 4.031 kB / 418.7 MB, free: 15.29 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat