Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Core.B|Core.Hstat|Core.MagRel|Winding.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadModel(Modelica): time 2.161/2.161, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.67e-05, allocations: 7.906 kB / 258.8 MB, free: 8.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3153, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003897/0.3192, allocations: 2.235 MB / 305.5 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.322, allocations: 1.093 MB / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.3223, allocations: 4.625 kB / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.3225, allocations: 53.5 kB / 306.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007736/0.3233, allocations: 188.8 kB / 306.9 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.3236, allocations: 89.95 kB / 307 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.3241, allocations: 219.5 kB / 307.2 MB, free: 9.609 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.3243, allocations: 47.12 kB / 307.2 MB, free: 9.582 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.3246, allocations: 147.2 kB / 307.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.325, allocations: 181.9 kB / 307.5 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004845/0.3255, allocations: 141.8 kB / 307.7 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.867e-05/0.3256, allocations: 28 kB / 307.7 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.928e-05/0.3257, allocations: 59.8 kB / 307.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.3259, allocations: 32 kB / 307.8 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006248/0.3265, allocations: 372.8 kB / 308.2 MB, free: 8.812 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3265, allocations: 0 / 308.2 MB, free: 8.812 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3265, allocations: 4 kB / 308.2 MB, free: 8.809 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.3266, allocations: 0 / 308.2 MB, free: 8.809 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001816/0.3284, allocations: 0.5811 MB / 308.7 MB, free: 8.18 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.3285, allocations: 8.031 kB / 308.8 MB, free: 8.172 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.3286, allocations: 39.52 kB / 308.8 MB, free: 8.133 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.3292, allocations: 323.9 kB / 309.1 MB, free: 7.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-05/0.3293, allocations: 54.27 kB / 309.2 MB, free: 7.715 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.3296, allocations: 39.89 kB / 309.2 MB, free: 7.676 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009505/0.3306, allocations: 328.3 kB / 309.5 MB, free: 7.34 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.3306, allocations: 4 kB / 309.5 MB, free: 7.336 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.264e-05/0.3307, allocations: 12 kB / 309.5 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.3307, allocations: 4 kB / 309.5 MB, free: 7.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.3319, allocations: 313.9 kB / 309.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.3346, allocations: 1.164 MB / 311 MB, free: 5.773 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.3357, allocations: 301 kB / 311.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.946e-05/0.3358, allocations: 7.984 kB / 311.3 MB, free: 5.453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.3358, allocations: 42.55 kB / 311.4 MB, free: 5.402 MB / 250.7 MB Notification: Performance of pre-optimization done (n=31): time 3.447e-06/0.3359, allocations: 0 / 311.4 MB, free: 5.402 MB / 250.7 MB Notification: Performance of matching and sorting (n=42): time 0.0169/0.3528, allocations: 2.522 MB / 313.9 MB, free: 2.805 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.3529, allocations: 89.06 kB / 314 MB, free: 2.699 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/0.3534, allocations: 256.2 kB / 314.2 MB, free: 2.445 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.423e-05/0.3535, allocations: 33.7 kB / 314.3 MB, free: 2.406 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3537, allocations: 226.8 kB / 314.5 MB, free: 2.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.3539, allocations: 145.8 kB / 314.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.3539, allocations: 7.938 kB / 314.6 MB, free: 2.027 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3541, allocations: 330.8 kB / 314.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006986/0.3548, allocations: 172.8 kB / 315.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008142/0.3556, allocations: 238.6 kB / 315.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007621/0.3564, allocations: 185.8 kB / 315.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3564, allocations: 7.938 kB / 315.5 MB, free: 1.082 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00174/0.3582, allocations: 496.8 kB / 316 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3582, allocations: 4.188 kB / 316 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.3582, allocations: 4 kB / 316 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3583, allocations: 4 kB / 316 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3594, allocations: 119.9 kB / 316.2 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.3594, allocations: 4 kB / 316.2 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008537/0.3603, allocations: 51.92 kB / 316.2 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.918e-05/0.3604, allocations: 19.98 kB / 316.2 MB, free: 396 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002647/0.3607, allocations: 149.7 kB / 316.4 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.3608, allocations: 35.61 kB / 316.4 MB, free: 200 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/0.3641, allocations: 0.6799 MB / 317.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.3641, allocations: 7.984 kB / 317.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3642, allocations: 7.938 kB / 317.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.3642, allocations: 0 / 317.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/0.3696, allocations: 1.314 MB / 318.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.3697, allocations: 4 kB / 318.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008923/0.3706, allocations: 91.88 kB / 318.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002753/0.3734, allocations: 280.5 kB / 318.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-05/0.3735, allocations: 12 kB / 318.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006584/0.3801, allocations: 2.315 MB / 321.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3802, allocations: 0 / 321.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/0.3843, allocations: 1.063 MB / 322.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.3847, allocations: 140.7 kB / 322.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3848, allocations: 19.98 kB / 322.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007584/0.3856, allocations: 31.98 kB / 322.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3857, allocations: 36.38 kB / 322.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-05/0.3858, allocations: 12 kB / 322.4 MB, free: 9.938 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003579/0.3862, allocations: 208.5 kB / 322.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3862, allocations: 4 kB / 322.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007595/0.387, allocations: 123.9 kB / 322.7 MB, free: 9.609 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003919/0.3874, allocations: 139.1 kB / 322.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.3891, allocations: 450.1 kB / 323.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3891, allocations: 0 / 323.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.3904, allocations: 389.3 kB / 323.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.391, allocations: 36.38 kB / 323.7 MB, free: 8.598 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3942, allocations: 1.221 MB / 324.9 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.3947, allocations: 0.7972 MB / 325.7 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/0.3951, allocations: 43.41 kB / 325.8 MB, free: 6.461 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3951, allocations: 0 / 325.8 MB, free: 6.461 MB / 266.7 MB Notification: Performance of Templates: time 0.01331/0.4084, allocations: 5.533 MB / 331.3 MB, free: 0.9219 MB / 266.7 MB