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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.91/1.91, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.033e-05, allocations: 0 / 292.7 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09216, allocations: 50.41 MB / 343.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.565, allocations: 157.3 MB / 0.4887 GB, free: 1.949 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.5653, allocations: 106.4 kB / 0.4888 GB, free: 1.891 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.597/2.162, allocations: 375 MB / 0.855 GB, free: 9.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.143e-06/2.163, allocations: 4 kB / 0.855 GB, free: 9.766 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009485/2.163, allocations: 287.6 kB / 0.8553 GB, free: 9.484 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.6844/2.848, allocations: 10.73 MB / 0.8657 GB, free: 28.79 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/2.848, allocations: 9.281 kB / 0.8657 GB, free: 28.79 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03575/2.884, allocations: 4.404 MB / 0.87 GB, free: 28.19 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02885/2.913, allocations: 9.319 MB / 0.8791 GB, free: 27.67 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001111/2.914, allocations: 0.8746 MB / 0.88 GB, free: 27.64 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004801/2.919, allocations: 1.155 MB / 0.8811 GB, free: 27.63 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05279/2.971, allocations: 18.06 MB / 0.8988 GB, free: 26.25 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005628/2.972, allocations: 18.69 kB / 0.8988 GB, free: 26.24 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/2.976, allocations: 0.5045 MB / 0.8993 GB, free: 26.24 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001026/2.977, allocations: 0.8076 MB / 0.9001 GB, free: 26.21 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04026/3.017, allocations: 15.09 MB / 0.9148 GB, free: 26.16 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1333/3.151, allocations: 59.12 MB / 0.9725 GB, free: 1.316 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03764/3.188, allocations: 32.72 MB / 1.004 GB, free: 3.285 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007795/3.196, allocations: 3.602 MB / 1.008 GB, free: 1.918 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02197/3.218, allocations: 8.547 MB / 1.016 GB, free: 13.93 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.525e-05/3.218, allocations: 70.97 kB / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 7.818e-06/3.218, allocations: 0 / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.03638/3.255, allocations: 13.53 MB / 1.03 GB, free: 3.645 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/3.255, allocations: 91.59 kB / 1.03 GB, free: 3.543 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/3.266, allocations: 4.277 MB / 1.034 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007069/3.266, allocations: 85.7 kB / 1.034 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005679/3.272, allocations: 5.463 MB / 1.039 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002093/3.274, allocations: 1.351 MB / 1.041 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007407/3.275, allocations: 138.7 kB / 1.041 GB, free: 9.477 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006357/3.276, allocations: 0.5831 MB / 1.041 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006545/3.282, allocations: 2.778 MB / 1.044 GB, free: 6.465 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3254/3.608, allocations: 5.762 MB / 1.05 GB, free: 85.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009554/3.617, allocations: 4.153 MB / 1.054 GB, free: 85.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.402e-05/3.617, allocations: 30.97 kB / 1.054 GB, free: 85.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02276/3.64, allocations: 9.351 MB / 1.063 GB, free: 84.97 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/3.64, allocations: 48.94 kB / 1.063 GB, free: 84.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/3.64, allocations: 104.9 kB / 1.063 GB, free: 84.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003208/3.644, allocations: 0.9366 MB / 1.064 GB, free: 84.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008553/3.652, allocations: 1.598 MB / 1.066 GB, free: 84.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01484/3.667, allocations: 9.373 MB / 1.075 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007107/3.674, allocations: 412.9 kB / 1.075 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009244/3.675, allocations: 358.5 kB / 1.075 GB, free: 81.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001275/3.677, allocations: 0.5587 MB / 1.076 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001142/3.678, allocations: 0.5049 MB / 1.076 GB, free: 80.94 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/3.692, allocations: 6.292 MB / 1.083 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.916e-05/3.692, allocations: 39.75 kB / 1.083 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-05/3.692, allocations: 11.16 kB / 1.083 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.106e-05/3.692, allocations: 22.22 kB / 1.083 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03458/3.727, allocations: 15.41 MB / 1.098 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/3.727, allocations: 2.688 kB / 1.098 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005273/3.732, allocations: 0.7435 MB / 1.098 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003155/3.735, allocations: 0.7734 MB / 1.099 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005656/3.736, allocations: 85.59 kB / 1.099 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/3.748, allocations: 8.557 MB / 1.108 GB, free: 76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.399e-06/3.748, allocations: 7.781 kB / 1.108 GB, free: 75.99 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/3.766, allocations: 9.507 MB / 1.117 GB, free: 74.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003062/3.769, allocations: 1.044 MB / 1.118 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/3.77, allocations: 67.56 kB / 1.118 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003527/3.774, allocations: 240.1 kB / 1.118 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006131/3.775, allocations: 259.8 kB / 1.118 GB, free: 74.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003929/3.775, allocations: 114.6 kB / 1.119 GB, free: 74.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006076/3.781, allocations: 3.169 MB / 1.122 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.3e-07/3.781, allocations: 0 / 1.122 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008769/3.79, allocations: 1.919 MB / 1.124 GB, free: 74.39 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 (368): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001246/3.791, allocations: 0.7208 MB / 1.124 GB, free: 74.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0142/3.805, allocations: 7.241 MB / 1.131 GB, free: 73.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.08e-06/3.805, allocations: 3.125 kB / 1.131 GB, free: 73.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006963/3.812, allocations: 3.399 MB / 1.135 GB, free: 72.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006864/3.819, allocations: 1.157 MB / 1.136 GB, free: 72.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04051/3.86, allocations: 16.62 MB / 1.152 GB, free: 66.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01301/3.873, allocations: 7.511 MB / 1.159 GB, free: 64.12 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008622/3.882, allocations: 2.142 MB / 1.161 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/3.883, allocations: 401.4 kB / 1.162 GB, free: 63.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.796e-06/3.883, allocations: 0 / 1.162 GB, free: 63.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.5068/4.39, allocations: 74.06 MB / 1.234 GB, free: 86.56 MB / 0.5105 GB