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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.871/1.871, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.329e-05/4.343e-05, allocations: 4 kB / 269.4 MB, free: 6.371 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 47.57 MB / 317 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.5532, allocations: 163.1 MB / 480.1 MB, free: 6.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.5535, allocations: 100.8 kB / 480.2 MB, free: 6.109 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.902/2.456, allocations: 395.7 MB / 0.8553 GB, free: 40.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.343e-06/2.456, allocations: 2.844 kB / 0.8553 GB, free: 40.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000958/2.457, allocations: 298.7 kB / 0.8556 GB, free: 40.8 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04368/2.501, allocations: 11.33 MB / 0.8667 GB, free: 37.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/2.501, allocations: 11.31 kB / 0.8667 GB, free: 37.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05047/2.551, allocations: 6.417 MB / 0.8729 GB, free: 36.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/2.579, allocations: 9.657 MB / 0.8824 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001184/2.58, allocations: 0.9512 MB / 0.8833 GB, free: 35.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004928/2.585, allocations: 1.241 MB / 0.8845 GB, free: 35.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05496/2.64, allocations: 20.52 MB / 0.9045 GB, free: 33.69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000539/2.64, allocations: 20.88 kB / 0.9046 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004175/2.645, allocations: 0.5298 MB / 0.9051 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/2.646, allocations: 0.8577 MB / 0.9059 GB, free: 33.65 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04713/2.693, allocations: 18.48 MB / 0.924 GB, free: 33.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1396/2.832, allocations: 65.87 MB / 0.9883 GB, free: 1.996 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3949/3.227, allocations: 47.17 MB / 1.034 GB, free: 34.32 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01655/3.244, allocations: 7.788 MB / 1.042 GB, free: 34.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05263/3.297, allocations: 23.81 MB / 1.065 GB, free: 33.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.665e-05/3.297, allocations: 103 kB / 1.065 GB, free: 33.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 1.374e-05/3.297, allocations: 0.5 kB / 1.065 GB, free: 33.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.06163/3.358, allocations: 26.99 MB / 1.092 GB, free: 31.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/3.359, allocations: 121.3 kB / 1.092 GB, free: 30.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007441/3.366, allocations: 3.78 MB / 1.095 GB, free: 30.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001363/3.367, allocations: 134 kB / 1.096 GB, free: 30.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003119/3.371, allocations: 5.089 MB / 1.101 GB, free: 27.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003112/3.374, allocations: 2.699 MB / 1.103 GB, free: 26.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007723/3.374, allocations: 166.7 kB / 1.103 GB, free: 26.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005608/3.375, allocations: 0.6728 MB / 1.104 GB, free: 25.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00945/3.384, allocations: 5.088 MB / 1.109 GB, free: 24.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/3.396, allocations: 7.501 MB / 1.116 GB, free: 19.69 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/3.409, allocations: 6.454 MB / 1.123 GB, free: 17.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.919e-05/3.409, allocations: 22.75 kB / 1.123 GB, free: 17.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.03286/3.442, allocations: 15.48 MB / 1.138 GB, free: 11.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.452e-05/3.442, allocations: 37.88 kB / 1.138 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/3.443, allocations: 74.16 kB / 1.138 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01035/3.453, allocations: 4.103 MB / 1.142 GB, free: 9.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009788/3.463, allocations: 1.669 MB / 1.144 GB, free: 9.859 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/3.479, allocations: 12.21 MB / 1.155 GB, free: 1.957 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007951/3.487, allocations: 452.4 kB / 1.156 GB, free: 1.809 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002095/3.489, allocations: 396.8 kB / 1.156 GB, free: 1.738 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (871): * Single equations (assignments): 815 * 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.001941/3.491, allocations: 0.5956 MB / 1.157 GB, free: 1.344 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/3.492, allocations: 0.6055 MB / 1.157 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05287/3.545, allocations: 15.38 MB / 1.172 GB, free: 8.801 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003012/3.546, allocations: 193.9 kB / 1.173 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/3.546, allocations: 4 kB / 1.173 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001249/3.546, allocations: 33.56 kB / 1.173 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07488/3.621, allocations: 28.99 MB / 1.201 GB, free: 0.6914 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.75e-05/3.621, allocations: 7.562 kB / 1.201 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008243/3.629, allocations: 1.111 MB / 1.202 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01135/3.64, allocations: 3.977 MB / 1.206 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001481/3.642, allocations: 176.4 kB / 1.206 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/3.661, allocations: 12 MB / 1.218 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/3.661, allocations: 7.281 kB / 1.218 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4/4.061, allocations: 21.85 MB / 1.239 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005607/4.067, allocations: 1.777 MB / 1.241 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001869/4.069, allocations: 121.7 kB / 1.241 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004843/4.074, allocations: 326.4 kB / 1.241 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001689/4.075, allocations: 0.586 MB / 1.242 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008713/4.076, allocations: 220.1 kB / 1.242 GB, free: 113 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005834/4.082, allocations: 2.81 MB / 1.245 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.86e-07/4.082, allocations: 2.953 kB / 1.245 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01069/4.093, allocations: 2.213 MB / 1.247 GB, free: 112.8 MB / 0.5261 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 (552): * Single equations (assignments): 496 * 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.002188/4.095, allocations: 0.817 MB / 1.248 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02744/4.123, allocations: 12.83 MB / 1.26 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.52e-06/4.123, allocations: 4.312 kB / 1.26 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01576/4.138, allocations: 6.681 MB / 1.267 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009432/4.148, allocations: 1.268 MB / 1.268 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05351/4.201, allocations: 22.15 MB / 1.29 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01482/4.216, allocations: 8.078 MB / 1.298 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009039/4.225, allocations: 2.003 MB / 1.3 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/4.228, allocations: 453 kB / 1.3 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.77e-06/4.228, allocations: 0 / 1.3 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.5956/4.823, allocations: 126.3 MB / 1.423 GB, free: 113.2 MB / 0.5261 GB