Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.271/2.271, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.266e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3112, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4604, allocations: 81.21 MB / 375.4 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.4608, allocations: 87.94 kB / 375.5 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04725/0.5081, allocations: 9.063 MB / 384.6 MB, free: 7.465 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5081, allocations: 0 / 384.6 MB, free: 7.465 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.5082, allocations: 15.94 kB / 384.6 MB, free: 7.449 MB / 330.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.001682/0.5098, allocations: 0.581 MB / 385.2 MB, free: 6.824 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.5099, allocations: 12.03 kB / 385.2 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.5101, allocations: 39.48 kB / 385.2 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.5108, allocations: 323.8 kB / 385.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.701e-05/0.5109, allocations: 42.27 kB / 385.6 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002365/0.5112, allocations: 27.98 kB / 385.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007189/0.5119, allocations: 241 kB / 385.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006987/0.5126, allocations: 263.4 kB / 386.1 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.5126, allocations: 0 / 386.1 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.248e-05/0.5127, allocations: 3.938 kB / 386.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.5127, allocations: 11.95 kB / 386.1 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.5156, allocations: 1.11 MB / 387.2 MB, free: 4.641 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.5163, allocations: 253.6 kB / 387.5 MB, free: 4.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.5166, allocations: 137.6 kB / 387.6 MB, free: 4.234 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.5167, allocations: 4 kB / 387.6 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.5167, allocations: 38.56 kB / 387.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 3.466e-06/0.5168, allocations: 0 / 387.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.01348/0.5302, allocations: 1.911 MB / 389.6 MB, free: 2.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.5304, allocations: 86.27 kB / 389.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/0.5309, allocations: 244.5 kB / 389.9 MB, free: 1.871 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.5311, allocations: 25.7 kB / 389.9 MB, free: 1.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.5312, allocations: 227.2 kB / 390.1 MB, free: 1.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.5314, allocations: 133.9 kB / 390.3 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.5315, allocations: 0 / 390.3 MB, free: 1.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5316, allocations: 330.8 kB / 390.6 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.532, allocations: 132.9 kB / 390.7 MB, free: 1.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/0.5325, allocations: 192.9 kB / 390.9 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/0.5329, allocations: 149.8 kB / 391 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.533, allocations: 0 / 391 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01174/0.5447, allocations: 1.415 MB / 392.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.5448, allocations: 4 kB / 392.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.5448, allocations: 4.062 kB / 392.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/0.5559, allocations: 1.049 MB / 393.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/0.5565, allocations: 55.97 kB / 393.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/0.5742, allocations: 4.262 MB / 397.8 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007861/0.575, allocations: 28.02 kB / 397.9 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.5751, allocations: 15.98 kB / 397.9 MB, free: 9.699 MB / 346.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.0002544/0.5753, allocations: 119.7 kB / 398 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004062/0.5794, allocations: 0.6654 MB / 398.7 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.5797, allocations: 35.5 kB / 398.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002464/0.5822, allocations: 0.5589 MB / 399.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.5822, allocations: 4 kB / 399.3 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5822, allocations: 4 kB / 399.3 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.5823, allocations: 11.92 kB / 399.3 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004657/0.5869, allocations: 1.127 MB / 400.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.587, allocations: 0 / 400.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009292/0.5879, allocations: 99.88 kB / 400.5 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/0.5905, allocations: 260.4 kB / 400.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.5907, allocations: 4 kB / 400.7 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0052/0.5959, allocations: 2.084 MB / 402.8 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.596, allocations: 8.047 kB / 402.8 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.599, allocations: 0.8872 MB / 403.7 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/0.5994, allocations: 152.6 kB / 403.9 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.5995, allocations: 3.953 kB / 403.9 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007826/0.6003, allocations: 35.97 kB / 403.9 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.6005, allocations: 36.33 kB / 404 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/0.6005, allocations: 15.98 kB / 404 MB, free: 3.363 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003196/0.6009, allocations: 192.5 kB / 404.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6009, allocations: 0 / 404.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001042/0.6019, allocations: 120 kB / 404.3 MB, free: 3.059 MB / 346.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.003561/0.6055, allocations: 1.562 MB / 405.8 MB, free: 1.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.607, allocations: 0.517 MB / 406.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.6071, allocations: 0 / 406.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007353/0.6078, allocations: 327.7 kB / 406.7 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005421/0.6084, allocations: 28.75 kB / 406.7 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.6112, allocations: 0.8049 MB / 407.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.6117, allocations: 0.8006 MB / 408.3 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.612, allocations: 119.4 kB / 408.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6121, allocations: 0 / 408.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/3.247, allocations: 7.458 MB / 415.9 MB, free: 7.32 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat