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 2.155/2.155, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.126e-05/3.155e-05, allocations: 7.938 kB / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3293, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004904/0.3342, allocations: 2.678 MB / 306 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003397/0.3377, allocations: 1.263 MB / 307.2 MB, free: 9.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004201/0.3382, allocations: 7.781 kB / 307.3 MB, free: 9.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.3424, allocations: 2.075 MB / 309.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007884/0.3432, allocations: 139.5 kB / 309.5 MB, free: 7.512 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006533/0.3439, allocations: 131.7 kB / 309.6 MB, free: 7.383 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002447/0.3464, allocations: 0.9445 MB / 310.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.3467, allocations: 65.53 kB / 310.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007012/0.3475, allocations: 239.5 kB / 310.8 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006103/0.3481, allocations: 279.2 kB / 311.1 MB, free: 5.859 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003266/0.3484, allocations: 43.98 kB / 311.1 MB, free: 5.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.3486, allocations: 23.94 kB / 311.2 MB, free: 5.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.3497, allocations: 0.8259 MB / 312 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004166/0.3502, allocations: 88 kB / 312.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00323/0.3534, allocations: 2.079 MB / 314.2 MB, free: 2.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3535, allocations: 0 / 314.2 MB, free: 2.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3535, allocations: 3.938 kB / 314.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.884e-05/0.3536, allocations: 0 / 314.2 MB, free: 2.793 MB / 250.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.004279/0.3579, allocations: 1.829 MB / 316 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.358, allocations: 8.031 kB / 316 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008408/0.3588, allocations: 280.3 kB / 316.3 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004751/0.3636, allocations: 1.681 MB / 318 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3638, allocations: 54.7 kB / 318 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003022/0.3641, allocations: 47.98 kB / 318.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.3653, allocations: 398.9 kB / 318.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.3654, allocations: 0 / 318.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.3654, allocations: 12 kB / 318.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.3655, allocations: 8 kB / 318.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3667, allocations: 335.7 kB / 318.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007488/0.3742, allocations: 2.914 MB / 321.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.3755, allocations: 318 kB / 322 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.225e-05/0.3756, allocations: 11.94 kB / 322 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.138e-05/0.3757, allocations: 38.56 kB / 322.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 3.406e-06/0.3757, allocations: 0 / 322.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=48): time 0.00908/0.3848, allocations: 2.387 MB / 324.5 MB, free: 8.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.3849, allocations: 85.55 kB / 324.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01209/0.397, allocations: 5.031 MB / 329.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.3972, allocations: 33.7 kB / 329.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.3987, allocations: 0.8894 MB / 330.5 MB, free: 2.094 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.399, allocations: 169.5 kB / 330.7 MB, free: 1.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.3991, allocations: 8 kB / 330.7 MB, free: 1.918 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3992, allocations: 330.8 kB / 331 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006289/0.3999, allocations: 145 kB / 331.1 MB, free: 1.445 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006657/0.4006, allocations: 225.8 kB / 331.4 MB, free: 1.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007368/0.4013, allocations: 229.6 kB / 331.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4013, allocations: 0 / 331.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001601/0.403, allocations: 0.5138 MB / 332.1 MB, free: 436 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.403, allocations: 59.41 kB / 332.1 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.4031, allocations: 0 / 332.1 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.4031, allocations: 4 kB / 332.2 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.4041, allocations: 132 kB / 332.3 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.4041, allocations: 11.89 kB / 332.3 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.4052, allocations: 16 kB / 332.3 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.4053, allocations: 23.98 kB / 332.3 MB, free: 176 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (64): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002234/0.4075, allocations: 0.9192 MB / 333.3 MB, free: 15.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008061/0.4084, allocations: 272.4 kB / 333.5 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002882/0.4113, allocations: 0.7792 MB / 334.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.4113, allocations: 8 kB / 334.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4114, allocations: 0 / 334.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.4114, allocations: 7.984 kB / 334.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003503/0.4149, allocations: 1.465 MB / 335.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.415, allocations: 7.891 kB / 335.8 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009963/0.416, allocations: 99.88 kB / 335.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005597/0.4166, allocations: 84.8 kB / 336 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.865e-05/0.4167, allocations: 8 kB / 336 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009437/0.4176, allocations: 0.65 MB / 336.6 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.4177, allocations: 3.984 kB / 336.6 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003367/0.421, allocations: 1.086 MB / 337.7 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/0.4227, allocations: 497.5 kB / 338.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005827/0.4233, allocations: 12 kB / 338.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009951/0.4243, allocations: 15.98 kB / 338.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.4245, allocations: 36.39 kB / 338.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.634e-05/0.4246, allocations: 12 kB / 338.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00958/0.4341, allocations: 3.969 MB / 342.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.202e-06/0.4342, allocations: 0 / 342.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001496/0.4357, allocations: 212 kB / 342.4 MB, free: 5.895 MB / 282.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.0012/0.437, allocations: 369.9 kB / 342.8 MB, free: 5.566 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.4386, allocations: 0.4926 MB / 343.3 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.4387, allocations: 0 / 343.3 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.4395, allocations: 214.4 kB / 343.5 MB, free: 4.848 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.4412, allocations: 180.8 kB / 343.7 MB, free: 4.668 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.4554, allocations: 6.085 MB / 349.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003191/0.4587, allocations: 1.857 MB / 351.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.4597, allocations: 91.42 kB / 351.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.855e-06/0.4598, allocations: 0 / 351.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of Templates: time 0.09954/0.5593, allocations: 34.59 MB / 386.3 MB, free: 9.91 MB / 330.7 MB