Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.64e-05, allocations: 4 kB / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07523/0.07527, allocations: 44.49 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3781/0.4534, allocations: 110 MB / 409.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.4538, allocations: 83.8 kB / 410 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2834/0.7373, allocations: 74.71 MB / 484.7 MB, free: 3.191 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.992e-06/0.7373, allocations: 3.938 kB / 484.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003906/0.7377, allocations: 87.86 kB / 484.8 MB, free: 3.102 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01613/0.7539, allocations: 3.125 MB / 487.9 MB, free: 15.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/0.754, allocations: 8.031 kB / 487.9 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006683/0.7607, allocations: 0.5813 MB / 488.5 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/0.7782, allocations: 3.103 MB / 491.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004827/0.7787, allocations: 234.3 kB / 491.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001522/0.7803, allocations: 315.9 kB / 492.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01734/0.7976, allocations: 3.865 MB / 496 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/0.7979, allocations: 11.91 kB / 496 MB, free: 7.602 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007926/0.7987, allocations: 132 kB / 496.1 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003061/0.799, allocations: 146.1 kB / 496.3 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.815, allocations: 3.035 MB / 499.3 MB, free: 4.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03094/0.846, allocations: 13.39 MB / 0.5007 GB, free: 6.434 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005541/0.8516, allocations: 3.899 MB / 0.5045 GB, free: 2.023 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.8538, allocations: 0.9725 MB / 0.5054 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.287/1.141, allocations: 2.65 MB / 0.508 GB, free: 73.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/1.141, allocations: 54.03 kB / 0.5081 GB, free: 73.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=106): time 8.1e-06/1.141, allocations: 1.422 kB / 0.5081 GB, free: 73.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=140): time 0.02565/1.167, allocations: 5.139 MB / 0.5131 GB, free: 72.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/1.167, allocations: 69.16 kB / 0.5132 GB, free: 72.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006352/1.173, allocations: 1.636 MB / 0.5148 GB, free: 72.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002801/1.174, allocations: 48.23 kB / 0.5148 GB, free: 72.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001976/1.176, allocations: 1.504 MB / 0.5163 GB, free: 71.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00083/1.176, allocations: 486.2 kB / 0.5167 GB, free: 71.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/1.177, allocations: 36.81 kB / 0.5168 GB, free: 71.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000255/1.177, allocations: 382.9 kB / 0.5171 GB, free: 70.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00314/1.18, allocations: 0.7303 MB / 0.5179 GB, free: 70.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003647/1.184, allocations: 1.309 MB / 0.5191 GB, free: 70.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/1.188, allocations: 0.9766 MB / 0.5201 GB, free: 70.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.669e-05/1.188, allocations: 6.469 kB / 0.5201 GB, free: 70.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007543/1.195, allocations: 2.337 MB / 0.5224 GB, free: 70.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/1.196, allocations: 15.61 kB / 0.5224 GB, free: 70.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/1.196, allocations: 19.34 kB / 0.5224 GB, free: 70.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004566/1.196, allocations: 123.4 kB / 0.5225 GB, free: 70.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/1.198, allocations: 483.9 kB / 0.523 GB, free: 70.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009533/1.199, allocations: 1.308 MB / 0.5243 GB, free: 68.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/1.201, allocations: 110.9 kB / 0.5244 GB, free: 68.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002066/1.202, allocations: 86.27 kB / 0.5245 GB, free: 68.81 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003777/1.202, allocations: 217 kB / 0.5247 GB, free: 68.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/1.202, allocations: 206.9 kB / 0.5249 GB, free: 68.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/1.207, allocations: 1.898 MB / 0.5267 GB, free: 68.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/1.207, allocations: 20.28 kB / 0.5267 GB, free: 68.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.237e-06/1.207, allocations: 0 / 0.5267 GB, free: 68.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/1.207, allocations: 13.39 kB / 0.5267 GB, free: 68.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/1.217, allocations: 4.908 MB / 0.5315 GB, free: 68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/1.217, allocations: 3.75 kB / 0.5315 GB, free: 68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/1.219, allocations: 319.7 kB / 0.5318 GB, free: 68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/1.219, allocations: 92.67 kB / 0.5319 GB, free: 67.97 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/1.219, allocations: 30.88 kB / 0.532 GB, free: 67.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008333/1.22, allocations: 1.279 MB / 0.5332 GB, free: 66.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.22, allocations: 0 / 0.5332 GB, free: 66.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005476/1.226, allocations: 3.121 MB / 0.5363 GB, free: 66.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/1.227, allocations: 467.9 kB / 0.5367 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003884/1.227, allocations: 25.28 kB / 0.5367 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/1.229, allocations: 81.77 kB / 0.5368 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/1.229, allocations: 88.98 kB / 0.5369 GB, free: 65.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/1.229, allocations: 39.38 kB / 0.5369 GB, free: 65.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002355/1.231, allocations: 1.24 MB / 0.5381 GB, free: 65.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.18e-07/1.231, allocations: 0 / 0.5381 GB, free: 65.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002473/1.234, allocations: 0.5783 MB / 0.5387 GB, free: 65.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007933/1.235, allocations: 0.5041 MB / 0.5392 GB, free: 65.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003867/1.238, allocations: 2.083 MB / 0.5412 GB, free: 65.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.162e-06/1.239, allocations: 0 / 0.5412 GB, free: 65.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/1.24, allocations: 1.135 MB / 0.5423 GB, free: 65.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/1.243, allocations: 473.6 kB / 0.5428 GB, free: 65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009415/1.252, allocations: 4.39 MB / 0.5471 GB, free: 63.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/1.255, allocations: 2.315 MB / 0.5493 GB, free: 63.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002391/1.257, allocations: 0.5082 MB / 0.5498 GB, free: 63.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/1.258, allocations: 151.4 kB / 0.55 GB, free: 63.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.639e-06/1.258, allocations: 0 / 0.55 GB, free: 63.13 MB / 394.7 MB Notification: Performance of Templates: time 0.0679/1.326, allocations: 28.08 MB / 0.5774 GB, free: 61.4 MB / 394.7 MB