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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.339e-05, allocations: 0 / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08927, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3746/0.4639, allocations: 96.1 MB / 438.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4642, allocations: 82.08 kB / 438.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1409/0.6051, allocations: 37.15 MB / 475.9 MB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6052, allocations: 0 / 475.9 MB, free: 13.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.983e-05/0.6052, allocations: 28 kB / 475.9 MB, free: 13.09 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.005456/0.6107, allocations: 1.599 MB / 477.5 MB, free: 11.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.6108, allocations: 16.03 kB / 477.5 MB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003624/0.6144, allocations: 449.7 kB / 478 MB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001868/0.6163, allocations: 0.7464 MB / 478.7 MB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.6165, allocations: 144.6 kB / 478.9 MB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.6169, allocations: 152 kB / 479 MB, free: 9.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.6202, allocations: 1.24 MB / 480.2 MB, free: 8.633 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.6203, allocations: 3.906 kB / 480.3 MB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.6205, allocations: 60 kB / 480.3 MB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.6206, allocations: 32 kB / 480.3 MB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003107/0.6237, allocations: 1.162 MB / 481.5 MB, free: 7.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/0.6349, allocations: 4.936 MB / 486.4 MB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003515/0.6385, allocations: 1.852 MB / 488.3 MB, free: 208 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.6397, allocations: 0.516 MB / 488.8 MB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.6399, allocations: 122 kB / 488.9 MB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001558/0.6415, allocations: 0.6904 MB / 489.6 MB, free: 14.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 5.279e-06/0.6415, allocations: 0 / 489.6 MB, free: 14.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01534/0.6569, allocations: 4.897 MB / 494.5 MB, free: 9.855 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/0.6571, allocations: 230.9 kB / 494.7 MB, free: 9.582 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.6581, allocations: 0.523 MB / 495.3 MB, free: 9.051 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001562/0.6583, allocations: 61.7 kB / 495.3 MB, free: 8.984 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000605/0.6589, allocations: 0.5701 MB / 495.9 MB, free: 8.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006054/0.6595, allocations: 0.5313 MB / 496.4 MB, free: 7.863 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.6597, allocations: 35.94 kB / 496.5 MB, free: 7.828 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002869/0.66, allocations: 410.7 kB / 496.9 MB, free: 7.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.6612, allocations: 452 kB / 497.3 MB, free: 6.977 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.6627, allocations: 0.7757 MB / 498.1 MB, free: 6.078 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.6642, allocations: 0.5625 MB / 498.6 MB, free: 5.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.6642, allocations: 4 kB / 498.6 MB, free: 5.516 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.01012/0.6743, allocations: 1.864 MB / 0.4888 GB, free: 3.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.165e-05/0.6744, allocations: 12 kB / 0.4888 GB, free: 3.613 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.199e-05/0.6745, allocations: 8 kB / 0.4888 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004468/0.679, allocations: 477.7 kB / 0.4893 GB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003774/0.6828, allocations: 291.5 kB / 0.4895 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/0.7126, allocations: 8.589 MB / 0.4979 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/0.7157, allocations: 87.94 kB / 0.498 GB, free: 9.637 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003844/0.7162, allocations: 63.98 kB / 0.4981 GB, free: 9.574 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.0008434/0.717, allocations: 211.8 kB / 0.4983 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005552/0.7176, allocations: 106.8 kB / 0.4984 GB, free: 9.258 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/0.7295, allocations: 1.765 MB / 0.5001 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-05/0.7296, allocations: 16 kB / 0.5001 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.358e-05/0.7296, allocations: 8 kB / 0.5001 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-05/0.7297, allocations: 11.97 kB / 0.5001 GB, free: 7.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01884/0.7486, allocations: 3.563 MB / 0.5036 GB, free: 3.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/0.7487, allocations: 4 kB / 0.5036 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.7507, allocations: 207.8 kB / 0.5038 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.7527, allocations: 457.9 kB / 0.5042 GB, free: 3.121 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/0.7528, allocations: 43.97 kB / 0.5043 GB, free: 3.078 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/0.7662, allocations: 8.322 MB / 0.5124 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.599e-06/0.7663, allocations: 0 / 0.5124 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006804/0.7731, allocations: 2.495 MB / 0.5148 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007557/0.7739, allocations: 291.6 kB / 0.5151 GB, free: 7.367 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.7741, allocations: 35.98 kB / 0.5152 GB, free: 7.332 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.7752, allocations: 67.97 kB / 0.5152 GB, free: 7.266 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/0.7756, allocations: 125.1 kB / 0.5153 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/0.7757, allocations: 55.97 kB / 0.5154 GB, free: 7.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007706/0.7765, allocations: 419.1 kB / 0.5158 GB, free: 6.684 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.7765, allocations: 0 / 0.5158 GB, free: 6.684 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002079/0.7786, allocations: 427.9 kB / 0.5162 GB, free: 6.266 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.0005185/0.7791, allocations: 262.3 kB / 0.5165 GB, free: 5.996 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00431/0.7835, allocations: 1.892 MB / 0.5183 GB, free: 4.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.913e-06/0.7835, allocations: 2.375 kB / 0.5183 GB, free: 4.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.7863, allocations: 1.296 MB / 0.5196 GB, free: 2.73 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007916/0.7871, allocations: 91.19 kB / 0.5197 GB, free: 2.641 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005709/0.7929, allocations: 2.062 MB / 0.5217 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2335/1.026, allocations: 1.21 MB / 0.5229 GB, free: 122.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001185/1.028, allocations: 156 kB / 0.523 GB, free: 122.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003807/1.028, allocations: 80.58 kB / 0.5231 GB, free: 122.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.702e-06/1.028, allocations: 0 / 0.5231 GB, free: 122.6 MB / 442.7 MB Notification: Performance of Templates: time 0.04545/1.073, allocations: 16.3 MB / 0.539 GB, free: 121.9 MB / 442.7 MB