Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|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",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 194.9 MB / 211.2 MB, free: 9.312 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.928e-05, allocations: 4 kB / 258.8 MB, free: 9.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3087, allocations: 44.5 MB / 303.3 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02896/0.3377, allocations: 16.96 MB / 320.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.3538, allocations: 5.584 MB / 325.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004284/0.3582, allocations: 163.5 kB / 326 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00482/0.3631, allocations: 1.002 MB / 327 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008868/0.372, allocations: 1.647 MB / 328.7 MB, free: 4.395 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004787/0.3768, allocations: 0.8395 MB / 329.5 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.3871, allocations: 3.338 MB / 332.8 MB, free: 216 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006818/0.394, allocations: 2.852 MB / 335.7 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004294/0.3984, allocations: 1.628 MB / 337.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005334/0.4037, allocations: 2.172 MB / 339.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002916/0.4067, allocations: 419.8 kB / 339.9 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001289/0.4081, allocations: 211.9 kB / 340.1 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001976/0.41, allocations: 1.215 MB / 341.3 MB, free: 7.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.4122, allocations: 496 kB / 341.8 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.4264, allocations: 8.64 MB / 350.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4264, allocations: 0 / 350.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4265, allocations: 0 / 350.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003352/0.4268, allocations: 0 / 350.4 MB, free: 14.54 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02058/0.4474, allocations: 5.344 MB / 355.8 MB, free: 9.117 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.4475, allocations: 16.03 kB / 355.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0086/0.4561, allocations: 1.058 MB / 356.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.4677, allocations: 3.38 MB / 360.2 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006334/0.4684, allocations: 398.7 kB / 360.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002184/0.4706, allocations: 0.5233 MB / 361.2 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02488/0.4955, allocations: 6.93 MB / 368.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002473/0.4958, allocations: 19.83 kB / 368.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00164/0.4974, allocations: 216 kB / 368.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004394/0.4979, allocations: 258.6 kB / 368.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.519, allocations: 5.866 MB / 374.4 MB, free: 6.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06313/0.5822, allocations: 22.31 MB / 396.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01462/0.5969, allocations: 8.194 MB / 404.9 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/0.6141, allocations: 5.086 MB / 410 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.557e-05/0.6143, allocations: 64.52 kB / 410.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=229): time 6.122e-06/0.6143, allocations: 3.938 kB / 410.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=254): time 0.05033/0.6646, allocations: 12.54 MB / 422.6 MB, free: 4.289 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.6647, allocations: 77.41 kB / 422.7 MB, free: 4.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007321/0.6721, allocations: 2.641 MB / 425.3 MB, free: 1.562 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005243/0.6726, allocations: 69.7 kB / 425.4 MB, free: 1.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2704/0.9431, allocations: 2.295 MB / 427.7 MB, free: 100.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001593/0.9448, allocations: 0.8783 MB / 428.6 MB, free: 99.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003726/0.9452, allocations: 67.59 kB / 428.7 MB, free: 99.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003015/0.9455, allocations: 442.8 kB / 429.1 MB, free: 99.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004829/0.9503, allocations: 1.384 MB / 430.5 MB, free: 99.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00547/0.9559, allocations: 2.357 MB / 432.8 MB, free: 97.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005323/0.9613, allocations: 1.794 MB / 434.6 MB, free: 97.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.122e-05/0.9614, allocations: 9.75 kB / 434.6 MB, free: 97.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01524/0.9766, allocations: 4.647 MB / 439.3 MB, free: 95.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/0.9768, allocations: 19.97 kB / 439.3 MB, free: 95.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.544e-05/0.9768, allocations: 31.72 kB / 439.3 MB, free: 95.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002755/0.9796, allocations: 0.687 MB / 440 MB, free: 94.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005713/0.9854, allocations: 0.75 MB / 440.8 MB, free: 94.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/0.9995, allocations: 9.579 MB / 450.3 MB, free: 87.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/1.004, allocations: 188.5 kB / 450.5 MB, free: 87.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006693/1.005, allocations: 146.5 kB / 450.7 MB, free: 87.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (381): * Single equations (assignments): 375 * 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: 4 * 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: 4 {(6,72.2%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00459/1.009, allocations: 1.56 MB / 452.2 MB, free: 86.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.01, allocations: 343.2 kB / 452.6 MB, free: 86.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/1.022, allocations: 4.275 MB / 456.8 MB, free: 82.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.303e-05/1.022, allocations: 24 kB / 456.9 MB, free: 82.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.204e-05/1.022, allocations: 16 kB / 456.9 MB, free: 82.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-05/1.022, allocations: 11.95 kB / 456.9 MB, free: 82.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/1.049, allocations: 9.261 MB / 466.2 MB, free: 72.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4e-05/1.049, allocations: 4 kB / 466.2 MB, free: 72.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003677/1.053, allocations: 428 kB / 466.6 MB, free: 72.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004029/1.057, allocations: 0.8851 MB / 467.5 MB, free: 71.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005207/1.058, allocations: 71.97 kB / 467.5 MB, free: 71.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02207/1.08, allocations: 15.58 MB / 483.1 MB, free: 55.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/1.08, allocations: 7.938 kB / 483.1 MB, free: 55.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/1.096, allocations: 6.558 MB / 489.7 MB, free: 48.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/1.098, allocations: 0.6998 MB / 490.4 MB, free: 47.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.099, allocations: 63.98 kB / 490.4 MB, free: 47.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003404/1.103, allocations: 147.9 kB / 490.6 MB, free: 47.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006648/1.103, allocations: 189.6 kB / 490.8 MB, free: 47.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/1.104, allocations: 75.98 kB / 490.8 MB, free: 47.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004716/1.108, allocations: 2.004 MB / 492.8 MB, free: 45.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.373e-06/1.109, allocations: 0 / 492.8 MB, free: 45.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005675/1.114, allocations: 1.014 MB / 493.9 MB, free: 44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 197 * 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,75.0%) 20,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009649/1.115, allocations: 225.4 kB / 494.1 MB, free: 43.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01097/1.126, allocations: 4.237 MB / 498.3 MB, free: 39.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/1.126, allocations: 5.812 kB / 498.3 MB, free: 39.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006926/1.133, allocations: 2.81 MB / 0.4894 GB, free: 36.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006607/1.14, allocations: 0.8637 MB / 0.4902 GB, free: 35.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/1.165, allocations: 11.98 MB / 0.5019 GB, free: 23.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004657/1.17, allocations: 3.423 MB / 0.5053 GB, free: 20.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/1.172, allocations: 259.4 kB / 0.5055 GB, free: 19.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/1.172, allocations: 3.938 kB / 0.5055 GB, free: 19.9 MB / 362.7 MB Notification: Performance of Templates: time 0.6365/1.808, allocations: 221.9 MB / 0.7222 GB, free: 10.96 MB / 426.7 MB