Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2.18/2.18, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.325e-05/3.317e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 50.41 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01661/0.1331, allocations: 9.44 MB / 354.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009736/0.1429, allocations: 3.492 MB / 357.9 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.1454, allocations: 99.62 kB / 358 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.1483, allocations: 0.6447 MB / 358.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.1527, allocations: 0.7942 MB / 359.4 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.1548, allocations: 359.5 kB / 359.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005175/0.16, allocations: 1.645 MB / 361.4 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004043/0.1641, allocations: 1.755 MB / 363.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002247/0.1664, allocations: 0.8569 MB / 364.1 MB, free: 5.801 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003251/0.1697, allocations: 1.258 MB / 365.3 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001666/0.1714, allocations: 199.8 kB / 365.5 MB, free: 4.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008544/0.1723, allocations: 111.9 kB / 365.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001771/0.1741, allocations: 0.8177 MB / 366.4 MB, free: 3.414 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.1754, allocations: 256 kB / 366.7 MB, free: 3.164 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007692/0.1831, allocations: 4.492 MB / 371.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1832, allocations: 0 / 371.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.037e-06/0.1832, allocations: 0 / 371.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002101/0.1834, allocations: 0 / 371.2 MB, free: 14.66 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01036/0.1938, allocations: 3.003 MB / 374.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.061e-05/0.1939, allocations: 8.031 kB / 374.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.1961, allocations: 403.5 kB / 374.6 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006574/0.2027, allocations: 2.025 MB / 376.6 MB, free: 9.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004093/0.2032, allocations: 233.9 kB / 376.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.2044, allocations: 295.9 kB / 377.1 MB, free: 8.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.2176, allocations: 3.804 MB / 380.9 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.2178, allocations: 11.92 kB / 380.9 MB, free: 4.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006898/0.2185, allocations: 124 kB / 381.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002661/0.2188, allocations: 145.7 kB / 381.2 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.2301, allocations: 3.239 MB / 384.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03577/0.2659, allocations: 12.16 MB / 396.6 MB, free: 4.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004532/0.2705, allocations: 1.929 MB / 398.5 MB, free: 2.617 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005401/0.2711, allocations: 215.4 kB / 398.7 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.2712, allocations: 51.88 kB / 398.8 MB, free: 2.312 MB / 330.7 MB Notification: Performance of pre-optimization done (n=139): time 4.428e-06/0.2712, allocations: 0 / 398.8 MB, free: 2.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=155): time 0.4023/0.6735, allocations: 7.321 MB / 406.1 MB, free: 46.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/0.6737, allocations: 67.69 kB / 406.2 MB, free: 46.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007686/0.6814, allocations: 1.739 MB / 407.9 MB, free: 45.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004877/0.6819, allocations: 51.39 kB / 408 MB, free: 45.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001888/0.6838, allocations: 1.368 MB / 409.3 MB, free: 44.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.6851, allocations: 0.5267 MB / 409.9 MB, free: 43.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.6854, allocations: 41.5 kB / 409.9 MB, free: 43.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002722/0.6857, allocations: 384.9 kB / 410.3 MB, free: 43.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004109/0.6898, allocations: 0.8785 MB / 411.2 MB, free: 43.19 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004768/0.6947, allocations: 1.442 MB / 412.6 MB, free: 42.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004954/0.6997, allocations: 1.119 MB / 413.7 MB, free: 41.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.711e-05/0.6998, allocations: 5.812 kB / 413.7 MB, free: 41.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.01274/0.7126, allocations: 2.852 MB / 416.6 MB, free: 40.53 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.7127, allocations: 12.31 kB / 416.6 MB, free: 40.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.556e-05/0.7128, allocations: 19.75 kB / 416.6 MB, free: 40.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002226/0.715, allocations: 369.1 kB / 417 MB, free: 40.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005438/0.7205, allocations: 480.8 kB / 417.4 MB, free: 40.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/0.7325, allocations: 6.046 MB / 423.5 MB, free: 35.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004321/0.7369, allocations: 130.4 kB / 423.6 MB, free: 35.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006225/0.7376, allocations: 83 kB / 423.7 MB, free: 35.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 227 * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0039/0.7415, allocations: 0.929 MB / 424.6 MB, free: 34.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.7427, allocations: 221.4 kB / 424.8 MB, free: 34.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.7535, allocations: 2.573 MB / 427.4 MB, free: 33.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-05/0.7536, allocations: 20.3 kB / 427.4 MB, free: 33.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.067e-05/0.7537, allocations: 0 / 427.4 MB, free: 33.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.553e-05/0.7537, allocations: 7.969 kB / 427.4 MB, free: 33.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/0.7783, allocations: 5.805 MB / 433.2 MB, free: 27.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-05/0.7784, allocations: 4 kB / 433.2 MB, free: 27.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004066/0.7825, allocations: 304 kB / 433.5 MB, free: 27.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002476/0.7851, allocations: 386.9 kB / 433.9 MB, free: 27.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004623/0.7856, allocations: 43.94 kB / 434 MB, free: 27.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01358/0.7992, allocations: 7.534 MB / 441.5 MB, free: 19.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/0.7993, allocations: 7.938 kB / 441.5 MB, free: 19.19 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/0.8129, allocations: 4.095 MB / 445.6 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/0.8153, allocations: 486.2 kB / 446.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/0.8165, allocations: 39.98 kB / 446.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003421/0.82, allocations: 91.89 kB / 446.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000597/0.8206, allocations: 121 kB / 446.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002333/0.8209, allocations: 43.98 kB / 446.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00464/0.8255, allocations: 1.331 MB / 447.7 MB, free: 12.72 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.683e-06/0.8256, allocations: 0 / 447.7 MB, free: 12.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.005069/0.8307, allocations: 0.5609 MB / 448.3 MB, free: 12.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 145 * 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 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000852/0.8316, allocations: 181 kB / 448.4 MB, free: 11.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008644/0.8403, allocations: 2.618 MB / 451.1 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/0.8404, allocations: 0.75 kB / 451.1 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004884/0.8453, allocations: 1.559 MB / 452.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006133/0.8515, allocations: 0.5044 MB / 453.1 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/0.8744, allocations: 7.061 MB / 460.2 MB, free: 60 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006061/0.8805, allocations: 2.273 MB / 462.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001775/0.8823, allocations: 179.4 kB / 462.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of SimCode: time 2.244e-06/0.8824, allocations: 0 / 462.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of Templates: time 0.2245/1.107, allocations: 89.1 MB / 0.5388 GB, free: 4.484 MB / 426.7 MB