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.928/1.928, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.271e-05/2.287e-05, allocations: 0 / 255.4 MB, free: 2.652 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07585/0.0759, allocations: 44.5 MB / 299.9 MB, free: 6.09 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4749/0.5508, allocations: 150.1 MB / 450 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.5512, allocations: 98.56 kB / 450.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.646/2.197, allocations: 385.9 MB / 0.8164 GB, free: 2.766 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.365e-06/2.197, allocations: 4 kB / 0.8164 GB, free: 2.762 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009016/2.198, allocations: 287.6 kB / 0.8167 GB, free: 2.48 MB / 426.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.6723/2.87, allocations: 11.03 MB / 0.8275 GB, free: 28.92 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/2.87, allocations: 9.844 kB / 0.8275 GB, free: 28.92 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04766/2.918, allocations: 6.341 MB / 0.8337 GB, free: 28.25 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.029/2.947, allocations: 9.445 MB / 0.8429 GB, free: 27.21 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001292/2.949, allocations: 0.918 MB / 0.8438 GB, free: 27.19 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005375/2.954, allocations: 1.202 MB / 0.845 GB, free: 27.18 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05837/3.012, allocations: 20.16 MB / 0.8646 GB, free: 25.78 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006371/3.013, allocations: 26.09 kB / 0.8647 GB, free: 25.77 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004731/3.018, allocations: 0.516 MB / 0.8652 GB, free: 25.77 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001107/3.019, allocations: 0.8358 MB / 0.866 GB, free: 25.74 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04753/3.066, allocations: 18.21 MB / 0.8838 GB, free: 25.69 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.146/3.212, allocations: 63.96 MB / 0.9462 GB, free: 12.37 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.388/3.601, allocations: 45.64 MB / 0.9908 GB, free: 38.23 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01725/3.618, allocations: 7.712 MB / 0.9983 GB, free: 38.13 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05553/3.673, allocations: 23.5 MB / 1.021 GB, free: 37.1 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.724e-05/3.673, allocations: 94.67 kB / 1.021 GB, free: 37.05 MB / 474.8 MB Notification: Performance of pre-optimization done (n=759): time 1.36e-05/3.674, allocations: 5.438 kB / 1.021 GB, free: 37.05 MB / 474.8 MB Notification: Performance of matching and sorting (n=799): time 0.06697/3.741, allocations: 26.67 MB / 1.047 GB, free: 34.38 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.594e-05/3.741, allocations: 122.5 kB / 1.048 GB, free: 34.31 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007837/3.748, allocations: 3.557 MB / 1.051 GB, free: 33.92 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001439/3.75, allocations: 134 kB / 1.051 GB, free: 33.89 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003242/3.753, allocations: 4.921 MB / 1.056 GB, free: 31.29 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003446/3.757, allocations: 2.655 MB / 1.059 GB, free: 29.57 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001095/3.758, allocations: 161.5 kB / 1.059 GB, free: 29.51 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007539/3.759, allocations: 0.6649 MB / 1.059 GB, free: 29.04 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01068/3.769, allocations: 5.023 MB / 1.064 GB, free: 26.97 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01301/3.782, allocations: 7.373 MB / 1.071 GB, free: 22.01 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/3.796, allocations: 6.36 MB / 1.078 GB, free: 19.49 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.098e-05/3.796, allocations: 24.94 kB / 1.078 GB, free: 19.49 MB / 474.8 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.03577/3.832, allocations: 15.26 MB / 1.093 GB, free: 13.59 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.906e-05/3.832, allocations: 34.59 kB / 1.093 GB, free: 13.59 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/3.832, allocations: 73.47 kB / 1.093 GB, free: 13.59 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/3.842, allocations: 4.092 MB / 1.097 GB, free: 12.35 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008311/3.85, allocations: 1.625 MB / 1.098 GB, free: 12.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/3.866, allocations: 12.19 MB / 1.11 GB, free: 4.418 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007863/3.874, allocations: 435.4 kB / 1.111 GB, free: 4.273 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002067/3.876, allocations: 389.9 kB / 1.111 GB, free: 4.203 MB / 474.8 MB 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 (846): * Single equations (assignments): 790 * 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.002259/3.879, allocations: 0.5738 MB / 1.112 GB, free: 3.82 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00175/3.88, allocations: 0.5787 MB / 1.112 GB, free: 3.512 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04272/3.923, allocations: 14.53 MB / 1.126 GB, free: 8.883 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003408/3.924, allocations: 194.5 kB / 1.126 GB, free: 8.715 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/3.924, allocations: 0 / 1.126 GB, free: 8.715 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000132/3.924, allocations: 37.39 kB / 1.127 GB, free: 8.715 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07667/4, allocations: 28.47 MB / 1.154 GB, free: 1.184 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.151e-05/4.001, allocations: 4 kB / 1.154 GB, free: 1.18 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006797/4.007, allocations: 1.032 MB / 1.155 GB, free: 400 kB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/4.026, allocations: 4.37 MB / 1.16 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001715/4.027, allocations: 171.7 kB / 1.16 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/4.048, allocations: 12.01 MB / 1.171 GB, free: 2.555 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/4.048, allocations: 11.33 kB / 1.172 GB, free: 2.547 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4215/4.469, allocations: 22.31 MB / 1.193 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005435/4.475, allocations: 1.728 MB / 1.195 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002604/4.477, allocations: 116.8 kB / 1.195 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005767/4.483, allocations: 326 kB / 1.195 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002253/4.485, allocations: 0.562 MB / 1.196 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00152/4.487, allocations: 217.6 kB / 1.196 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005944/4.493, allocations: 2.646 MB / 1.199 GB, free: 117 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.098e-06/4.493, allocations: 2.656 kB / 1.199 GB, free: 117 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0111/4.504, allocations: 2.144 MB / 1.201 GB, free: 117 MB / 0.5105 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 (535): * Single equations (assignments): 479 * 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.002331/4.506, allocations: 0.7 MB / 1.202 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02737/4.534, allocations: 12.68 MB / 1.214 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.986e-06/4.534, allocations: 3.531 kB / 1.214 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01506/4.549, allocations: 6.612 MB / 1.22 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007494/4.556, allocations: 1.164 MB / 1.221 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05202/4.608, allocations: 21.73 MB / 1.243 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01545/4.624, allocations: 7.971 MB / 1.251 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00895/4.633, allocations: 1.96 MB / 1.252 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002408/4.635, allocations: 435 kB / 1.253 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.649e-06/4.635, allocations: 0 / 1.253 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.6214/5.257, allocations: 121.3 MB / 1.371 GB, free: 114.5 MB / 0.5105 GB