/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1630.7+5221_weekly_bin906
RA = 247.682, Dec = 52.3543
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17379915', job_status='RUN', time_executed='2025-12-16 02:50:30.011770', time_epoch_executed='1765882230.01' WHERE source_name='4FGL J1630.7+5221' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379915

Creating custom pfile directory:
/lscratch/kocevski/17379915/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17379915/ft1_4FGL_J1630.7+5221_weekly_bin906.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379915/ft1_4FGL_J1630.7+5221_weekly_bin906.fits outfile=/lscratch/kocevski/17379915/ft1_filteredMKT_4FGL_J1630.7+5221_weekly_bin906.fits ra=247.682 dec=52.3543 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.57
user 4.71
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17379915/ft1_filteredMKT_4FGL_J1630.7+5221_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.89
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1687

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379915/ltcube_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits
.....................!
real 17.15
user 16.39
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379915/ltcube_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits outfile=/lscratch/kocevski/17379915/expmap_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17379915/ltcube_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits
.....................!
real 65.04
user 60.71
sys 3.39

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1630.7+5221 @ 247.682 52.3543

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits outfile=/lscratch/kocevski/17379915/cmap_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=247.682 yref=52.3543 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.93
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits outfile=/lscratch/kocevski/17379915/cmap_HighResolution_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=247.682 yref=52.3543 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.98
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379915/Model_4FGL_J1630.7+5221_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits.....................!
real 47.82
user 45.73
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits', '/lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits', expMap='/lscratch/kocevski/17379915/expmap_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits', expCube='/lscratch/kocevski/17379915/ltcube_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379915/Model_4FGL_J1630.7+5221_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1630.7+5221'

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  9.141e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379915/ft1_filtered_4FGL_J1630.7+5221_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379915/ft2_4FGL_J1630.7+5221_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379915/expmap_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379915/ltcube_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379915/Model_4FGL_J1630.7+5221_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18004.1689282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18004.1392814

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0968       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15384E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.0209       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.216       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13052E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4865       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.141       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32503E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32535E-06   1.0000          .0000       .10000E+07
    10 'norm      '    10.353       1.0000          .0000       .10000E+07
    11 'norm      '    .61929E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.2774       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.0135       1.0000          .0000       .10000E+07
    14 'norm      '    3.1585       1.0000          .0000       .10000E+07
    15 'norm      '    7.1188       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.1373       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36124E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17375E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11572E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .32752E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15613E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .43285       1.0000          .0000       .10000E+07
    23 'Prefactor '    .20203E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .37591E-04   1.0000          .0000       .10000E+07
    25 'norm      '    2.3349       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.1331       1.0000          .0000       .10000E+07
    27 'Prefactor '    .11150E-02   1.0000          .0000       .10000E+07
    28 'norm      '    6.9399       1.0000          .0000       .10000E+07
    29 'Prefactor '    30.004       1.0000          .0000       .10000E+07
    30 'Prefactor '    22.201       1.0000          .0000       .10000E+07
    31 'Prefactor '    .98826E-02   1.0000          .0000       .10000E+07
    32 'Normalizat'    .95032       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18004.14     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     3245 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0976        1.5667        .20378E-07    .41634E-02
   2  Prefactor      .0000        2.2141        .65842E-06** at limit **
   3  norm          1.0234        3.4424        .15959E-07   -.29578E-03
   4  Prefactor     13.154        1.7471       -.16921E-06    .30379E-01
   5  Prefactor     .10586E-06    5.8858        .10500E-06** at limit **
   6  Prefactor     9.5164        4.0366       -.56670E-07   -.94282E-02
   7  Prefactor     10.034        2.0130       -.17890E-06    .27145E-01
   8  Prefactor     .72164E-09    1.0813        .40387E-06** at limit **
   9  Prefactor      .0000        .62956       -.59636E-07** at limit **
  10  norm          10.353        1.0311        .50025E-08   -.41415E-03
  11  norm          .78271E-08    1.9836       -.18087E-06** at limit **
  12  Prefactor     1.2778        2.2081       -.17414E-08   -.34884E-02
  13  Prefactor     4.0272        3.9380        .17804E-08   -.82445E-02
  14  norm          3.1911        1.7127        .32283E-06   -.13877E-01
  15  norm          7.1048        4.6998       -.21159E-06   -.94219E-02
  16  Prefactor     1.1377        1.1889       -.12316E-07   -.72752E-02
  17  Prefactor     .72164E-09    1.6262        .26162E-06** at limit **
  18  Prefactor     .21094E-08    1.7308       -.49717E-06** at limit **
  19  Prefactor      .0000        4.7452       -.12956E-06** at limit **
  20  norm           .0000        .16196        .28770E-07** at limit **
  21  Prefactor     .38303E-08    1.1322       -.48464E-06** at limit **
  22  norm          .43297        .37287       -.82040E-08   -.58611E-02
  23  Prefactor     .99920E-09    1.0400       -.21620E-06** at limit **
  24  Prefactor     .14655E-07    1.6622        .71048E-06** at limit **
  25  norm          2.3347        1.0291       -.50814E-08    .30938E-01
  26  Prefactor     5.1312        2.4886       -.14362E-08    .97785E-03
  27  Prefactor     .81379E-07    5.6144        .41636E-06** at limit **
  28  norm          6.9520        3.7542        .50453E-07    .17900E-02
  29  Prefactor     30.012        3.0832       -.19986E-07   -.26541E-02
  30  Prefactor     21.980        2.9175       -.21244E-06    .81982E-01
  31  Prefactor     .12546E-07    17.331        .23322E-06** at limit **
  32  Normalizat    .95029        .12675       -.95115E-06   -.28753E-03
  33  Prefactor     1.0185        .12011        .74231E-06   -.24932E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09763
  Prefactor  = 0
  norm       = 1.02338
  Prefactor  = 13.1544
  Prefactor  = 1.0586e-07
  Prefactor  = 9.51644
  Prefactor  = 10.0339
  Prefactor  = 7.21645e-10
  Prefactor  = 0
  norm       = 10.3528
  norm       = 7.82707e-09
  Prefactor  = 1.27783
  Prefactor  = 4.02725
  norm       = 3.19107
  norm       = 7.10476
  Prefactor  = 1.13768
  Prefactor  = 7.21645e-10
  Prefactor  = 2.10942e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.83027e-09
  norm       = 0.43297
  Prefactor  = 9.99201e-10
  Prefactor  = 1.46549e-08
  norm       = 2.33468
  Prefactor  = 5.13123
  Prefactor  = 8.13793e-08
  norm       = 6.95202
  Prefactor  = 30.0125
  Prefactor  = 21.9804
  Prefactor  = 1.25455e-08
  Normalizat = 0.950286
  Prefactor  = 1.01846
 **********
 **   18 **HESSE 
 **********

 FCN=   18004.14     FROM HESSE     STATUS=OK           763 CALLS     4008 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0976        1.5724        .49784E-03   -1.5667    
   2  Prefactor      .0000        3.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0234        3.4810        .12770E-02   -1.5688    
   4  Prefactor     13.154        13.604        .27527E-03   -1.5635    
   5  Prefactor     .10586E-06    11.393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5164        6.4015        .32513E-03   -1.5646    
   7  Prefactor     10.034        21.370        .31440E-03   -1.5645    
   8  Prefactor     .72164E-09    1.4909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .62878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.353        7.8173        .31115E-03   -1.5644    
  11  norm          .78271E-08    2.2870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2778        2.2394        .98239E-03   -1.5685    
  13  Prefactor     4.0272        3.9529        .50315E-03   -1.5668    
  14  norm          3.1911        15.980        .57006E-03   -1.5672    
  15  norm          7.1048        5.2901        .37573E-03   -1.5655    
  16  Prefactor     1.1377        1.1998        .10914E-03   -1.5687    
  17  Prefactor     .72164E-09    .40624        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .21094E-08    2.8069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        4.7407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .16002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38303E-08    1.4063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .43297        .42620        .17299E-02   -1.5695    
  23  Prefactor     .99920E-09    1.7095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .14655E-07    2.0256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3347        1.0542        .67080E-04   -1.5677    
  26  Prefactor     5.1312        2.4934        .44351E-03   -1.5663    
  27  Prefactor     .81379E-07    11.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.9520        4.3875        .38059E-03   -1.5655    
  29  Prefactor     30.012        5.1031        .18259E-03   -1.5598    
  30  Prefactor     21.980        22.424        .21229E-03   -1.5614    
  31  Prefactor     .12546E-07    17.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95029        .10958        .45541E-01   -.94715    
  33  Prefactor     1.0185        .10285        .42302E-01   -.92117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63455e-07
