Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.761/1.761, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.19e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2463, allocations: 38.77 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3736/0.62, allocations: 112.3 MB / 376.1 MB, free: 94.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.6203, allocations: 85.47 kB / 376.2 MB, free: 94.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3681/0.9884, allocations: 110.7 MB / 486.9 MB, free: 3.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.498e-06/0.9885, allocations: 0 / 486.9 MB, free: 3.582 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005198/0.989, allocations: 139.7 kB / 487 MB, free: 3.445 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01746/1.006, allocations: 4.744 MB / 491.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.007, allocations: 12.03 kB / 491.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004595/1.011, allocations: 0.7312 MB / 492.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/1.022, allocations: 3.465 MB / 496 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005555/1.023, allocations: 373.9 kB / 496.3 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001983/1.025, allocations: 487.9 kB / 496.8 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01995/1.045, allocations: 6.22 MB / 0.4913 GB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000191/1.045, allocations: 15.91 kB / 0.4913 GB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/1.046, allocations: 204 kB / 0.4915 GB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002937/1.046, allocations: 217.8 kB / 0.4917 GB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3417/1.388, allocations: 4.788 MB / 0.4963 GB, free: 38.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04117/1.429, allocations: 20 MB / 0.5159 GB, free: 34.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005346/1.435, allocations: 3.927 MB / 0.5197 GB, free: 32.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003217/1.438, allocations: 1.729 MB / 0.5214 GB, free: 32.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003697/1.438, allocations: 158.9 kB / 0.5215 GB, free: 32.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/1.438, allocations: 54.38 kB / 0.5216 GB, free: 32.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 5.568e-06/1.438, allocations: 0 / 0.5216 GB, free: 32.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=259): time 0.03115/1.47, allocations: 10.85 MB / 0.5322 GB, free: 30.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/1.47, allocations: 77.89 kB / 0.5323 GB, free: 30.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/1.474, allocations: 2.378 MB / 0.5346 GB, free: 30.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004341/1.475, allocations: 73.77 kB / 0.5347 GB, free: 30.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/1.476, allocations: 2.232 MB / 0.5368 GB, free: 29.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008627/1.477, allocations: 0.8852 MB / 0.5377 GB, free: 29.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/1.478, allocations: 61.62 kB / 0.5378 GB, free: 29.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001923/1.478, allocations: 427.4 kB / 0.5382 GB, free: 28.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/1.48, allocations: 1.348 MB / 0.5395 GB, free: 28.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003177/1.484, allocations: 2.167 MB / 0.5416 GB, free: 27.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003557/1.487, allocations: 1.757 MB / 0.5433 GB, free: 27.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.708e-05/1.487, allocations: 7.125 kB / 0.5433 GB, free: 27.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01165/1.499, allocations: 4.822 MB / 0.548 GB, free: 25.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.678e-05/1.499, allocations: 21.39 kB / 0.5481 GB, free: 25.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.803e-05/1.499, allocations: 28.38 kB / 0.5481 GB, free: 25.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003109/1.502, allocations: 0.9666 MB / 0.549 GB, free: 24.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003612/1.506, allocations: 0.672 MB / 0.5497 GB, free: 24.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/1.523, allocations: 12.93 MB / 0.5623 GB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003439/1.526, allocations: 176.9 kB / 0.5625 GB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004827/1.527, allocations: 133.2 kB / 0.5626 GB, free: 15.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (339): * Single equations (assignments): 332 * 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: 5 * 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: 5 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006546/1.527, allocations: 292.7 kB / 0.5629 GB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007459/1.528, allocations: 320.9 kB / 0.5632 GB, free: 15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009505/1.538, allocations: 4.359 MB / 0.5674 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/1.538, allocations: 27.25 kB / 0.5675 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.329e-05/1.538, allocations: 10.88 kB / 0.5675 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.047e-05/1.538, allocations: 15.33 kB / 0.5675 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02229/1.56, allocations: 9.877 MB / 0.5771 GB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/1.56, allocations: 6.844 kB / 0.5771 GB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/1.563, allocations: 399.5 kB / 0.5775 GB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003973/1.567, allocations: 1.063 MB / 0.5786 GB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004135/1.567, allocations: 63.84 kB / 0.5786 GB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/1.589, allocations: 16.58 MB / 0.5948 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/1.589, allocations: 11.28 kB / 0.5948 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/1.604, allocations: 6.668 MB / 0.6013 GB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002431/1.606, allocations: 0.6929 MB / 0.602 GB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009716/1.607, allocations: 62.81 kB / 0.6021 GB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002642/1.61, allocations: 147 kB / 0.6022 GB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007174/1.611, allocations: 202.9 kB / 0.6024 GB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002813/1.611, allocations: 71.66 kB / 0.6025 GB, free: 4.461 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004433/1.615, allocations: 1.801 MB / 0.6042 GB, free: 2.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.719e-06/1.615, allocations: 0 / 0.6042 GB, free: 2.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005395/1.621, allocations: 1.026 MB / 0.6052 GB, free: 1.805 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001198/1.622, allocations: 0.5017 MB / 0.6057 GB, free: 1.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0177/1.64, allocations: 4.772 MB / 0.6104 GB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.837e-06/1.64, allocations: 8.062 kB / 0.6104 GB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007366/1.647, allocations: 2.84 MB / 0.6132 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005284/1.653, allocations: 0.7725 MB / 0.6139 GB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02143/1.674, allocations: 7.955 MB / 0.6217 GB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006539/1.681, allocations: 3.405 MB / 0.625 GB, free: 1.422 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00362/1.684, allocations: 0.7007 MB / 0.6257 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.685, allocations: 210.1 kB / 0.6259 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of SimCode: time 1.78e-06/1.685, allocations: 0 / 0.6259 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of Templates: time 0.3804/2.066, allocations: 51.7 MB / 0.6764 GB, free: 60.37 MB / 378.7 MB