Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.624/1.624, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.235/1.859, allocations: 46.84 MB / 249.3 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/1.947, allocations: 44.5 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.279/2.226, allocations: 81.15 MB / 375 MB, free: 7.184 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/2.226, allocations: 79.38 kB / 375.1 MB, free: 7.184 MB / 298.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.0432/2.27, allocations: 9.446 MB / 384.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/2.27, allocations: 7.719 kB / 384.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/2.27, allocations: 39.06 kB / 384.6 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/2.27, allocations: 325.2 kB / 384.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.65e-05/2.27, allocations: 41.86 kB / 384.9 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002395/2.271, allocations: 26.67 kB / 385 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006814/2.271, allocations: 239.5 kB / 385.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/2.272, allocations: 268.8 kB / 385.4 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/2.272, allocations: 3.938 kB / 385.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/2.272, allocations: 0 / 385.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/2.272, allocations: 7.781 kB / 385.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/2.274, allocations: 1.102 MB / 386.6 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/2.275, allocations: 179 kB / 386.7 MB, free: 3.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/2.275, allocations: 149.2 kB / 386.9 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/2.275, allocations: 3.781 kB / 386.9 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/2.275, allocations: 35.5 kB / 386.9 MB, free: 3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.475e-06/2.275, allocations: 0 / 386.9 MB, free: 3 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.01368/2.289, allocations: 1.925 MB / 388.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/2.289, allocations: 83.45 kB / 388.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004913/2.289, allocations: 246 kB / 389.2 MB, free: 2.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/2.29, allocations: 29.7 kB / 389.2 MB, free: 18.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.638e-05/2.29, allocations: 146.4 kB / 389.3 MB, free: 17.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/2.29, allocations: 139.3 kB / 389.5 MB, free: 17.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/2.29, allocations: 0 / 389.5 MB, free: 17.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/2.29, allocations: 337.9 kB / 389.8 MB, free: 17.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004251/2.29, allocations: 135.7 kB / 389.9 MB, free: 17.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/2.291, allocations: 193.8 kB / 390.1 MB, free: 17.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004416/2.291, allocations: 152 kB / 390.3 MB, free: 17.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/2.291, allocations: 0 / 390.3 MB, free: 17.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01249/2.304, allocations: 1.455 MB / 391.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/2.304, allocations: 3.812 kB / 391.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/2.304, allocations: 3.906 kB / 391.7 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01187/2.316, allocations: 1.04 MB / 392.8 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/2.316, allocations: 59 kB / 392.8 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01874/2.335, allocations: 4.205 MB / 397 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008803/2.336, allocations: 31.17 kB / 397.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.875e-05/2.336, allocations: 17.05 kB / 397.1 MB, free: 14.85 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.0002353/2.336, allocations: 116.9 kB / 397.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/2.337, allocations: 29.81 kB / 397.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/2.339, allocations: 0.5629 MB / 397.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/2.339, allocations: 9.188 kB / 397.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/2.339, allocations: 0 / 397.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/2.339, allocations: 5.297 kB / 397.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004831/2.344, allocations: 1.14 MB / 398.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.068e-06/2.344, allocations: 7.938 kB / 399 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009602/2.345, allocations: 95.62 kB / 399 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002698/2.348, allocations: 257.4 kB / 399.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.167e-05/2.348, allocations: 8.938 kB / 399.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005385/2.353, allocations: 2.041 MB / 401.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/2.353, allocations: 4.031 kB / 401.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003192/2.357, allocations: 0.9074 MB / 402.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003854/2.361, allocations: 1.494 MB / 403.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/2.361, allocations: 154.9 kB / 403.9 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/2.361, allocations: 4.516 kB / 403.9 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/2.362, allocations: 31.92 kB / 403.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/2.362, allocations: 27.36 kB / 404 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.826e-05/2.362, allocations: 16.83 kB / 404 MB, free: 11.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003174/2.362, allocations: 195.1 kB / 404.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00188/2.364, allocations: 126.4 kB / 404.3 MB, free: 11.16 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.0004131/2.365, allocations: 158.3 kB / 404.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/2.366, allocations: 478.2 kB / 404.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/2.366, allocations: 0 / 404.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007179/2.367, allocations: 316.8 kB / 405.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/2.367, allocations: 28.27 kB / 405.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/2.37, allocations: 0.7172 MB / 406 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007314/2.371, allocations: 0.8361 MB / 406.8 MB, free: 9.582 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/2.371, allocations: 0.5312 kB / 406.8 MB, free: 9.582 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat