Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.642/1.642, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2211/1.863, allocations: 46.83 MB / 249.3 MB, free: 5.371 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/1.951, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2864/2.237, allocations: 84.48 MB / 378.3 MB, free: 6.801 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/2.237, allocations: 77.55 kB / 378.4 MB, free: 6.789 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.06883/2.306, allocations: 15.97 MB / 394.4 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/2.306, allocations: 8.812 kB / 394.4 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002667/2.307, allocations: 82.25 kB / 394.5 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/2.308, allocations: 497.9 kB / 394.9 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.891e-05/2.308, allocations: 60.77 kB / 395 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/2.308, allocations: 52.52 kB / 395.1 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001395/2.31, allocations: 447.4 kB / 395.5 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/2.311, allocations: 497.8 kB / 396 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/2.311, allocations: 0 / 396 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/2.311, allocations: 1.25 kB / 396 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/2.311, allocations: 13.03 kB / 396 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005561/2.317, allocations: 2.223 MB / 398.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007743/2.317, allocations: 295.7 kB / 398.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006268/2.318, allocations: 221 kB / 398.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/2.318, allocations: 8.469 kB / 398.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/2.318, allocations: 48.23 kB / 398.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.546e-06/2.318, allocations: 0 / 398.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.01721/2.335, allocations: 2.533 MB / 401.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/2.336, allocations: 83.7 kB / 401.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/2.337, allocations: 435 kB / 401.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/2.337, allocations: 26.92 kB / 401.8 MB, free: 13.9 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/2.337, allocations: 250.8 kB / 402.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/2.337, allocations: 203 kB / 402.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.703e-05/2.337, allocations: 5.375 kB / 402.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/2.338, allocations: 364.3 kB / 402.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006443/2.338, allocations: 215.5 kB / 402.9 MB, free: 13.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/2.339, allocations: 304.3 kB / 403.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/2.34, allocations: 240.9 kB / 403.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/2.34, allocations: 1.031 kB / 403.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01446/2.354, allocations: 1.749 MB / 405.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/2.354, allocations: 4.781 kB / 405.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/2.354, allocations: 3.031 kB / 405.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/2.368, allocations: 1.172 MB / 406.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008818/2.368, allocations: 91.88 kB / 406.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02293/2.391, allocations: 5.52 MB / 411.9 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/2.393, allocations: 39.33 kB / 412 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/2.393, allocations: 23.92 kB / 412 MB, free: 7.941 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002861/2.393, allocations: 116.6 kB / 412.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/2.393, allocations: 55.34 kB / 412.2 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/2.396, allocations: 0.7137 MB / 412.9 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/2.396, allocations: 8 kB / 412.9 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/2.396, allocations: 0 / 412.9 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/2.396, allocations: 7.922 kB / 412.9 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005854/2.402, allocations: 1.708 MB / 414.6 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/2.402, allocations: 0 / 414.6 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/2.403, allocations: 118.7 kB / 414.7 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0031/2.406, allocations: 333.9 kB / 415 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/2.406, allocations: 11.91 kB / 415.1 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/2.414, allocations: 2.654 MB / 417.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/2.414, allocations: 4.062 kB / 417.7 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004272/2.418, allocations: 1.233 MB / 418.9 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005194/2.423, allocations: 1.921 MB / 420.9 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006088/2.424, allocations: 208.3 kB / 421.1 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/2.424, allocations: 3.984 kB / 421.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/2.425, allocations: 43.97 kB / 421.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/2.425, allocations: 36.59 kB / 421.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/2.426, allocations: 20 kB / 421.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0007131/2.426, allocations: 331.2 kB / 421.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002245/2.429, allocations: 188 kB / 421.7 MB, free: 15.22 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000446/2.429, allocations: 150.6 kB / 421.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002211/2.431, allocations: 0.6957 MB / 422.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/2.431, allocations: 4 kB / 422.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/2.432, allocations: 433.5 kB / 422.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008339/2.433, allocations: 50.06 kB / 423 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004348/2.438, allocations: 1.12 MB / 424.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009702/2.439, allocations: 0.9688 MB / 425.1 MB, free: 11.74 MB / 330.7 MB Notification: Performance of SimCode: time 1.583e-06/2.439, allocations: 11.88 kB / 425.1 MB, free: 11.73 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat