Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.213/2.213, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.713e-05/2.713e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 50.4 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.03192/0.153, allocations: 16.9 MB / 361.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.169, allocations: 5.649 MB / 367.5 MB, free: 2.297 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004171/0.1732, allocations: 175.4 kB / 367.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004632/0.1779, allocations: 1.006 MB / 368.7 MB, free: 1.113 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008272/0.1862, allocations: 1.666 MB / 370.4 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004299/0.1905, allocations: 0.8212 MB / 371.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.2008, allocations: 3.346 MB / 374.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007489/0.2083, allocations: 2.924 MB / 377.5 MB, free: 8.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004227/0.2126, allocations: 1.632 MB / 379.1 MB, free: 6.684 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005249/0.2179, allocations: 2.172 MB / 381.3 MB, free: 4.504 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.2209, allocations: 427.7 kB / 381.7 MB, free: 4.086 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001352/0.2223, allocations: 204 kB / 381.9 MB, free: 3.887 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002161/0.2245, allocations: 1.222 MB / 383.1 MB, free: 2.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.2268, allocations: 496 kB / 383.6 MB, free: 2.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.2411, allocations: 8.683 MB / 392.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2412, allocations: 0 / 392.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.2412, allocations: 0 / 392.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003441/0.2416, allocations: 0 / 392.3 MB, free: 9.469 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02121/0.2628, allocations: 5.407 MB / 397.7 MB, free: 3.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.2629, allocations: 8.031 kB / 397.7 MB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009115/0.272, allocations: 1.066 MB / 398.8 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3754/0.6475, allocations: 3.564 MB / 402.3 MB, free: 41.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008147/0.6484, allocations: 416 kB / 402.7 MB, free: 41.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/0.6511, allocations: 0.5258 MB / 403.3 MB, free: 41.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02489/0.6761, allocations: 6.978 MB / 410.2 MB, free: 38.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/0.6764, allocations: 15.72 kB / 410.2 MB, free: 38.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001145/0.6775, allocations: 216.9 kB / 410.5 MB, free: 38.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003935/0.678, allocations: 260 kB / 410.7 MB, free: 38.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.6975, allocations: 5.937 MB / 416.7 MB, free: 36.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0828/0.7803, allocations: 22.44 MB / 439.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01789/0.7983, allocations: 8.261 MB / 447.3 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02094/0.8193, allocations: 5.119 MB / 452.5 MB, free: 3.574 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.996e-05/0.8194, allocations: 56.56 kB / 452.5 MB, free: 3.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=232): time 8.806e-06/0.8195, allocations: 3.828 kB / 452.5 MB, free: 3.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=257): time 0.07426/0.8937, allocations: 12.56 MB / 465.1 MB, free: 6.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.8939, allocations: 77.44 kB / 465.2 MB, free: 6.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01179/0.9057, allocations: 2.662 MB / 467.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007252/0.9065, allocations: 69.7 kB / 467.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003863/0.9104, allocations: 2.325 MB / 470.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002111/0.9126, allocations: 0.8806 MB / 471.1 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005189/0.9132, allocations: 64 kB / 471.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004958/0.9137, allocations: 441.7 kB / 471.6 MB, free: 200 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007482/0.9212, allocations: 1.404 MB / 473 MB, free: 14.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008673/0.93, allocations: 2.381 MB / 475.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008703/0.9387, allocations: 1.816 MB / 477.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.586e-05/0.9389, allocations: 8 kB / 477.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.0246/0.9635, allocations: 4.698 MB / 481.9 MB, free: 5.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.262e-05/0.9636, allocations: 19.98 kB / 481.9 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.392e-05/0.9638, allocations: 32.66 kB / 481.9 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004944/0.9687, allocations: 0.6822 MB / 482.6 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009386/0.9782, allocations: 0.7644 MB / 483.4 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02511/1.003, allocations: 9.667 MB / 493.1 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004397/1.008, allocations: 195.7 kB / 493.3 MB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007291/1.009, allocations: 148 kB / 493.4 MB, free: 9.312 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (384): * Single equations (assignments): 378 * 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%) 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.004915/1.013, allocations: 1.56 MB / 495 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/1.015, allocations: 347.8 kB / 495.3 MB, free: 7.398 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/1.029, allocations: 4.333 MB / 499.6 MB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.14e-05/1.029, allocations: 28 kB / 499.7 MB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-05/1.029, allocations: 11.95 kB / 499.7 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.367e-05/1.03, allocations: 11.95 kB / 499.7 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02941/1.059, allocations: 9.346 MB / 0.4971 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.366e-05/1.059, allocations: 4 kB / 0.4971 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004003/1.063, allocations: 436 kB / 0.4975 GB, free: 9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/1.067, allocations: 0.8902 MB / 0.4984 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005464/1.068, allocations: 71.97 kB / 0.4985 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02776/1.096, allocations: 15.57 MB / 0.5137 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/1.096, allocations: 8 kB / 0.5137 GB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01923/1.115, allocations: 6.629 MB / 0.5201 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002741/1.118, allocations: 0.7001 MB / 0.5208 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001401/1.119, allocations: 67.94 kB / 0.5209 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003874/1.123, allocations: 159.8 kB / 0.521 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008824/1.124, allocations: 193.6 kB / 0.5212 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002934/1.125, allocations: 75.98 kB / 0.5213 GB, free: 15.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005727/1.13, allocations: 2.016 MB / 0.5233 GB, free: 13.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.13, allocations: 0 / 0.5233 GB, free: 13.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005891/1.136, allocations: 1.027 MB / 0.5243 GB, free: 12.31 MB / 426.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 (207): * Single equations (assignments): 200 * 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,72.2%) 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.001012/1.137, allocations: 224.5 kB / 0.5245 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01271/1.15, allocations: 4.303 MB / 0.5287 GB, free: 7.684 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.396e-05/1.15, allocations: 6 kB / 0.5287 GB, free: 7.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008636/1.159, allocations: 2.823 MB / 0.5315 GB, free: 4.766 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007286/1.166, allocations: 0.8762 MB / 0.5323 GB, free: 3.887 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03219/1.198, allocations: 12.07 MB / 0.5441 GB, free: 7.727 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007024/1.205, allocations: 3.443 MB / 0.5475 GB, free: 4.254 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/1.207, allocations: 263.4 kB / 0.5477 GB, free: 3.996 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/1.207, allocations: 0 / 0.5477 GB, free: 3.996 MB / 442.7 MB Notification: Performance of Templates: time 0.9519/2.159, allocations: 223.2 MB / 0.7657 GB, free: 135.4 MB / 458.7 MB