Minuit parameter uncertainties:
  1  1.5724
  2  1.79765e-05
  3  3.48101
  4  13.6042
  5  0.00219624
  6  6.40149
  7  21.3705
  8  6.47754e-05
  9  7.94342e-06
  10  7.81728
  11  0.000267603
  12  2.2394
  13  3.95292
  14  14.2818
  15  5.29015
  16  1.19983
  17  3.4568e-05
  18  0.000152965
  19  1.91381e-05
  20  9.21111e-07
  21  0.000146369
  22  0.426195
  23  8.36644e-05
  24  0.000344754
  25  1.05417
  26  2.49343
  27  0.00193827
  28  4.38752
  29  5.10311
  30  22.4236
  31  0.000936607
  32  0.109605
  33  0.102873
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18004.1387257

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.035e+01  7.817e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.018e+00  1.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  9.503e-01  1.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 247.682 52.354
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 8.36e-09
Energy Flux (Fixed Index): 7.94e-06 +/- 5.99e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18004.0657553
delta logL = 0.0729704210025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18004.0639035
delta logL = 0.0748222705442

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.511       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3269       1.0000          .0000       5.0000    
     3 'Normalizat'    .94000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18004.06     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.515        7.8563        .12352E-04   -.78419E-03
   2  alpha         2.3279        .93272        .21038E-01   -.20420E-04
   3  Normalizat    .93999        .12620        .25591E-03   -.14878E-02
   4  Prefactor     1.0225        .11978        .23962E-03   -.81615E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5148
  alpha      = 2.32793
  Normalizat = 0.939991
  Prefactor  = 1.0225
 **********
 **   18 **HESSE 
 **********

 FCN=   18004.06     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.515        7.4736        .49407E-06   -1.5643    
   2  alpha         2.3279        .88692        .84151E-03   -.68882E-01
   3  Normalizat    .93999        .12568        .51181E-04   -.95069    
   4  Prefactor     1.0225        .11969        .47925E-04   -.91983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38845e-09
