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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadModel(Modelica): time 2/2, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.827e-05, allocations: 0 / 269.4 MB, free: 6.391 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08414/0.08419, allocations: 47.57 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.4396, allocations: 93.58 MB / 410.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4399, allocations: 85.77 kB / 410.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2081/0.648, allocations: 37.37 MB / 448 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.193e-06/0.6481, allocations: 4 kB / 448 MB, free: 11.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.535e-05/0.6482, allocations: 24 kB / 448 MB, free: 11.77 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00553/0.6537, allocations: 1.605 MB / 449.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.6538, allocations: 12.03 kB / 449.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004395/0.6582, allocations: 0.5095 MB / 450.1 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.6601, allocations: 0.7503 MB / 450.9 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.6604, allocations: 139.8 kB / 451 MB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003317/0.6607, allocations: 162.1 kB / 451.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003434/0.6642, allocations: 1.263 MB / 452.4 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.691e-05/0.6643, allocations: 11.95 kB / 452.4 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.6645, allocations: 56 kB / 452.5 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-05/0.6645, allocations: 39.98 kB / 452.5 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00336/0.6679, allocations: 1.216 MB / 453.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01235/0.6803, allocations: 5.071 MB / 458.8 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004032/0.6844, allocations: 2.364 MB / 461.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.6858, allocations: 0.5208 MB / 461.7 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002049/0.6861, allocations: 114.4 kB / 461.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001649/0.6877, allocations: 0.6946 MB / 462.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 5.868e-06/0.6877, allocations: 0 / 462.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01613/0.7039, allocations: 4.933 MB / 467.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001811/0.7041, allocations: 230.9 kB / 467.7 MB, free: 7.754 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.7052, allocations: 0.5503 MB / 468.2 MB, free: 7.199 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002208/0.7055, allocations: 61.69 kB / 468.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006405/0.7061, allocations: 0.5739 MB / 468.9 MB, free: 6.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006413/0.7068, allocations: 0.5351 MB / 469.4 MB, free: 6.004 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.7069, allocations: 36 kB / 469.4 MB, free: 5.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003098/0.7073, allocations: 418.7 kB / 469.8 MB, free: 5.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.7085, allocations: 464 kB / 470.3 MB, free: 5.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.7102, allocations: 0.8215 MB / 471.1 MB, free: 4.137 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/0.7117, allocations: 0.5742 MB / 471.7 MB, free: 3.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.7117, allocations: 4 kB / 471.7 MB, free: 3.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.005626/0.7174, allocations: 1.915 MB / 473.6 MB, free: 1.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.7174, allocations: 12 kB / 473.6 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.7175, allocations: 11.94 kB / 473.6 MB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002116/0.7196, allocations: 479 kB / 474.1 MB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.7214, allocations: 303.5 kB / 474.4 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/0.7358, allocations: 8.589 MB / 483 MB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.7374, allocations: 87.97 kB / 483.1 MB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.7376, allocations: 67.98 kB / 483.1 MB, free: 7.555 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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.0004517/0.7381, allocations: 223.7 kB / 483.3 MB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/0.7383, allocations: 110.7 kB / 483.5 MB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005429/0.7438, allocations: 1.766 MB / 485.2 MB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.7439, allocations: 20 kB / 485.2 MB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.7439, allocations: 8 kB / 485.3 MB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-05/0.7439, allocations: 19.86 kB / 485.3 MB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008985/0.7529, allocations: 3.593 MB / 488.9 MB, free: 1.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.753, allocations: 4 kB / 488.9 MB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.7545, allocations: 215.8 kB / 489.1 MB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002049/0.7565, allocations: 443 kB / 489.5 MB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/0.7568, allocations: 39.98 kB / 489.5 MB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/0.7708, allocations: 8.327 MB / 497.9 MB, free: 8.148 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/0.7708, allocations: 8.016 kB / 497.9 MB, free: 8.141 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007043/0.7779, allocations: 2.507 MB / 0.4887 GB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000805/0.7787, allocations: 299.6 kB / 0.4889 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.779, allocations: 35.95 kB / 0.489 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.78, allocations: 71.95 kB / 0.4891 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.7804, allocations: 129.1 kB / 0.4892 GB, free: 5.027 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.7806, allocations: 55.98 kB / 0.4892 GB, free: 4.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008176/0.7814, allocations: 415.2 kB / 0.4896 GB, free: 4.566 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.85e-07/0.7814, allocations: 0 / 0.4896 GB, free: 4.566 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002348/0.7838, allocations: 440.3 kB / 0.49 GB, free: 4.137 MB / 410.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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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 (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000554/0.7844, allocations: 255.2 kB / 0.4903 GB, free: 3.879 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004526/0.7889, allocations: 1.913 MB / 0.4922 GB, free: 1.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.54e-06/0.789, allocations: 0 / 0.4922 GB, free: 1.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002892/0.7919, allocations: 1.295 MB / 0.4934 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008502/0.7928, allocations: 90.97 kB / 0.4935 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008711/0.8015, allocations: 2.577 MB / 0.496 GB, free: 13.89 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001292/0.8028, allocations: 1.221 MB / 0.4972 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001197/0.804, allocations: 160.8 kB / 0.4974 GB, free: 12.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/0.8044, allocations: 83.41 kB / 0.4974 GB, free: 12.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.872e-06/0.8045, allocations: 0 / 0.4974 GB, free: 12.39 MB / 426.7 MB Notification: Performance of Templates: time 0.2701/1.075, allocations: 16.32 MB / 0.5134 GB, free: 121.8 MB / 426.7 MB