Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.319/2.319, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.352e-05, allocations: 0 / 249.8 MB, free: 14.75 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3789, allocations: 44.5 MB / 294.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2574/0.6364, allocations: 125.8 MB / 420.1 MB, free: 3.926 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005728/0.637, allocations: 107.9 kB / 420.2 MB, free: 3.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.323/2.96, allocations: 349 MB / 0.7512 GB, free: 43.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/2.96, allocations: 0 / 0.7512 GB, free: 43.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009027/2.961, allocations: 223 kB / 0.7514 GB, free: 43.95 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.05225/3.014, allocations: 9.549 MB / 0.7607 GB, free: 41.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/3.014, allocations: 11.56 kB / 0.7608 GB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0485/3.062, allocations: 4.911 MB / 0.7656 GB, free: 40.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0318/3.094, allocations: 8.17 MB / 0.7735 GB, free: 39.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001041/3.095, allocations: 321.6 kB / 0.7738 GB, free: 39.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005122/3.1, allocations: 0.5374 MB / 0.7744 GB, free: 39.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04515/3.146, allocations: 13.67 MB / 0.7877 GB, free: 39.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05769/3.203, allocations: 15.41 MB / 0.8028 GB, free: 33.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000605/3.204, allocations: 15 kB / 0.8028 GB, free: 33.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004265/3.208, allocations: 6.344 kB / 0.8028 GB, free: 33.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001275/3.21, allocations: 0.7064 MB / 0.8035 GB, free: 32.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1757/3.385, allocations: 54.63 MB / 0.8568 GB, free: 6.789 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4281/3.813, allocations: 19.44 MB / 0.8758 GB, free: 47.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02087/3.834, allocations: 7.516 MB / 0.8831 GB, free: 47.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0821/3.916, allocations: 25.4 MB / 0.9079 GB, free: 46.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/3.917, allocations: 95.62 kB / 0.908 GB, free: 46.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=749): time 1.43e-05/3.917, allocations: 0 / 0.908 GB, free: 46.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=754): time 0.09965/4.016, allocations: 27.78 MB / 0.9352 GB, free: 39.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.347e-05/4.016, allocations: 116.5 kB / 0.9353 GB, free: 39.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008005/4.024, allocations: 2.839 MB / 0.938 GB, free: 38.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001888/4.026, allocations: 28.23 kB / 0.9381 GB, free: 38.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003381/4.03, allocations: 3.603 MB / 0.9416 GB, free: 36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004402/4.034, allocations: 2.389 MB / 0.9439 GB, free: 34.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001644/4.036, allocations: 0 / 0.9439 GB, free: 34.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008914/4.037, allocations: 0.606 MB / 0.9445 GB, free: 33.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01363/4.051, allocations: 5.08 MB / 0.9495 GB, free: 31.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01574/4.066, allocations: 6.288 MB / 0.9556 GB, free: 27.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02475/4.091, allocations: 7.207 MB / 0.9627 GB, free: 25.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-05/4.091, allocations: 10.97 kB / 0.9627 GB, free: 25.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05128/4.143, allocations: 15.3 MB / 0.9776 GB, free: 19.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.991e-05/4.143, allocations: 47.44 kB / 0.9777 GB, free: 19.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/4.143, allocations: 31.62 kB / 0.9777 GB, free: 19.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01509/4.158, allocations: 3.978 MB / 0.9816 GB, free: 17.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0125/4.17, allocations: 1.233 MB / 0.9828 GB, free: 17.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02295/4.193, allocations: 12.76 MB / 0.9952 GB, free: 6.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009199/4.203, allocations: 280.8 kB / 0.9955 GB, free: 6.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002487/4.205, allocations: 282.3 kB / 0.9958 GB, free: 5.77 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.004312/4.21, allocations: 377.2 kB / 0.9961 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04747/4.257, allocations: 13.67 MB / 1.009 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003624/4.261, allocations: 479.4 kB / 1.01 GB, free: 9.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06712/4.328, allocations: 15.45 MB / 1.025 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04823/4.376, allocations: 13.59 MB / 1.038 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.352e-05/4.376, allocations: 2.859 kB / 1.038 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001862/4.376, allocations: 31.31 kB / 1.038 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4804/4.857, allocations: 27.6 MB / 1.065 GB, free: 86.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001055/4.857, allocations: 6.094 kB / 1.065 GB, free: 86.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01058/4.868, allocations: 0.9277 MB / 1.066 GB, free: 86.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01554/4.883, allocations: 3.894 MB / 1.07 GB, free: 86.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002069/4.885, allocations: 86.88 kB / 1.07 GB, free: 86.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02411/4.909, allocations: 12.63 MB / 1.082 GB, free: 81.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/4.909, allocations: 1.406 kB / 1.082 GB, free: 81.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07106/4.981, allocations: 22.59 MB / 1.104 GB, free: 77.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007765/4.988, allocations: 1.758 MB / 1.106 GB, free: 77.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003567/4.992, allocations: 8.375 kB / 1.106 GB, free: 77.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008585/5.001, allocations: 243.6 kB / 1.106 GB, free: 77.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003373/5.004, allocations: 0.5509 MB / 1.107 GB, free: 76.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002174/5.006, allocations: 203 kB / 1.107 GB, free: 76.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006522/5.013, allocations: 2.117 MB / 1.109 GB, free: 76.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.573e-06/5.013, allocations: 0 / 1.109 GB, free: 76.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01278/5.026, allocations: 1.595 MB / 1.111 GB, free: 76.08 MB / 458.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.07056/5.096, allocations: 23.92 MB / 1.134 GB, free: 65.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03658/5.133, allocations: 12.39 MB / 1.146 GB, free: 59.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/5.133, allocations: 0 / 1.146 GB, free: 59.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02029/5.153, allocations: 6.441 MB / 1.153 GB, free: 53.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009403/5.163, allocations: 0.6956 MB / 1.153 GB, free: 52.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07876/5.242, allocations: 22.36 MB / 1.175 GB, free: 33.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01709/5.259, allocations: 6.819 MB / 1.182 GB, free: 28.38 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0128/5.272, allocations: 1.672 MB / 1.183 GB, free: 27.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01147/5.283, allocations: 3.545 MB / 1.187 GB, free: 23.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.793e-06/5.283, allocations: 0 / 1.187 GB, free: 23.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8468/6.13, allocations: 172.6 MB / 1.355 GB, free: 14.73 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003514/6.13, allocations: 243.8 kB / 1.356 GB, free: 14.44 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.356/15.49, allocations: 0 / 1.356 GB, free: 14.44 MB / 458.7 MB