Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.852e-05, allocations: 7.875 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07734/0.07739, allocations: 44.49 MB / 299.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.445, allocations: 74.92 MB / 374.8 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4453, allocations: 76.25 kB / 374.8 MB, free: 22.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02757/0.4729, allocations: 6.855 MB / 381.7 MB, free: 21.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.048e-06/0.4729, allocations: 0 / 381.7 MB, free: 21.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.473, allocations: 5.219 kB / 381.7 MB, free: 21.72 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008053/0.4738, allocations: 0.5239 MB / 382.2 MB, free: 21.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.4738, allocations: 7.875 kB / 382.2 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.234e-05/0.4739, allocations: 32.78 kB / 382.2 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.4743, allocations: 271.3 kB / 382.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.4744, allocations: 20.53 kB / 382.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.4744, allocations: 24.03 kB / 382.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.4749, allocations: 229.7 kB / 382.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.475, allocations: 0 / 382.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.475, allocations: 14.25 kB / 382.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.917e-06/0.475, allocations: 5.875 kB / 382.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.4755, allocations: 183.3 kB / 383 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.4774, allocations: 1.025 MB / 384 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.4778, allocations: 193.5 kB / 384.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.4781, allocations: 106.2 kB / 384.3 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.4781, allocations: 3.812 kB / 384.3 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.4782, allocations: 30.56 kB / 384.3 MB, free: 20.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.043e-06/0.4782, allocations: 2.156 kB / 384.3 MB, free: 20.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.004548/0.4827, allocations: 1.23 MB / 385.6 MB, free: 20.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.4828, allocations: 58.11 kB / 385.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.4831, allocations: 200.2 kB / 385.8 MB, free: 19.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.4831, allocations: 34.58 kB / 385.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.659e-05/0.4832, allocations: 232.1 kB / 386.1 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.774e-05/0.4833, allocations: 123.2 kB / 386.2 MB, free: 19.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.4834, allocations: 13.16 kB / 386.2 MB, free: 19.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.4834, allocations: 324.8 kB / 386.5 MB, free: 19.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.4837, allocations: 91.72 kB / 386.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.484, allocations: 153.4 kB / 386.8 MB, free: 19.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.4843, allocations: 115.1 kB / 386.9 MB, free: 19.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.535e-06/0.4843, allocations: 1.812 kB / 386.9 MB, free: 19.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001828/0.4861, allocations: 0.5009 MB / 387.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.4862, allocations: 5.344 kB / 387.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.4862, allocations: 2.656 kB / 387.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.4872, allocations: 187.3 kB / 387.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003563/0.4876, allocations: 55.5 kB / 387.6 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/0.4929, allocations: 3.769 MB / 391.4 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.4933, allocations: 15.09 kB / 391.4 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.4934, allocations: 23.11 kB / 391.4 MB, free: 16.32 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 * 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: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.4935, allocations: 116 kB / 391.5 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.749e-05/0.4936, allocations: 26.88 kB / 391.6 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.466e-05/0.4937, allocations: 43.06 kB / 391.6 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.4937, allocations: 3.906 kB / 391.6 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.843e-06/0.4938, allocations: 3.906 kB / 391.6 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.675e-06/0.4938, allocations: 4 kB / 391.6 MB, free: 16.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.4963, allocations: 0.9366 MB / 392.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.175e-06/0.4963, allocations: 0 / 392.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.4966, allocations: 36.97 kB / 392.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.4977, allocations: 192.5 kB / 392.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.4978, allocations: 7.281 kB / 392.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005788/0.5036, allocations: 3.758 MB / 396.6 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.951e-06/0.5036, allocations: 0 / 396.6 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.5056, allocations: 0.7098 MB / 397.3 MB, free: 28.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.5058, allocations: 99.73 kB / 397.4 MB, free: 28.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.5059, allocations: 3.938 kB / 397.4 MB, free: 28.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.5062, allocations: 18.34 kB / 397.4 MB, free: 28.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.5063, allocations: 32.8 kB / 397.4 MB, free: 28.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.5064, allocations: 3.906 kB / 397.4 MB, free: 28.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002074/0.5066, allocations: 165.1 kB / 397.6 MB, free: 28.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.5066, allocations: 3.844 kB / 397.6 MB, free: 28.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008133/0.5074, allocations: 105.2 kB / 397.7 MB, free: 28.67 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 2 * 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: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.5076, allocations: 119.1 kB / 397.8 MB, free: 28.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.5087, allocations: 0.5444 MB / 398.3 MB, free: 28.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.47e-06/0.5087, allocations: 0 / 398.3 MB, free: 28.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.5094, allocations: 419.5 kB / 398.8 MB, free: 28.08 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.5097, allocations: 11.78 kB / 398.8 MB, free: 28.08 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.5109, allocations: 494.9 kB / 399.2 MB, free: 27.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.5113, allocations: 0.7821 MB / 400 MB, free: 27.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.5114, allocations: 22.58 kB / 400.1 MB, free: 27.12 MB / 330.7 MB Notification: Performance of SimCode: time 1.911e-06/0.5114, allocations: 0 / 400.1 MB, free: 27.12 MB / 330.7 MB Notification: Performance of Templates: time 0.008665/0.5201, allocations: 5.806 MB / 405.9 MB, free: 26.86 MB / 330.7 MB