Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(HanserModelica): time 2.005/2.005, allocations: 214.7 MB / 226.9 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.151e-05/5.17e-05, allocations: 4 kB / 279.5 MB, free: 13.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 49.7 MB / 329.2 MB, free: 11.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4233/0.5319, allocations: 135.2 MB / 464.3 MB, free: 13.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.5321, allocations: 78.45 kB / 464.4 MB, free: 13.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.53/2.062, allocations: 332.2 MB / 0.7779 GB, free: 45.06 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.601e-06/2.062, allocations: 0 / 0.7779 GB, free: 45.06 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005701/2.063, allocations: 216.2 kB / 0.7781 GB, free: 45.04 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2785 * Number of variables: 2785 Notification: Performance of Generate backend data structure: time 0.03304/2.096, allocations: 8.755 MB / 0.7867 GB, free: 42.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/2.096, allocations: 10.91 kB / 0.7867 GB, free: 42.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04516/2.141, allocations: 5.855 MB / 0.7924 GB, free: 41.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02182/2.163, allocations: 7.472 MB / 0.7997 GB, free: 38.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009635/2.164, allocations: 0.7168 MB / 0.8004 GB, free: 38.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003901/2.168, allocations: 0.9438 MB / 0.8013 GB, free: 38.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04472/2.212, allocations: 16.73 MB / 0.8177 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004202/2.213, allocations: 15.91 kB / 0.8177 GB, free: 27.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003543/2.217, allocations: 410.6 kB / 0.8181 GB, free: 27.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008759/2.217, allocations: 0.7185 MB / 0.8188 GB, free: 26.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03634/2.254, allocations: 15.54 MB / 0.834 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4127/2.667, allocations: 53.05 MB / 0.8858 GB, free: 37.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04445/2.711, allocations: 41.43 MB / 0.9262 GB, free: 37.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01385/2.725, allocations: 6.937 MB / 0.933 GB, free: 37.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05014/2.775, allocations: 21.55 MB / 0.954 GB, free: 36.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.845e-05/2.775, allocations: 97.33 kB / 0.9541 GB, free: 36.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=679): time 1.188e-05/2.775, allocations: 0 / 0.9541 GB, free: 36.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=687): time 0.05157/2.827, allocations: 22.65 MB / 0.9763 GB, free: 27.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/2.827, allocations: 112 kB / 0.9764 GB, free: 27.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005493/2.833, allocations: 2.58 MB / 0.9789 GB, free: 26.47 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001246/2.834, allocations: 116.7 kB / 0.979 GB, free: 26.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/2.836, allocations: 3.671 MB / 0.9826 GB, free: 23.66 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003003/2.839, allocations: 2.27 MB / 0.9848 GB, free: 21.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/2.84, allocations: 124.9 kB / 0.9849 GB, free: 21.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007945/2.841, allocations: 0.6063 MB / 0.9855 GB, free: 21.37 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009297/2.85, allocations: 4.452 MB / 0.9899 GB, free: 19.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/2.861, allocations: 6.201 MB / 0.9959 GB, free: 15.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.872, allocations: 5.558 MB / 1.001 GB, free: 13.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.347e-05/2.872, allocations: 14.62 kB / 1.001 GB, free: 13.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03002/2.902, allocations: 13.39 MB / 1.014 GB, free: 8.125 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.667e-05/2.902, allocations: 28.69 kB / 1.014 GB, free: 8.125 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.697e-05/2.903, allocations: 55.23 kB / 1.015 GB, free: 8.125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/2.913, allocations: 4.002 MB / 1.018 GB, free: 6.898 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006848/2.919, allocations: 1.215 MB / 1.02 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/2.938, allocations: 10.93 MB / 1.03 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006513/2.944, allocations: 350.7 kB / 1.031 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/2.946, allocations: 313.8 kB / 1.031 GB, free: 13.25 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 240 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (646): * Single equations (assignments): 593 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002454/2.949, allocations: 483.8 kB / 1.031 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001739/2.951, allocations: 456.9 kB / 1.032 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/2.984, allocations: 12.75 MB / 1.044 GB, free: 1.441 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003073/2.984, allocations: 187 kB / 1.044 GB, free: 1.285 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.298e-05/2.984, allocations: 8 kB / 1.044 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.815e-05/2.984, allocations: 28.45 kB / 1.044 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4076/3.392, allocations: 24.65 MB / 1.069 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-05/3.392, allocations: 2.375 kB / 1.069 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005518/3.397, allocations: 0.7866 MB / 1.069 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0102/3.408, allocations: 3.904 MB / 1.073 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001402/3.409, allocations: 147.2 kB / 1.073 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/3.424, allocations: 10.79 MB / 1.084 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.594e-06/3.424, allocations: 7.031 kB / 1.084 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03912/3.464, allocations: 19.1 MB / 1.102 GB, free: 95.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004568/3.468, allocations: 1.483 MB / 1.104 GB, free: 95.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001507/3.47, allocations: 99.08 kB / 1.104 GB, free: 95.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003915/3.474, allocations: 268.1 kB / 1.104 GB, free: 95.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/3.475, allocations: 0.5022 MB / 1.105 GB, free: 94.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006796/3.476, allocations: 185.9 kB / 1.105 GB, free: 94.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003949/3.48, allocations: 1.93 MB / 1.107 GB, free: 94.17 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.115e-06/3.48, allocations: 0 / 1.107 GB, free: 94.17 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008687/3.489, allocations: 1.725 MB / 1.108 GB, free: 93.98 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (426): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001862/3.49, allocations: 0.6063 MB / 1.109 GB, free: 93.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02385/3.514, allocations: 10.95 MB / 1.12 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.546e-06/3.514, allocations: 5.094 kB / 1.12 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01366/3.528, allocations: 5.684 MB / 1.125 GB, free: 87.32 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005527/3.534, allocations: 0.8595 MB / 1.126 GB, free: 87.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0418/3.575, allocations: 17.94 MB / 1.144 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01159/3.587, allocations: 6.535 MB / 1.15 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007323/3.594, allocations: 1.552 MB / 1.152 GB, free: 75.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001771/3.596, allocations: 333.8 kB / 1.152 GB, free: 75.24 MB / 0.4948 GB Notification: Performance of SimCode: time 1.864e-06/3.596, allocations: 0 / 1.152 GB, free: 75.24 MB / 0.4948 GB Notification: Performance of Templates: time 0.5535/4.15, allocations: 104.5 MB / 1.254 GB, free: 94.29 MB / 0.4948 GB