Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-05,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.195e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.0889, allocations: 38.78 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.03253/0.1215, allocations: 18.64 MB / 285.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01672/0.1383, allocations: 5.705 MB / 291.3 MB, free: 8.688 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00497/0.1433, allocations: 191.4 kB / 291.4 MB, free: 8.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00535/0.1487, allocations: 1.107 MB / 292.5 MB, free: 7.387 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009016/0.1578, allocations: 1.651 MB / 294.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005272/0.1631, allocations: 0.9397 MB / 295.1 MB, free: 4.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01295/0.1761, allocations: 4.371 MB / 299.5 MB, free: 424 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2423/0.4184, allocations: 3.919 MB / 303.4 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005801/0.4243, allocations: 2.026 MB / 305.5 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008006/0.4323, allocations: 2.587 MB / 308 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004363/0.4368, allocations: 386.6 kB / 308.4 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002909/0.4397, allocations: 255.6 kB / 308.7 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003759/0.4435, allocations: 1.369 MB / 310 MB, free: 4.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003949/0.4475, allocations: 0.6139 MB / 310.6 MB, free: 4.953 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02046/0.468, allocations: 11.79 MB / 322.4 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.4681, allocations: 0 / 322.4 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd: time 4.258e-06/0.4681, allocations: 64 / 322.4 MB, free: 0 / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005527/0.4687, allocations: 0 / 322.4 MB, free: 0 / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.03095/0.4997, allocations: 6.97 MB / 329.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.4997, allocations: 12.03 kB / 329.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/0.5099, allocations: 1.254 MB / 330.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/0.5243, allocations: 4.263 MB / 334.9 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007982/0.5252, allocations: 0.4996 MB / 335.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002976/0.5282, allocations: 0.6699 MB / 336.1 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/0.5618, allocations: 8.976 MB / 345.1 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000364/0.5622, allocations: 19.02 kB / 345.1 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002356/0.5646, allocations: 280.2 kB / 345.4 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005253/0.5652, allocations: 321.7 kB / 345.7 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02673/0.5919, allocations: 7.342 MB / 353 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07849/0.6704, allocations: 27.57 MB / 380.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/0.6818, allocations: 5.423 MB / 386 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004063/0.6823, allocations: 45.09 kB / 386.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.069e-05/0.6824, allocations: 64.64 kB / 386.1 MB, free: 6.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=264): time 6.022e-06/0.6824, allocations: 0 / 386.1 MB, free: 6.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=310): time 0.05458/0.737, allocations: 13.52 MB / 399.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/0.7371, allocations: 85.84 kB / 399.7 MB, free: 9.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008401/0.7455, allocations: 2.981 MB / 402.7 MB, free: 6.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006362/0.7462, allocations: 77.7 kB / 402.8 MB, free: 5.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00319/0.7494, allocations: 2.806 MB / 405.6 MB, free: 3.145 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00169/0.7512, allocations: 1.057 MB / 406.7 MB, free: 2.098 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00037/0.7516, allocations: 72 kB / 406.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003464/0.7519, allocations: 462.8 kB / 407.2 MB, free: 1.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004959/0.7569, allocations: 1.588 MB / 408.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006284/0.7632, allocations: 2.618 MB / 411.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006484/0.7698, allocations: 2.078 MB / 413.5 MB, free: 10.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.964e-05/0.7699, allocations: 12 kB / 413.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01778/0.7877, allocations: 5.387 MB / 418.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.7878, allocations: 23.94 kB / 418.9 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-05/0.7879, allocations: 32 kB / 418.9 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/0.7921, allocations: 0.9207 MB / 419.8 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006082/0.7983, allocations: 0.7887 MB / 420.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02656/0.8249, allocations: 14.94 MB / 435.6 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00468/0.8296, allocations: 163.7 kB / 435.7 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007888/0.8305, allocations: 152 kB / 435.9 MB, free: 3.922 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (408): * Single equations (assignments): 400 * 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: 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: 6 {(4,93.8%) 17,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 17,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006676/0.8371, allocations: 2.108 MB / 438 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/0.8385, allocations: 403.1 kB / 438.4 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.26/1.098, allocations: 4.922 MB / 443.3 MB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.348e-05/1.099, allocations: 31.19 kB / 443.3 MB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-05/1.099, allocations: 18.25 kB / 443.3 MB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/1.099, allocations: 15.23 kB / 443.4 MB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03842/1.137, allocations: 12.53 MB / 455.9 MB, free: 109.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.884e-05/1.137, allocations: 9.906 kB / 455.9 MB, free: 109.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003963/1.141, allocations: 456.2 kB / 456.3 MB, free: 109.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004235/1.146, allocations: 1.058 MB / 457.4 MB, free: 108.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005637/1.146, allocations: 77.09 kB / 457.5 MB, free: 108.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02782/1.174, allocations: 18.39 MB / 475.9 MB, free: 94.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/1.174, allocations: 3.906 kB / 475.9 MB, free: 94.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01824/1.192, allocations: 7.704 MB / 483.6 MB, free: 90.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003092/1.196, allocations: 0.8017 MB / 484.4 MB, free: 90.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/1.197, allocations: 68 kB / 484.4 MB, free: 90.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00404/1.201, allocations: 147.5 kB / 484.6 MB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009422/1.202, allocations: 240 kB / 484.8 MB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/1.202, allocations: 82.77 kB / 484.9 MB, free: 89.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005772/1.208, allocations: 2.271 MB / 487.2 MB, free: 87.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.208, allocations: 0 / 487.2 MB, free: 87.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006794/1.215, allocations: 1.207 MB / 488.4 MB, free: 86.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (230): * Single equations (assignments): 223 * 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 {(4,93.8%) 16,(1,100.0%) 5,(4,93.8%) 16,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008354/1.216, allocations: 201.2 kB / 488.6 MB, free: 86.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01365/1.23, allocations: 5.243 MB / 493.8 MB, free: 81.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/1.23, allocations: 5.938 kB / 493.8 MB, free: 81.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009065/1.239, allocations: 3.342 MB / 497.2 MB, free: 77.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007515/1.246, allocations: 1.031 MB / 498.2 MB, free: 76.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/1.281, allocations: 14.98 MB / 0.5011 GB, free: 61.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009054/1.29, allocations: 4.329 MB / 0.5054 GB, free: 57.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001787/1.292, allocations: 271.4 kB / 0.5056 GB, free: 57.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.114e-06/1.292, allocations: 0 / 0.5056 GB, free: 57.18 MB / 362.7 MB Notification: Performance of Templates: time 1.001/2.293, allocations: 323.9 MB / 0.8219 GB, free: 27.89 MB / 378.7 MB