Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|tr.Core.B|tr.Core.Hstat|tr.Core.MagRel|tr.Wp.i|tr.Ws.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadModel(Modelica): time 2.261/2.261, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.958e-05, allocations: 1.406 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1834, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.009304/0.1928, allocations: 3.437 MB / 348.4 MB, free: 5.484 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005495/0.1983, allocations: 1.392 MB / 349.8 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008591/0.1992, allocations: 12 kB / 349.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005357/0.1998, allocations: 91.22 kB / 349.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002079/0.2019, allocations: 303 kB / 350.2 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.203, allocations: 143.7 kB / 350.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001944/0.205, allocations: 488.4 kB / 350.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004989/0.2055, allocations: 112.3 kB / 350.9 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000902/0.2065, allocations: 279.3 kB / 351.2 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.2076, allocations: 326.9 kB / 351.5 MB, free: 2.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008935/0.2085, allocations: 159.8 kB / 351.7 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003077/0.2089, allocations: 44 kB / 351.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002256/0.2091, allocations: 127.5 kB / 351.9 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003345/0.2095, allocations: 64 kB / 351.9 MB, free: 1.977 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.2116, allocations: 0.8844 MB / 352.8 MB, free: 1.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.2117, allocations: 3.938 kB / 352.8 MB, free: 1.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2117, allocations: 4 kB / 352.8 MB, free: 1.082 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.664e-05/0.2118, allocations: 0 / 352.8 MB, free: 1.082 MB / 282.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.004262/0.216, allocations: 0.8656 MB / 353.7 MB, free: 172 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/0.2161, allocations: 8.031 kB / 353.7 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004681/0.2166, allocations: 83.05 kB / 353.8 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/0.2184, allocations: 498 kB / 354.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.2187, allocations: 71.02 kB / 354.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005151/0.2192, allocations: 71.89 kB / 354.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.2222, allocations: 0.598 MB / 355 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.971e-05/0.2223, allocations: 0 / 355 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/0.2225, allocations: 28 kB / 355 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.2225, allocations: 12 kB / 355 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0034/0.226, allocations: 0.536 MB / 355.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00945/0.2355, allocations: 2.314 MB / 357.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.2384, allocations: 0.5043 MB / 358.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-05/0.2385, allocations: 4 kB / 358.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.035e-05/0.2386, allocations: 42.5 kB / 358.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 4.789e-06/0.2386, allocations: 0 / 358.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.03715/0.2758, allocations: 3.679 MB / 362.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/0.276, allocations: 81.67 kB / 362.2 MB, free: 7.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.2776, allocations: 493.2 kB / 362.7 MB, free: 6.859 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002104/0.2779, allocations: 41.62 kB / 362.7 MB, free: 6.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004082/0.2783, allocations: 346.8 kB / 363 MB, free: 6.469 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004565/0.2788, allocations: 208.9 kB / 363.2 MB, free: 6.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.2789, allocations: 16 kB / 363.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.2791, allocations: 330.8 kB / 363.6 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.2808, allocations: 261.2 kB / 363.8 MB, free: 5.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.2828, allocations: 352.4 kB / 364.2 MB, free: 5.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.2846, allocations: 290.1 kB / 364.5 MB, free: 5.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/0.2847, allocations: 4 kB / 364.5 MB, free: 5 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.004364/0.2891, allocations: 0.7339 MB / 365.2 MB, free: 4.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.2892, allocations: 4 kB / 365.2 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.2892, allocations: 7.938 kB / 365.2 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.2896, allocations: 32.91 kB / 365.3 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.2921, allocations: 171.8 kB / 365.4 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.2944, allocations: 1.339 MB / 366.8 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.2964, allocations: 56.03 kB / 366.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.2966, allocations: 23.98 kB / 366.8 MB, free: 2.488 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (76): * Single equations (assignments): 75 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006948/0.2973, allocations: 205.6 kB / 367 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003676/0.2977, allocations: 59.33 kB / 367.1 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005238/0.303, allocations: 0.8608 MB / 368 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/0.3031, allocations: 11.94 kB / 368 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3031, allocations: 0 / 368 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.3031, allocations: 7.984 kB / 368 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.3134, allocations: 1.885 MB / 369.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-05/0.3135, allocations: 0 / 369.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/0.3153, allocations: 111.9 kB / 370 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00666/0.322, allocations: 0.4963 MB / 370.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.3222, allocations: 12 kB / 370.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.3352, allocations: 3.006 MB / 373.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/0.3352, allocations: 3.953 kB / 373.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008285/0.3435, allocations: 1.423 MB / 374.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007539/0.3443, allocations: 208.3 kB / 375.1 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.3446, allocations: 15.98 kB / 375.1 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.3463, allocations: 47.97 kB / 375.2 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.3466, allocations: 44.5 kB / 375.2 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.3467, allocations: 23.98 kB / 375.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001098/0.3478, allocations: 382.9 kB / 375.6 MB, free: 9.449 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.3479, allocations: 3.938 kB / 375.6 MB, free: 9.445 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001723/0.3496, allocations: 184 kB / 375.8 MB, free: 9.266 MB / 314.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.B,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.0005838/0.3502, allocations: 163.2 kB / 376 MB, free: 9.094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.3543, allocations: 0.7486 MB / 376.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.3543, allocations: 4.188 kB / 376.7 MB, free: 8.328 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.3569, allocations: 0.529 MB / 377.2 MB, free: 7.789 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3583, allocations: 84.64 kB / 377.3 MB, free: 7.707 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/0.3654, allocations: 1.848 MB / 379.2 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008709/0.3663, allocations: 0.9162 MB / 380.1 MB, free: 4.883 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006633/0.367, allocations: 55.42 kB / 380.1 MB, free: 4.828 MB / 314.7 MB Notification: Performance of SimCode: time 4.769e-06/0.3671, allocations: 0 / 380.1 MB, free: 4.828 MB / 314.7 MB Notification: Performance of Templates: time 0.02585/0.3929, allocations: 11.31 MB / 391.5 MB, free: 9.535 MB / 330.7 MB