Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.218/2.218, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.771e-05, allocations: 0 / 249.8 MB, free: 14.74 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3788, allocations: 44.5 MB / 294.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2694/0.6482, allocations: 120.5 MB / 414.9 MB, free: 9.152 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004232/0.6487, allocations: 103.9 kB / 415 MB, free: 9.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245/2.893, allocations: 335.8 MB / 0.7331 GB, free: 43.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/2.894, allocations: 0 / 0.7331 GB, free: 43.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001136/2.895, allocations: 207.5 kB / 0.7333 GB, free: 43.79 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.09339/2.988, allocations: 9.035 MB / 0.7422 GB, free: 41.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/2.988, allocations: 7.406 kB / 0.7422 GB, free: 41.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0498/3.038, allocations: 4.858 MB / 0.7469 GB, free: 40.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02913/3.067, allocations: 7.88 MB / 0.7546 GB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009695/3.068, allocations: 310.9 kB / 0.7549 GB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004851/3.073, allocations: 0.5268 MB / 0.7554 GB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04154/3.115, allocations: 13.32 MB / 0.7684 GB, free: 39.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05406/3.169, allocations: 15.03 MB / 0.7831 GB, free: 38.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007299/3.17, allocations: 10.22 kB / 0.7831 GB, free: 38.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004965/3.175, allocations: 7.312 kB / 0.7831 GB, free: 38.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001701/3.176, allocations: 0.7013 MB / 0.7838 GB, free: 38.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.176/3.352, allocations: 52.98 MB / 0.8355 GB, free: 2.801 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05995/3.412, allocations: 19.73 MB / 0.8548 GB, free: 1.914 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4029/3.815, allocations: 7.083 MB / 0.8617 GB, free: 59.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08214/3.898, allocations: 23.1 MB / 0.8843 GB, free: 58.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/3.898, allocations: 89.73 kB / 0.8844 GB, free: 58.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=681): time 1.925e-05/3.898, allocations: 1.656 kB / 0.8844 GB, free: 58.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=687): time 0.1353/4.033, allocations: 25.85 MB / 0.9096 GB, free: 56.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/4.033, allocations: 110 kB / 0.9097 GB, free: 56.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008585/4.042, allocations: 2.127 MB / 0.9118 GB, free: 55.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002349/4.044, allocations: 29.17 kB / 0.9118 GB, free: 55.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004696/4.049, allocations: 3.423 MB / 0.9152 GB, free: 53.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00569/4.055, allocations: 2.175 MB / 0.9173 GB, free: 51.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002503/4.057, allocations: 0 / 0.9173 GB, free: 51.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001354/4.059, allocations: 0.5875 MB / 0.9179 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01869/4.078, allocations: 4.67 MB / 0.9224 GB, free: 49.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01907/4.097, allocations: 5.962 MB / 0.9282 GB, free: 45.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02235/4.119, allocations: 6.73 MB / 0.9348 GB, free: 43.13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.872e-05/4.119, allocations: 7.812 kB / 0.9348 GB, free: 43.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.05066/4.17, allocations: 14.38 MB / 0.9489 GB, free: 37.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.293e-05/4.17, allocations: 21.19 kB / 0.9489 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/4.17, allocations: 39.31 kB / 0.9489 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01486/4.185, allocations: 3.849 MB / 0.9527 GB, free: 36.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01138/4.196, allocations: 1.157 MB / 0.9538 GB, free: 36.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02404/4.22, allocations: 10.94 MB / 0.9645 GB, free: 28.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01139/4.232, allocations: 264.4 kB / 0.9647 GB, free: 28.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002842/4.235, allocations: 282 kB / 0.965 GB, free: 28.48 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.005346/4.24, allocations: 374.7 kB / 0.9654 GB, free: 28.25 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05771/4.298, allocations: 12.69 MB / 0.9778 GB, free: 17.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003136/4.301, allocations: 408.1 kB / 0.9782 GB, free: 16.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05338/4.355, allocations: 13.86 MB / 0.9917 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06847/4.423, allocations: 13.8 MB / 1.005 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.897e-05/4.423, allocations: 7.062 kB / 1.005 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002042/4.423, allocations: 30.14 kB / 1.005 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4806/4.904, allocations: 25.53 MB / 1.03 GB, free: 71.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001148/4.904, allocations: 0 / 1.03 GB, free: 71.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009648/4.914, allocations: 0.8448 MB / 1.031 GB, free: 71.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01547/4.929, allocations: 3.759 MB / 1.035 GB, free: 71.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002005/4.932, allocations: 79.69 kB / 1.035 GB, free: 71.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02263/4.954, allocations: 10.82 MB / 1.045 GB, free: 68.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/4.954, allocations: 2.719 kB / 1.045 GB, free: 68.31 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07175/5.026, allocations: 20.62 MB / 1.065 GB, free: 67.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006686/5.033, allocations: 1.562 MB / 1.067 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003233/5.036, allocations: 3.125 kB / 1.067 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007576/5.044, allocations: 231.2 kB / 1.067 GB, free: 67.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00338/5.047, allocations: 0.5008 MB / 1.068 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002251/5.05, allocations: 183.5 kB / 1.068 GB, free: 67.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00488/5.054, allocations: 1.568 MB / 1.069 GB, free: 67.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.493e-06/5.054, allocations: 0 / 1.069 GB, free: 67.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01249/5.067, allocations: 1.471 MB / 1.071 GB, free: 67.57 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.06569/5.133, allocations: 21.55 MB / 1.092 GB, free: 58.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0339/5.167, allocations: 11.32 MB / 1.103 GB, free: 54.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/5.167, allocations: 3.844 kB / 1.103 GB, free: 54.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01961/5.186, allocations: 5.876 MB / 1.109 GB, free: 51.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01095/5.197, allocations: 0.6519 MB / 1.109 GB, free: 51.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/5.305, allocations: 20.56 MB / 1.129 GB, free: 33.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02368/5.329, allocations: 6.519 MB / 1.136 GB, free: 28.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01657/5.345, allocations: 1.496 MB / 1.137 GB, free: 27.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01525/5.361, allocations: 3.281 MB / 1.14 GB, free: 24.57 MB / 442.7 MB Notification: Performance of SimCode: time 2.765e-06/5.361, allocations: 8 kB / 1.14 GB, free: 24.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8397/6.201, allocations: 158.5 MB / 1.295 GB, free: 15.52 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002998/6.201, allocations: 210.8 kB / 1.295 GB, free: 15.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.161/14.36, allocations: 0 / 1.295 GB, free: 15.23 MB / 442.7 MB