Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.612e-05, allocations: 0 / 292.7 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.08941, allocations: 50.41 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.355/0.4445, allocations: 81.19 MB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.4448, allocations: 85.75 kB / 424.4 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04271/0.4875, allocations: 11.35 MB / 435.7 MB, free: 3.738 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.815e-06/0.4876, allocations: 0 / 435.7 MB, free: 3.738 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.937e-05/0.4876, allocations: 8 kB / 435.7 MB, free: 3.73 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00252/0.4902, allocations: 0.6038 MB / 436.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.4902, allocations: 12.03 kB / 436.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.4916, allocations: 109.5 kB / 436.5 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.492, allocations: 254.8 kB / 436.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.4921, allocations: 23.66 kB / 436.7 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-05/0.4922, allocations: 35.17 kB / 436.8 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006778/0.4928, allocations: 316.5 kB / 437.1 MB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.4929, allocations: 11.84 kB / 437.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.749e-05/0.4929, allocations: 10.38 kB / 437.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.493, allocations: 11.95 kB / 437.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005449/0.4935, allocations: 225.2 kB / 437.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.4961, allocations: 1.467 MB / 438.8 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/0.497, allocations: 0.6799 MB / 439.5 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002114/0.4972, allocations: 103.8 kB / 439.6 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.4974, allocations: 81.11 kB / 439.7 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.4974, allocations: 34.38 kB / 439.7 MB, free: 80 kB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.625e-06/0.4974, allocations: 4 kB / 439.7 MB, free: 76 kB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000732/0.4982, allocations: 252.8 kB / 439.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.4983, allocations: 55.41 kB / 440 MB, free: 15.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.4985, allocations: 154.2 kB / 440.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.4985, allocations: 29.45 kB / 440.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.4987, allocations: 178.8 kB / 440.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.429e-05/0.4988, allocations: 85.58 kB / 440.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.736e-05/0.4988, allocations: 7.812 kB / 440.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.499, allocations: 325.3 kB / 440.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.4992, allocations: 62.75 kB / 440.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.4994, allocations: 115 kB / 440.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.4997, allocations: 88.72 kB / 441 MB, free: 14.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.899e-06/0.4997, allocations: 4 kB / 441 MB, free: 14.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007448/0.5004, allocations: 310.4 kB / 441.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.5005, allocations: 8 kB / 441.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.056e-06/0.5005, allocations: 0 / 441.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.5009, allocations: 78.56 kB / 441.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.5011, allocations: 43.91 kB / 441.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/0.5037, allocations: 1.826 MB / 443.3 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.5039, allocations: 23.62 kB / 443.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.5039, allocations: 15.7 kB / 443.3 MB, free: 12.78 MB / 362.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.504, allocations: 111.4 kB / 443.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.5041, allocations: 19.8 kB / 443.4 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007222/0.5048, allocations: 290.2 kB / 443.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.5049, allocations: 7.984 kB / 443.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.561e-06/0.5049, allocations: 0 / 443.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.339e-06/0.5049, allocations: 0 / 443.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.5063, allocations: 0.6969 MB / 444.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.854e-06/0.5063, allocations: 0 / 444.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.5065, allocations: 20 kB / 444.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000327/0.5068, allocations: 83.23 kB / 444.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.5069, allocations: 3.25 kB / 444.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00242/0.5093, allocations: 1.819 MB / 446.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5093, allocations: 0 / 446.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008574/0.5102, allocations: 441.9 kB / 446.8 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.5104, allocations: 111.7 kB / 446.9 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.5104, allocations: 11.58 kB / 446.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.5106, allocations: 3.062 kB / 446.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.5107, allocations: 19.91 kB / 446.9 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.5107, allocations: 8 kB / 446.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001442/0.5108, allocations: 126.2 kB / 447.1 MB, free: 9.418 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.57e-07/0.5109, allocations: 4 kB / 447.1 MB, free: 9.414 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006574/0.5115, allocations: 104.2 kB / 447.2 MB, free: 9.324 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002612/0.5118, allocations: 134.3 kB / 447.3 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007043/0.5125, allocations: 330.1 kB / 447.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.238e-06/0.5126, allocations: 0 / 447.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004203/0.513, allocations: 237.8 kB / 447.8 MB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.5133, allocations: 19.44 kB / 447.9 MB, free: 8.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.5143, allocations: 399.8 kB / 448.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.5148, allocations: 0.7596 MB / 449 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.515, allocations: 30.06 kB / 449 MB, free: 7.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.5151, allocations: 15.44 kB / 449.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5151, allocations: 0 / 449.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of Templates: time 0.008831/0.5239, allocations: 2.55 MB / 451.6 MB, free: 4.992 MB / 362.7 MB