Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.034e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3436, allocations: 44.49 MB / 294.3 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5296/0.8732, allocations: 146.5 MB / 440.8 MB, free: 67.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.8736, allocations: 100.6 kB / 440.9 MB, free: 67.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.78/3.653, allocations: 453.5 MB / 0.8734 GB, free: 20.47 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.485e-06/3.653, allocations: 0 / 0.8734 GB, free: 20.47 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.001479/3.655, allocations: 333.1 kB / 0.8738 GB, free: 20.47 MB / 426.8 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.06835/3.723, allocations: 13.26 MB / 0.8867 GB, free: 17.33 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/3.723, allocations: 9.719 kB / 0.8867 GB, free: 17.33 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05502/3.778, allocations: 6.462 MB / 0.893 GB, free: 16.52 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04097/3.819, allocations: 11.5 MB / 0.9043 GB, free: 15.17 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001344/3.821, allocations: 472 kB / 0.9047 GB, free: 15.17 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006757/3.828, allocations: 0.8112 MB / 0.9055 GB, free: 15.16 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05491/3.882, allocations: 18.71 MB / 0.9238 GB, free: 15.1 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07165/3.954, allocations: 21.14 MB / 0.9444 GB, free: 13.47 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008636/3.955, allocations: 20.09 kB / 0.9444 GB, free: 13.46 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005559/3.961, allocations: 13.84 kB / 0.9444 GB, free: 13.46 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001538/3.962, allocations: 0.9338 MB / 0.9454 GB, free: 13.42 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2032/4.166, allocations: 73.97 MB / 1.018 GB, free: 10 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4272/4.593, allocations: 27.72 MB / 1.045 GB, free: 63.03 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02388/4.617, allocations: 9.298 MB / 1.054 GB, free: 62.91 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08814/4.705, allocations: 30.02 MB / 1.083 GB, free: 61.81 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/4.705, allocations: 130.1 kB / 1.083 GB, free: 61.76 MB / 474.8 MB Notification: Performance of pre-optimization done (n=934): time 1.526e-05/4.705, allocations: 0 / 1.083 GB, free: 61.76 MB / 474.8 MB Notification: Performance of matching and sorting (n=942): time 0.1147/4.82, allocations: 36.59 MB / 1.119 GB, free: 57.71 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/4.82, allocations: 166.5 kB / 1.119 GB, free: 57.6 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/4.83, allocations: 3.47 MB / 1.122 GB, free: 56.4 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002186/4.832, allocations: 28.7 kB / 1.122 GB, free: 56.37 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004538/4.837, allocations: 5.342 MB / 1.128 GB, free: 52.37 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005041/4.842, allocations: 2.991 MB / 1.131 GB, free: 49.99 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002279/4.844, allocations: 0 / 1.131 GB, free: 49.99 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001183/4.845, allocations: 0.6918 MB / 1.131 GB, free: 49.52 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01536/4.861, allocations: 6.009 MB / 1.137 GB, free: 46.93 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01693/4.878, allocations: 7.846 MB / 1.145 GB, free: 42.26 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03136/4.909, allocations: 8.668 MB / 1.153 GB, free: 38.97 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/4.909, allocations: 13.84 kB / 1.153 GB, free: 38.97 MB / 474.8 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.05777/4.967, allocations: 19.24 MB / 1.172 GB, free: 29.9 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/4.967, allocations: 24 kB / 1.172 GB, free: 29.88 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001533/4.968, allocations: 52 kB / 1.172 GB, free: 29.83 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01907/4.987, allocations: 5.809 MB / 1.178 GB, free: 25.03 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0127/4.999, allocations: 1.571 MB / 1.179 GB, free: 23.83 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03232/5.032, allocations: 20.18 MB / 1.199 GB, free: 4.91 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/5.043, allocations: 315 kB / 1.199 GB, free: 4.719 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003072/5.046, allocations: 373.4 kB / 1.2 GB, free: 4.379 MB / 474.8 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.005665/5.051, allocations: 455.5 kB / 1.2 GB, free: 4.121 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06589/5.117, allocations: 18.25 MB / 1.218 GB, free: 6.266 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00418/5.122, allocations: 0.6278 MB / 1.219 GB, free: 5.633 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4587/5.58, allocations: 19.05 MB / 1.237 GB, free: 78.27 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04196/5.622, allocations: 15.25 MB / 1.252 GB, free: 78 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.565e-05/5.623, allocations: 7.031 kB / 1.252 GB, free: 78 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002384/5.623, allocations: 39.52 kB / 1.252 GB, free: 78 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09872/5.721, allocations: 34.72 MB / 1.286 GB, free: 76.85 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001395/5.722, allocations: 8.156 kB / 1.286 GB, free: 76.85 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01005/5.732, allocations: 1.088 MB / 1.287 GB, free: 76.85 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01973/5.752, allocations: 5.891 MB / 1.293 GB, free: 76.66 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00244/5.754, allocations: 106.7 kB / 1.293 GB, free: 76.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03968/5.794, allocations: 24.27 MB / 1.317 GB, free: 61.43 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/5.794, allocations: 7.156 kB / 1.317 GB, free: 61.43 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07288/5.867, allocations: 28.36 MB / 1.344 GB, free: 47.87 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008081/5.875, allocations: 2.109 MB / 1.346 GB, free: 46.31 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004119/5.879, allocations: 15.56 kB / 1.346 GB, free: 46.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009673/5.889, allocations: 297.8 kB / 1.347 GB, free: 46.14 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003944/5.893, allocations: 0.7073 MB / 1.347 GB, free: 45.69 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00263/5.895, allocations: 257 kB / 1.348 GB, free: 45.46 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007545/5.903, allocations: 2.57 MB / 1.35 GB, free: 43.19 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.02e-07/5.903, allocations: 0 / 1.35 GB, free: 43.19 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01618/5.919, allocations: 2.206 MB / 1.352 GB, free: 41 MB / 490.8 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.07905/5.998, allocations: 30.07 MB / 1.382 GB, free: 14.83 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.4207/6.419, allocations: 15.82 MB / 1.397 GB, free: 79.31 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/6.419, allocations: 3.562 kB / 1.397 GB, free: 79.31 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02555/6.445, allocations: 8.684 MB / 1.406 GB, free: 78.46 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01308/6.458, allocations: 1.14 MB / 1.407 GB, free: 78.44 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/6.561, allocations: 29.73 MB / 1.436 GB, free: 74.14 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02518/6.587, allocations: 9.319 MB / 1.445 GB, free: 72.98 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01528/6.602, allocations: 2.045 MB / 1.447 GB, free: 72.76 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01517/6.617, allocations: 5.261 MB / 1.452 GB, free: 72.75 MB / 490.8 MB Notification: Performance of SimCode: time 2.735e-06/6.617, allocations: 0 / 1.452 GB, free: 72.75 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8883/7.505, allocations: 232.5 MB / 1.679 GB, free: 51.41 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/7.506, allocations: 206.4 kB / 1.679 GB, free: 51.2 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/18.11, allocations: 0.8438 kB / 1.679 GB, free: 51.2 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat