Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.663e-05, allocations: 4 kB / 258.8 MB, free: 8.035 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2868, allocations: 44.49 MB / 303.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.02049/0.3074, allocations: 12.53 MB / 315.9 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01179/0.3192, allocations: 4.597 MB / 320.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002778/0.322, allocations: 131.6 kB / 320.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003234/0.3253, allocations: 0.8272 MB / 321.4 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00571/0.3311, allocations: 1.258 MB / 322.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003091/0.3342, allocations: 0.6899 MB / 323.4 MB, free: 9.398 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00596/0.3402, allocations: 2.091 MB / 325.4 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003824/0.344, allocations: 1.965 MB / 327.4 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.3462, allocations: 1.017 MB / 328.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.3491, allocations: 1.382 MB / 329.8 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0016/0.3508, allocations: 307.7 kB / 330.1 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006838/0.3515, allocations: 128 kB / 330.2 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.3526, allocations: 0.7668 MB / 331 MB, free: 1.723 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.3536, allocations: 296 kB / 331.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008339/0.362, allocations: 5.493 MB / 336.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3621, allocations: 0 / 336.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3621, allocations: 0 / 336.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001922/0.3623, allocations: 0 / 336.8 MB, free: 11.93 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.0127/0.375, allocations: 3.592 MB / 340.4 MB, free: 8.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.375, allocations: 8.031 kB / 340.4 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004972/0.38, allocations: 0.6783 MB / 341.1 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006571/0.3866, allocations: 2.276 MB / 343.3 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003002/0.387, allocations: 262.9 kB / 343.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009479/0.388, allocations: 343.9 kB / 343.9 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.4006, allocations: 4.39 MB / 348.3 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.4007, allocations: 7.891 kB / 348.3 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005178/0.4013, allocations: 144 kB / 348.5 MB, free: 64 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002629/0.4016, allocations: 158.8 kB / 348.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.4131, allocations: 3.692 MB / 352.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.4488, allocations: 14.43 MB / 366.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008154/0.457, allocations: 5.315 MB / 372.1 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008527/0.4655, allocations: 3.181 MB / 375.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.4656, allocations: 47.88 kB / 375.3 MB, free: 4.008 MB / 314.7 MB Notification: Performance of pre-optimization done (n=136): time 4.698e-06/0.4657, allocations: 0 / 375.3 MB, free: 4.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01683/0.4825, allocations: 5.677 MB / 381 MB, free: 14.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4826, allocations: 68.72 kB / 381 MB, free: 14.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/0.4867, allocations: 1.761 MB / 382.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002685/0.487, allocations: 53.7 kB / 382.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/0.4886, allocations: 1.641 MB / 384.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006821/0.4893, allocations: 496.9 kB / 385 MB, free: 10.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.4895, allocations: 36 kB / 385 MB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.4897, allocations: 381.9 kB / 385.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002018/0.4917, allocations: 0.7301 MB / 386.1 MB, free: 8.949 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0024/0.4941, allocations: 1.347 MB / 387.5 MB, free: 7.328 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.4967, allocations: 0.9745 MB / 388.4 MB, free: 6.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.301e-05/0.4968, allocations: 8 kB / 388.4 MB, free: 6.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.006614/0.5034, allocations: 2.544 MB / 391 MB, free: 3.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.5035, allocations: 16 kB / 391 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/0.5035, allocations: 24.48 kB / 391 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005757/0.5041, allocations: 146.5 kB / 391.2 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003416/0.5075, allocations: 483.2 kB / 391.6 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.5111, allocations: 3.091 MB / 394.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/0.5135, allocations: 108 kB / 394.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002207/0.5138, allocations: 87.98 kB / 394.9 MB, free: 15.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002838/0.5166, allocations: 1.044 MB / 396 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006368/0.5173, allocations: 217.3 kB / 396.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006056/0.5234, allocations: 2.259 MB / 398.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.5234, allocations: 12 kB / 398.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.5234, allocations: 4 kB / 398.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.49e-05/0.5235, allocations: 11.91 kB / 398.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.5372, allocations: 5.358 MB / 403.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.5373, allocations: 0 / 403.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002146/0.5395, allocations: 248 kB / 404.1 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.5406, allocations: 267.2 kB / 404.3 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5408, allocations: 35.98 kB / 404.4 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009503/0.5503, allocations: 7.143 MB / 411.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.5503, allocations: 4 kB / 411.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008018/0.5584, allocations: 3.469 MB / 415 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/0.5598, allocations: 462.3 kB / 415.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000468/0.5603, allocations: 28 kB / 415.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.562, allocations: 75.92 kB / 415.5 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/0.5623, allocations: 105.1 kB / 415.6 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.5624, allocations: 39.98 kB / 415.7 MB, free: 9.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003226/0.5657, allocations: 1.344 MB / 417 MB, free: 8.445 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.272e-06/0.5657, allocations: 0 / 417 MB, free: 8.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003018/0.5688, allocations: 0.5586 MB / 417.6 MB, free: 7.887 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004378/0.5692, allocations: 167 kB / 417.7 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005385/0.5746, allocations: 2.139 MB / 419.9 MB, free: 5.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5747, allocations: 3.938 kB / 419.9 MB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003444/0.5781, allocations: 1.417 MB / 421.3 MB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004048/0.5822, allocations: 0.5052 MB / 421.8 MB, free: 3.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2799/0.8622, allocations: 7.365 MB / 429.2 MB, free: 102.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003015/0.8652, allocations: 2.475 MB / 431.6 MB, free: 102.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002715/0.868, allocations: 0.493 MB / 432.1 MB, free: 102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006661/0.8687, allocations: 149.7 kB / 432.3 MB, free: 102 MB / 362.7 MB Notification: Performance of SimCode: time 1.683e-06/0.8687, allocations: 2.531 kB / 432.3 MB, free: 102 MB / 362.7 MB Notification: Performance of Templates: time 0.07057/0.9393, allocations: 25.77 MB / 458 MB, free: 81.24 MB / 362.7 MB