Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.062/2.062, allocations: 214.7 MB / 226.9 MB, free: 1.297 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.393e-05, allocations: 7.984 kB / 279.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 49.7 MB / 329.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5272/0.6385, allocations: 139.9 MB / 469.2 MB, free: 8.348 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.6388, allocations: 75.59 kB / 469.3 MB, free: 8.312 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.552/2.191, allocations: 275 MB / 0.7268 GB, free: 58.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.234e-06/2.191, allocations: 0 / 0.7268 GB, free: 58.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006064/2.192, allocations: 178.9 kB / 0.727 GB, free: 58.39 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2252 * Number of variables: 2252 Notification: Performance of Generate backend data structure: time 0.03757/2.229, allocations: 7.561 MB / 0.7344 GB, free: 55.98 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/2.229, allocations: 12.56 kB / 0.7344 GB, free: 55.98 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006412/2.236, allocations: 1.297 MB / 0.7357 GB, free: 55.87 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03897/2.275, allocations: 4.547 MB / 0.7401 GB, free: 55.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0242/2.299, allocations: 6.706 MB / 0.7466 GB, free: 54.61 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009107/2.3, allocations: 0.5902 MB / 0.7472 GB, free: 54.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003898/2.304, allocations: 0.7659 MB / 0.748 GB, free: 54.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/2.346, allocations: 13.34 MB / 0.761 GB, free: 53.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004486/2.347, allocations: 18.09 kB / 0.761 GB, free: 53.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003332/2.35, allocations: 331.8 kB / 0.7613 GB, free: 53.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009667/2.351, allocations: 0.5938 MB / 0.7619 GB, free: 53.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03758/2.389, allocations: 12.62 MB / 0.7742 GB, free: 52.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1189/2.507, allocations: 45.9 MB / 0.8191 GB, free: 27.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02964/2.537, allocations: 16.45 MB / 0.8351 GB, free: 12.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01511/2.552, allocations: 5.217 MB / 0.8402 GB, free: 7.578 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/2.554, allocations: 299.2 kB / 0.8405 GB, free: 7.285 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01396/2.568, allocations: 4.488 MB / 0.8449 GB, free: 3.473 MB / 458.7 MB Notification: Performance of pre-optimization done (n=612): time 1.459e-05/2.568, allocations: 0 / 0.8449 GB, free: 3.473 MB / 458.7 MB Notification: Performance of matching and sorting (n=618): time 0.06647/2.634, allocations: 19.47 MB / 0.8639 GB, free: 1.977 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002461/2.634, allocations: 321.1 kB / 0.8642 GB, free: 1.602 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3718/3.006, allocations: 2.73 MB / 0.8669 GB, free: 73.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001484/3.008, allocations: 117 kB / 0.867 GB, free: 73.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003454/3.011, allocations: 3.019 MB / 0.8699 GB, free: 72.67 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003824/3.015, allocations: 2.052 MB / 0.8719 GB, free: 71.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008549/3.016, allocations: 126.8 kB / 0.8721 GB, free: 71.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007875/3.017, allocations: 0.5653 MB / 0.8726 GB, free: 71.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01125/3.028, allocations: 3.864 MB / 0.8764 GB, free: 71.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01357/3.042, allocations: 5.253 MB / 0.8815 GB, free: 69.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01498/3.057, allocations: 4.84 MB / 0.8862 GB, free: 69.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/3.057, allocations: 8.156 kB / 0.8862 GB, free: 69.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.03629/3.093, allocations: 11.27 MB / 0.8972 GB, free: 69.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.629e-05/3.093, allocations: 47.8 kB / 0.8973 GB, free: 69.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-05/3.093, allocations: 39.47 kB / 0.8973 GB, free: 69.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009295/3.103, allocations: 2.556 MB / 0.8998 GB, free: 69.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01077/3.114, allocations: 1.284 MB / 0.9011 GB, free: 69.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/3.125, allocations: 6.987 MB / 0.9079 GB, free: 66.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009682/3.135, allocations: 433.5 kB / 0.9083 GB, free: 66.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/3.137, allocations: 272.6 kB / 0.9086 GB, free: 66.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (670): * Single equations (assignments): 632 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 33 * 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: 0 * Non-linear torn systems: 4 {4 4,6 9,6 9,10 71} Notification: Performance of prepare postOptimizeDAE: time 0.00281/3.14, allocations: 474.1 kB / 0.909 GB, free: 66.76 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/3.142, allocations: 423.9 kB / 0.9094 GB, free: 66.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03047/3.172, allocations: 10.65 MB / 0.9198 GB, free: 66.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002061/3.173, allocations: 138.9 kB / 0.92 GB, free: 66.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/3.173, allocations: 5.453 kB / 0.92 GB, free: 66.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001376/3.173, allocations: 26.48 kB / 0.92 GB, free: 66.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06162/3.234, allocations: 22.55 MB / 0.942 GB, free: 57.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.307e-05/3.235, allocations: 5.516 kB / 0.942 GB, free: 57.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007784/3.242, allocations: 0.8689 MB / 0.9429 GB, free: 57.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008589/3.251, allocations: 2.45 MB / 0.9453 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001511/3.253, allocations: 134.7 kB / 0.9454 GB, free: 56.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/3.263, allocations: 6.828 MB / 0.9521 GB, free: 52.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/3.263, allocations: 6.219 kB / 0.9521 GB, free: 52.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03968/3.303, allocations: 15.87 MB / 0.9676 GB, free: 44.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005403/3.309, allocations: 1.363 MB / 0.9689 GB, free: 43.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002125/3.311, allocations: 97.78 kB / 0.969 GB, free: 43.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006689/3.317, allocations: 292.1 kB / 0.9693 GB, free: 43.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002121/3.32, allocations: 441.2 kB / 0.9697 GB, free: 43.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009007/3.321, allocations: 168.2 kB / 0.9699 GB, free: 43.59 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004989/3.326, allocations: 2.004 MB / 0.9718 GB, free: 42.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.01e-07/3.326, allocations: 1.969 kB / 0.9718 GB, free: 42.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01074/3.336, allocations: 1.579 MB / 0.9734 GB, free: 42.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (467): * Single equations (assignments): 429 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 33 * 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: 0 * Non-linear torn systems: 4 {4 4,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.04297/3.379, allocations: 17.84 MB / 0.9908 GB, free: 28.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02589/3.405, allocations: 9.239 MB / 0.9998 GB, free: 20.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/3.405, allocations: 2.812 kB / 0.9998 GB, free: 20.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01443/3.42, allocations: 4.652 MB / 1.004 GB, free: 16.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007613/3.428, allocations: 0.7215 MB / 1.005 GB, free: 15.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05956/3.487, allocations: 17.01 MB / 1.022 GB, free: 0.7578 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01316/3.5, allocations: 5.326 MB / 1.027 GB, free: 12.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01097/3.511, allocations: 1.541 MB / 1.028 GB, free: 11.64 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009002/3.52, allocations: 2.809 MB / 1.031 GB, free: 9.035 MB / 490.7 MB Notification: Performance of SimCode: time 1.974e-06/3.521, allocations: 0 / 1.031 GB, free: 9.035 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7083/4.229, allocations: 141.9 MB / 1.17 GB, free: 33.06 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/4.229, allocations: 188 kB / 1.17 GB, free: 32.83 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/11.56, allocations: 0 / 1.17 GB, free: 32.83 MB / 490.7 MB