Minuit parameter uncertainties:
  1  7.47356
  2  0.906766
  3  0.125717
  4  0.11972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18004.0639004
delta logL = 0.0748253016391

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.051e+01  7.474e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        alpha:  2.328e+00  9.068e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  6.119e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.023e+00  1.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  9.400e-01  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 247.682 52.354
Photon Index (Free Index): 2.33 +/- 0.91
Photon Flux (Free Index): 2.00e-08 +/- 2.74e-08
Energy Flux (Free Index): 7.50e-06 +/- 4.90e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17379915/cmap_HighResolution_786931201_787536001_4FGL_J1630.7+5221_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='7.50e-06', photon_flux_error='8.36e-09', dlogl='7.48e-02', energy_flux='7.94e-06', photon_flux2='2.00e-08', job_status='DONE', time_completed='2025-12-16 03:07:45.842278', photon_index_error2='0.91', photon_index2='2.33', ts='6.16', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.90e-06', EG='0.95', time_epoch_completed='1765883265.84', return_code='0', job_id='17379915', GAL2='1.02', EG2='0.94', return_code2='0', energy_flux_error='5.99e-06', photon_flux_error2='2.74e-08', ts2='6.31', photon_index='1.95' WHERE bin_id='906' AND source_name='4FGL J1630.7+5221' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:07:46 PST 2025

