Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.548e-05, allocations: 1.406 kB / 292.8 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 50.41 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5489, allocations: 93.25 MB / 436.4 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.5492, allocations: 78.08 kB / 436.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08035/0.6295, allocations: 15.85 MB / 452.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.726e-06/0.6296, allocations: 0 / 452.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.901e-05/0.6297, allocations: 19.92 kB / 452.4 MB, free: 3.125 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.00389/0.6336, allocations: 0.8615 MB / 453.2 MB, free: 2.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.002e-05/0.6337, allocations: 8.031 kB / 453.2 MB, free: 2.254 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000292/0.634, allocations: 97.08 kB / 453.3 MB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.6344, allocations: 79.06 kB / 453.4 MB, free: 2.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.6361, allocations: 490.1 kB / 453.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.6363, allocations: 72.64 kB / 454 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004876/0.6368, allocations: 72.92 kB / 454 MB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.6391, allocations: 0.5637 MB / 454.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.6392, allocations: 0 / 454.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.6393, allocations: 20.88 kB / 454.6 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.977e-05/0.6394, allocations: 20 kB / 454.6 MB, free: 1.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.6416, allocations: 469.4 kB / 455.1 MB, free: 0.875 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008601/0.6502, allocations: 2.33 MB / 457.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.6519, allocations: 432.5 kB / 457.8 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009925/0.6529, allocations: 242.3 kB / 458.1 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.2e-05/0.653, allocations: 8.219 kB / 458.1 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/0.6531, allocations: 45.48 kB / 458.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 4.959e-06/0.6531, allocations: 0 / 458.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.03128/0.6844, allocations: 3.012 MB / 461.1 MB, free: 12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.6845, allocations: 81.67 kB / 461.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.6856, allocations: 488.1 kB / 461.7 MB, free: 11.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.6858, allocations: 35.2 kB / 461.7 MB, free: 11.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.686, allocations: 313.1 kB / 462 MB, free: 11.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000272/0.6863, allocations: 218.1 kB / 462.3 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.6864, allocations: 15.12 kB / 462.3 MB, free: 11.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.6866, allocations: 361.2 kB / 462.6 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006843/0.6873, allocations: 221.5 kB / 462.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007528/0.6881, allocations: 315.4 kB / 463.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007571/0.6888, allocations: 259.2 kB / 463.4 MB, free: 9.945 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.6889, allocations: 4 kB / 463.4 MB, free: 9.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01338/0.7023, allocations: 1.779 MB / 465.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.7023, allocations: 4 kB / 465.2 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.7024, allocations: 4 kB / 465.2 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.7146, allocations: 1.172 MB / 466.4 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.7155, allocations: 91.83 kB / 466.4 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02369/0.7392, allocations: 5.772 MB / 472.2 MB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.7404, allocations: 39.97 kB / 472.3 MB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-05/0.7405, allocations: 27.98 kB / 472.3 MB, free: 0.8906 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.0002333/0.7408, allocations: 136.9 kB / 472.4 MB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.741, allocations: 55.34 kB / 472.5 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.7433, allocations: 0.7749 MB / 473.3 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.7434, allocations: 8 kB / 473.3 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.7434, allocations: 0 / 473.3 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.7434, allocations: 7.984 kB / 473.3 MB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005738/0.7492, allocations: 1.82 MB / 475.1 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.7492, allocations: 3.938 kB / 475.1 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.7504, allocations: 111.9 kB / 475.2 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002921/0.7533, allocations: 352.3 kB / 475.5 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.7535, allocations: 12 kB / 475.6 MB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007215/0.7607, allocations: 2.799 MB / 478.4 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/0.7608, allocations: 7.938 kB / 478.4 MB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004135/0.7649, allocations: 1.279 MB / 479.6 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005182/0.7655, allocations: 212.3 kB / 479.8 MB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.7656, allocations: 15.98 kB / 479.9 MB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.7668, allocations: 51.97 kB / 479.9 MB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.767, allocations: 52.44 kB / 480 MB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.856e-05/0.7671, allocations: 19.98 kB / 480 MB, free: 8.934 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007412/0.7678, allocations: 377.6 kB / 480.4 MB, free: 8.566 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7678, allocations: 0 / 480.4 MB, free: 8.566 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001346/0.7692, allocations: 224 kB / 480.6 MB, free: 8.348 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.004723/0.7739, allocations: 1.951 MB / 482.5 MB, free: 6.359 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.7762, allocations: 0.7803 MB / 483.3 MB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.7763, allocations: 4.125 kB / 483.3 MB, free: 5.566 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.7775, allocations: 488 kB / 483.8 MB, free: 5.078 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009033/0.7784, allocations: 78.12 kB / 483.9 MB, free: 5.004 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.7827, allocations: 1.234 MB / 485.1 MB, free: 3.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006906/0.7834, allocations: 0.9199 MB / 486 MB, free: 2.785 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000532/0.784, allocations: 64.75 kB / 486.1 MB, free: 2.719 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005384/0.7845, allocations: 235.3 kB / 486.3 MB, free: 2.488 MB / 394.7 MB Notification: Performance of SimCode: time 1.193e-06/0.7845, allocations: 3.938 kB / 486.3 MB, free: 2.484 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08051/0.8651, allocations: 17.83 MB / 0.4923 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003216/0.8654, allocations: 216.4 kB / 0.4925 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.917/3.783, allocations: 0 / 0.4925 GB, free: 0.6602 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat