Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.873/1.873, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.839e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08934, allocations: 44.5 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.5064, allocations: 85.21 MB / 385.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.5067, allocations: 78.48 kB / 385.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06621/0.573, allocations: 15.49 MB / 400.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.573, allocations: 0 / 400.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.034e-05/0.5731, allocations: 11.44 kB / 400.8 MB, free: 10.84 MB / 314.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.002272/0.5754, allocations: 0.8496 MB / 401.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.5754, allocations: 7.75 kB / 401.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.5756, allocations: 103.2 kB / 401.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.5758, allocations: 77.52 kB / 401.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/0.5767, allocations: 0.4942 MB / 402.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.204e-05/0.5769, allocations: 69.77 kB / 402.4 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002929/0.5772, allocations: 66.27 kB / 402.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.5785, allocations: 0.5579 MB / 403 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.5785, allocations: 4 kB / 403 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.665e-05/0.5786, allocations: 24.38 kB / 403 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.5786, allocations: 15.39 kB / 403 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.5798, allocations: 471.4 kB / 403.5 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.5845, allocations: 2.328 MB / 405.8 MB, free: 8.305 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.5855, allocations: 430.9 kB / 406.2 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.5861, allocations: 234 kB / 406.5 MB, free: 8.199 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.453e-05/0.5862, allocations: 15.42 kB / 406.5 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.5862, allocations: 34.31 kB / 406.5 MB, free: 8.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.858e-06/0.5862, allocations: 3.938 kB / 406.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.01882/0.605, allocations: 3.017 MB / 409.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.6051, allocations: 89.47 kB / 409.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000939/0.6061, allocations: 484.6 kB / 410.1 MB, free: 6.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.6062, allocations: 41.17 kB / 410.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.6064, allocations: 342.2 kB / 410.5 MB, free: 6.629 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.6066, allocations: 210.8 kB / 410.7 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-05/0.6067, allocations: 9.438 kB / 410.7 MB, free: 6.477 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.836e-05/0.6068, allocations: 337.5 kB / 411 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005726/0.6073, allocations: 223.1 kB / 411.2 MB, free: 6.152 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006127/0.608, allocations: 315.1 kB / 411.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006516/0.6086, allocations: 262.5 kB / 411.8 MB, free: 6.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6087, allocations: 0 / 411.8 MB, free: 6.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01228/0.621, allocations: 1.741 MB / 413.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.621, allocations: 13.33 kB / 413.5 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.621, allocations: 3.938 kB / 413.5 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/0.6327, allocations: 1.17 MB / 414.7 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007906/0.6335, allocations: 89.08 kB / 414.8 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01984/0.6534, allocations: 5.778 MB / 420.6 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.6546, allocations: 36.95 kB / 420.6 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.078e-05/0.6547, allocations: 30.83 kB / 420.6 MB, free: 3.148 MB / 314.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.0002/0.6549, allocations: 138.8 kB / 420.8 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.6551, allocations: 70.03 kB / 420.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/0.6571, allocations: 0.7594 MB / 421.6 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.6571, allocations: 11.84 kB / 421.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.6571, allocations: 0 / 421.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.6572, allocations: 3.984 kB / 421.6 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.6622, allocations: 1.839 MB / 423.5 MB, free: 2.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.6623, allocations: 4 kB / 423.5 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.6634, allocations: 112 kB / 423.6 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/0.6663, allocations: 330.9 kB / 423.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.6664, allocations: 26.59 kB / 423.9 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/0.6727, allocations: 2.811 MB / 426.7 MB, free: 16.42 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6728, allocations: 3.938 kB / 426.7 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.6764, allocations: 1.274 MB / 428 MB, free: 16.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004375/0.6769, allocations: 209.6 kB / 428.2 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.6771, allocations: 15.88 kB / 428.2 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.6782, allocations: 46.16 kB / 428.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.6784, allocations: 53.28 kB / 428.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.037e-05/0.6785, allocations: 19.12 kB / 428.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006608/0.6791, allocations: 383.5 kB / 428.7 MB, free: 15.58 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6791, allocations: 0 / 428.7 MB, free: 15.58 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001291/0.6804, allocations: 221.1 kB / 428.9 MB, free: 15.55 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.004364/0.6848, allocations: 1.951 MB / 430.9 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.687, allocations: 0.7944 MB / 431.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.687, allocations: 3.25 kB / 431.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.6881, allocations: 471.1 kB / 432.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009241/0.6891, allocations: 81.62 kB / 432.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.6931, allocations: 1.266 MB / 433.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005758/0.6937, allocations: 0.9184 MB / 434.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/0.6943, allocations: 237.6 kB / 434.6 MB, free: 11.55 MB / 330.7 MB Notification: Performance of SimCode: time 1.342e-06/0.6944, allocations: 3.938 kB / 434.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.588/3.283, allocations: 14.05 MB / 448.7 MB, free: 14.65 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat