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.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.852/1.852, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.457e-05, allocations: 0 / 269.4 MB, free: 6.383 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08286, allocations: 47.57 MB / 317 MB, free: 6.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4312/0.5141, allocations: 156.1 MB / 473.1 MB, free: 12.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5144, allocations: 102.6 kB / 473.2 MB, free: 12.94 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603/2.118, allocations: 384.5 MB / 0.8376 GB, free: 8.422 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.275e-06/2.118, allocations: 0 / 0.8376 GB, free: 8.422 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009012/2.119, allocations: 295.6 kB / 0.8378 GB, free: 8.133 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.629/2.748, allocations: 11.04 MB / 0.8486 GB, free: 26.2 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/2.748, allocations: 9.219 kB / 0.8486 GB, free: 26.2 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04737/2.795, allocations: 6.339 MB / 0.8548 GB, free: 25.54 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02769/2.823, allocations: 9.449 MB / 0.864 GB, free: 24.96 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001325/2.824, allocations: 0.9288 MB / 0.865 GB, free: 24.93 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004922/2.829, allocations: 1.2 MB / 0.8661 GB, free: 24.93 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05652/2.886, allocations: 20.17 MB / 0.8858 GB, free: 23.52 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005429/2.886, allocations: 25.05 kB / 0.8859 GB, free: 23.52 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004349/2.891, allocations: 0.5139 MB / 0.8864 GB, free: 23.52 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001047/2.892, allocations: 0.8408 MB / 0.8872 GB, free: 23.49 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04609/2.938, allocations: 18.23 MB / 0.905 GB, free: 23.43 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/3.077, allocations: 64.12 MB / 0.9676 GB, free: 11.62 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05511/3.132, allocations: 45.66 MB / 1.012 GB, free: 492 kB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04647/3.179, allocations: 9.356 MB / 1.021 GB, free: 13.69 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.444/3.623, allocations: 24 MB / 1.045 GB, free: 88.23 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.448e-05/3.623, allocations: 101.7 kB / 1.045 GB, free: 88.18 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=760): time 1.403e-05/3.623, allocations: 0 / 1.045 GB, free: 88.18 MB / 0.4949 GB Notification: Performance of matching and sorting (n=800): time 0.06391/3.687, allocations: 26.61 MB / 1.071 GB, free: 86.31 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/3.687, allocations: 125 kB / 1.071 GB, free: 86.24 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/3.694, allocations: 3.565 MB / 1.074 GB, free: 85.85 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001386/3.695, allocations: 132.4 kB / 1.075 GB, free: 85.82 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002885/3.698, allocations: 4.934 MB / 1.079 GB, free: 83.21 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003263/3.701, allocations: 2.652 MB / 1.082 GB, free: 81.5 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007877/3.702, allocations: 159.6 kB / 1.082 GB, free: 81.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006248/3.703, allocations: 0.6723 MB / 1.083 GB, free: 81.18 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01015/3.713, allocations: 5.017 MB / 1.088 GB, free: 81.15 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01243/3.725, allocations: 7.38 MB / 1.095 GB, free: 78.43 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/3.738, allocations: 6.366 MB / 1.101 GB, free: 78.32 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.96e-05/3.738, allocations: 21.84 kB / 1.101 GB, free: 78.32 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03373/3.772, allocations: 15.26 MB / 1.116 GB, free: 77.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.296e-05/3.772, allocations: 36.83 kB / 1.116 GB, free: 77.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001144/3.772, allocations: 75.59 kB / 1.116 GB, free: 77.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/3.783, allocations: 4.104 MB / 1.12 GB, free: 76.73 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008424/3.791, allocations: 1.625 MB / 1.122 GB, free: 76.68 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/3.807, allocations: 12.18 MB / 1.134 GB, free: 68.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007875/3.815, allocations: 440.6 kB / 1.134 GB, free: 68.65 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/3.817, allocations: 394.2 kB / 1.134 GB, free: 68.58 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 791 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001927/3.819, allocations: 0.5716 MB / 1.135 GB, free: 68.2 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/3.82, allocations: 0.5895 MB / 1.136 GB, free: 67.89 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03153/3.852, allocations: 14.16 MB / 1.149 GB, free: 61.94 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00023/3.852, allocations: 194.3 kB / 1.15 GB, free: 61.85 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/3.852, allocations: 6 kB / 1.15 GB, free: 61.85 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001204/3.852, allocations: 34.27 kB / 1.15 GB, free: 61.85 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06175/3.914, allocations: 28.41 MB / 1.177 GB, free: 44.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.609e-05/3.914, allocations: 6.625 kB / 1.177 GB, free: 44.71 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006343/3.921, allocations: 1.028 MB / 1.178 GB, free: 43.92 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009638/3.93, allocations: 3.975 MB / 1.182 GB, free: 40.58 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001536/3.932, allocations: 170.8 kB / 1.182 GB, free: 40.43 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/3.947, allocations: 12.01 MB / 1.194 GB, free: 29.09 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.398e-06/3.947, allocations: 8.062 kB / 1.194 GB, free: 29.08 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.353/4.3, allocations: 22.31 MB / 1.216 GB, free: 83.41 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005751/4.305, allocations: 1.732 MB / 1.218 GB, free: 83.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001993/4.307, allocations: 117.6 kB / 1.218 GB, free: 83.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005223/4.313, allocations: 326.8 kB / 1.218 GB, free: 83.32 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002052/4.315, allocations: 0.5659 MB / 1.219 GB, free: 83.31 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009615/4.316, allocations: 215.9 kB / 1.219 GB, free: 83.31 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006031/4.322, allocations: 2.652 MB / 1.221 GB, free: 83.11 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.032e-06/4.322, allocations: 3.281 kB / 1.221 GB, free: 83.11 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01163/4.334, allocations: 2.145 MB / 1.224 GB, free: 83.11 MB / 0.4949 GB 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 (536): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002443/4.336, allocations: 0.7153 MB / 1.224 GB, free: 83 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02716/4.363, allocations: 12.69 MB / 1.237 GB, free: 82.35 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.74e-06/4.363, allocations: 3.125 kB / 1.237 GB, free: 82.35 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01539/4.379, allocations: 6.612 MB / 1.243 GB, free: 81.8 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008452/4.387, allocations: 1.179 MB / 1.244 GB, free: 81.77 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05423/4.441, allocations: 21.77 MB / 1.265 GB, free: 78.34 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0157/4.457, allocations: 7.976 MB / 1.273 GB, free: 77.27 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.009804/4.467, allocations: 1.957 MB / 1.275 GB, free: 77.07 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002589/4.47, allocations: 436.8 kB / 1.276 GB, free: 77.06 MB / 0.4949 GB Notification: Performance of SimCode: time 1.719e-06/4.47, allocations: 0 / 1.276 GB, free: 77.06 MB / 0.4949 GB Notification: Performance of Templates: time 0.5714/5.041, allocations: 121.5 MB / 1.394 GB, free: 92.54 MB / 0.4949 GB