Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Core.B|Core.Hstat|Core.MagRel|WindingPrim.i|WindingSec.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.255e-05/2.296e-05, allocations: 0 / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2549, allocations: 44.51 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1194/0.3743, allocations: 78.24 MB / 372.4 MB, free: 3.727 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.3746, allocations: 83.89 kB / 372.4 MB, free: 3.645 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1193/0.494, allocations: 37.77 MB / 410.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.889e-06/0.494, allocations: 0 / 410.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001813/0.4942, allocations: 36 kB / 410.2 MB, free: 13.54 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.003371/0.4976, allocations: 1.99 MB / 412.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4977, allocations: 12.03 kB / 412.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005849/0.4983, allocations: 284.3 kB / 412.5 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004279/0.5026, allocations: 1.861 MB / 414.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.935e-05/0.5027, allocations: 50.44 kB / 414.4 MB, free: 9.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.5029, allocations: 31.98 kB / 414.5 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007339/0.5037, allocations: 273.5 kB / 414.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007416/0.5044, allocations: 330.2 kB / 415.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.853e-05/0.5044, allocations: 0 / 415.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.026e-05/0.5045, allocations: 0 / 415.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.5045, allocations: 8 kB / 415.1 MB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006228/0.5108, allocations: 3.012 MB / 418.1 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.5114, allocations: 273.1 kB / 418.3 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.5118, allocations: 142.2 kB / 418.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.5118, allocations: 4 kB / 418.5 MB, free: 5.043 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.5119, allocations: 46.55 kB / 418.5 MB, free: 4.988 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.323e-06/0.5119, allocations: 0 / 418.5 MB, free: 4.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.004855/0.5167, allocations: 2.023 MB / 420.6 MB, free: 2.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.5169, allocations: 85.55 kB / 420.6 MB, free: 2.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.261/0.7779, allocations: 4.672 MB / 425.3 MB, free: 100.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.796e-05/0.778, allocations: 28.39 kB / 425.3 MB, free: 100.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.7791, allocations: 0.8984 MB / 426.2 MB, free: 100.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.7793, allocations: 160.5 kB / 426.4 MB, free: 100.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.7794, allocations: 0.6562 kB / 426.4 MB, free: 100.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.375e-05/0.7795, allocations: 335.2 kB / 426.7 MB, free: 100.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.7799, allocations: 128.6 kB / 426.8 MB, free: 100.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.7802, allocations: 197.8 kB / 427 MB, free: 100.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.7806, allocations: 154.5 kB / 427.2 MB, free: 100.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.281e-06/0.7806, allocations: 1.062 kB / 427.2 MB, free: 100.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001092/0.7817, allocations: 473.1 kB / 427.7 MB, free: 100.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.7818, allocations: 63.81 kB / 427.7 MB, free: 100 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.7818, allocations: 1.219 kB / 427.7 MB, free: 100 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.7824, allocations: 146.9 kB / 427.9 MB, free: 100 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004944/0.7829, allocations: 96.66 kB / 428 MB, free: 100 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009639/0.7839, allocations: 0.7665 MB / 428.7 MB, free: 99.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007646/0.7847, allocations: 14.5 kB / 428.7 MB, free: 99.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.7848, allocations: 24.44 kB / 428.8 MB, free: 99.48 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.00017/0.785, allocations: 122.6 kB / 428.9 MB, free: 99.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004972/0.7855, allocations: 276.5 kB / 429.1 MB, free: 99.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.7873, allocations: 0.7171 MB / 429.9 MB, free: 99.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.7873, allocations: 4.906 kB / 429.9 MB, free: 99.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.742e-06/0.7873, allocations: 5.344 kB / 429.9 MB, free: 99.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.7873, allocations: 4.125 kB / 429.9 MB, free: 99.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.79, allocations: 1.616 MB / 431.5 MB, free: 98.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.575e-06/0.79, allocations: 2.281 kB / 431.5 MB, free: 98.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006866/0.7907, allocations: 90.62 kB / 431.6 MB, free: 98.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003936/0.7911, allocations: 98.28 kB / 431.7 MB, free: 98.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.7912, allocations: 10.98 kB / 431.7 MB, free: 98.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007374/0.7919, allocations: 0.6498 MB / 432.3 MB, free: 98.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.588e-06/0.7919, allocations: 1.125 kB / 432.3 MB, free: 98.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.7939, allocations: 1.02 MB / 433.4 MB, free: 97.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.7953, allocations: 0.6746 MB / 434 MB, free: 97.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003177/0.7956, allocations: 7.625 kB / 434 MB, free: 97.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007317/0.7964, allocations: 29.16 kB / 434.1 MB, free: 97.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.771e-05/0.7965, allocations: 31.53 kB / 434.1 MB, free: 97.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/0.7965, allocations: 18.34 kB / 434.1 MB, free: 97.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006253/0.8028, allocations: 3.628 MB / 437.8 MB, free: 95.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.96e-07/0.8028, allocations: 3.969 kB / 437.8 MB, free: 95.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001398/0.8042, allocations: 317.8 kB / 438.1 MB, free: 95.96 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.001119/0.8054, allocations: 352.1 kB / 438.4 MB, free: 95.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009074/0.8063, allocations: 460.7 kB / 438.9 MB, free: 95.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.575e-06/0.8063, allocations: 3.562 kB / 438.9 MB, free: 95.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.8067, allocations: 182.3 kB / 439 MB, free: 95.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.808, allocations: 159 kB / 439.2 MB, free: 95.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008685/0.8168, allocations: 4.993 MB / 444.2 MB, free: 93.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/0.8187, allocations: 1.856 MB / 446 MB, free: 92.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006816/0.8194, allocations: 135 kB / 446.2 MB, free: 92.78 MB / 362.7 MB Notification: Performance of SimCode: time 1.904e-06/0.8195, allocations: 0 / 446.2 MB, free: 92.78 MB / 362.7 MB Notification: Performance of Templates: time 0.07359/0.8931, allocations: 39.94 MB / 486.1 MB, free: 60.29 MB / 362.7 MB