Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.043/2.043, allocations: 214.7 MB / 226.9 MB, free: 1.301 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.698e-05/4.713e-05, allocations: 4 kB / 279.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 49.7 MB / 329.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5173/0.6275, allocations: 117 MB / 446.3 MB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.6279, allocations: 77.22 kB / 446.4 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8942/1.522, allocations: 157.9 MB / 0.5901 GB, free: 87.51 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.522, allocations: 0 / 0.5901 GB, free: 87.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003666/1.523, allocations: 94.69 kB / 0.5902 GB, free: 87.49 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.01468/1.537, allocations: 3.581 MB / 0.5937 GB, free: 85.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/1.537, allocations: 17.48 kB / 0.5937 GB, free: 85.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002231/1.54, allocations: 0.5587 MB / 0.5943 GB, free: 85.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007467/1.547, allocations: 0.8767 MB / 0.5951 GB, free: 85.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01342/1.561, allocations: 3.608 MB / 0.5986 GB, free: 83.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003991/1.561, allocations: 272.8 kB / 0.5989 GB, free: 83.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001571/1.563, allocations: 375.1 kB / 0.5993 GB, free: 83.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/1.578, allocations: 4.57 MB / 0.6037 GB, free: 80.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001583/1.578, allocations: 3.906 kB / 0.6037 GB, free: 80.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009476/1.579, allocations: 156.9 kB / 0.6039 GB, free: 80.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001847/1.579, allocations: 154.1 kB / 0.604 GB, free: 80.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/1.591, allocations: 3.64 MB / 0.6076 GB, free: 79.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04051/1.631, allocations: 15.79 MB / 0.623 GB, free: 64.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/1.643, allocations: 6.904 MB / 0.6297 GB, free: 56.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005815/1.649, allocations: 1.47 MB / 0.6312 GB, free: 55.28 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01527/1.664, allocations: 4.03 MB / 0.6351 GB, free: 51.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.848e-05/1.664, allocations: 51.81 kB / 0.6352 GB, free: 51.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 6.612e-06/1.664, allocations: 4 kB / 0.6352 GB, free: 51.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.01956/1.684, allocations: 5.079 MB / 0.6401 GB, free: 45.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/1.684, allocations: 68.72 kB / 0.6402 GB, free: 45.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005341/1.689, allocations: 1.877 MB / 0.642 GB, free: 43.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003495/1.69, allocations: 49.7 kB / 0.6421 GB, free: 43.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/1.691, allocations: 1.73 MB / 0.6438 GB, free: 42.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007273/1.692, allocations: 0.5351 MB / 0.6443 GB, free: 41.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/1.692, allocations: 44 kB / 0.6443 GB, free: 41.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/1.693, allocations: 390.2 kB / 0.6447 GB, free: 41.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002628/1.695, allocations: 0.7541 MB / 0.6454 GB, free: 40.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/1.698, allocations: 1.477 MB / 0.6469 GB, free: 38.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/1.702, allocations: 1.044 MB / 0.6479 GB, free: 37.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-05/1.702, allocations: 8 kB / 0.6479 GB, free: 37.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.009421/1.711, allocations: 2.796 MB / 0.6506 GB, free: 34.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/1.711, allocations: 16.03 kB / 0.6506 GB, free: 34.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.427e-05/1.711, allocations: 24 kB / 0.6507 GB, free: 34.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/1.713, allocations: 312.5 kB / 0.651 GB, free: 34.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0046/1.718, allocations: 0.4913 MB / 0.6514 GB, free: 33.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008161/1.726, allocations: 4.458 MB / 0.6558 GB, free: 29.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00416/1.73, allocations: 103.8 kB / 0.6559 GB, free: 29.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005372/1.731, allocations: 99.98 kB / 0.656 GB, free: 28.98 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.0006932/1.731, allocations: 244.3 kB / 0.6562 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008732/1.732, allocations: 237.1 kB / 0.6565 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005775/1.738, allocations: 2.276 MB / 0.6587 GB, free: 26.17 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/1.738, allocations: 16 kB / 0.6587 GB, free: 26.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.738, allocations: 4 kB / 0.6587 GB, free: 26.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/1.738, allocations: 7.969 kB / 0.6587 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/1.751, allocations: 5.513 MB / 0.6641 GB, free: 20.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/1.751, allocations: 4 kB / 0.6641 GB, free: 20.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/1.753, allocations: 271.7 kB / 0.6643 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/1.754, allocations: 334 kB / 0.6647 GB, free: 19.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/1.755, allocations: 35.98 kB / 0.6647 GB, free: 19.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007965/1.763, allocations: 6.346 MB / 0.6709 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/1.763, allocations: 8.094 kB / 0.6709 GB, free: 13.15 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0072/1.77, allocations: 3.428 MB / 0.6743 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/1.771, allocations: 490.2 kB / 0.6747 GB, free: 9.078 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005374/1.772, allocations: 32 kB / 0.6748 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001893/1.774, allocations: 71.97 kB / 0.6748 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003417/1.774, allocations: 117 kB / 0.6749 GB, free: 8.863 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/1.774, allocations: 47.98 kB / 0.675 GB, free: 8.816 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003022/1.777, allocations: 1.411 MB / 0.6764 GB, free: 7.383 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.777, allocations: 0 / 0.6764 GB, free: 7.383 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00368/1.781, allocations: 0.6993 MB / 0.677 GB, free: 6.684 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.008256/1.789, allocations: 4.745 MB / 0.6817 GB, free: 1.852 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3301/2.12, allocations: 2.251 MB / 0.6839 GB, free: 93.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.12, allocations: 2.406 kB / 0.6839 GB, free: 93.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/2.123, allocations: 1.321 MB / 0.6852 GB, free: 93.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/2.128, allocations: 0.5374 MB / 0.6857 GB, free: 93.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/2.147, allocations: 6.117 MB / 0.6917 GB, free: 92.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004648/2.152, allocations: 2.581 MB / 0.6942 GB, free: 91.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004125/2.156, allocations: 0.5141 MB / 0.6947 GB, free: 91.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003501/2.16, allocations: 1.349 MB / 0.696 GB, free: 91.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.743e-06/2.16, allocations: 0 / 0.696 GB, free: 91.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1401/2.3, allocations: 58.76 MB / 0.7534 GB, free: 79.57 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/2.3, allocations: 189 kB / 0.7536 GB, free: 79.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.672/6.972, allocations: 0 / 0.7536 GB, free: 79.33 MB / 442.7 MB