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_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadModel(Modelica): time 1.873/1.873, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.148e-05/2.148e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2486, allocations: 44.51 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.3765, allocations: 84.54 MB / 378.7 MB, free: 13.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.3768, allocations: 79.95 kB / 378.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06458/0.4414, allocations: 15.28 MB / 394 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4415, allocations: 0 / 394 MB, free: 14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.509e-05/0.4416, allocations: 16 kB / 394 MB, free: 13.99 MB / 346.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.002074/0.4436, allocations: 0.8575 MB / 394.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4437, allocations: 8.031 kB / 394.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/0.444, allocations: 79.11 kB / 395 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.4451, allocations: 0.4923 MB / 395.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.4452, allocations: 55 kB / 395.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.4454, allocations: 44 kB / 395.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001195/0.4467, allocations: 450.5 kB / 396 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.4479, allocations: 497.9 kB / 396.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.4479, allocations: 0 / 396.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.493e-05/0.448, allocations: 4 kB / 396.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.448, allocations: 15.95 kB / 396.5 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004805/0.4529, allocations: 2.209 MB / 398.7 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009204/0.4538, allocations: 421.7 kB / 399.1 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/0.4544, allocations: 222.1 kB / 399.3 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.4544, allocations: 4 kB / 399.4 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4545, allocations: 42.56 kB / 399.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.623e-06/0.4545, allocations: 0 / 399.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.01128/0.4658, allocations: 2.554 MB / 401.9 MB, free: 5.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.4659, allocations: 85.67 kB / 402 MB, free: 5.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009179/0.4668, allocations: 433.3 kB / 402.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.4669, allocations: 25.7 kB / 402.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.4673, allocations: 350.7 kB / 402.8 MB, free: 4.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002449/0.4675, allocations: 201 kB / 403 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.4676, allocations: 0 / 403 MB, free: 4.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4678, allocations: 338.8 kB / 403.3 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005409/0.4683, allocations: 217.5 kB / 403.6 MB, free: 4.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006282/0.469, allocations: 299.4 kB / 403.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006209/0.4696, allocations: 242.1 kB / 404.1 MB, free: 3.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.21e-06/0.4696, allocations: 0 / 404.1 MB, free: 3.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008062/0.4777, allocations: 1.701 MB / 405.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.4778, allocations: 10.03 kB / 405.8 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4778, allocations: 4.125 kB / 405.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007388/0.4852, allocations: 1.156 MB / 407 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.4858, allocations: 99.83 kB / 407.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01633/0.5022, allocations: 5.646 MB / 412.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007947/0.503, allocations: 31.97 kB / 412.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.406e-05/0.5031, allocations: 20 kB / 412.8 MB, free: 10.73 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.5034, allocations: 132.6 kB / 412.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.5036, allocations: 59.25 kB / 412.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/0.5056, allocations: 0.7049 MB / 413.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.5056, allocations: 12 kB / 413.7 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.261e-06/0.5056, allocations: 3.953 kB / 413.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.5056, allocations: 3.984 kB / 413.7 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004701/0.5104, allocations: 1.699 MB / 415.4 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.764e-06/0.5104, allocations: 4 kB / 415.4 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007468/0.5112, allocations: 111.9 kB / 415.5 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/0.5132, allocations: 334 kB / 415.8 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-05/0.5134, allocations: 7.984 kB / 415.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005792/0.5192, allocations: 2.729 MB / 418.5 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.983e-06/0.5192, allocations: 0 / 418.5 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.5224, allocations: 1.216 MB / 419.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.5229, allocations: 208.4 kB / 420 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.523, allocations: 7.938 kB / 420 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007399/0.5238, allocations: 35.97 kB / 420 MB, free: 3.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.524, allocations: 52.48 kB / 420.1 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.5241, allocations: 16 kB / 420.1 MB, free: 3.188 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005956/0.5247, allocations: 343 kB / 420.4 MB, free: 2.855 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.16e-07/0.5247, allocations: 0 / 420.4 MB, free: 2.855 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001198/0.5259, allocations: 192.1 kB / 420.6 MB, free: 2.668 MB / 362.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.Phi,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.0003897/0.5263, allocations: 147.1 kB / 420.7 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.5282, allocations: 0.7641 MB / 421.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.378e-06/0.5282, allocations: 0 / 421.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.5293, allocations: 476.8 kB / 422 MB, free: 1.266 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006963/0.53, allocations: 57.95 kB / 422 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.5329, allocations: 1.107 MB / 423.1 MB, free: 72 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1987/0.7316, allocations: 0.9169 MB / 424 MB, free: 106 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.732, allocations: 44.06 kB / 424.1 MB, free: 106 MB / 362.7 MB Notification: Performance of SimCode: time 2.362e-06/0.7321, allocations: 0 / 424.1 MB, free: 106 MB / 362.7 MB Notification: Performance of Templates: time 0.0187/0.7508, allocations: 10.89 MB / 435 MB, free: 105.7 MB / 362.7 MB