Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.432e-05/3.436e-05, allocations: 4 kB / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1269, allocations: 50.42 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.5261, allocations: 110.4 MB / 452.9 MB, free: 300 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.5264, allocations: 87.36 kB / 453 MB, free: 256 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2348/0.7612, allocations: 53.16 MB / 0.4943 GB, free: 14.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.432e-06/0.7613, allocations: 0 / 0.4943 GB, free: 14.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003269/0.7616, allocations: 83.86 kB / 0.4944 GB, free: 14.75 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007315/0.769, allocations: 2.597 MB / 0.4969 GB, free: 12.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.769, allocations: 8.031 kB / 0.4969 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/0.7708, allocations: 348.1 kB / 0.4973 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005608/0.7765, allocations: 1.904 MB / 0.4991 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.7768, allocations: 197 kB / 0.4993 GB, free: 9.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006177/0.7774, allocations: 247.9 kB / 0.4996 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008017/0.7854, allocations: 3.161 MB / 0.5026 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-05/0.7855, allocations: 7.906 kB / 0.5026 GB, free: 6.035 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003659/0.7859, allocations: 108.3 kB / 0.5027 GB, free: 5.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001769/0.7861, allocations: 124.9 kB / 0.5029 GB, free: 5.805 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006745/0.7929, allocations: 2.485 MB / 0.5053 GB, free: 3.312 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0252/0.8181, allocations: 10.47 MB / 0.5155 GB, free: 8.488 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.8215, allocations: 1.41 MB / 0.5169 GB, free: 7.012 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002972/0.8245, allocations: 0.7534 MB / 0.5176 GB, free: 6.258 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007068/0.8253, allocations: 223.1 kB / 0.5179 GB, free: 6.004 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.153e-05/0.8254, allocations: 43.56 kB / 0.5179 GB, free: 5.953 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 8.277e-06/0.8254, allocations: 0 / 0.5179 GB, free: 5.953 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.3379/1.163, allocations: 6.156 MB / 0.5239 GB, free: 109.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/1.163, allocations: 67.47 kB / 0.524 GB, free: 109.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/1.167, allocations: 1.532 MB / 0.5255 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/1.167, allocations: 45.42 kB / 0.5255 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009752/1.168, allocations: 1.268 MB / 0.5267 GB, free: 109.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004545/1.169, allocations: 460 kB / 0.5272 GB, free: 109.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/1.169, allocations: 33.66 kB / 0.5272 GB, free: 109.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/1.169, allocations: 372.1 kB / 0.5276 GB, free: 108.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/1.17, allocations: 0.7742 MB / 0.5283 GB, free: 108.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/1.172, allocations: 1.278 MB / 0.5296 GB, free: 108.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/1.174, allocations: 1 MB / 0.5306 GB, free: 108.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/1.174, allocations: 5.062 kB / 0.5306 GB, free: 108.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.00552/1.18, allocations: 2.449 MB / 0.5329 GB, free: 108.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/1.18, allocations: 11.62 kB / 0.533 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/1.18, allocations: 17.25 kB / 0.533 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007957/1.181, allocations: 242.7 kB / 0.5332 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002222/1.183, allocations: 445.1 kB / 0.5336 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002623/1.186, allocations: 2.988 MB / 0.5366 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/1.188, allocations: 127.7 kB / 0.5367 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/1.188, allocations: 73.48 kB / 0.5367 GB, free: 105.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003621/1.188, allocations: 208 kB / 0.5369 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/1.189, allocations: 187.9 kB / 0.5371 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00449/1.193, allocations: 2.102 MB / 0.5392 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/1.193, allocations: 17.22 kB / 0.5392 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/1.193, allocations: 6.297 kB / 0.5392 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/1.193, allocations: 6.891 kB / 0.5392 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/1.203, allocations: 4.835 MB / 0.5439 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/1.203, allocations: 2.906 kB / 0.5439 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/1.205, allocations: 292.4 kB / 0.5442 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006847/1.206, allocations: 206.7 kB / 0.5444 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/1.206, allocations: 25.94 kB / 0.5444 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/1.208, allocations: 2.97 MB / 0.5473 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.317e-06/1.208, allocations: 2.812 kB / 0.5473 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005553/1.214, allocations: 3.362 MB / 0.5506 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009491/1.215, allocations: 447.9 kB / 0.551 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/1.215, allocations: 25.53 kB / 0.5511 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.217, allocations: 97.47 kB / 0.5512 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/1.217, allocations: 87.81 kB / 0.5512 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/1.217, allocations: 38.5 kB / 0.5513 GB, free: 101.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002025/1.219, allocations: 1.173 MB / 0.5524 GB, free: 101.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.17e-07/1.219, allocations: 3.172 kB / 0.5524 GB, free: 101.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001948/1.221, allocations: 0.5194 MB / 0.5529 GB, free: 101.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006144/1.222, allocations: 425.3 kB / 0.5533 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003756/1.225, allocations: 2.325 MB / 0.5556 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.303e-06/1.225, allocations: 0 / 0.5556 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/1.227, allocations: 1.342 MB / 0.5569 GB, free: 99.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/1.23, allocations: 446 kB / 0.5573 GB, free: 99.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/1.237, allocations: 3.954 MB / 0.5612 GB, free: 97.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001948/1.239, allocations: 2.066 MB / 0.5632 GB, free: 96.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001931/1.241, allocations: 0.5152 MB / 0.5637 GB, free: 96.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005697/1.241, allocations: 140.7 kB / 0.5639 GB, free: 96.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.57e-06/1.241, allocations: 0 / 0.5639 GB, free: 96.93 MB / 442.7 MB Notification: Performance of Templates: time 0.07763/1.319, allocations: 27.54 MB / 0.5908 GB, free: 94.92 MB / 442.7 MB