Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.039/2.039, allocations: 214.7 MB / 226.9 MB, free: 1.305 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.856e-05/3.863e-05, allocations: 7.984 kB / 279.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 49.71 MB / 329.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4865/0.5932, allocations: 117 MB / 446.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.5935, allocations: 72.22 kB / 446.4 MB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8915/1.485, allocations: 157.7 MB / 0.5899 GB, free: 87.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.485, allocations: 0 / 0.5899 GB, free: 87.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003801/1.486, allocations: 90.84 kB / 0.59 GB, free: 87.59 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01474/1.5, allocations: 3.586 MB / 0.5935 GB, free: 85.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/1.5, allocations: 15.77 kB / 0.5935 GB, free: 85.81 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002307/1.503, allocations: 0.5569 MB / 0.5941 GB, free: 85.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007883/1.511, allocations: 0.88 MB / 0.5949 GB, free: 85.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.014/1.525, allocations: 3.613 MB / 0.5985 GB, free: 83.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/1.525, allocations: 274.8 kB / 0.5987 GB, free: 83.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/1.527, allocations: 371.7 kB / 0.5991 GB, free: 83.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/1.541, allocations: 4.566 MB / 0.6035 GB, free: 81.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/1.541, allocations: 6.125 kB / 0.6036 GB, free: 81.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008274/1.542, allocations: 157.1 kB / 0.6037 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001794/1.542, allocations: 158.8 kB / 0.6039 GB, free: 80.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/1.554, allocations: 3.637 MB / 0.6074 GB, free: 79.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03911/1.593, allocations: 15.79 MB / 0.6228 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008604/1.602, allocations: 6.904 MB / 0.6296 GB, free: 56.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00395/1.606, allocations: 1.478 MB / 0.631 GB, free: 55.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/1.617, allocations: 4.029 MB / 0.6349 GB, free: 51.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/1.617, allocations: 51.83 kB / 0.635 GB, free: 51.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 5.15e-06/1.617, allocations: 0 / 0.635 GB, free: 51.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.01526/1.633, allocations: 5.073 MB / 0.6399 GB, free: 46.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/1.633, allocations: 72.72 kB / 0.64 GB, free: 46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004601/1.637, allocations: 1.873 MB / 0.6418 GB, free: 44.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003358/1.638, allocations: 49.7 kB / 0.6419 GB, free: 44.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/1.639, allocations: 1.738 MB / 0.6436 GB, free: 42.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007071/1.64, allocations: 0.5363 MB / 0.6441 GB, free: 41.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/1.64, allocations: 44 kB / 0.6442 GB, free: 41.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/1.64, allocations: 394.5 kB / 0.6445 GB, free: 41.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/1.642, allocations: 0.7502 MB / 0.6453 GB, free: 40.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002439/1.645, allocations: 1.477 MB / 0.6467 GB, free: 38.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002541/1.647, allocations: 1.044 MB / 0.6477 GB, free: 37.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.372e-05/1.647, allocations: 8 kB / 0.6477 GB, free: 37.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.007447/1.655, allocations: 2.799 MB / 0.6505 GB, free: 34.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/1.655, allocations: 20.03 kB / 0.6505 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-05/1.655, allocations: 24 kB / 0.6505 GB, free: 34.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/1.656, allocations: 302.4 kB / 0.6508 GB, free: 34.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003616/1.66, allocations: 0.4913 MB / 0.6513 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006025/1.666, allocations: 4.447 MB / 0.6556 GB, free: 29.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003078/1.669, allocations: 103.8 kB / 0.6557 GB, free: 29.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004469/1.67, allocations: 96 kB / 0.6558 GB, free: 29.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * 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 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004959/1.67, allocations: 244.3 kB / 0.656 GB, free: 28.87 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006615/1.671, allocations: 241 kB / 0.6563 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/1.676, allocations: 2.278 MB / 0.6585 GB, free: 26.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/1.677, allocations: 19.66 kB / 0.6585 GB, free: 26.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/1.677, allocations: 8 kB / 0.6585 GB, free: 26.28 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/1.677, allocations: 7.969 kB / 0.6585 GB, free: 26.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/1.69, allocations: 5.51 MB / 0.6639 GB, free: 20.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/1.69, allocations: 4 kB / 0.6639 GB, free: 20.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.693, allocations: 267.7 kB / 0.6642 GB, free: 20.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/1.694, allocations: 330.3 kB / 0.6645 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002336/1.694, allocations: 35.92 kB / 0.6645 GB, free: 20.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008147/1.703, allocations: 6.348 MB / 0.6707 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.703, allocations: 4.031 kB / 0.6707 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007431/1.71, allocations: 3.428 MB / 0.6741 GB, free: 9.715 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/1.712, allocations: 490.2 kB / 0.6745 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006276/1.713, allocations: 36 kB / 0.6746 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002094/1.715, allocations: 71.95 kB / 0.6746 GB, free: 9.109 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003784/1.715, allocations: 113 kB / 0.6747 GB, free: 9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/1.715, allocations: 47.98 kB / 0.6748 GB, free: 8.953 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003245/1.718, allocations: 1.407 MB / 0.6762 GB, free: 7.523 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.854e-06/1.718, allocations: 0 / 0.6762 GB, free: 7.523 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004055/1.723, allocations: 0.7148 MB / 0.6769 GB, free: 6.809 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.strayReluctance.Phi.re,smee.stator.strayReluctance.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008345/1.731, allocations: 4.748 MB / 0.6815 GB, free: 1.977 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3107/2.042, allocations: 2.254 MB / 0.6837 GB, free: 93.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.042, allocations: 1.281 kB / 0.6837 GB, free: 93.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003714/2.045, allocations: 1.323 MB / 0.685 GB, free: 93.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004947/2.05, allocations: 0.5232 MB / 0.6855 GB, free: 93.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/2.072, allocations: 6.124 MB / 0.6915 GB, free: 92.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004971/2.077, allocations: 2.586 MB / 0.694 GB, free: 91.47 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003957/2.081, allocations: 0.5104 MB / 0.6945 GB, free: 91.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003236/2.084, allocations: 1.35 MB / 0.6958 GB, free: 91.45 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/2.084, allocations: 0.5 kB / 0.6958 GB, free: 91.45 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1412/2.226, allocations: 58.77 MB / 0.7532 GB, free: 79.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002626/2.226, allocations: 177.2 kB / 0.7534 GB, free: 79.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.646/6.872, allocations: 0 / 0.7534 GB, free: 79.38 MB / 442.7 MB