Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.64e-05, allocations: 9.562 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08918, allocations: 50.42 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3764/0.4656, allocations: 96.11 MB / 439.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.4659, allocations: 81.64 kB / 439.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1369/0.6028, allocations: 37.14 MB / 476.4 MB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.23e-06/0.6028, allocations: 0 / 476.4 MB, free: 13.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.457e-05/0.6029, allocations: 28 kB / 476.4 MB, free: 13.11 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.005495/0.6084, allocations: 1.599 MB / 478 MB, free: 11.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.6085, allocations: 16.03 kB / 478.1 MB, free: 11.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003615/0.6121, allocations: 445.8 kB / 478.5 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001851/0.614, allocations: 0.7503 MB / 479.2 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/0.6143, allocations: 144.6 kB / 479.4 MB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/0.6146, allocations: 152 kB / 479.5 MB, free: 9.914 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003331/0.618, allocations: 1.236 MB / 480.8 MB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.028e-05/0.618, allocations: 3.906 kB / 480.8 MB, free: 8.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.6183, allocations: 64 kB / 480.8 MB, free: 8.594 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.279e-05/0.6183, allocations: 32 kB / 480.9 MB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003169/0.6215, allocations: 1.162 MB / 482 MB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0117/0.6332, allocations: 4.94 MB / 487 MB, free: 2.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003519/0.6368, allocations: 1.844 MB / 488.8 MB, free: 236 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.6381, allocations: 0.52 MB / 489.3 MB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001975/0.6384, allocations: 118 kB / 489.5 MB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/0.6399, allocations: 0.6904 MB / 490.1 MB, free: 14.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 5.466e-06/0.64, allocations: 0 / 490.1 MB, free: 14.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01538/0.6553, allocations: 4.901 MB / 495 MB, free: 9.875 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001794/0.6556, allocations: 230.9 kB / 495.3 MB, free: 9.602 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.6566, allocations: 0.5269 MB / 495.8 MB, free: 9.066 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000204/0.6569, allocations: 65.69 kB / 495.9 MB, free: 8.996 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006328/0.6575, allocations: 0.5584 MB / 496.4 MB, free: 8.426 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006422/0.6582, allocations: 0.539 MB / 497 MB, free: 7.879 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.6583, allocations: 32 kB / 497 MB, free: 7.848 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002983/0.6586, allocations: 410.7 kB / 497.4 MB, free: 7.438 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.6598, allocations: 456 kB / 497.8 MB, free: 6.992 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.6614, allocations: 0.7757 MB / 498.6 MB, free: 6.094 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.663, allocations: 0.5625 MB / 499.2 MB, free: 5.535 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.663, allocations: 4 kB / 499.2 MB, free: 5.531 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005749/0.6688, allocations: 1.868 MB / 0.4893 GB, free: 3.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.6689, allocations: 12 kB / 0.4893 GB, free: 3.625 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/0.6689, allocations: 11.98 kB / 0.4893 GB, free: 3.613 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.671, allocations: 470 kB / 0.4898 GB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.6727, allocations: 295.5 kB / 0.4901 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/0.687, allocations: 8.583 MB / 0.4984 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.6885, allocations: 87.94 kB / 0.4985 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/0.6887, allocations: 63.98 kB / 0.4986 GB, free: 9.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004368/0.6892, allocations: 215.9 kB / 0.4988 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.6894, allocations: 106.8 kB / 0.4989 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005342/0.6948, allocations: 1.761 MB / 0.5006 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.162e-05/0.6949, allocations: 16 kB / 0.5006 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/0.6949, allocations: 8 kB / 0.5006 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.612e-05/0.6949, allocations: 11.97 kB / 0.5006 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008928/0.7039, allocations: 3.567 MB / 0.5041 GB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/0.7039, allocations: 7.984 kB / 0.5041 GB, free: 3.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/0.7054, allocations: 199.8 kB / 0.5043 GB, free: 3.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/0.7074, allocations: 462.1 kB / 0.5048 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002179/0.7076, allocations: 39.98 kB / 0.5048 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0136/0.7213, allocations: 8.323 MB / 0.5129 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.562e-06/0.7213, allocations: 0 / 0.5129 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006868/0.7282, allocations: 2.491 MB / 0.5154 GB, free: 7.688 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008542/0.7291, allocations: 299.6 kB / 0.5157 GB, free: 7.375 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.7294, allocations: 32 kB / 0.5157 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009933/0.7304, allocations: 71.95 kB / 0.5157 GB, free: 7.273 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/0.7308, allocations: 125.1 kB / 0.5159 GB, free: 7.152 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.7309, allocations: 51.92 kB / 0.5159 GB, free: 7.102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007917/0.7317, allocations: 419.2 kB / 0.5163 GB, free: 6.695 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.7317, allocations: 0 / 0.5163 GB, free: 6.695 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002238/0.734, allocations: 427.9 kB / 0.5167 GB, free: 6.277 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005831/0.7346, allocations: 254.6 kB / 0.517 GB, free: 6.016 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004419/0.739, allocations: 1.893 MB / 0.5188 GB, free: 4.086 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.05e-06/0.7391, allocations: 0 / 0.5188 GB, free: 4.086 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0029/0.742, allocations: 1.295 MB / 0.5201 GB, free: 2.754 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008827/0.7429, allocations: 98.91 kB / 0.5202 GB, free: 2.656 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/0.749, allocations: 2.065 MB / 0.5222 GB, free: 0.5469 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2386/0.9877, allocations: 1.21 MB / 0.5234 GB, free: 122.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001196/0.9889, allocations: 152.2 kB / 0.5235 GB, free: 122.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.9893, allocations: 80.86 kB / 0.5236 GB, free: 122.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.661e-06/0.9893, allocations: 2.719 kB / 0.5236 GB, free: 122.2 MB / 442.7 MB Notification: Performance of Templates: time 0.04473/1.034, allocations: 16.29 MB / 0.5395 GB, free: 121.6 MB / 442.7 MB