Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.13e-05, allocations: 7.984 kB / 258.8 MB, free: 8.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.308, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0223/0.3303, allocations: 12.53 MB / 315.8 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01317/0.3435, allocations: 4.597 MB / 320.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003267/0.3469, allocations: 127.6 kB / 320.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003803/0.3507, allocations: 0.8311 MB / 321.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.3579, allocations: 1.261 MB / 322.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004053/0.362, allocations: 0.6882 MB / 323.3 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006866/0.3689, allocations: 2.091 MB / 325.4 MB, free: 7.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/0.3738, allocations: 1.965 MB / 327.4 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002739/0.3766, allocations: 1.013 MB / 328.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003542/0.3802, allocations: 1.378 MB / 329.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002198/0.3825, allocations: 307.7 kB / 330.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009809/0.3835, allocations: 128 kB / 330.2 MB, free: 2.715 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001294/0.3848, allocations: 0.7668 MB / 331 MB, free: 1.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.3861, allocations: 292 kB / 331.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009648/0.3958, allocations: 5.501 MB / 336.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3958, allocations: 0 / 336.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3958, allocations: 0 / 336.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000249/0.3961, allocations: 0 / 336.8 MB, free: 12.14 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.01373/0.4098, allocations: 3.581 MB / 340.3 MB, free: 8.496 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.4099, allocations: 8.031 kB / 340.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005357/0.4153, allocations: 0.6744 MB / 341 MB, free: 7.809 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007242/0.4226, allocations: 2.287 MB / 343.3 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004059/0.423, allocations: 258.9 kB / 343.6 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.4245, allocations: 351.8 kB / 343.9 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/0.44, allocations: 4.378 MB / 348.3 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.4402, allocations: 11.91 kB / 348.3 MB, free: 436 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007139/0.441, allocations: 140 kB / 348.4 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002783/0.4412, allocations: 162.8 kB / 348.6 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.4546, allocations: 3.696 MB / 352.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0398/0.4944, allocations: 14.43 MB / 366.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008823/0.5033, allocations: 5.319 MB / 372 MB, free: 7.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009057/0.5124, allocations: 3.177 MB / 375.2 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.5125, allocations: 43.88 kB / 375.3 MB, free: 4.223 MB / 314.7 MB Notification: Performance of pre-optimization done (n=136): time 5.01e-06/0.5126, allocations: 0 / 375.3 MB, free: 4.223 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01736/0.5299, allocations: 5.681 MB / 380.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.53, allocations: 64.72 kB / 381 MB, free: 14.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004397/0.5345, allocations: 1.761 MB / 382.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/0.5348, allocations: 53.7 kB / 382.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.5364, allocations: 1.554 MB / 384.4 MB, free: 10.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000837/0.5373, allocations: 492.9 kB / 384.9 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.5375, allocations: 40 kB / 384.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002277/0.5377, allocations: 386.8 kB / 385.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002134/0.5399, allocations: 0.7262 MB / 386 MB, free: 9.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/0.5426, allocations: 1.35 MB / 387.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.5453, allocations: 0.9667 MB / 388.3 MB, free: 6.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.5453, allocations: 15.94 kB / 388.3 MB, free: 6.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.006339/0.5517, allocations: 2.41 MB / 390.7 MB, free: 4.195 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.5518, allocations: 17.41 kB / 390.8 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/0.5518, allocations: 23.95 kB / 390.8 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005573/0.5524, allocations: 138.9 kB / 390.9 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003407/0.5558, allocations: 487.2 kB / 391.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003657/0.5595, allocations: 3.102 MB / 394.5 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/0.5621, allocations: 107.8 kB / 394.6 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003367/0.5624, allocations: 84.05 kB / 394.7 MB, free: 15.97 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.003041/0.5655, allocations: 1.052 MB / 395.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007016/0.5662, allocations: 213.3 kB / 395.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006212/0.5724, allocations: 2.251 MB / 398.2 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.5725, allocations: 16 kB / 398.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.5725, allocations: 4 kB / 398.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-05/0.5726, allocations: 11.97 kB / 398.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/0.5871, allocations: 5.354 MB / 403.6 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.5871, allocations: 4 kB / 403.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/0.5893, allocations: 251.8 kB / 403.8 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.5905, allocations: 263.5 kB / 404.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002014/0.5907, allocations: 31.98 kB / 404.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009669/0.6004, allocations: 7.139 MB / 411.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.6005, allocations: 0 / 411.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008537/0.609, allocations: 3.477 MB / 414.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.6107, allocations: 470.2 kB / 415.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005518/0.6112, allocations: 28 kB / 415.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/0.613, allocations: 67.92 kB / 415.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.6134, allocations: 109.1 kB / 415.4 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.6135, allocations: 39.98 kB / 415.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003314/0.6168, allocations: 1.34 MB / 416.8 MB, free: 8.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.6169, allocations: 0 / 416.8 MB, free: 8.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003196/0.6201, allocations: 0.5586 MB / 417.3 MB, free: 8.32 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.0005311/0.6207, allocations: 167 kB / 417.5 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005567/0.6263, allocations: 2.138 MB / 419.6 MB, free: 5.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.6263, allocations: 7.938 kB / 419.6 MB, free: 5.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003576/0.6299, allocations: 1.417 MB / 421.1 MB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.6341, allocations: 0.4975 MB / 421.5 MB, free: 3.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2785/0.9126, allocations: 7.387 MB / 428.9 MB, free: 103.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004454/0.9172, allocations: 2.433 MB / 431.4 MB, free: 102.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.9183, allocations: 169.2 kB / 431.5 MB, free: 102.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.9184, allocations: 0 / 431.5 MB, free: 102.5 MB / 362.7 MB Notification: Performance of Templates: time 0.1535/1.072, allocations: 93.39 MB / 0.5126 GB, free: 15.06 MB / 362.7 MB