Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.112/2.112, allocations: 214.7 MB / 226.8 MB, free: 1.312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.521e-05, allocations: 4 kB / 279.6 MB, free: 13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 49.71 MB / 329.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5165/0.6278, allocations: 131.1 MB / 460.4 MB, free: 1.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.6281, allocations: 74.83 kB / 460.5 MB, free: 1.285 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.715/2.343, allocations: 354.4 MB / 0.7958 GB, free: 41.01 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.307e-06/2.343, allocations: 0 / 0.7958 GB, free: 41.01 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007726/2.344, allocations: 229.5 kB / 0.796 GB, free: 40.98 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04647/2.39, allocations: 9.531 MB / 0.8053 GB, free: 36.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/2.39, allocations: 11.47 kB / 0.8054 GB, free: 36.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008184/2.399, allocations: 1.631 MB / 0.8069 GB, free: 36.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04264/2.441, allocations: 4.925 MB / 0.8118 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02845/2.47, allocations: 8.208 MB / 0.8198 GB, free: 30.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/2.471, allocations: 0.7149 MB / 0.8205 GB, free: 29.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005565/2.477, allocations: 0.9207 MB / 0.8214 GB, free: 28.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0546/2.531, allocations: 16.85 MB / 0.8378 GB, free: 11.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005413/2.532, allocations: 11.91 kB / 0.8378 GB, free: 11.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004315/2.536, allocations: 407.4 kB / 0.8382 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001107/2.538, allocations: 0.711 MB / 0.8389 GB, free: 10.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04709/2.585, allocations: 15.43 MB / 0.854 GB, free: 11.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5144/3.099, allocations: 55.35 MB / 0.908 GB, free: 44.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03311/3.132, allocations: 19.13 MB / 0.9267 GB, free: 36.33 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01778/3.15, allocations: 7.539 MB / 0.9341 GB, free: 36.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06743/3.218, allocations: 24.88 MB / 0.9584 GB, free: 25.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.208e-05/3.218, allocations: 97.78 kB / 0.9585 GB, free: 25.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 1.19e-05/3.218, allocations: 0 / 0.9585 GB, free: 25.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=754): time 0.07562/3.293, allocations: 25.12 MB / 0.983 GB, free: 13.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.924e-05/3.294, allocations: 115.2 kB / 0.9831 GB, free: 13.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009589/3.303, allocations: 3.184 MB / 0.9862 GB, free: 12.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001919/3.305, allocations: 126.2 kB / 0.9864 GB, free: 12.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003109/3.308, allocations: 3.632 MB / 0.9899 GB, free: 10 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004175/3.313, allocations: 2.475 MB / 0.9923 GB, free: 8.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/3.314, allocations: 128.7 kB / 0.9924 GB, free: 7.969 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001149/3.316, allocations: 0.6015 MB / 0.993 GB, free: 7.539 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01363/3.329, allocations: 5.013 MB / 0.9979 GB, free: 5.402 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01471/3.344, allocations: 6.223 MB / 1.004 GB, free: 15.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01773/3.362, allocations: 6.058 MB / 1.01 GB, free: 10.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-05/3.362, allocations: 8 kB / 1.01 GB, free: 10.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.05225/3.414, allocations: 14.63 MB / 1.024 GB, free: 14.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.188e-05/3.414, allocations: 16 kB / 1.024 GB, free: 14.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/3.415, allocations: 32 kB / 1.024 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01492/3.429, allocations: 4.022 MB / 1.028 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01052/3.44, allocations: 1.181 MB / 1.029 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3974/3.837, allocations: 12.52 MB / 1.042 GB, free: 86.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008311/3.846, allocations: 365.2 kB / 1.042 GB, free: 86.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002531/3.848, allocations: 284.6 kB / 1.042 GB, free: 86.26 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.004247/3.853, allocations: 447.7 kB / 1.043 GB, free: 86.15 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00309/3.856, allocations: 495.9 kB / 1.043 GB, free: 86.15 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04641/3.902, allocations: 14.17 MB / 1.057 GB, free: 85.81 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03432/3.937, allocations: 12.68 MB / 1.069 GB, free: 85.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.831e-05/3.937, allocations: 0 / 1.069 GB, free: 85.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001619/3.937, allocations: 36.47 kB / 1.069 GB, free: 85.53 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07734/4.014, allocations: 28.04 MB / 1.097 GB, free: 83.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001177/4.014, allocations: 0 / 1.097 GB, free: 83.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00829/4.023, allocations: 0.8884 MB / 1.098 GB, free: 83.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01337/4.036, allocations: 3.934 MB / 1.101 GB, free: 81.99 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001954/4.038, allocations: 154.4 kB / 1.102 GB, free: 81.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01993/4.058, allocations: 12.42 MB / 1.114 GB, free: 74 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/4.058, allocations: 5.844 kB / 1.114 GB, free: 74 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07884/4.137, allocations: 21.43 MB / 1.135 GB, free: 64.49 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009544/4.147, allocations: 1.731 MB / 1.136 GB, free: 63.57 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003932/4.151, allocations: 107.7 kB / 1.136 GB, free: 63.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01038/4.161, allocations: 301.4 kB / 1.137 GB, free: 63.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004004/4.165, allocations: 0.5485 MB / 1.137 GB, free: 63.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00268/4.168, allocations: 205.5 kB / 1.137 GB, free: 63.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00956/4.178, allocations: 2.417 MB / 1.14 GB, free: 62.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.452e-06/4.178, allocations: 0 / 1.14 GB, free: 62.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01636/4.194, allocations: 1.827 MB / 1.142 GB, free: 62.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.0821/4.276, allocations: 23.04 MB / 1.164 GB, free: 42.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0319/4.308, allocations: 12.17 MB / 1.176 GB, free: 32.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/4.308, allocations: 2.719 kB / 1.176 GB, free: 32.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01893/4.327, allocations: 6.366 MB / 1.182 GB, free: 26.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009309/4.337, allocations: 0.9048 MB / 1.183 GB, free: 25.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07342/4.41, allocations: 22.63 MB / 1.205 GB, free: 6.121 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01628/4.426, allocations: 6.844 MB / 1.212 GB, free: 0.875 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01383/4.44, allocations: 1.79 MB / 1.214 GB, free: 0 / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.502/4.942, allocations: 4.407 MB / 1.218 GB, free: 80.77 MB / 490.7 MB Notification: Performance of SimCode: time 2.204e-06/4.942, allocations: 2.094 kB / 1.218 GB, free: 80.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8042/5.747, allocations: 183.3 MB / 1.397 GB, free: 68.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/5.747, allocations: 219.5 kB / 1.397 GB, free: 68.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/14.2, allocations: 2.406 kB / 1.397 GB, free: 68.02 MB / 0.5105 GB