Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadModel(Modelica): time 2.145/2.145, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.624e-05, allocations: 7.984 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01088/0.123, allocations: 6.18 MB / 351.2 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006811/0.1298, allocations: 2.544 MB / 353.7 MB, free: 176 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.1312, allocations: 40 kB / 353.7 MB, free: 136 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.1326, allocations: 262.1 kB / 354 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003043/0.1357, allocations: 0.6267 MB / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003559/0.1393, allocations: 0.9387 MB / 355.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.1419, allocations: 0.8122 MB / 356.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003589/0.1456, allocations: 1.24 MB / 357.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.1467, allocations: 438.8 kB / 358.1 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.148, allocations: 0.5644 MB / 358.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.1494, allocations: 315.6 kB / 358.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004052/0.1498, allocations: 64 kB / 359 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002922/0.1501, allocations: 235 kB / 359.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.1506, allocations: 116 kB / 359.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003103/0.1537, allocations: 1.671 MB / 361 MB, free: 8.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1538, allocations: 0 / 361 MB, free: 8.824 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1538, allocations: 0 / 361 MB, free: 8.824 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.521e-05/0.1539, allocations: 0 / 361 MB, free: 8.824 MB / 298.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.008052/0.1619, allocations: 1.791 MB / 362.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.162, allocations: 12.03 kB / 362.8 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005351/0.1674, allocations: 0.5289 MB / 363.3 MB, free: 6.434 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/0.1699, allocations: 0.809 MB / 364.1 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.1702, allocations: 144.6 kB / 364.3 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005129/0.1708, allocations: 159.9 kB / 364.4 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0047/0.1755, allocations: 1.331 MB / 365.8 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.697e-05/0.1756, allocations: 4 kB / 365.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.1758, allocations: 56 kB / 365.8 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.537e-05/0.1759, allocations: 36 kB / 365.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005331/0.1812, allocations: 1.315 MB / 367.2 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01455/0.1958, allocations: 4.877 MB / 372.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004906/0.2007, allocations: 1.944 MB / 374 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000233/0.201, allocations: 106.1 kB / 374.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002409/0.2034, allocations: 0.745 MB / 374.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 3.907e-06/0.2035, allocations: 0 / 374.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=163): time 0.02645/0.2299, allocations: 5.61 MB / 380.5 MB, free: 4.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.2301, allocations: 149.8 kB / 380.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.2313, allocations: 0.5268 MB / 381.1 MB, free: 3.984 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002964/0.2316, allocations: 61.64 kB / 381.2 MB, free: 3.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005978/0.2322, allocations: 0.5921 MB / 381.8 MB, free: 3.316 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007555/0.233, allocations: 0.5274 MB / 382.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.2331, allocations: 36 kB / 382.3 MB, free: 2.746 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.2333, allocations: 378.7 kB / 382.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.2354, allocations: 0.5076 MB / 383.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/0.2378, allocations: 0.8326 MB / 384.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002432/0.2402, allocations: 0.6182 MB / 384.7 MB, free: 292 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.417e-05/0.2403, allocations: 7.938 kB / 384.7 MB, free: 284 kB / 314.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.008045/0.2483, allocations: 1.977 MB / 386.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.2484, allocations: 11.98 kB / 386.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.2485, allocations: 8 kB / 386.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/0.2516, allocations: 473.9 kB / 387.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003707/0.2553, allocations: 287.6 kB / 387.4 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01947/0.2748, allocations: 8.778 MB / 396.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.2767, allocations: 88.02 kB / 396.3 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.2769, allocations: 59.98 kB / 396.3 MB, free: 4.059 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009361/0.2779, allocations: 345.5 kB / 396.7 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.2782, allocations: 110.6 kB / 396.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007704/0.2859, allocations: 1.914 MB / 398.7 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/0.2859, allocations: 16 kB / 398.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/0.286, allocations: 8 kB / 398.7 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-05/0.286, allocations: 7.969 kB / 398.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3101/0.5961, allocations: 3.422 MB / 402.2 MB, free: 47.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.021e-05/0.5962, allocations: 2.281 kB / 402.2 MB, free: 47.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/0.5982, allocations: 209.4 kB / 402.4 MB, free: 47.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002584/0.6009, allocations: 449.1 kB / 402.8 MB, free: 47.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000294/0.6012, allocations: 41.83 kB / 402.8 MB, free: 47.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/0.6154, allocations: 8.506 MB / 411.3 MB, free: 41.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6154, allocations: 0 / 411.3 MB, free: 41.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.6255, allocations: 2.629 MB / 414 MB, free: 40.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008542/0.6264, allocations: 291.5 kB / 414.3 MB, free: 40.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003388/0.6268, allocations: 37.94 kB / 414.3 MB, free: 40.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.6283, allocations: 70.36 kB / 414.4 MB, free: 40.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004767/0.6288, allocations: 124.4 kB / 414.5 MB, free: 40.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/0.6289, allocations: 50.25 kB / 414.5 MB, free: 40.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008193/0.6298, allocations: 409.2 kB / 414.9 MB, free: 40.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6298, allocations: 3.281 kB / 414.9 MB, free: 40.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002514/0.6323, allocations: 413.3 kB / 415.3 MB, free: 40.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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,sourceQS.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%) 19,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005628/0.6329, allocations: 206.9 kB / 415.5 MB, free: 39.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006169/0.6391, allocations: 2.086 MB / 417.6 MB, free: 38.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.6392, allocations: 0 / 417.6 MB, free: 38.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/0.6429, allocations: 1.413 MB / 419 MB, free: 38.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008976/0.6439, allocations: 93.53 kB / 419.1 MB, free: 38.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008045/0.6519, allocations: 3.336 MB / 422.5 MB, free: 36.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008345/0.6528, allocations: 1.214 MB / 423.7 MB, free: 35.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006661/0.6535, allocations: 94.45 kB / 423.8 MB, free: 35.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6535, allocations: 0 / 423.8 MB, free: 35.36 MB / 330.7 MB Notification: Performance of Templates: time 0.05164/0.7052, allocations: 37.04 MB / 460.8 MB, free: 1.152 MB / 330.7 MB