Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.785/1.785, allocations: 194.9 MB / 210.6 MB, free: 9.32 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.405e-05, allocations: 0 / 258.8 MB, free: 8.996 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2841, allocations: 44.51 MB / 303.4 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0499/0.3341, allocations: 31.87 MB / 335.2 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02474/0.3589, allocations: 9.104 MB / 344.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006835/0.3658, allocations: 323.1 kB / 344.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008424/0.3742, allocations: 2.012 MB / 346.7 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.3896, allocations: 3.431 MB / 350.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008481/0.3981, allocations: 1.734 MB / 351.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02031/0.4184, allocations: 8.287 MB / 360.1 MB, free: 4.801 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04983/0.4683, allocations: 16.92 MB / 377 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008061/0.4764, allocations: 3.702 MB / 380.7 MB, free: 112 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009928/0.4864, allocations: 4.512 MB / 385.2 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00498/0.4914, allocations: 0.6871 MB / 385.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002376/0.4938, allocations: 404 kB / 386.3 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003377/0.4972, allocations: 2.094 MB / 388.4 MB, free: 8.398 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004168/0.5014, allocations: 0.9336 MB / 389.4 MB, free: 7.465 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0314/0.5329, allocations: 22.01 MB / 411.4 MB, free: 1.391 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.5329, allocations: 4 kB / 411.4 MB, free: 1.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.533, allocations: 0 / 411.4 MB, free: 1.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006554/0.5336, allocations: 0 / 411.4 MB, free: 1.387 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.04892/0.5826, allocations: 12.42 MB / 423.8 MB, free: 4.859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.5826, allocations: 8.031 kB / 423.8 MB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5635/1.146, allocations: 9.007 MB / 432.8 MB, free: 85.54 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01967/1.166, allocations: 7.377 MB / 440.2 MB, free: 81.82 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009509/1.167, allocations: 0.9454 MB / 441.1 MB, free: 81.4 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004853/1.172, allocations: 1.236 MB / 442.4 MB, free: 81 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05749/1.229, allocations: 19.94 MB / 462.3 MB, free: 65.02 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004956/1.23, allocations: 19.8 kB / 462.3 MB, free: 65 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003816/1.234, allocations: 0.5103 MB / 462.8 MB, free: 64.5 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000871/1.234, allocations: 0.7371 MB / 463.6 MB, free: 63.77 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05102/1.286, allocations: 18.85 MB / 482.4 MB, free: 44.9 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.137/1.423, allocations: 63.49 MB / 0.5331 GB, free: 12.19 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3751/1.798, allocations: 56.84 MB / 0.5886 GB, free: 95.58 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02914/1.827, allocations: 11.51 MB / 0.5999 GB, free: 91.53 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/1.827, allocations: 72.16 kB / 0.5999 GB, free: 91.46 MB / 442.8 MB Notification: Performance of pre-optimization done (n=357): time 6.562e-06/1.827, allocations: 0 / 0.5999 GB, free: 91.46 MB / 442.8 MB Notification: Performance of matching and sorting (n=397): time 0.05767/1.885, allocations: 18.11 MB / 0.6176 GB, free: 83.91 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/1.885, allocations: 93.53 kB / 0.6177 GB, free: 83.84 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009622/1.894, allocations: 4.781 MB / 0.6224 GB, free: 82.07 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007077/1.895, allocations: 88.2 kB / 0.6225 GB, free: 81.99 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003947/1.899, allocations: 5.865 MB / 0.6282 GB, free: 77.57 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001643/1.901, allocations: 1.402 MB / 0.6296 GB, free: 76.5 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006474/1.901, allocations: 155.3 kB / 0.6297 GB, free: 76.38 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004244/1.902, allocations: 0.6119 MB / 0.6303 GB, free: 75.95 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006859/1.909, allocations: 3.07 MB / 0.6333 GB, free: 74.8 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008915/1.918, allocations: 6.692 MB / 0.6398 GB, free: 68.74 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00993/1.928, allocations: 4.575 MB / 0.6443 GB, free: 64.76 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/1.928, allocations: 36 kB / 0.6443 GB, free: 64.73 MB / 442.8 MB Notification: Performance of matching and sorting (n=986) (initialization): time 0.02576/1.954, allocations: 10.76 MB / 0.6548 GB, free: 53.92 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-05/1.954, allocations: 60 kB / 0.6549 GB, free: 53.86 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000172/1.954, allocations: 124 kB / 0.655 GB, free: 53.74 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003766/1.958, allocations: 0.9774 MB / 0.656 GB, free: 52.75 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01152/1.969, allocations: 1.823 MB / 0.6578 GB, free: 50.93 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01654/1.986, allocations: 9.749 MB / 0.6673 GB, free: 40.78 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008204/1.994, allocations: 443.4 kB / 0.6677 GB, free: 40.34 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.996, allocations: 420 kB / 0.6681 GB, free: 39.93 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01007/2.006, allocations: 4.425 MB / 0.6724 GB, free: 35.5 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001469/2.007, allocations: 0.5402 MB / 0.6729 GB, free: 34.95 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0162/2.023, allocations: 6.579 MB / 0.6794 GB, free: 28.32 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.196e-05/2.023, allocations: 43.95 kB / 0.6794 GB, free: 28.28 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/2.024, allocations: 8 kB / 0.6794 GB, free: 28.27 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/2.024, allocations: 19.92 kB / 0.6794 GB, free: 28.25 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03868/2.062, allocations: 16.06 MB / 0.6951 GB, free: 12.16 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/2.062, allocations: 0 / 0.6951 GB, free: 12.16 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006396/2.069, allocations: 0.7648 MB / 0.6959 GB, free: 11.39 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003448/2.072, allocations: 0.7807 MB / 0.6966 GB, free: 10.59 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004848/2.073, allocations: 91.97 kB / 0.6967 GB, free: 10.5 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/2.087, allocations: 8.858 MB / 0.7054 GB, free: 1.246 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/2.087, allocations: 4 kB / 0.7054 GB, free: 1.242 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.025/2.112, allocations: 9.981 MB / 0.7151 GB, free: 7.113 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004363/2.116, allocations: 1.107 MB / 0.7162 GB, free: 5.98 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002274/2.119, allocations: 76 kB / 0.7163 GB, free: 5.906 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006514/2.125, allocations: 219.8 kB / 0.7165 GB, free: 5.691 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001257/2.127, allocations: 266.8 kB / 0.7167 GB, free: 5.43 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005879/2.127, allocations: 116 kB / 0.7169 GB, free: 5.316 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.04725/2.174, allocations: 3.52 MB / 0.7203 GB, free: 1.82 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.41e-07/2.174, allocations: 0 / 0.7203 GB, free: 1.82 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.03542/2.21, allocations: 1.991 MB / 0.7222 GB, free: 15.83 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 371 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001501/2.211, allocations: 256 kB / 0.7225 GB, free: 15.58 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02727/2.239, allocations: 8.051 MB / 0.7303 GB, free: 7.457 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/2.239, allocations: 4.062 kB / 0.7303 GB, free: 7.453 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009475/2.248, allocations: 3.546 MB / 0.7338 GB, free: 3.824 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00904/2.257, allocations: 1.184 MB / 0.735 GB, free: 2.648 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05794/2.315, allocations: 24.77 MB / 0.7592 GB, free: 9.797 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/2.331, allocations: 7.789 MB / 0.7668 GB, free: 1.961 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.3043/2.635, allocations: 2.36 MB / 0.7691 GB, free: 193.6 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002802/2.638, allocations: 432.1 kB / 0.7695 GB, free: 193.6 MB / 0.4949 GB Notification: Performance of SimCode: time 1.292e-06/2.638, allocations: 0.5 kB / 0.7695 GB, free: 193.6 MB / 0.4949 GB Notification: Performance of Templates: time 0.1992/2.837, allocations: 72.71 MB / 0.8405 GB, free: 147.6 MB / 0.4949 GB