Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.259/2.259, allocations: 194.9 MB / 211.2 MB, free: 8.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.909e-05, allocations: 3.906 kB / 258.8 MB, free: 8.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3119, allocations: 44.49 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.0275/0.3395, allocations: 15.85 MB / 319.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01472/0.3542, allocations: 5.144 MB / 324.3 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003817/0.3581, allocations: 151.5 kB / 324.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004266/0.3624, allocations: 0.9165 MB / 325.4 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007691/0.3702, allocations: 1.526 MB / 326.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004117/0.3743, allocations: 0.7962 MB / 327.7 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009643/0.384, allocations: 3.113 MB / 330.8 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006478/0.3905, allocations: 2.755 MB / 333.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003886/0.3944, allocations: 1.527 MB / 335.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005042/0.3995, allocations: 2.071 MB / 337.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.4025, allocations: 411.6 kB / 337.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003331/0.4059, allocations: 204 kB / 337.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003872/0.4098, allocations: 1.168 MB / 338.9 MB, free: 9.945 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004331/0.4142, allocations: 468 kB / 339.4 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01721/0.4315, allocations: 8.263 MB / 347.6 MB, free: 1.203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4316, allocations: 0 / 347.6 MB, free: 1.203 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.917e-06/0.4316, allocations: 0 / 347.6 MB, free: 1.203 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003662/0.432, allocations: 0 / 347.6 MB, free: 1.203 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02274/0.4547, allocations: 5.109 MB / 352.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.4548, allocations: 11.97 kB / 352.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008126/0.4629, allocations: 1.004 MB / 353.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.4778, allocations: 3.197 MB / 357 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008808/0.4788, allocations: 386.2 kB / 357.3 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/0.4819, allocations: 0.5037 MB / 357.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03319/0.5152, allocations: 6.649 MB / 364.5 MB, free: 124 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000362/0.5156, allocations: 7.906 kB / 364.5 MB, free: 116 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002157/0.5178, allocations: 216 kB / 364.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005332/0.5183, allocations: 238.2 kB / 364.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/0.5455, allocations: 5.681 MB / 370.6 MB, free: 9.977 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08097/0.6265, allocations: 21.01 MB / 391.6 MB, free: 4.465 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01934/0.6459, allocations: 8.468 MB / 400.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02124/0.6673, allocations: 4.899 MB / 405 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.732e-05/0.6674, allocations: 56.56 kB / 405.1 MB, free: 5.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=214): time 1.066e-05/0.6674, allocations: 3.984 kB / 405.1 MB, free: 5.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=236): time 0.05178/0.7192, allocations: 11.74 MB / 416.8 MB, free: 9.973 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.423e-05/0.7194, allocations: 77.41 kB / 416.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006064/0.7254, allocations: 2.477 MB / 419.3 MB, free: 7.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004716/0.726, allocations: 61.7 kB / 419.4 MB, free: 7.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/0.7283, allocations: 2.177 MB / 421.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001294/0.7296, allocations: 0.8126 MB / 422.4 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.7299, allocations: 60 kB / 422.5 MB, free: 4.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002974/0.7302, allocations: 425 kB / 422.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/0.7341, allocations: 1.325 MB / 424.2 MB, free: 2.492 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2707/1.005, allocations: 2.184 MB / 426.4 MB, free: 99.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005734/1.011, allocations: 1.697 MB / 428.1 MB, free: 99.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.328e-05/1.011, allocations: 8.812 kB / 428.1 MB, free: 99.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=381) (initialization): time 0.01212/1.023, allocations: 4.409 MB / 432.5 MB, free: 97.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/1.023, allocations: 19.69 kB / 432.5 MB, free: 97.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.354e-05/1.023, allocations: 27.66 kB / 432.5 MB, free: 97.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/1.026, allocations: 0.6706 MB / 433.2 MB, free: 97.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/1.031, allocations: 0.6978 MB / 433.9 MB, free: 97.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/1.044, allocations: 9.543 MB / 443.4 MB, free: 90.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003908/1.048, allocations: 183.4 kB / 443.6 MB, free: 90.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005223/1.049, allocations: 129.2 kB / 443.8 MB, free: 90.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (348): * Single equations (assignments): 342 * 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,75.0%) 19,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004505/1.054, allocations: 1.502 MB / 445.3 MB, free: 89.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/1.055, allocations: 322 kB / 445.6 MB, free: 89.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.067, allocations: 4.097 MB / 449.7 MB, free: 87.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/1.067, allocations: 25.78 kB / 449.7 MB, free: 87.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.532e-05/1.068, allocations: 11.56 kB / 449.7 MB, free: 87.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-05/1.068, allocations: 9.797 kB / 449.7 MB, free: 87.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03189/1.1, allocations: 8.805 MB / 458.5 MB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.334e-05/1.1, allocations: 4 kB / 458.5 MB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004582/1.104, allocations: 395.8 kB / 458.9 MB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005045/1.109, allocations: 0.8851 MB / 459.8 MB, free: 77.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005275/1.11, allocations: 59.97 kB / 459.9 MB, free: 77.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02853/1.138, allocations: 15.45 MB / 475.3 MB, free: 61.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.138, allocations: 7.938 kB / 475.3 MB, free: 61.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.155, allocations: 6.161 MB / 481.5 MB, free: 55.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/1.157, allocations: 0.6727 MB / 482.1 MB, free: 54.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/1.158, allocations: 48 kB / 482.2 MB, free: 54.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/1.161, allocations: 151.8 kB / 482.3 MB, free: 54.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005116/1.162, allocations: 173.6 kB / 482.5 MB, free: 54.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002161/1.162, allocations: 68.17 kB / 482.6 MB, free: 54.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003779/1.166, allocations: 1.876 MB / 484.5 MB, free: 52.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.41e-07/1.166, allocations: 3.938 kB / 484.5 MB, free: 52.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00624/1.172, allocations: 0.9564 MB / 485.4 MB, free: 51.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (188): * Single equations (assignments): 181 * 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%) 19,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008834/1.173, allocations: 212.3 kB / 485.6 MB, free: 51.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01401/1.187, allocations: 4.068 MB / 489.7 MB, free: 47.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/1.187, allocations: 448 / 489.7 MB, free: 47.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009764/1.197, allocations: 2.734 MB / 492.4 MB, free: 44.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007649/1.204, allocations: 0.7761 MB / 493.2 MB, free: 43.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03202/1.237, allocations: 11.42 MB / 0.4928 GB, free: 31.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004801/1.241, allocations: 3.315 MB / 0.496 GB, free: 28.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/1.243, allocations: 239.4 kB / 0.4963 GB, free: 28.37 MB / 362.7 MB Notification: Performance of SimCode: time 1.393e-06/1.243, allocations: 0 / 0.4963 GB, free: 28.37 MB / 362.7 MB Notification: Performance of Templates: time 0.6618/1.905, allocations: 209.7 MB / 0.7011 GB, free: 17 MB / 410.7 MB