Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="mat",numberOfIntervals=6000,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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.72e-05/3.74e-05, allocations: 6.188 kB / 228.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09611, allocations: 38.77 MB / 266.9 MB, free: 480 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.03767/0.1339, allocations: 16.36 MB / 283.3 MB, free: 52 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01832/0.1522, allocations: 5.281 MB / 288.6 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004371/0.1567, allocations: 163.4 kB / 288.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004664/0.1614, allocations: 0.9825 MB / 289.7 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007322/0.1688, allocations: 1.518 MB / 291.2 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004191/0.173, allocations: 0.8304 MB / 292.1 MB, free: 7.25 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.1832, allocations: 3.238 MB / 295.3 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006543/0.1898, allocations: 2.896 MB / 298.2 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2182/0.4081, allocations: 1.589 MB / 299.8 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005026/0.4131, allocations: 2.065 MB / 301.8 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.4166, allocations: 378 kB / 302.2 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.4181, allocations: 202.4 kB / 302.4 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002606/0.4207, allocations: 1.211 MB / 303.6 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.4236, allocations: 488.2 kB / 304.1 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0147/0.4383, allocations: 8.428 MB / 312.5 MB, free: 4.629 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4384, allocations: 1.125 kB / 312.5 MB, free: 4.629 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.4384, allocations: 0 / 312.5 MB, free: 4.629 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000415/0.4389, allocations: 0 / 312.5 MB, free: 4.629 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.0208/0.4597, allocations: 5.219 MB / 317.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4597, allocations: 9.156 kB / 317.8 MB, free: 1.785 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005892/0.4656, allocations: 0.8433 MB / 318.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009542/0.4752, allocations: 3.209 MB / 321.8 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005052/0.4758, allocations: 392 kB / 322.2 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/0.4779, allocations: 0.5036 MB / 322.7 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02529/0.5032, allocations: 6.814 MB / 329.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002617/0.5035, allocations: 15.89 kB / 329.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001511/0.5051, allocations: 212.2 kB / 329.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004011/0.5055, allocations: 244.1 kB / 330 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01949/0.525, allocations: 5.498 MB / 335.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0748/0.5998, allocations: 20.98 MB / 356.4 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008398/0.6083, allocations: 4.017 MB / 360.5 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006233/0.609, allocations: 143.7 kB / 360.6 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.395e-05/0.6091, allocations: 60.56 kB / 360.7 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=221): time 7.594e-06/0.6091, allocations: 0 / 360.7 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of matching and sorting (n=261): time 0.05568/0.6648, allocations: 12.97 MB / 373.6 MB, free: 3.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.6649, allocations: 84.27 kB / 373.7 MB, free: 3.473 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009633/0.6746, allocations: 2.549 MB / 376.3 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007484/0.6754, allocations: 69.7 kB / 376.3 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004253/0.6797, allocations: 2.41 MB / 378.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/0.6817, allocations: 0.8966 MB / 379.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004534/0.6822, allocations: 64 kB / 379.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004358/0.6827, allocations: 444.7 kB / 380.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005982/0.6887, allocations: 1.404 MB / 381.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007405/0.6962, allocations: 2.353 MB / 383.9 MB, free: 8.906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007128/0.7033, allocations: 1.827 MB / 385.7 MB, free: 7.086 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.633e-05/0.7034, allocations: 8 kB / 385.7 MB, free: 7.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=414) (initialization): time 0.02015/0.7236, allocations: 5.038 MB / 390.8 MB, free: 2.125 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.887e-05/0.7237, allocations: 20 kB / 390.8 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.159e-05/0.7238, allocations: 31.95 kB / 390.8 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004287/0.7281, allocations: 0.7815 MB / 391.6 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007293/0.7354, allocations: 0.7247 MB / 392.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02219/0.7577, allocations: 13.13 MB / 405.5 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00443/0.7622, allocations: 187.7 kB / 405.6 MB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006772/0.7629, allocations: 128 kB / 405.8 MB, free: 2.426 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (368): * Single equations (assignments): 360 * 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 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(4,93.8%) 17,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004941/0.7679, allocations: 1.566 MB / 407.3 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/0.769, allocations: 343.8 kB / 407.7 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/0.7821, allocations: 4.348 MB / 412 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/0.7821, allocations: 32 kB / 412 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.341e-05/0.7822, allocations: 8 kB / 412.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-05/0.7822, allocations: 11.95 kB / 412.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03004/0.8123, allocations: 10.17 MB / 422.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-05/0.8124, allocations: 12 kB / 422.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005462/0.8179, allocations: 435.3 kB / 422.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005591/0.8236, allocations: 0.8282 MB / 423.5 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006705/0.8243, allocations: 71.97 kB / 423.6 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.285/1.109, allocations: 16.49 MB / 440.1 MB, free: 116.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.525e-05/1.109, allocations: 10.72 kB / 440.1 MB, free: 116.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01744/1.127, allocations: 6.931 MB / 447 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002483/1.129, allocations: 0.6972 MB / 447.7 MB, free: 115.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009386/1.13, allocations: 70.8 kB / 447.8 MB, free: 115.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003009/1.133, allocations: 143.5 kB / 447.9 MB, free: 115 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006209/1.134, allocations: 201.6 kB / 448.1 MB, free: 115 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.134, allocations: 75.31 kB / 448.2 MB, free: 115 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005061/1.139, allocations: 1.935 MB / 450.1 MB, free: 114.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.139, allocations: 3.844 kB / 450.1 MB, free: 114.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006326/1.146, allocations: 0.9836 MB / 451.1 MB, free: 114.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.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 (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(4,93.8%) 16,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001103/1.147, allocations: 212.4 kB / 451.3 MB, free: 114 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01145/1.158, allocations: 4.612 MB / 455.9 MB, free: 111.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.158, allocations: 3.875 kB / 455.9 MB, free: 111.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007704/1.166, allocations: 2.959 MB / 458.9 MB, free: 110.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007014/1.173, allocations: 0.8763 MB / 459.8 MB, free: 109.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02584/1.199, allocations: 11.9 MB / 471.7 MB, free: 102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005785/1.205, allocations: 3.491 MB / 475.1 MB, free: 99.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004565/1.21, allocations: 0.7468 MB / 475.9 MB, free: 98.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.211, allocations: 223.4 kB / 476.1 MB, free: 98.63 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/1.211, allocations: 4 kB / 476.1 MB, free: 98.63 MB / 362.7 MB Notification: Performance of Templates: time 0.1273/1.338, allocations: 48.19 MB / 0.512 GB, free: 51.65 MB / 362.7 MB