Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/2.993e-05, allocations: 10.02 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.0909, allocations: 50.42 MB / 343.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/0.615, allocations: 164.1 MB / 0.4953 GB, free: 11.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.6154, allocations: 101.2 kB / 0.4954 GB, free: 11.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.955/2.57, allocations: 386.1 MB / 0.8725 GB, free: 43.19 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.931e-06/2.57, allocations: 4 kB / 0.8725 GB, free: 43.19 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001004/2.571, allocations: 292.7 kB / 0.8728 GB, free: 43.16 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.06782/2.639, allocations: 11.02 MB / 0.8836 GB, free: 39.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/2.639, allocations: 9.75 kB / 0.8836 GB, free: 39.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06416/2.703, allocations: 4.484 MB / 0.8879 GB, free: 39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03711/2.741, allocations: 9.539 MB / 0.8973 GB, free: 37.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002013/2.743, allocations: 0.8949 MB / 0.8981 GB, free: 37.78 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0229/2.766, allocations: 1.192 MB / 0.8993 GB, free: 37.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05423/2.82, allocations: 18.41 MB / 0.9173 GB, free: 36.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004313/2.82, allocations: 26.89 kB / 0.9173 GB, free: 36.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/2.823, allocations: 0.5101 MB / 0.9178 GB, free: 36.28 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008873/2.824, allocations: 0.8206 MB / 0.9186 GB, free: 36.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04966/2.874, allocations: 15.34 MB / 0.9336 GB, free: 36.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1335/3.007, allocations: 61.02 MB / 0.9932 GB, free: 9.141 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03568/3.043, allocations: 32.94 MB / 1.025 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01169/3.055, allocations: 3.673 MB / 1.029 GB, free: 7.891 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02177/3.077, allocations: 8.803 MB / 1.038 GB, free: 0.8398 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.576e-05/3.077, allocations: 74.06 kB / 1.038 GB, free: 0.7578 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=362): time 7.498e-06/3.077, allocations: 0 / 1.038 GB, free: 0.7578 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.04282/3.12, allocations: 14.28 MB / 1.052 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/3.12, allocations: 94.58 kB / 1.052 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00977/3.13, allocations: 4.486 MB / 1.056 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006839/3.13, allocations: 93.7 kB / 1.056 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.324/3.454, allocations: 5.663 MB / 1.062 GB, free: 86.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001777/3.456, allocations: 1.404 MB / 1.063 GB, free: 85.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006986/3.457, allocations: 141.1 kB / 1.063 GB, free: 85.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005326/3.457, allocations: 0.5892 MB / 1.064 GB, free: 85.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006898/3.464, allocations: 2.843 MB / 1.066 GB, free: 85.66 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008344/3.473, allocations: 5.896 MB / 1.072 GB, free: 81.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00844/3.481, allocations: 4.235 MB / 1.076 GB, free: 81.76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/3.481, allocations: 28.56 kB / 1.076 GB, free: 81.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02324/3.505, allocations: 9.576 MB / 1.086 GB, free: 81.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/3.505, allocations: 51.81 kB / 1.086 GB, free: 81.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/3.505, allocations: 103 kB / 1.086 GB, free: 81.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003456/3.508, allocations: 0.9442 MB / 1.087 GB, free: 81.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008162/3.517, allocations: 1.636 MB / 1.088 GB, free: 81.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/3.53, allocations: 9.392 MB / 1.098 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007129/3.537, allocations: 424.1 kB / 1.098 GB, free: 77.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/3.539, allocations: 369.2 kB / 1.098 GB, free: 77.22 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * 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): 840 * 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 prepare postOptimizeDAE: time 0.001349/3.54, allocations: 0.5726 MB / 1.099 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001211/3.541, allocations: 0.535 MB / 1.099 GB, free: 76.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/3.555, allocations: 6.477 MB / 1.106 GB, free: 76.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.041e-05/3.556, allocations: 41.28 kB / 1.106 GB, free: 76.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/3.556, allocations: 11.36 kB / 1.106 GB, free: 76.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.168e-05/3.556, allocations: 21.64 kB / 1.106 GB, free: 76.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03525/3.591, allocations: 15.91 MB / 1.121 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-05/3.591, allocations: 3.281 kB / 1.121 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005041/3.596, allocations: 0.77 MB / 1.122 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003188/3.599, allocations: 0.7717 MB / 1.123 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006079/3.6, allocations: 88.97 kB / 1.123 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01646/3.616, allocations: 8.547 MB / 1.131 GB, free: 71.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/3.616, allocations: 10.91 kB / 1.131 GB, free: 71.58 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0411/3.658, allocations: 9.917 MB / 1.141 GB, free: 70.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009223/3.667, allocations: 1.083 MB / 1.142 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003106/3.67, allocations: 75.59 kB / 1.142 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008642/3.679, allocations: 239.6 kB / 1.142 GB, free: 69.76 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001526/3.68, allocations: 269.7 kB / 1.143 GB, free: 69.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008905/3.681, allocations: 116.9 kB / 1.143 GB, free: 69.75 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01472/3.696, allocations: 3.328 MB / 1.146 GB, free: 69.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.077e-06/3.696, allocations: 0 / 1.146 GB, free: 69.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01535/3.711, allocations: 1.985 MB / 1.148 GB, free: 69.54 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (384): * Single equations (assignments): 378 * 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,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001663/3.713, allocations: 0.8332 MB / 1.149 GB, free: 69.31 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01504/3.728, allocations: 7.396 MB / 1.156 GB, free: 67.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/3.728, allocations: 3.188 kB / 1.156 GB, free: 67.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006907/3.735, allocations: 3.447 MB / 1.159 GB, free: 65.49 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007207/3.742, allocations: 1.255 MB / 1.161 GB, free: 65.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03942/3.782, allocations: 16.99 MB / 1.177 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01182/3.794, allocations: 7.624 MB / 1.185 GB, free: 51.57 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009063/3.803, allocations: 2.217 MB / 1.187 GB, free: 50.13 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001939/3.805, allocations: 416.7 kB / 1.187 GB, free: 49.75 MB / 0.5105 GB Notification: Performance of SimCode: time 1.864e-06/3.805, allocations: 0 / 1.187 GB, free: 49.75 MB / 0.5105 GB Notification: Performance of Templates: time 0.5324/4.337, allocations: 79.15 MB / 1.264 GB, free: 70 MB / 0.5105 GB