Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.077/2.077, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.123e-05, allocations: 0 / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3103, allocations: 44.5 MB / 294.3 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2123/0.5227, allocations: 120.5 MB / 414.8 MB, free: 9.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000395/0.5232, allocations: 103.9 kB / 414.9 MB, free: 9.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.991/2.514, allocations: 335.8 MB / 0.7331 GB, free: 43.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.215e-06/2.514, allocations: 0 / 0.7331 GB, free: 43.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006942/2.515, allocations: 215 kB / 0.7333 GB, free: 43.77 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04459/2.56, allocations: 9.037 MB / 0.7421 GB, free: 41.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/2.56, allocations: 10.53 kB / 0.7421 GB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04078/2.6, allocations: 4.854 MB / 0.7469 GB, free: 40.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02676/2.627, allocations: 7.871 MB / 0.7545 GB, free: 39.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009203/2.628, allocations: 311.9 kB / 0.7548 GB, free: 39.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004238/2.632, allocations: 0.5302 MB / 0.7554 GB, free: 39.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03708/2.67, allocations: 13.33 MB / 0.7684 GB, free: 39.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04925/2.719, allocations: 15.03 MB / 0.783 GB, free: 38.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004952/2.719, allocations: 14.09 kB / 0.7831 GB, free: 38.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003718/2.723, allocations: 7.875 kB / 0.7831 GB, free: 38.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001112/2.724, allocations: 0.6968 MB / 0.7837 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1522/2.877, allocations: 52.98 MB / 0.8355 GB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05224/2.929, allocations: 19.72 MB / 0.8547 GB, free: 1.984 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3879/3.317, allocations: 7.082 MB / 0.8617 GB, free: 59.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06781/3.385, allocations: 23.1 MB / 0.8842 GB, free: 58.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/3.385, allocations: 94.94 kB / 0.8843 GB, free: 58.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=681): time 1.139e-05/3.385, allocations: 0 / 0.8843 GB, free: 58.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=687): time 0.08265/3.468, allocations: 25.84 MB / 0.9095 GB, free: 56.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/3.468, allocations: 116.7 kB / 0.9096 GB, free: 56.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005146/3.473, allocations: 2.125 MB / 0.9117 GB, free: 55.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001656/3.475, allocations: 25.7 kB / 0.9117 GB, free: 55.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002914/3.477, allocations: 3.423 MB / 0.9151 GB, free: 53.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003928/3.481, allocations: 2.178 MB / 0.9172 GB, free: 51.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/3.483, allocations: 0 / 0.9172 GB, free: 51.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009183/3.484, allocations: 0.5844 MB / 0.9178 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0113/3.495, allocations: 4.67 MB / 0.9224 GB, free: 49.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01328/3.509, allocations: 5.959 MB / 0.9282 GB, free: 45.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02013/3.529, allocations: 6.736 MB / 0.9347 GB, free: 43.13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-05/3.529, allocations: 7.875 kB / 0.9348 GB, free: 43.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.04425/3.573, allocations: 14.38 MB / 0.9488 GB, free: 37.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.828e-05/3.573, allocations: 19.94 kB / 0.9488 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/3.573, allocations: 38.41 kB / 0.9489 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01242/3.586, allocations: 3.854 MB / 0.9526 GB, free: 36.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009529/3.595, allocations: 1.161 MB / 0.9538 GB, free: 36.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01744/3.613, allocations: 10.94 MB / 0.9644 GB, free: 28.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007532/3.621, allocations: 265.4 kB / 0.9647 GB, free: 28.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002188/3.623, allocations: 280.7 kB / 0.965 GB, free: 28.58 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[1].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[2].i.im:VARIABLE(unit = "A" ) "Imaginary 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.rotorCage.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[3].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[2].i.re:VARIABLE(unit = "A" ) "Real 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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].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: iSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] iSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] iSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] pSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] pSensorQS.powerSensor[1].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: 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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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[1].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] 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[3].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] 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[2].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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (598): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.003774/3.627, allocations: 364 kB / 0.9653 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03606/3.663, allocations: 12.69 MB / 0.9777 GB, free: 17.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002623/3.665, allocations: 406.5 kB / 0.9781 GB, free: 16.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04184/3.707, allocations: 13.86 MB / 0.9916 GB, free: 5.293 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05735/3.765, allocations: 13.79 MB / 1.005 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.419e-05/3.765, allocations: 3.375 kB / 1.005 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001732/3.765, allocations: 28.17 kB / 1.005 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.411/4.176, allocations: 25.53 MB / 1.03 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001128/4.176, allocations: 0 / 1.03 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01091/4.187, allocations: 0.8474 MB / 1.031 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01501/4.202, allocations: 3.765 MB / 1.035 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002415/4.204, allocations: 78.19 kB / 1.035 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02206/4.227, allocations: 10.82 MB / 1.045 GB, free: 68.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/4.227, allocations: 0 / 1.045 GB, free: 68.35 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05356/4.28, allocations: 20.62 MB / 1.065 GB, free: 67.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005964/4.286, allocations: 1.558 MB / 1.067 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002859/4.289, allocations: 2.938 kB / 1.067 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006577/4.296, allocations: 229.4 kB / 1.067 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002651/4.298, allocations: 0.4975 MB / 1.068 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001696/4.3, allocations: 190.1 kB / 1.068 GB, free: 67.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003802/4.304, allocations: 1.566 MB / 1.069 GB, free: 67.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/4.304, allocations: 0 / 1.069 GB, free: 67.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01064/4.315, allocations: 1.48 MB / 1.071 GB, free: 67.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 366 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.07193/4.387, allocations: 21.54 MB / 1.092 GB, free: 58.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03356/4.42, allocations: 11.33 MB / 1.103 GB, free: 54.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/4.42, allocations: 0 / 1.103 GB, free: 54.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01639/4.437, allocations: 5.883 MB / 1.109 GB, free: 51.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007731/4.444, allocations: 0.6452 MB / 1.109 GB, free: 51.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06106/4.506, allocations: 20.56 MB / 1.129 GB, free: 33.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/4.518, allocations: 6.529 MB / 1.136 GB, free: 28.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008582/4.527, allocations: 1.5 MB / 1.137 GB, free: 27.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008403/4.535, allocations: 3.278 MB / 1.14 GB, free: 24.7 MB / 442.7 MB Notification: Performance of SimCode: time 2.044e-06/4.535, allocations: 4 kB / 1.14 GB, free: 24.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6804/5.216, allocations: 158.5 MB / 1.295 GB, free: 16.07 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000295/5.216, allocations: 210.3 kB / 1.295 GB, free: 15.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/12.48, allocations: 0 / 1.295 GB, free: 15.78 MB / 442.7 MB