Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.691e-05, allocations: 12 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2958, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.4336, allocations: 78.24 MB / 372.5 MB, free: 3.586 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.434, allocations: 83.95 kB / 372.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1339/0.5678, allocations: 37.78 MB / 410.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5679, allocations: 0 / 410.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002283/0.5681, allocations: 32 kB / 410.4 MB, free: 13.4 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004476/0.5726, allocations: 1.986 MB / 412.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.5727, allocations: 12.03 kB / 412.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008245/0.5735, allocations: 284.3 kB / 412.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00568/0.5792, allocations: 1.868 MB / 414.5 MB, free: 9.133 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.5794, allocations: 50.44 kB / 414.6 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000269/0.5797, allocations: 39.97 kB / 414.6 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008361/0.5805, allocations: 277.4 kB / 414.9 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008386/0.5814, allocations: 318.2 kB / 415.2 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.5814, allocations: 0 / 415.2 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.5815, allocations: 3.984 kB / 415.2 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.5815, allocations: 12 kB / 415.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00777/0.5893, allocations: 3.001 MB / 418.2 MB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007747/0.5901, allocations: 281.2 kB / 418.5 MB, free: 5.043 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003454/0.5905, allocations: 149 kB / 418.6 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.5905, allocations: 4 kB / 418.6 MB, free: 4.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.5906, allocations: 42.5 kB / 418.7 MB, free: 4.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 2.875e-06/0.5906, allocations: 4 kB / 418.7 MB, free: 4.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.005748/0.5964, allocations: 2.026 MB / 420.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.5965, allocations: 85.55 kB / 420.8 MB, free: 2.637 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2831/0.8796, allocations: 4.674 MB / 425.4 MB, free: 100.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.8798, allocations: 26.67 kB / 425.5 MB, free: 100.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/0.8816, allocations: 1.151 MB / 426.6 MB, free: 100.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.8819, allocations: 160.7 kB / 426.8 MB, free: 100.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.8819, allocations: 0 / 426.8 MB, free: 100.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.084e-05/0.882, allocations: 331.9 kB / 427.1 MB, free: 100.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.8824, allocations: 128 kB / 427.2 MB, free: 100.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.8828, allocations: 197.2 kB / 427.4 MB, free: 100.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004138/0.8832, allocations: 156.1 kB / 427.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.8832, allocations: 1.062 kB / 427.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002913/0.8861, allocations: 0.7054 MB / 428.3 MB, free: 100.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.557e-05/0.8862, allocations: 61.2 kB / 428.3 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.8863, allocations: 1.875 kB / 428.3 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006929/0.887, allocations: 148.4 kB / 428.5 MB, free: 100.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000752/0.8877, allocations: 97.34 kB / 428.6 MB, free: 100.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.8889, allocations: 0.7712 MB / 429.4 MB, free: 99.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.89, allocations: 12.12 kB / 429.4 MB, free: 99.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-05/0.8901, allocations: 20.55 kB / 429.4 MB, free: 99.63 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.8903, allocations: 120.1 kB / 429.5 MB, free: 99.52 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001463/0.8917, allocations: 0.6128 MB / 430.1 MB, free: 99.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005709/0.8923, allocations: 280.4 kB / 430.4 MB, free: 99.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.8945, allocations: 0.7206 MB / 431.1 MB, free: 98.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.8945, allocations: 5.875 kB / 431.1 MB, free: 98.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.8945, allocations: 0 / 431.1 MB, free: 98.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.8945, allocations: 2.656 kB / 431.1 MB, free: 98.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.8976, allocations: 1.612 MB / 432.7 MB, free: 98.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.8977, allocations: 9.016 kB / 432.7 MB, free: 98.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000919/0.8986, allocations: 97.77 kB / 432.8 MB, free: 98.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004041/0.899, allocations: 92.06 kB / 432.9 MB, free: 98.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.8991, allocations: 6.5 kB / 432.9 MB, free: 98.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008093/0.8999, allocations: 0.6486 MB / 433.6 MB, free: 97.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.8999, allocations: 2.875 kB / 433.6 MB, free: 97.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.9022, allocations: 1.029 MB / 434.6 MB, free: 97.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/0.9041, allocations: 0.6714 MB / 435.3 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006259/0.9047, allocations: 12.84 kB / 435.3 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009643/0.9057, allocations: 21.81 kB / 435.3 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.9059, allocations: 26.39 kB / 435.3 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.9059, allocations: 19.34 kB / 435.4 MB, free: 96.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007804/0.9137, allocations: 3.628 MB / 439 MB, free: 95.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.9138, allocations: 3.469 kB / 439 MB, free: 95.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001674/0.9155, allocations: 309.3 kB / 439.3 MB, free: 95.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003212/0.9187, allocations: 1.875 MB / 441.2 MB, free: 94.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.9198, allocations: 452.6 kB / 441.6 MB, free: 94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.9198, allocations: 0 / 441.6 MB, free: 94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004608/0.9203, allocations: 196.7 kB / 441.8 MB, free: 93.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.922, allocations: 158.8 kB / 442 MB, free: 93.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.9344, allocations: 5.385 MB / 447.3 MB, free: 92.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00212/0.9366, allocations: 1.856 MB / 449.2 MB, free: 91.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001131/0.9377, allocations: 369.6 kB / 449.6 MB, free: 91.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/0.9399, allocations: 1.012 MB / 450.6 MB, free: 90.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.9399, allocations: 0 / 450.6 MB, free: 90.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.136/1.076, allocations: 39.2 MB / 489.8 MB, free: 56.42 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/1.076, allocations: 215.5 kB / 490 MB, free: 56.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.9/4.976, allocations: 0 / 490 MB, free: 56.13 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat