Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.947/1.947, allocations: 194.9 MB / 202.6 MB, free: 14.28 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.224/2.171, allocations: 46.84 MB / 249.4 MB, free: 14.2 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/2.272, allocations: 44.51 MB / 293.9 MB, free: 1.605 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3397/2.611, allocations: 104.9 MB / 398.9 MB, free: 2.336 MB / 306.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/2.612, allocations: 84.77 kB / 399 MB, free: 2.293 MB / 306.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.2968/2.909, allocations: 54.95 MB / 453.9 MB, free: 2.23 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/2.909, allocations: 8 kB / 453.9 MB, free: 2.223 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/2.91, allocations: 276.8 kB / 454.2 MB, free: 1.949 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005295/2.916, allocations: 1.37 MB / 455.6 MB, free: 0.5273 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/2.916, allocations: 172.9 kB / 455.7 MB, free: 348 kB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001396/2.917, allocations: 155.9 kB / 455.9 MB, free: 192 kB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007695/2.925, allocations: 1.628 MB / 457.5 MB, free: 14.56 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007052/2.932, allocations: 1.798 MB / 459.3 MB, free: 12.67 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.532e-05/2.932, allocations: 4 kB / 459.3 MB, free: 12.67 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/2.933, allocations: 0 / 459.3 MB, free: 12.67 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.314e-05/2.933, allocations: 55.94 kB / 459.4 MB, free: 12.61 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02585/2.959, allocations: 7.596 MB / 467 MB, free: 4.793 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/2.963, allocations: 1.17 MB / 468.1 MB, free: 3.586 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004347/2.967, allocations: 1.296 MB / 469.4 MB, free: 2.285 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001789/2.967, allocations: 29.98 kB / 469.4 MB, free: 2.254 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.573e-05/2.967, allocations: 60.56 kB / 469.5 MB, free: 2.188 MB / 370.8 MB Notification: Performance of pre-optimization done (n=208): time 5.65e-06/2.967, allocations: 0 / 469.5 MB, free: 2.188 MB / 370.8 MB Notification: Performance of matching and sorting (n=250): time 0.07317/3.04, allocations: 9.139 MB / 478.6 MB, free: 8.977 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002177/3.041, allocations: 393.8 kB / 479 MB, free: 8.508 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003669/3.044, allocations: 1.182 MB / 480.2 MB, free: 7.316 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006063/3.045, allocations: 25.7 kB / 480.2 MB, free: 7.285 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005836/3.046, allocations: 0.573 MB / 480.8 MB, free: 6.703 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001386/3.047, allocations: 0.8042 MB / 481.6 MB, free: 5.887 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/3.047, allocations: 0 / 481.6 MB, free: 5.887 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 0.0002644/3.048, allocations: 394.7 kB / 482 MB, free: 5.496 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/3.051, allocations: 0.8721 MB / 482.9 MB, free: 4.621 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003909/3.055, allocations: 1.097 MB / 484 MB, free: 3.469 MB / 386.8 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.06696/3.122, allocations: 7.008 MB / 491 MB, free: 12.39 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/3.122, allocations: 0 / 491 MB, free: 12.39 MB / 402.8 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.05243/3.174, allocations: 5.741 MB / 496.7 MB, free: 6.578 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/3.174, allocations: 4 kB / 496.7 MB, free: 6.574 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-05/3.175, allocations: 11.98 kB / 496.7 MB, free: 6.562 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04629/3.221, allocations: 3.596 MB / 0.4886 GB, free: 2.941 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/3.225, allocations: 383.5 kB / 0.489 GB, free: 2.566 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2245/3.45, allocations: 23.34 MB / 0.5118 GB, free: 140 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004937/3.455, allocations: 101.7 kB / 0.5119 GB, free: 140 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006925/3.456, allocations: 89.28 kB / 0.5119 GB, free: 140 MB / 402.8 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: transformer.H[1] = $START.transformer.H[1] transformer.H[3] = $START.transformer.H[3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core2.Hstat:VARIABLE(unit = "A/m" protected = true ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core1.Hstat:VARIABLE(unit = "A/m" protected = true ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core3.Hstat:VARIABLE(unit = "A/m" protected = true ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 180 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 19,1 20,1 20,2 7,2 7,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0008442/3.456, allocations: 146.4 kB / 0.5121 GB, free: 139.9 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008758/3.457, allocations: 200 kB / 0.5123 GB, free: 139.9 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01392/3.471, allocations: 3.015 MB / 0.5152 GB, free: 139.7 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.246e-05/3.471, allocations: 27.28 kB / 0.5152 GB, free: 139.7 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/3.471, allocations: 3.812 kB / 0.5153 GB, free: 139.7 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.983e-05/3.471, allocations: 14.33 kB / 0.5153 GB, free: 139.7 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02465/3.496, allocations: 5.666 MB / 0.5208 GB, free: 139.1 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.259e-05/3.496, allocations: 2.719 kB / 0.5208 GB, free: 139.1 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005294/3.502, allocations: 440.5 kB / 0.5212 GB, free: 139.1 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01203/3.514, allocations: 1.179 MB / 0.5224 GB, free: 138.8 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006701/3.514, allocations: 31.91 kB / 0.5224 GB, free: 138.8 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03198/3.546, allocations: 15.87 MB / 0.5379 GB, free: 125.3 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/3.546, allocations: 6.75 kB / 0.5379 GB, free: 125.3 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02187/3.568, allocations: 4.598 MB / 0.5424 GB, free: 123.1 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02603/3.594, allocations: 6.278 MB / 0.5485 GB, free: 119.9 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/3.597, allocations: 0.5248 MB / 0.549 GB, free: 119.6 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009256/3.598, allocations: 18.66 kB / 0.5491 GB, free: 119.6 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005061/3.603, allocations: 113.6 kB / 0.5492 GB, free: 119.6 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000788/3.603, allocations: 150.1 kB / 0.5493 GB, free: 119.5 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003071/3.604, allocations: 69.81 kB / 0.5494 GB, free: 119.5 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.002381/3.606, allocations: 0.8911 MB / 0.5502 GB, free: 119.1 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.006363/3.613, allocations: 0.6706 MB / 0.5509 GB, free: 119.1 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (transformer.Phi[1],transformer.Phi[2],transformer.Phi[3],transformer.core1.Hstat,transformer.core2.Hstat,transformer.core3.Hstat,transformer.winding11.i,transformer.winding12.i,transformer.winding13.i,transformer.winding21.i,transformer.winding22.i,transformer.winding23.i,capacitor1.v,capacitor2.v,pdissStatAvg.x[1],pdissStatAvg.x[2],pdissEddyAvg.x[1],pdissEddyAvg.x[2],pdissCopAvg.x[1],pdissCopAvg.x[2],transformer.core3.MagRel,transformer.core2.MagRel,transformer.core1.MagRel) * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 194 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 8,1 8,1 8,2 7,2 7,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001476/3.614, allocations: 249.3 kB / 0.5511 GB, free: 119 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.01037/3.624, allocations: 3.338 MB / 0.5544 GB, free: 117.1 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/3.625, allocations: 1.125 kB / 0.5544 GB, free: 117.1 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006437/3.631, allocations: 2.232 MB / 0.5566 GB, free: 115.2 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/3.635, allocations: 231.7 kB / 0.5568 GB, free: 115 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/3.652, allocations: 4.41 MB / 0.5611 GB, free: 111.3 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003235/3.655, allocations: 1.808 MB / 0.5629 GB, free: 109.8 MB / 402.8 MB Notification: Performance of SimCode: time 2.265e-06/3.655, allocations: 0 / 0.5629 GB, free: 109.8 MB / 402.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat does not exist to compare? outputFormat=mat