Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.31/2.31, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.16e-05, allocations: 2.938 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6022/0.7137, allocations: 146.5 MB / 440.9 MB, free: 7.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004925/0.7143, allocations: 100.6 kB / 440.9 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.88/3.594, allocations: 453.5 MB / 0.8735 GB, free: 31.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.867e-06/3.594, allocations: 0 / 0.8735 GB, free: 31.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001675/3.596, allocations: 332.2 kB / 0.8738 GB, free: 31.63 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.07667/3.673, allocations: 13.26 MB / 0.8868 GB, free: 27.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/3.673, allocations: 10.88 kB / 0.8868 GB, free: 27.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06471/3.737, allocations: 6.463 MB / 0.8931 GB, free: 26.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06621/3.804, allocations: 11.51 MB / 0.9043 GB, free: 25.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001726/3.806, allocations: 470.5 kB / 0.9048 GB, free: 25.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01065/3.816, allocations: 0.8032 MB / 0.9056 GB, free: 25.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06618/3.882, allocations: 18.71 MB / 0.9238 GB, free: 18.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08768/3.97, allocations: 21.14 MB / 0.9445 GB, free: 15.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008641/3.971, allocations: 27.55 kB / 0.9445 GB, free: 15.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005857/3.977, allocations: 8 kB / 0.9445 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/3.979, allocations: 0.9257 MB / 0.9454 GB, free: 15.06 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6873/4.666, allocations: 73.66 MB / 1.017 GB, free: 41.53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05712/4.723, allocations: 27.72 MB / 1.044 GB, free: 25.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02623/4.75, allocations: 9.29 MB / 1.053 GB, free: 21.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1072/4.857, allocations: 30.03 MB / 1.083 GB, free: 6.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/4.857, allocations: 117.4 kB / 1.083 GB, free: 6.582 MB / 442.7 MB Notification: Performance of pre-optimization done (n=934): time 2.512e-05/4.857, allocations: 0 / 1.083 GB, free: 6.582 MB / 442.7 MB Notification: Performance of matching and sorting (n=942): time 0.1649/5.022, allocations: 36.66 MB / 1.119 GB, free: 15.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/5.022, allocations: 159.7 kB / 1.119 GB, free: 15.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01186/5.034, allocations: 3.476 MB / 1.122 GB, free: 12.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002277/5.037, allocations: 29.7 kB / 1.122 GB, free: 12.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006894/5.044, allocations: 5.337 MB / 1.128 GB, free: 7.746 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006733/5.05, allocations: 2.994 MB / 1.13 GB, free: 4.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002638/5.053, allocations: 0 / 1.13 GB, free: 4.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001573/5.055, allocations: 0.69 MB / 1.131 GB, free: 4.395 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02731/5.082, allocations: 6.374 MB / 1.137 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4624/5.544, allocations: 7.843 MB / 1.145 GB, free: 76.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0378/5.582, allocations: 8.67 MB / 1.153 GB, free: 76.12 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002274/5.583, allocations: 14.53 kB / 1.153 GB, free: 76.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.09512/5.678, allocations: 19.24 MB / 1.172 GB, free: 75.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/5.678, allocations: 29.75 kB / 1.172 GB, free: 75.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/5.678, allocations: 50.31 kB / 1.172 GB, free: 75.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02753/5.706, allocations: 5.809 MB / 1.178 GB, free: 75.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01803/5.724, allocations: 1.569 MB / 1.18 GB, free: 75.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0465/5.77, allocations: 20.19 MB / 1.199 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01347/5.784, allocations: 318.1 kB / 1.2 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003653/5.788, allocations: 368.6 kB / 1.2 GB, free: 68.5 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[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.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.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.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] imcQS.stator.resistor.resistor[3].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] idealCloserQS.idealClosingSwitch[1].s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] currentQuasiRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real 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[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] idealCloserQS.idealClosingSwitch[3].s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] idealCloserQS.idealClosingSwitch[3].s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] idealCloserQS.idealClosingSwitch[2].s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] idealCloserQS.idealClosingSwitch[2].s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] idealCloserQS.idealClosingSwitch[1].s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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[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.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: 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.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[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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[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: 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[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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[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.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: 232 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (800): * Single equations (assignments): 747 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.006772/5.794, allocations: 445.2 kB / 1.2 GB, free: 68.38 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06431/5.859, allocations: 17.72 MB / 1.218 GB, free: 64.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004083/5.863, allocations: 0.6248 MB / 1.218 GB, free: 64.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.065/5.928, allocations: 18.88 MB / 1.237 GB, free: 56.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04681/5.975, allocations: 15.25 MB / 1.252 GB, free: 48.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.053e-05/5.975, allocations: 10.25 kB / 1.252 GB, free: 48.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002742/5.975, allocations: 40.69 kB / 1.252 GB, free: 48.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1075/6.083, allocations: 34.72 MB / 1.286 GB, free: 20.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001347/6.083, allocations: 4 kB / 1.286 GB, free: 20.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01167/6.094, allocations: 1.091 MB / 1.287 GB, free: 19.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02313/6.118, allocations: 5.887 MB / 1.292 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002557/6.12, allocations: 109.4 kB / 1.292 GB, free: 14.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4921/6.612, allocations: 24.71 MB / 1.317 GB, free: 68.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/6.612, allocations: 5.5 kB / 1.317 GB, free: 68.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08843/6.701, allocations: 28.38 MB / 1.344 GB, free: 66.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009502/6.711, allocations: 2.109 MB / 1.346 GB, free: 66.63 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004608/6.715, allocations: 10.31 kB / 1.346 GB, free: 66.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01115/6.726, allocations: 293.6 kB / 1.347 GB, free: 66.63 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004433/6.731, allocations: 0.7134 MB / 1.347 GB, free: 66.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002865/6.734, allocations: 250.2 kB / 1.348 GB, free: 66.62 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008644/6.742, allocations: 2.575 MB / 1.35 GB, free: 66.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.11e-07/6.743, allocations: 0 / 1.35 GB, free: 66.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0178/6.76, allocations: 2.203 MB / 1.352 GB, free: 66.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.09235/6.853, allocations: 30.07 MB / 1.382 GB, free: 60.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04658/6.899, allocations: 15.35 MB / 1.397 GB, free: 53.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/6.899, allocations: 3.094 kB / 1.397 GB, free: 53.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02854/6.928, allocations: 8.698 MB / 1.405 GB, free: 50.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01442/6.942, allocations: 1.14 MB / 1.406 GB, free: 49.78 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/7.051, allocations: 29.72 MB / 1.435 GB, free: 29.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02457/7.075, allocations: 9.314 MB / 1.444 GB, free: 22.33 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01602/7.092, allocations: 2.049 MB / 1.446 GB, free: 20.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01597/7.108, allocations: 5.268 MB / 1.451 GB, free: 16 MB / 474.7 MB Notification: Performance of SimCode: time 1.783e-06/7.108, allocations: 0 / 1.451 GB, free: 16 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.484/8.592, allocations: 232.5 MB / 1.679 GB, free: 59.51 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003402/8.592, allocations: 202.5 kB / 1.679 GB, free: 59.25 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.85/20.44, allocations: 0 / 1.679 GB, free: 59.25 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat