Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.006e-05/3.025e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09081, allocations: 50.41 MB / 342.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3986/0.4895, allocations: 110.4 MB / 453 MB, free: 172 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.4897, allocations: 87.77 kB / 453.1 MB, free: 128 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2108/0.7006, allocations: 53.17 MB / 0.4944 GB, free: 15.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.07e-06/0.7006, allocations: 0 / 0.4944 GB, free: 15.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002525/0.7009, allocations: 71.94 kB / 0.4944 GB, free: 15.04 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01276/0.7137, allocations: 2.593 MB / 0.497 GB, free: 12.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.285e-05/0.7138, allocations: 12.03 kB / 0.497 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003271/0.7171, allocations: 352.1 kB / 0.4973 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.7286, allocations: 1.904 MB / 0.4992 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004848/0.7291, allocations: 193 kB / 0.4994 GB, free: 9.875 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001407/0.7306, allocations: 255.9 kB / 0.4996 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.7477, allocations: 3.149 MB / 0.5027 GB, free: 6.332 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001983/0.748, allocations: 11.89 kB / 0.5027 GB, free: 6.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008357/0.7489, allocations: 108.3 kB / 0.5028 GB, free: 6.215 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003857/0.7493, allocations: 120.9 kB / 0.5029 GB, free: 6.094 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.7644, allocations: 2.489 MB / 0.5053 GB, free: 3.598 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04486/0.8094, allocations: 10.47 MB / 0.5156 GB, free: 8.777 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005018/0.8144, allocations: 1.409 MB / 0.5169 GB, free: 7.301 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002911/0.8174, allocations: 0.7612 MB / 0.5177 GB, free: 6.539 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004639/0.8179, allocations: 211.2 kB / 0.5179 GB, free: 6.297 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.818, allocations: 47.56 kB / 0.5179 GB, free: 6.242 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 4.486e-06/0.818, allocations: 0 / 0.5179 GB, free: 6.242 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.02093/0.8389, allocations: 6.167 MB / 0.524 GB, free: 8 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2423/1.081, allocations: 64.16 kB / 0.524 GB, free: 110.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/1.086, allocations: 1.532 MB / 0.5255 GB, free: 110.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003427/1.086, allocations: 45.95 kB / 0.5256 GB, free: 110.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/1.087, allocations: 1.201 MB / 0.5267 GB, free: 110.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007246/1.088, allocations: 460 kB / 0.5272 GB, free: 110 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/1.088, allocations: 30.06 kB / 0.5272 GB, free: 110 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002219/1.089, allocations: 378.9 kB / 0.5276 GB, free: 109.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003036/1.092, allocations: 0.781 MB / 0.5283 GB, free: 109.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/1.094, allocations: 1.272 MB / 0.5296 GB, free: 109.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/1.097, allocations: 1.002 MB / 0.5305 GB, free: 109.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.832e-05/1.097, allocations: 5.094 kB / 0.5305 GB, free: 109.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.005212/1.102, allocations: 2.323 MB / 0.5328 GB, free: 108.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/1.102, allocations: 16.17 kB / 0.5328 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/1.102, allocations: 15.66 kB / 0.5328 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008366/1.103, allocations: 237.7 kB / 0.5331 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/1.105, allocations: 448.2 kB / 0.5335 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/1.108, allocations: 2.992 MB / 0.5364 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/1.11, allocations: 133.8 kB / 0.5365 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002156/1.11, allocations: 74.52 kB / 0.5366 GB, free: 106.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003748/1.111, allocations: 207.5 kB / 0.5368 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/1.111, allocations: 190.2 kB / 0.537 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004714/1.116, allocations: 2.097 MB / 0.539 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/1.116, allocations: 14.97 kB / 0.5391 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/1.116, allocations: 8.359 kB / 0.5391 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.382e-05/1.116, allocations: 8.188 kB / 0.5391 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/1.127, allocations: 4.836 MB / 0.5438 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/1.127, allocations: 2.562 kB / 0.5438 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/1.129, allocations: 288.4 kB / 0.5441 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007319/1.13, allocations: 209.5 kB / 0.5443 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/1.13, allocations: 29.83 kB / 0.5443 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002414/1.132, allocations: 2.966 MB / 0.5472 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.295e-06/1.132, allocations: 2.312 kB / 0.5472 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008706/1.141, allocations: 3.365 MB / 0.5505 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/1.143, allocations: 444.9 kB / 0.5509 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005411/1.143, allocations: 31.36 kB / 0.5509 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/1.146, allocations: 96.48 kB / 0.551 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/1.146, allocations: 92.59 kB / 0.5511 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002127/1.146, allocations: 39.34 kB / 0.5512 GB, free: 102.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00282/1.149, allocations: 1.166 MB / 0.5523 GB, free: 102.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.09e-06/1.149, allocations: 0 / 0.5523 GB, free: 102.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002052/1.151, allocations: 0.5253 MB / 0.5528 GB, free: 102.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006596/1.152, allocations: 421.5 kB / 0.5532 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004079/1.156, allocations: 2.325 MB / 0.5555 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.425e-06/1.156, allocations: 0 / 0.5555 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002091/1.158, allocations: 1.341 MB / 0.5568 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.161, allocations: 460.5 kB / 0.5572 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007853/1.169, allocations: 3.999 MB / 0.5611 GB, free: 98.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0019/1.171, allocations: 2.026 MB / 0.5631 GB, free: 97.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007611/1.171, allocations: 154.2 kB / 0.5633 GB, free: 97.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.574e-06/1.171, allocations: 3.094 kB / 0.5633 GB, free: 97.93 MB / 442.7 MB Notification: Performance of Templates: time 0.08357/1.255, allocations: 79.35 MB / 0.6408 GB, free: 45.05 MB / 442.7 MB