Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.55e-05, allocations: 8 kB / 249.6 MB, free: 15.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2501, allocations: 44.49 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.4118, allocations: 109.3 MB / 403.5 MB, free: 4.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4122, allocations: 87.95 kB / 403.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4612/0.8734, allocations: 73.69 MB / 477.2 MB, free: 72.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.935e-06/0.8734, allocations: 0 / 477.2 MB, free: 72.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000256/0.8737, allocations: 91.88 kB / 477.3 MB, free: 72.19 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.009612/0.8833, allocations: 3.125 MB / 480.4 MB, free: 69.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.8834, allocations: 12.03 kB / 480.5 MB, free: 69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003904/0.8873, allocations: 0.5816 MB / 481 MB, free: 68.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009918/0.8973, allocations: 3.1 MB / 484.1 MB, free: 65.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.8975, allocations: 100 kB / 484.2 MB, free: 65.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.8985, allocations: 187.8 kB / 484.4 MB, free: 65.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007683/0.9062, allocations: 2.859 MB / 487.3 MB, free: 62.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.9163, allocations: 3.459 MB / 490.7 MB, free: 58.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.9164, allocations: 4 kB / 490.7 MB, free: 58.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003775/0.9168, allocations: 4 kB / 490.7 MB, free: 58.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.917, allocations: 146.2 kB / 490.9 MB, free: 58.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02484/0.9419, allocations: 12.78 MB / 0.4919 GB, free: 45.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003989/0.9459, allocations: 3.88 MB / 0.4957 GB, free: 40.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001864/0.9478, allocations: 0.9449 MB / 0.4966 GB, free: 39.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005301/0.9531, allocations: 2.597 MB / 0.4991 GB, free: 37.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.9532, allocations: 43.88 kB / 0.4992 GB, free: 37.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.824e-06/0.9532, allocations: 0 / 0.4992 GB, free: 37.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=146): time 0.01474/0.968, allocations: 5.302 MB / 0.5043 GB, free: 31.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.968, allocations: 72.72 kB / 0.5044 GB, free: 31.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/0.9705, allocations: 1.363 MB / 0.5057 GB, free: 30.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.9708, allocations: 25.7 kB / 0.5058 GB, free: 30.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007991/0.9716, allocations: 1.449 MB / 0.5072 GB, free: 28.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000464/0.9721, allocations: 492.7 kB / 0.5076 GB, free: 28.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.9722, allocations: 0 / 0.5076 GB, free: 28.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.9724, allocations: 378.8 kB / 0.508 GB, free: 28.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/0.9738, allocations: 0.7107 MB / 0.5087 GB, free: 27.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.9755, allocations: 1.303 MB / 0.51 GB, free: 25.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00248/0.9781, allocations: 1.037 MB / 0.511 GB, free: 24.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.167e-05/0.9781, allocations: 4 kB / 0.511 GB, free: 24.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.005201/0.9833, allocations: 2.198 MB / 0.5131 GB, free: 22.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.9834, allocations: 18.75 kB / 0.5131 GB, free: 22.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.9835, allocations: 16 kB / 0.5132 GB, free: 22.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004169/0.9839, allocations: 118.5 kB / 0.5133 GB, free: 22.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.9862, allocations: 491.2 kB / 0.5137 GB, free: 21.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009335/0.9872, allocations: 1.279 MB / 0.515 GB, free: 20.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.9893, allocations: 75.97 kB / 0.5151 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003836/0.9897, allocations: 83.98 kB / 0.5151 GB, free: 20.38 MB / 362.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 (234): * Single equations (assignments): 231 * 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.0003715/0.9901, allocations: 160.3 kB / 0.5153 GB, free: 20.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004711/0.9906, allocations: 189.6 kB / 0.5155 GB, free: 20.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.9949, allocations: 1.905 MB / 0.5173 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.9949, allocations: 16 kB / 0.5174 GB, free: 18.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.585e-06/0.995, allocations: 0 / 0.5174 GB, free: 18.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.995, allocations: 19.86 kB / 0.5174 GB, free: 18.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/1.005, allocations: 4.55 MB / 0.5218 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/1.005, allocations: 0 / 0.5218 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/1.007, allocations: 327.8 kB / 0.5221 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003762/1.007, allocations: 90.53 kB / 0.5222 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/1.007, allocations: 15.94 kB / 0.5222 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008029/1.008, allocations: 1.229 MB / 0.5234 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.826e-06/1.008, allocations: 4 kB / 0.5234 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005613/1.014, allocations: 3.172 MB / 0.5265 GB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.015, allocations: 442.8 kB / 0.527 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004197/1.016, allocations: 7.984 kB / 0.527 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/1.017, allocations: 63.89 kB / 0.527 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/1.017, allocations: 89.14 kB / 0.5271 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/1.017, allocations: 36 kB / 0.5271 GB, free: 7.758 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00192/1.019, allocations: 1.019 MB / 0.5281 GB, free: 6.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.009e-06/1.019, allocations: 0 / 0.5281 GB, free: 6.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002596/1.022, allocations: 0.496 MB / 0.5286 GB, free: 6.25 MB / 362.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 (143): * Single equations (assignments): 140 * 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.0007072/1.023, allocations: 441.1 kB / 0.529 GB, free: 5.844 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003886/1.027, allocations: 2.085 MB / 0.5311 GB, free: 3.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.027, allocations: 0 / 0.5311 GB, free: 3.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/1.028, allocations: 1.14 MB / 0.5322 GB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/1.031, allocations: 390.7 kB / 0.5326 GB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/1.042, allocations: 4.371 MB / 0.5368 GB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003847/1.046, allocations: 2.27 MB / 0.5391 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009885/1.047, allocations: 159.4 kB / 0.5392 GB, free: 11.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.948e-06/1.047, allocations: 0 / 0.5392 GB, free: 11.23 MB / 378.7 MB Notification: Performance of Templates: time 0.3355/1.383, allocations: 80.55 MB / 0.6179 GB, free: 79.92 MB / 394.7 MB