Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-05,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|aimsE.i_0_r|aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.235e-05/5.238e-05, allocations: 7.984 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08565, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.03201/0.1177, allocations: 17.81 MB / 284.7 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.136, allocations: 5.705 MB / 290.4 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006074/0.1421, allocations: 175.4 kB / 290.6 MB, free: 9.363 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006833/0.149, allocations: 1.119 MB / 291.7 MB, free: 8.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.1596, allocations: 1.725 MB / 293.4 MB, free: 6.508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004869/0.1645, allocations: 0.8944 MB / 294.3 MB, free: 5.613 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01245/0.177, allocations: 4.325 MB / 298.7 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2724/0.4494, allocations: 3.65 MB / 302.3 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006837/0.4563, allocations: 2.15 MB / 304.5 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007983/0.4644, allocations: 2.763 MB / 307.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004678/0.4691, allocations: 461.1 kB / 307.7 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003224/0.4724, allocations: 281.8 kB / 307.9 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004374/0.4768, allocations: 1.601 MB / 309.5 MB, free: 5.273 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00421/0.4811, allocations: 0.6411 MB / 310.2 MB, free: 5.273 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01799/0.4991, allocations: 11.38 MB / 321.6 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4992, allocations: 0 / 321.6 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd: time 4.359e-06/0.4992, allocations: 64 / 321.6 MB, free: 0 / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005664/0.4998, allocations: 0 / 321.6 MB, free: 0 / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02845/0.5283, allocations: 6.724 MB / 328.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.5283, allocations: 11.03 kB / 328.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008499/0.5368, allocations: 1.068 MB / 329.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/0.5538, allocations: 4.653 MB / 334 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007839/0.5546, allocations: 491 kB / 334.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002978/0.5576, allocations: 0.646 MB / 335.2 MB, free: 7.543 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03368/0.5913, allocations: 8.897 MB / 344 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000357/0.5918, allocations: 11.91 kB / 344.1 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002418/0.5942, allocations: 266.7 kB / 344.3 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004191/0.5947, allocations: 280.8 kB / 344.6 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02717/0.6218, allocations: 7.486 MB / 352.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08278/0.7047, allocations: 27.98 MB / 380.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/0.7178, allocations: 6.1 MB / 386.2 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007935/0.7187, allocations: 154.8 kB / 386.3 MB, free: 6.758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.378e-05/0.7188, allocations: 69.08 kB / 386.4 MB, free: 6.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=319): time 6.422e-06/0.7188, allocations: 4 kB / 386.4 MB, free: 6.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=338): time 0.06264/0.7814, allocations: 16.4 MB / 402.8 MB, free: 5.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.7816, allocations: 90 kB / 402.9 MB, free: 5.703 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009887/0.7915, allocations: 3.423 MB / 406.3 MB, free: 2.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008261/0.7924, allocations: 85.7 kB / 406.4 MB, free: 2.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003224/0.7956, allocations: 2.687 MB / 409.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002063/0.7977, allocations: 1.132 MB / 410.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004481/0.7982, allocations: 76 kB / 410.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004014/0.7986, allocations: 470.8 kB / 410.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00593/0.8046, allocations: 1.901 MB / 412.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007058/0.8117, allocations: 2.79 MB / 415.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/0.8191, allocations: 2.33 MB / 417.7 MB, free: 6.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.974e-05/0.8192, allocations: 8 kB / 417.8 MB, free: 6.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.02066/0.8399, allocations: 6.153 MB / 423.9 MB, free: 372 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/0.84, allocations: 23.95 kB / 423.9 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.252e-05/0.8401, allocations: 28 kB / 424 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005466/0.8456, allocations: 1.276 MB / 425.2 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006958/0.8526, allocations: 0.834 MB / 426.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2818/1.134, allocations: 21.19 MB / 447.3 MB, free: 109.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005479/1.14, allocations: 199.5 kB / 447.5 MB, free: 109.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009786/1.141, allocations: 146.5 kB / 447.6 MB, free: 109.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 411 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00712/1.148, allocations: 2.13 MB / 449.7 MB, free: 108.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/1.15, allocations: 447.7 kB / 450.2 MB, free: 108.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02028/1.17, allocations: 6.176 MB / 456.3 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-05/1.17, allocations: 31.22 kB / 456.4 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001075/1.17, allocations: 16.31 kB / 456.4 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/1.17, allocations: 17.09 kB / 456.4 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03822/1.209, allocations: 12.91 MB / 469.3 MB, free: 100.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.385e-05/1.209, allocations: 3.844 kB / 469.3 MB, free: 100.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004285/1.213, allocations: 488.5 kB / 469.8 MB, free: 100.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006794/1.22, allocations: 1.624 MB / 471.4 MB, free: 99.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007674/1.221, allocations: 80.25 kB / 471.5 MB, free: 99.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03864/1.259, allocations: 30.78 MB / 0.4905 GB, free: 70.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.26, allocations: 4 kB / 0.4905 GB, free: 70.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0231/1.283, allocations: 9.294 MB / 0.4996 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003717/1.286, allocations: 0.9164 MB / 0.5005 GB, free: 60.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/1.288, allocations: 68 kB / 0.5005 GB, free: 60.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004971/1.293, allocations: 211.8 kB / 0.5007 GB, free: 60.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/1.295, allocations: 278 kB / 0.501 GB, free: 60.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004484/1.295, allocations: 91.98 kB / 0.5011 GB, free: 59.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006871/1.302, allocations: 2.619 MB / 0.5037 GB, free: 57.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.302, allocations: 2.078 kB / 0.5037 GB, free: 57.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007702/1.31, allocations: 1.311 MB / 0.5049 GB, free: 56.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001173/1.311, allocations: 245.7 kB / 0.5052 GB, free: 55.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01491/1.326, allocations: 6.397 MB / 0.5114 GB, free: 49.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/1.326, allocations: 0.9375 kB / 0.5114 GB, free: 49.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01129/1.337, allocations: 4.885 MB / 0.5162 GB, free: 44.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0101/1.348, allocations: 1.234 MB / 0.5174 GB, free: 42.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03286/1.38, allocations: 15.41 MB / 0.5324 GB, free: 27.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008362/1.389, allocations: 4.424 MB / 0.5368 GB, free: 22.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/1.391, allocations: 291.4 kB / 0.537 GB, free: 22.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/1.391, allocations: 4 kB / 0.537 GB, free: 22.6 MB / 362.7 MB Notification: Performance of Templates: time 1.965/3.356, allocations: 0.5657 GB / 1.103 GB, free: 38.71 MB / 394.7 MB