Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.713e-05, allocations: 0 / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 50.42 MB / 342.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3786/0.5051, allocations: 93.3 MB / 435.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5054, allocations: 77.89 kB / 435.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06669/0.5722, allocations: 15.85 MB / 451.8 MB, free: 3.379 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.673e-06/0.5722, allocations: 0 / 451.8 MB, free: 3.379 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.786e-05/0.5723, allocations: 15.94 kB / 451.8 MB, free: 3.363 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002016/0.5743, allocations: 0.8594 MB / 452.7 MB, free: 2.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.5743, allocations: 8.031 kB / 452.7 MB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.5746, allocations: 79.16 kB / 452.7 MB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.5756, allocations: 495.1 kB / 453.2 MB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.5757, allocations: 76.39 kB / 453.3 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002484/0.576, allocations: 69.81 kB / 453.4 MB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.5773, allocations: 0.5589 MB / 453.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.5773, allocations: 0 / 453.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-05/0.5774, allocations: 25 kB / 453.9 MB, free: 1.484 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.5775, allocations: 12 kB / 454 MB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.5786, allocations: 476.2 kB / 454.4 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004825/0.5835, allocations: 2.332 MB / 456.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009383/0.5845, allocations: 428.5 kB / 457.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005699/0.5851, allocations: 236.5 kB / 457.4 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.5851, allocations: 15.44 kB / 457.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.5852, allocations: 34 kB / 457.5 MB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 3.686e-06/0.5852, allocations: 0 / 457.5 MB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01363/0.5988, allocations: 3.012 MB / 460.5 MB, free: 12.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/0.5989, allocations: 89.61 kB / 460.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009074/0.5999, allocations: 486.3 kB / 461 MB, free: 11.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.471e-05/0.6, allocations: 39.7 kB / 461.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.6002, allocations: 336.8 kB / 461.4 MB, free: 11.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.6005, allocations: 220.2 kB / 461.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.864e-05/0.6006, allocations: 7 kB / 461.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.6007, allocations: 336.8 kB / 461.9 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005522/0.6013, allocations: 223 kB / 462.2 MB, free: 10.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006459/0.602, allocations: 308.2 kB / 462.5 MB, free: 10.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006539/0.6026, allocations: 259.2 kB / 462.7 MB, free: 10.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.884e-06/0.6027, allocations: 0 / 462.7 MB, free: 10.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008181/0.6109, allocations: 1.756 MB / 464.5 MB, free: 8.746 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.6109, allocations: 7.938 kB / 464.5 MB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.611, allocations: 4 kB / 464.5 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007427/0.6184, allocations: 1.176 MB / 465.7 MB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006013/0.619, allocations: 91.89 kB / 465.8 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/0.6361, allocations: 5.767 MB / 471.5 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.6369, allocations: 47.98 kB / 471.6 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.637, allocations: 23.98 kB / 471.6 MB, free: 1.48 MB / 378.7 MB 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.0002386/0.6373, allocations: 136.9 kB / 471.7 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.6375, allocations: 59.25 kB / 471.8 MB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/0.6396, allocations: 0.771 MB / 472.6 MB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.6396, allocations: 8 kB / 472.6 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.417e-06/0.6396, allocations: 3.938 kB / 472.6 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.6396, allocations: 3.984 kB / 472.6 MB, free: 496 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004926/0.6446, allocations: 1.828 MB / 474.4 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.6446, allocations: 0 / 474.4 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.6454, allocations: 127.7 kB / 474.5 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.6475, allocations: 341.2 kB / 474.9 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.517e-05/0.6476, allocations: 12 kB / 474.9 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/0.6537, allocations: 2.81 MB / 477.7 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.035e-06/0.6537, allocations: 3.953 kB / 477.7 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.6571, allocations: 1.267 MB / 478.9 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000528/0.6577, allocations: 216.3 kB / 479.2 MB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.6578, allocations: 16 kB / 479.2 MB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/0.6586, allocations: 43.97 kB / 479.2 MB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.6588, allocations: 56.42 kB / 479.3 MB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.915e-05/0.6589, allocations: 16 kB / 479.3 MB, free: 9.523 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007075/0.6596, allocations: 381.6 kB / 479.7 MB, free: 9.152 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.24e-07/0.6596, allocations: 0 / 479.7 MB, free: 9.152 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0012/0.6609, allocations: 220 kB / 479.9 MB, free: 8.938 MB / 394.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.0004002/0.6613, allocations: 171 kB / 480 MB, free: 8.758 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.6633, allocations: 0.7841 MB / 480.8 MB, free: 7.965 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6633, allocations: 0 / 480.8 MB, free: 7.965 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.6644, allocations: 487.9 kB / 481.3 MB, free: 7.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.6652, allocations: 86.36 kB / 481.4 MB, free: 7.395 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.6685, allocations: 1.137 MB / 482.5 MB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007707/0.6693, allocations: 0.9199 MB / 483.4 MB, free: 5.277 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.6696, allocations: 51.42 kB / 483.5 MB, free: 5.227 MB / 394.7 MB Notification: Performance of SimCode: time 2.031e-06/0.6696, allocations: 0 / 483.5 MB, free: 5.227 MB / 394.7 MB Notification: Performance of Templates: time 0.02163/0.6913, allocations: 11.19 MB / 494.7 MB, free: 10.05 MB / 410.7 MB