Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.568e-05, allocations: 8 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 38.77 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02953/0.1444, allocations: 15.26 MB / 282.2 MB, free: 1.805 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.1583, allocations: 4.86 MB / 287 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.162, allocations: 151.5 kB / 287.2 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004099/0.1661, allocations: 0.897 MB / 288.1 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006936/0.1731, allocations: 1.413 MB / 289.5 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00389/0.177, allocations: 0.7797 MB / 290.3 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.008647/0.1857, allocations: 3.016 MB / 293.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005901/0.1917, allocations: 2.799 MB / 296.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003767/0.1955, allocations: 1.504 MB / 297.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004967/0.2005, allocations: 1.958 MB / 299.5 MB, free: 368 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2268/0.4274, allocations: 368.4 kB / 299.9 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001939/0.4294, allocations: 191.6 kB / 300.1 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002933/0.4324, allocations: 1.157 MB / 301.2 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002686/0.4351, allocations: 456.2 kB / 301.7 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.4488, allocations: 8.071 MB / 309.8 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4489, allocations: 0 / 309.8 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.759e-06/0.4489, allocations: 0 / 309.8 MB, free: 6.496 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0004005/0.4493, allocations: 5.031 kB / 309.8 MB, free: 6.496 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02119/0.4705, allocations: 4.982 MB / 314.7 MB, free: 3.789 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.4706, allocations: 8.25 kB / 314.8 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006226/0.4768, allocations: 0.7993 MB / 315.6 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009762/0.4866, allocations: 3.043 MB / 318.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004779/0.4871, allocations: 371.6 kB / 319 MB, free: 2.332 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.4892, allocations: 494.9 kB / 319.4 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02214/0.5114, allocations: 6.406 MB / 325.8 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000242/0.5117, allocations: 12 kB / 325.9 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001611/0.5133, allocations: 202.1 kB / 326.1 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003165/0.5137, allocations: 226 kB / 326.3 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02039/0.5341, allocations: 5.318 MB / 331.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06583/0.5999, allocations: 19.96 MB / 351.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008858/0.6089, allocations: 4.001 MB / 355.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006067/0.6095, allocations: 139.2 kB / 355.7 MB, free: 6.855 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.301e-05/0.6096, allocations: 52.56 kB / 355.7 MB, free: 6.797 MB / 282.7 MB Notification: Performance of pre-optimization done (n=212): time 5.29e-06/0.6096, allocations: 0 / 355.7 MB, free: 6.797 MB / 282.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=257): time 0.05584/0.6655, allocations: 13.06 MB / 368.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.6656, allocations: 87.11 kB / 368.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00704/0.6727, allocations: 2.374 MB / 371.3 MB, free: 7.016 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006325/0.6733, allocations: 65.7 kB / 371.3 MB, free: 6.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/0.6759, allocations: 2.099 MB / 373.4 MB, free: 4.836 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001647/0.6776, allocations: 0.8772 MB / 374.3 MB, free: 3.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003782/0.678, allocations: 72 kB / 374.4 MB, free: 3.895 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003616/0.6784, allocations: 429.3 kB / 374.8 MB, free: 3.465 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004776/0.6832, allocations: 1.408 MB / 376.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005755/0.689, allocations: 2.257 MB / 378.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005898/0.695, allocations: 1.804 MB / 380.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-05/0.695, allocations: 12 kB / 380.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01594/0.711, allocations: 4.761 MB / 385 MB, free: 8.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/0.7111, allocations: 16 kB / 385.1 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.33e-05/0.7112, allocations: 31.98 kB / 385.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00396/0.7151, allocations: 0.9088 MB / 386 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005473/0.7207, allocations: 0.6705 MB / 386.7 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02585/0.7466, allocations: 13.29 MB / 399.9 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004406/0.751, allocations: 179.7 kB / 400.1 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008391/0.7519, allocations: 128 kB / 400.2 MB, free: 9.164 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (337): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(6,75.0%) 34,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005468/0.7574, allocations: 1.514 MB / 401.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/0.7586, allocations: 324 kB / 402.1 MB, free: 7.359 MB / 330.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/0.7737, allocations: 4.394 MB / 406.5 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/0.7738, allocations: 24 kB / 406.5 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/0.7739, allocations: 12 kB / 406.5 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.032e-05/0.7739, allocations: 11.95 kB / 406.5 MB, free: 2.816 MB / 330.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/0.8051, allocations: 9.692 MB / 416.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.953e-05/0.8051, allocations: 4 kB / 416.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003914/0.8091, allocations: 422 kB / 416.6 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/0.8134, allocations: 0.9353 MB / 417.6 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005895/0.814, allocations: 67.97 kB / 417.6 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02833/0.8424, allocations: 16.11 MB / 433.7 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.168e-05/0.8424, allocations: 11.94 kB / 433.8 MB, free: 6.637 MB / 362.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3113/1.154, allocations: 6.764 MB / 440.5 MB, free: 118.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002903/1.157, allocations: 0.6791 MB / 441.2 MB, free: 118.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/1.158, allocations: 61.31 kB / 441.3 MB, free: 118.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003774/1.162, allocations: 141.4 kB / 441.4 MB, free: 118.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009133/1.163, allocations: 193.2 kB / 441.6 MB, free: 118.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003102/1.163, allocations: 81.41 kB / 441.7 MB, free: 118.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006772/1.17, allocations: 1.806 MB / 443.5 MB, free: 118.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.263e-06/1.17, allocations: 0 / 443.5 MB, free: 118.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008766/1.179, allocations: 0.9619 MB / 444.4 MB, free: 118.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 13 (vfController.x,smrM.is[3],smrM.inertiaRotor.w,smrM.stator.zeroInductor.i0,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 7 {(3,100.0%) 11,(1,100.0%) 3,(8,50.0%) 32,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001255/1.18, allocations: 209.6 kB / 444.6 MB, free: 118.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.02899/1.209, allocations: 4.598 MB / 449.2 MB, free: 117.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/1.209, allocations: 6.469 kB / 449.2 MB, free: 117.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0144/1.224, allocations: 2.925 MB / 452.2 MB, free: 115.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009882/1.234, allocations: 0.7702 MB / 452.9 MB, free: 115.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0401/1.274, allocations: 11.43 MB / 464.4 MB, free: 109.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009419/1.283, allocations: 3.34 MB / 467.7 MB, free: 108 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002234/1.286, allocations: 229.1 kB / 467.9 MB, free: 107.9 MB / 362.7 MB Notification: Performance of SimCode: time 2.335e-06/1.286, allocations: 0 / 467.9 MB, free: 107.9 MB / 362.7 MB Notification: Performance of Templates: time 0.6738/1.96, allocations: 219.7 MB / 0.6715 GB, free: 17.89 MB / 362.7 MB