Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.917e-05/2.925e-05, allocations: 4 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 50.41 MB / 342.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.5621, allocations: 93.25 MB / 435.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003647/0.5625, allocations: 77.2 kB / 436 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08078/0.6433, allocations: 15.86 MB / 451.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.6433, allocations: 0 / 451.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.245e-05/0.6434, allocations: 15.94 kB / 451.8 MB, free: 3.078 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002493/0.6459, allocations: 0.8675 MB / 452.7 MB, free: 2.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.646, allocations: 8.031 kB / 452.7 MB, free: 2.199 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.6461, allocations: 100.1 kB / 452.8 MB, free: 2.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.6464, allocations: 79.06 kB / 452.9 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009859/0.6474, allocations: 486.5 kB / 453.4 MB, free: 1.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.6475, allocations: 71.7 kB / 453.4 MB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003045/0.6478, allocations: 69.56 kB / 453.5 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.6492, allocations: 0.5674 MB / 454.1 MB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.6493, allocations: 0 / 454.1 MB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/0.6494, allocations: 21.5 kB / 454.1 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.6494, allocations: 16 kB / 454.1 MB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.6507, allocations: 477.4 kB / 454.6 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.6559, allocations: 2.328 MB / 456.9 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.657, allocations: 436.2 kB / 457.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/0.6576, allocations: 234 kB / 457.6 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.675e-05/0.6577, allocations: 7.938 kB / 457.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.6577, allocations: 42.3 kB / 457.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.976e-06/0.6577, allocations: 4 kB / 457.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01942/0.6771, allocations: 3.01 MB / 460.6 MB, free: 11.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.6773, allocations: 85.67 kB / 460.7 MB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009853/0.6783, allocations: 492.4 kB / 461.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.771e-05/0.6784, allocations: 36.52 kB / 461.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.6786, allocations: 306.6 kB / 461.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/0.6789, allocations: 217.3 kB / 461.7 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.679, allocations: 14.25 kB / 461.8 MB, free: 11.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.6792, allocations: 363.1 kB / 462.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006454/0.6798, allocations: 222.2 kB / 462.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007454/0.6806, allocations: 311.4 kB / 462.6 MB, free: 10.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007556/0.6814, allocations: 263.2 kB / 462.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6814, allocations: 4 kB / 462.9 MB, free: 9.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01305/0.6944, allocations: 1.775 MB / 464.7 MB, free: 8.133 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.6945, allocations: 4 kB / 464.7 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.6945, allocations: 8.125 kB / 464.7 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.7065, allocations: 1.168 MB / 465.8 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000805/0.7074, allocations: 99.83 kB / 465.9 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02172/0.7291, allocations: 5.762 MB / 471.7 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.7303, allocations: 48.03 kB / 471.8 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.047e-05/0.7304, allocations: 23.98 kB / 471.8 MB, free: 0.8711 MB / 378.7 MB 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.0002308/0.7306, allocations: 136.9 kB / 471.9 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.7308, allocations: 55.34 kB / 472 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002293/0.7331, allocations: 0.7749 MB / 472.7 MB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.7331, allocations: 8 kB / 472.7 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.505e-06/0.7332, allocations: 4 kB / 472.7 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.7332, allocations: 3.984 kB / 472.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.7387, allocations: 1.824 MB / 474.6 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.7387, allocations: 3.938 kB / 474.6 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.7398, allocations: 119.8 kB / 474.7 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00287/0.7427, allocations: 344.4 kB / 475 MB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.7428, allocations: 16 kB / 475 MB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006931/0.7497, allocations: 2.796 MB / 477.8 MB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.7498, allocations: 3.953 kB / 477.8 MB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00398/0.7538, allocations: 1.271 MB / 479.1 MB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.7543, allocations: 212.3 kB / 479.3 MB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.7544, allocations: 19.98 kB / 479.3 MB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.7557, allocations: 51.97 kB / 479.4 MB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.7559, allocations: 44.44 kB / 479.4 MB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.086e-05/0.756, allocations: 23.98 kB / 479.5 MB, free: 8.918 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007624/0.7568, allocations: 377.6 kB / 479.8 MB, free: 8.555 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7568, allocations: 4 kB / 479.8 MB, free: 8.551 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001317/0.7581, allocations: 220 kB / 480.1 MB, free: 8.336 MB / 394.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.004791/0.763, allocations: 1.951 MB / 482 MB, free: 6.344 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.7653, allocations: 0.7841 MB / 482.8 MB, free: 5.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.7653, allocations: 0 / 482.8 MB, free: 5.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.7665, allocations: 488.3 kB / 483.3 MB, free: 5.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008954/0.7674, allocations: 82.11 kB / 483.3 MB, free: 4.984 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004151/0.7716, allocations: 1.242 MB / 484.6 MB, free: 3.703 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007303/0.7724, allocations: 0.9276 MB / 485.5 MB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004887/0.7729, allocations: 60.75 kB / 485.6 MB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.7734, allocations: 231.3 kB / 485.8 MB, free: 2.461 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7734, allocations: 0 / 485.8 MB, free: 2.461 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07943/0.8529, allocations: 17.83 MB / 0.4918 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004412/0.8534, allocations: 220.4 kB / 0.492 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.72, allocations: 7.938 kB / 0.492 GB, free: 0.6328 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat