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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.727/1.727, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.739e-05/4.763e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09368, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0286/0.1223, allocations: 16.34 MB / 283.2 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01509/0.1375, allocations: 5.285 MB / 288.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004066/0.1416, allocations: 163.4 kB / 288.7 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004676/0.1463, allocations: 0.9825 MB / 289.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007806/0.1542, allocations: 1.53 MB / 291.2 MB, free: 8.746 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.1586, allocations: 0.8265 MB / 292 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.1687, allocations: 3.242 MB / 295.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007742/0.1765, allocations: 2.896 MB / 298.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003961/0.1805, allocations: 1.601 MB / 299.8 MB, free: 148 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2375/0.4181, allocations: 2.055 MB / 301.8 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003739/0.4219, allocations: 377.3 kB / 302.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002411/0.4243, allocations: 205.4 kB / 302.4 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003797/0.4282, allocations: 1.213 MB / 303.6 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003433/0.4317, allocations: 484.9 kB / 304.1 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.4465, allocations: 8.427 MB / 312.5 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4466, allocations: 0 / 312.5 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4466, allocations: 0 / 312.5 MB, free: 4.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0004047/0.447, allocations: 0 / 312.5 MB, free: 4.27 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.02191/0.4689, allocations: 5.213 MB / 317.7 MB, free: 1.43 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.469, allocations: 16.34 kB / 317.7 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006429/0.4754, allocations: 0.8395 MB / 318.6 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.4868, allocations: 3.232 MB / 321.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/0.4873, allocations: 390.6 kB / 322.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002373/0.4897, allocations: 0.5054 MB / 322.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02493/0.5147, allocations: 6.651 MB / 329.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.515, allocations: 13.84 kB / 329.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001464/0.5165, allocations: 210.3 kB / 329.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003874/0.5169, allocations: 245.2 kB / 329.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/0.5386, allocations: 5.495 MB / 335.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0641/0.6028, allocations: 20.98 MB / 356.3 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008641/0.6115, allocations: 4.017 MB / 360.3 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006282/0.6122, allocations: 139.2 kB / 360.4 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.679e-05/0.6123, allocations: 60.56 kB / 360.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=221): time 7.283e-06/0.6123, allocations: 7.188 kB / 360.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=261): time 0.05501/0.6673, allocations: 12.98 MB / 373.5 MB, free: 4.316 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.6674, allocations: 77.47 kB / 373.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007588/0.675, allocations: 2.546 MB / 376.1 MB, free: 1.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000633/0.6757, allocations: 69.7 kB / 376.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002823/0.6786, allocations: 2.238 MB / 378.4 MB, free: 15.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001756/0.6804, allocations: 0.9019 MB / 379.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005105/0.6809, allocations: 68 kB / 379.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003785/0.6813, allocations: 441.4 kB / 379.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004884/0.6862, allocations: 1.408 MB / 381.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006144/0.6924, allocations: 2.35 MB / 383.6 MB, free: 9.793 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006013/0.6985, allocations: 1.825 MB / 385.4 MB, free: 7.977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.738e-05/0.6986, allocations: 8 kB / 385.4 MB, free: 7.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=414) (initialization): time 0.01659/0.7152, allocations: 4.841 MB / 390.2 MB, free: 3.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.589e-05/0.7153, allocations: 19.95 kB / 390.3 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.928e-05/0.7154, allocations: 32 kB / 390.3 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003467/0.7188, allocations: 0.7741 MB / 391.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005783/0.7247, allocations: 0.7262 MB / 391.8 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02268/0.7474, allocations: 13.14 MB / 404.9 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004584/0.7521, allocations: 183.7 kB / 405.1 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008431/0.753, allocations: 136 kB / 405.2 MB, free: 3.516 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.005853/0.7588, allocations: 1.562 MB / 406.8 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/0.7601, allocations: 339.8 kB / 407.1 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01418/0.7743, allocations: 4.354 MB / 411.5 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.315e-05/0.7744, allocations: 28 kB / 411.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.097e-05/0.7744, allocations: 8 kB / 411.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.817e-05/0.7745, allocations: 11.95 kB / 411.5 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03287/0.8074, allocations: 10.17 MB / 421.7 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.137e-05/0.8075, allocations: 8 kB / 421.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003927/0.8115, allocations: 435 kB / 422.1 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003821/0.8153, allocations: 0.8285 MB / 423 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005485/0.8159, allocations: 71.97 kB / 423 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02572/0.8417, allocations: 16.5 MB / 439.5 MB, free: 76 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-05/0.8417, allocations: 10.62 kB / 439.5 MB, free: 68 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2626/1.104, allocations: 6.922 MB / 446.5 MB, free: 116.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0032/1.108, allocations: 0.7 MB / 447.2 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/1.11, allocations: 64.05 kB / 447.2 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004123/1.114, allocations: 143.6 kB / 447.4 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009558/1.115, allocations: 204.7 kB / 447.6 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003017/1.115, allocations: 74.75 kB / 447.6 MB, free: 116.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005924/1.121, allocations: 1.938 MB / 449.6 MB, free: 115.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.122e-06/1.121, allocations: 0 / 449.6 MB, free: 115.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006489/1.128, allocations: 0.9795 MB / 450.6 MB, free: 115.6 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.001/1.129, allocations: 222 kB / 450.8 MB, free: 115.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01194/1.141, allocations: 4.608 MB / 455.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/1.141, allocations: 6.781 kB / 455.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008038/1.149, allocations: 2.96 MB / 458.3 MB, free: 111.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007632/1.156, allocations: 0.8709 MB / 459.2 MB, free: 111.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02836/1.185, allocations: 11.91 MB / 471.1 MB, free: 103.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006478/1.191, allocations: 3.415 MB / 474.5 MB, free: 101.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/1.193, allocations: 246.5 kB / 474.8 MB, free: 100.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.203e-06/1.193, allocations: 0 / 474.8 MB, free: 100.9 MB / 362.7 MB Notification: Performance of Templates: time 0.9268/2.12, allocations: 254.8 MB / 0.7125 GB, free: 125 MB / 378.7 MB