Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.134e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2987, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/0.4776, allocations: 105 MB / 399.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.4779, allocations: 83.95 kB / 399.3 MB, free: 8.734 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4798/0.9578, allocations: 52.68 MB / 452 MB, free: 94.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.9579, allocations: 3.938 kB / 452 MB, free: 94.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001852/0.9581, allocations: 64.56 kB / 452.1 MB, free: 94.59 MB / 362.7 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.008137/0.9662, allocations: 2.242 MB / 454.3 MB, free: 93.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.9663, allocations: 11.34 kB / 454.3 MB, free: 93.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.9675, allocations: 273.9 kB / 454.6 MB, free: 93.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00372/0.9712, allocations: 1.352 MB / 455.9 MB, free: 92.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.9715, allocations: 170.1 kB / 456.1 MB, free: 92.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/0.9725, allocations: 156 kB / 456.2 MB, free: 92.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004724/0.9772, allocations: 1.629 MB / 457.9 MB, free: 91.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00526/0.9825, allocations: 1.792 MB / 459.7 MB, free: 90.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.867e-05/0.9826, allocations: 7.922 kB / 459.7 MB, free: 90.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002624/0.9829, allocations: 4 kB / 459.7 MB, free: 90.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.544e-05/0.983, allocations: 48 kB / 459.7 MB, free: 90.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02002/1.003, allocations: 7.561 MB / 467.3 MB, free: 82.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003959/1.007, allocations: 1.855 MB / 469.1 MB, free: 80.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003281/1.01, allocations: 1.276 MB / 470.4 MB, free: 79.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/1.011, allocations: 28.34 kB / 470.4 MB, free: 79.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/1.011, allocations: 64.88 kB / 470.5 MB, free: 79.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=208): time 5.26e-06/1.011, allocations: 0 / 470.5 MB, free: 79.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=250): time 0.05023/1.061, allocations: 9.108 MB / 479.6 MB, free: 70.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/1.061, allocations: 389.8 kB / 480 MB, free: 69.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002586/1.064, allocations: 1.174 MB / 481.2 MB, free: 68.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000601/1.064, allocations: 25.7 kB / 481.2 MB, free: 68.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005524/1.065, allocations: 0.7694 MB / 482 MB, free: 67.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009639/1.066, allocations: 0.808 MB / 482.8 MB, free: 66.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/1.066, allocations: 0 / 482.8 MB, free: 66.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/1.066, allocations: 399.6 kB / 483.2 MB, free: 66.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002202/1.069, allocations: 0.8717 MB / 484 MB, free: 65.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/1.071, allocations: 1.093 MB / 485.1 MB, free: 64.44 MB / 362.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.04344/1.115, allocations: 6.578 MB / 491.7 MB, free: 57.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/1.115, allocations: 0 / 491.7 MB, free: 57.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.03702/1.152, allocations: 5.547 MB / 497.3 MB, free: 52.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/1.152, allocations: 8 kB / 497.3 MB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.358e-05/1.152, allocations: 4 kB / 497.3 MB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03388/1.186, allocations: 3.584 MB / 0.4891 GB, free: 48.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003849/1.19, allocations: 383.5 kB / 0.4895 GB, free: 48.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07379/1.264, allocations: 23.97 MB / 0.5129 GB, free: 23.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006111/1.27, allocations: 95.98 kB / 0.513 GB, free: 23.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008777/1.271, allocations: 92.22 kB / 0.5131 GB, free: 23.04 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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.001815/1.272, allocations: 156.7 kB / 0.5132 GB, free: 22.88 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01404/1.287, allocations: 3.064 MB / 0.5162 GB, free: 19.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001098/1.288, allocations: 193.7 kB / 0.5164 GB, free: 19.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/1.298, allocations: 2.984 MB / 0.5193 GB, free: 16.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.139e-05/1.298, allocations: 24 kB / 0.5193 GB, free: 16.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.298, allocations: 7.953 kB / 0.5193 GB, free: 16.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.447e-05/1.298, allocations: 11.95 kB / 0.5193 GB, free: 16.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01883/1.317, allocations: 5.655 MB / 0.5249 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-05/1.317, allocations: 4 kB / 0.5249 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004209/1.321, allocations: 431.5 kB / 0.5253 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009037/1.33, allocations: 1.17 MB / 0.5264 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006307/1.331, allocations: 27.97 kB / 0.5265 GB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02695/1.358, allocations: 16.45 MB / 0.5425 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.358, allocations: 0 / 0.5425 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01791/1.376, allocations: 4.538 MB / 0.5469 GB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002065/1.378, allocations: 0.5217 MB / 0.5475 GB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008102/1.379, allocations: 15.98 kB / 0.5475 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003872/1.383, allocations: 107.9 kB / 0.5476 GB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/1.384, allocations: 201.7 kB / 0.5478 GB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003084/1.384, allocations: 67.98 kB / 0.5478 GB, free: 2.031 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002209/1.387, allocations: 0.89 MB / 0.5487 GB, free: 1.141 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.21e-07/1.387, allocations: 4 kB / 0.5487 GB, free: 1.137 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00559/1.392, allocations: 0.6757 MB / 0.5494 GB, free: 472 kB / 378.7 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.01922/1.411, allocations: 5.435 MB / 0.5547 GB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/1.422, allocations: 3.554 MB / 0.5581 GB, free: 7.211 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.422, allocations: 8.453 kB / 0.5582 GB, free: 7.203 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00686/1.429, allocations: 2.366 MB / 0.5605 GB, free: 4.746 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003017/1.432, allocations: 246.1 kB / 0.5607 GB, free: 4.508 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3037/1.735, allocations: 4.713 MB / 0.5653 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/1.737, allocations: 1.643 MB / 0.5669 GB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002297/1.74, allocations: 0.8876 MB / 0.5678 GB, free: 110.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/1.74, allocations: 0 / 0.5678 GB, free: 110.4 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.079/5.819, allocations: 111.6 MB / 0.6767 GB, free: 26.43 MB / 394.7 MB