Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.199/2.199, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.299e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3076, allocations: 44.49 MB / 294.3 MB, free: 14.37 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2201/0.5277, allocations: 125.8 MB / 420 MB, free: 3.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/0.5281, allocations: 95.94 kB / 420.1 MB, free: 3.875 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.96/2.488, allocations: 349 MB / 0.7511 GB, free: 43.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.495e-06/2.488, allocations: 0 / 0.7511 GB, free: 43.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001025/2.489, allocations: 218.8 kB / 0.7514 GB, free: 43.87 MB / 410.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.04837/2.538, allocations: 9.554 MB / 0.7607 GB, free: 40.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/2.538, allocations: 12.22 kB / 0.7607 GB, free: 40.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04149/2.579, allocations: 4.906 MB / 0.7655 GB, free: 40.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02884/2.608, allocations: 8.177 MB / 0.7735 GB, free: 39.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000965/2.609, allocations: 321.1 kB / 0.7738 GB, free: 39.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004937/2.614, allocations: 0.5428 MB / 0.7743 GB, free: 39.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03984/2.654, allocations: 13.67 MB / 0.7877 GB, free: 39.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05287/2.707, allocations: 15.41 MB / 0.8027 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005655/2.707, allocations: 9.094 kB / 0.8027 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004007/2.711, allocations: 7.531 kB / 0.8027 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001107/2.713, allocations: 0.7059 MB / 0.8034 GB, free: 32.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1479/2.861, allocations: 54.35 MB / 0.8565 GB, free: 6.621 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3743/3.235, allocations: 19.21 MB / 0.8752 GB, free: 47.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01819/3.253, allocations: 7.517 MB / 0.8826 GB, free: 47.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07178/3.325, allocations: 25.4 MB / 0.9074 GB, free: 46.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/3.325, allocations: 100.3 kB / 0.9075 GB, free: 46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=749): time 1.308e-05/3.325, allocations: 6.016 kB / 0.9075 GB, free: 46 MB / 426.7 MB Notification: Performance of matching and sorting (n=754): time 0.09926/3.424, allocations: 27.79 MB / 0.9346 GB, free: 39.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/3.425, allocations: 114.9 kB / 0.9347 GB, free: 39.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007157/3.432, allocations: 2.833 MB / 0.9375 GB, free: 38.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001717/3.433, allocations: 27.39 kB / 0.9375 GB, free: 38.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002888/3.436, allocations: 3.603 MB / 0.941 GB, free: 35.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003865/3.44, allocations: 2.392 MB / 0.9434 GB, free: 33.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009352/3.441, allocations: 0 / 0.9434 GB, free: 33.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007027/3.442, allocations: 0.6045 MB / 0.944 GB, free: 33.15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01189/3.454, allocations: 5.084 MB / 0.9489 GB, free: 30.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01382/3.468, allocations: 6.284 MB / 0.9551 GB, free: 27.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02054/3.488, allocations: 7.211 MB / 0.9621 GB, free: 24.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.243e-05/3.488, allocations: 10.47 kB / 0.9621 GB, free: 24.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05629/3.545, allocations: 15.29 MB / 0.9771 GB, free: 18.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/3.545, allocations: 48.48 kB / 0.9771 GB, free: 18.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/3.545, allocations: 37.75 kB / 0.9771 GB, free: 18.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01824/3.563, allocations: 3.966 MB / 0.981 GB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.014/3.577, allocations: 1.236 MB / 0.9822 GB, free: 17.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02235/3.6, allocations: 12.75 MB / 0.9947 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008236/3.608, allocations: 287 kB / 0.9949 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002283/3.61, allocations: 286.3 kB / 0.9952 GB, free: 4.934 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: imcQS.rotorCage.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: imcQS.rotorCage.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiDelta.plugToPins_n.pin_n[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiDelta.plugToPins_n.pin_n[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiDelta.plugToPins_n.pin_n[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiDelta.plugToPins_n.pin_n[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiDelta.plugToPins_n.pin_n[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiDelta.plugToPins_n.pin_n[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: electricalPowerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] electricalPowerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] electricalPowerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] electricalPowerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] electricalPowerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] electricalPowerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentQuasiRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] 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 (637): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 1 * 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.003627/3.614, allocations: 366.4 kB / 0.9956 GB, free: 4.711 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04226/3.656, allocations: 13.7 MB / 1.009 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003089/3.66, allocations: 477.4 kB / 1.009 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4104/4.07, allocations: 15.75 MB / 1.025 GB, free: 66.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03865/4.109, allocations: 13.58 MB / 1.038 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/4.109, allocations: 6.609 kB / 1.038 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001579/4.109, allocations: 31.94 kB / 1.038 GB, free: 66.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07606/4.185, allocations: 27.5 MB / 1.065 GB, free: 66.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.954e-05/4.185, allocations: 0 / 1.065 GB, free: 66.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008702/4.194, allocations: 0.9323 MB / 1.066 GB, free: 66.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01261/4.206, allocations: 3.893 MB / 1.07 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001873/4.208, allocations: 86.36 kB / 1.07 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/4.227, allocations: 12.64 MB / 1.082 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/4.227, allocations: 3.562 kB / 1.082 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0543/4.282, allocations: 22.59 MB / 1.104 GB, free: 50.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006255/4.288, allocations: 1.751 MB / 1.106 GB, free: 49.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002507/4.29, allocations: 7.25 kB / 1.106 GB, free: 49.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006767/4.297, allocations: 251.2 kB / 1.106 GB, free: 49.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002686/4.3, allocations: 0.5489 MB / 1.107 GB, free: 49.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001065/4.301, allocations: 204 kB / 1.107 GB, free: 49.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004655/4.306, allocations: 2.11 MB / 1.109 GB, free: 48.54 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/4.306, allocations: 0 / 1.109 GB, free: 48.54 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01057/4.316, allocations: 1.607 MB / 1.11 GB, free: 48.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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.05846/4.375, allocations: 23.91 MB / 1.134 GB, free: 37.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03156/4.406, allocations: 12.38 MB / 1.146 GB, free: 26.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/4.407, allocations: 9.359 kB / 1.146 GB, free: 26.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01847/4.425, allocations: 6.443 MB / 1.152 GB, free: 20.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008407/4.434, allocations: 0.7089 MB / 1.153 GB, free: 20.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06957/4.503, allocations: 22.35 MB / 1.175 GB, free: 1.043 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01765/4.521, allocations: 6.911 MB / 1.181 GB, free: 11.97 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01094/4.532, allocations: 1.667 MB / 1.183 GB, free: 10.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01077/4.543, allocations: 3.548 MB / 1.187 GB, free: 7.531 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/4.543, allocations: 0 / 1.187 GB, free: 7.531 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.092/5.635, allocations: 172.6 MB / 1.355 GB, free: 52.93 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/5.635, allocations: 230.9 kB / 1.355 GB, free: 52.65 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.176/13.81, allocations: 0 / 1.355 GB, free: 52.65 MB / 474.7 MB