Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.629e-05, allocations: 4 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.0886, allocations: 50.41 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4568, allocations: 93.33 MB / 436.4 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.4571, allocations: 84.75 kB / 436.5 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1105/0.5677, allocations: 30.17 MB / 466.7 MB, free: 6.906 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.668e-06/0.5677, allocations: 4 kB / 466.7 MB, free: 6.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.839e-05/0.5678, allocations: 16 kB / 466.7 MB, free: 6.887 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004099/0.5719, allocations: 1.234 MB / 467.9 MB, free: 5.602 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.572, allocations: 8.031 kB / 467.9 MB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003212/0.5752, allocations: 398.3 kB / 468.3 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009476/0.5761, allocations: 491.6 kB / 468.8 MB, free: 4.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.5763, allocations: 82.22 kB / 468.9 MB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/0.5765, allocations: 115.9 kB / 469 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.5788, allocations: 0.9117 MB / 469.9 MB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.34e-05/0.5788, allocations: 3.984 kB / 469.9 MB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.579, allocations: 48 kB / 470 MB, free: 3.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.08e-05/0.5791, allocations: 27.94 kB / 470 MB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.5814, allocations: 0.8947 MB / 470.9 MB, free: 2.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007936/0.5893, allocations: 3.728 MB / 474.6 MB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.5918, allocations: 1.509 MB / 476.1 MB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009056/0.5927, allocations: 407.8 kB / 476.5 MB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001525/0.5929, allocations: 105.9 kB / 476.6 MB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009618/0.5938, allocations: 452 kB / 477.1 MB, free: 11.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 7.64e-06/0.5939, allocations: 0 / 477.1 MB, free: 11.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.009531/0.6034, allocations: 3.457 MB / 480.5 MB, free: 8.422 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/0.6036, allocations: 230.5 kB / 480.7 MB, free: 8.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005638/0.6042, allocations: 346.8 kB / 481.1 MB, free: 7.809 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.058e-05/0.6043, allocations: 45.7 kB / 481.1 MB, free: 7.758 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.6047, allocations: 423.6 kB / 481.5 MB, free: 7.336 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004422/0.6051, allocations: 410 kB / 481.9 MB, free: 6.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.231e-05/0.6052, allocations: 24 kB / 482 MB, free: 6.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.6055, allocations: 378.8 kB / 482.3 MB, free: 6.527 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007985/0.6063, allocations: 310.6 kB / 482.6 MB, free: 6.227 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.6073, allocations: 0.5123 MB / 483.1 MB, free: 5.641 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009699/0.6083, allocations: 407 kB / 483.5 MB, free: 5.246 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.6083, allocations: 0 / 483.5 MB, free: 5.246 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00318/0.6115, allocations: 1.291 MB / 484.8 MB, free: 3.938 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.6116, allocations: 8 kB / 484.8 MB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.6116, allocations: 4 kB / 484.8 MB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.6128, allocations: 341.6 kB / 485.2 MB, free: 3.582 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.6139, allocations: 199.7 kB / 485.4 MB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.6246, allocations: 7.645 MB / 493 MB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008786/0.6255, allocations: 47.98 kB / 493.1 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.6257, allocations: 44.11 kB / 493.1 MB, free: 11.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002985/0.626, allocations: 172.8 kB / 493.3 MB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.6262, allocations: 83.05 kB / 493.4 MB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003117/0.6293, allocations: 1.211 MB / 494.6 MB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/0.6294, allocations: 19.95 kB / 494.6 MB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.6294, allocations: 8 kB / 494.6 MB, free: 9.609 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.6294, allocations: 11.91 kB / 494.6 MB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005434/0.6349, allocations: 2.605 MB / 497.2 MB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.256e-06/0.6349, allocations: 0 / 497.2 MB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009163/0.6358, allocations: 151.8 kB / 497.4 MB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.637, allocations: 326 kB / 497.7 MB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.022e-05/0.6371, allocations: 27.98 kB / 497.7 MB, free: 6.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.6471, allocations: 7.379 MB / 0.4933 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.605e-06/0.6472, allocations: 0 / 0.4933 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.6511, allocations: 1.742 MB / 0.495 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004343/0.6516, allocations: 212.3 kB / 0.4952 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.6518, allocations: 24 kB / 0.4952 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006247/0.6524, allocations: 47.97 kB / 0.4952 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.6526, allocations: 96.67 kB / 0.4953 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.6528, allocations: 35.98 kB / 0.4954 GB, free: 12.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004338/0.6532, allocations: 261.2 kB / 0.4956 GB, free: 12.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.95e-07/0.6532, allocations: 0 / 0.4956 GB, free: 12.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001527/0.6548, allocations: 327.9 kB / 0.4959 GB, free: 11.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004304/0.6552, allocations: 229 kB / 0.4961 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003059/0.6583, allocations: 1.489 MB / 0.4976 GB, free: 9.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.855e-06/0.6583, allocations: 0 / 0.4976 GB, free: 9.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.6603, allocations: 1.055 MB / 0.4986 GB, free: 8.836 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.6608, allocations: 61.48 kB / 0.4987 GB, free: 8.777 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003954/0.6648, allocations: 1.442 MB / 0.5001 GB, free: 7.293 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008996/0.6657, allocations: 1.032 MB / 0.5011 GB, free: 6.234 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006846/0.6664, allocations: 106 kB / 0.5012 GB, free: 6.129 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.6666, allocations: 59.36 kB / 0.5012 GB, free: 6.074 MB / 426.7 MB Notification: Performance of SimCode: time 1.454e-06/0.6666, allocations: 0 / 0.5012 GB, free: 6.074 MB / 426.7 MB Notification: Performance of Templates: time 0.02852/0.6952, allocations: 10.29 MB / 0.5113 GB, free: 11.77 MB / 442.7 MB