/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 = 10427
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1630.7+5221_weekly_bin855
RA = 247.682, Dec = 52.3543
tmin = 756086401, tmax = 756691201
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='60730011', job_status='RUN', time_executed='2024-12-24 03:55:56.900434', time_epoch_executed='1735041356.9' WHERE source_name='4FGL J1630.7+5221' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730011

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730011/ft1_4FGL_J1630.7+5221_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730011/ft1_4FGL_J1630.7+5221_weekly_bin855.fits outfile=/lscratch/kocevski/60730011/ft1_filteredMKT_4FGL_J1630.7+5221_weekly_bin855.fits ra=247.682 dec=52.3543 rad=12.0 tmin=756086401.0 tmax=756691201.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 3.03
user 2.63
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.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/60730011/ft1_filteredMKT_4FGL_J1630.7+5221_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.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.87
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 813

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730011/ltcube_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.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/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits
.....................!
real 12.50
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730011/ltcube_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits outfile=/lscratch/kocevski/60730011/expmap_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.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/60730011/ltcube_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits
.....................!
real 70.65
user 65.00
sys 4.03

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/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits outfile=/lscratch/kocevski/60730011/cmap_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.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.56
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits outfile=/lscratch/kocevski/60730011/cmap_HighResolution_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.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.53
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730011/Model_4FGL_J1630.7+5221_weekly_bin855.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/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits.....................!
real 28.55
user 27.21
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits', '/lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits', expMap='/lscratch/kocevski/60730011/expmap_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits', expCube='/lscratch/kocevski/60730011/ltcube_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730011/Model_4FGL_J1630.7+5221_weekly_bin855.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/60730011/ft1_filtered_4FGL_J1630.7+5221_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730011/ft2_4FGL_J1630.7+5221_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730011/expmap_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730011/ltcube_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730011/Model_4FGL_J1630.7+5221_weekly_bin855.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) = 8740.728533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0932       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10862E-04   1.0000          .0000       .10000E+07
     3 'norm      '    18.132       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11403E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .31517       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3350       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54961E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .70780E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27922E-07   1.0000          .0000       .10000E+07
    10 'norm      '    8.7769       1.0000          .0000       .10000E+07
    11 'norm      '    .14511E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93936E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1792       1.0000          .0000       .10000E+07
    14 'norm      '    .27411E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .17114E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35522E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6326       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22537E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    23.775       1.0000          .0000       .10000E+07
    20 'norm      '    .42017       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.0710       1.0000          .0000       .10000E+07
    22 'norm      '    .26812E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .22547       1.0000          .0000       .10000E+07
    24 'Prefactor '    14.283       1.0000          .0000       .10000E+07
    25 'norm      '    2.0512       1.0000          .0000       .10000E+07
    26 'Prefactor '    .61207E-06   1.0000          .0000       .10000E+07
    27 'Prefactor '    .83191E-04   1.0000          .0000       .10000E+07
    28 'norm      '    2.5105       1.0000          .0000       .10000E+07
    29 'Prefactor '    8.8342       1.0000          .0000       .10000E+07
    30 'Prefactor '    33.963       1.0000          .0000       .10000E+07
    31 'Prefactor '    .67064E-05   1.0000          .0000       .10000E+07
    32 'Normalizat'    .91117       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0285       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=   8740.705     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     3260 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0906        2.4531       -.24216E-06    .83991E-02
   2  Prefactor     .11102E-09    5.8372        .20234E-06** at limit **
   3  norm          18.146        7.5510        .40599E-07    .18811E-03
   4  Prefactor     .11485E-06    14.056       -.34380E-05** at limit **
   5  Prefactor     .20561E-05    25.217        .58979E-05** at limit **
   6  Prefactor     7.3358        4.6264       -.51849E-07    .17693E-02
   7  Prefactor     .38858E-08    9.7032       -.67010E-06** at limit **
   8  Prefactor      .0000        4.3018       -.79046E-08** at limit **
   9  Prefactor      .0000        .52195        .10397E-06** at limit **
  10  norm          8.7812        2.1558        .15126E-06    .11881E-01
  11  norm          .16653E-09    2.6723       -.13185E-06** at limit **
  12  Prefactor      .0000        2.1430        .15838E-06** at limit **
  13  Prefactor     1.1440        3.8730        .35705E-06   -.12405E-02
  14  norm          .12745E-06    12.372        .21469E-05** at limit **
  15  norm          .55511E-10    2.4374       -.13785E-06** at limit **
  16  Prefactor     .11102E-09    4.8546       -.51118E-06** at limit **
  17  Prefactor     1.6308        2.0415       -.14776E-06    .85603E-03
  18  Prefactor     .33668E-04    4.4901        .20941E-05** at limit **
  19  Prefactor     23.760        1.3453       -.11501E-06   -.25911E-02
  20  norm          .42045        .73668        .11960E-06   -.21206E-02
  21  Prefactor     5.0384        4.8276       -.78669E-07   -.50255E-03
  22  norm           .0000        .79185        .21238E-06** at limit **
  23  Prefactor     .24802        6.3654       -.18639E-05** at limit **
  24  Prefactor     14.267        6.6447       -.44131E-06    .56919E-02
  25  norm          2.0510        1.3650        .79804E-07   -.40065E-02
  26  Prefactor      .0000        .90617       -.38166E-07** at limit **
  27  Prefactor     .33862E-08    22.441        .91993E-06** at limit **
  28  norm          2.4852        3.4738        .16003E-07   -.44524E-03
  29  Prefactor     8.8613        4.2891        .17211E-07    .86601E-03
  30  Prefactor     32.837        10.231       -.20415E-06   -.20141E-01
  31  Prefactor     .24464E-06    77.932       -.35241E-05** at limit **
  32  Normalizat    .91125        .17842       -.29700E-06    .31522E-03
  33  Prefactor     1.0290        .17172       -.32761E-05    .32783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09063
  Prefactor  = 1.11022e-10
  norm       = 18.1462
  Prefactor  = 1.14853e-07
  Prefactor  = 2.05608e-06
  Prefactor  = 7.33576
  Prefactor  = 3.88578e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.78122
  norm       = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 1.14396
  norm       = 1.27454e-07
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 1.63084
  Prefactor  = 3.36683e-05
  Prefactor  = 23.7595
  norm       = 0.420447
  Prefactor  = 5.0384
  norm       = 0
  Prefactor  = 0.248015
  Prefactor  = 14.2672
  norm       = 2.05103
  Prefactor  = 0
  Prefactor  = 3.38618e-09
  norm       = 2.48523
  Prefactor  = 8.86134
  Prefactor  = 32.837
  Prefactor  = 2.44638e-07
  Normalizat = 0.91125
  Prefactor  = 1.02904
 **********
 **   18 **HESSE 
 **********

 FCN=   8740.705     FROM HESSE     STATUS=OK           779 CALLS     4039 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0906        2.4598        .49806E-03   -1.5668    
   2  Prefactor     .11102E-09    5.8334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.146        7.5487        .23493E-03   -1.5623    
   4  Prefactor     .11485E-06    17.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20561E-05    63.518        .10006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3358        4.6299        .37010E-03   -1.5654    
   7  Prefactor     .38858E-08    9.8040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        4.3262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .52233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.7812        10.206        .33809E-03   -1.5649    
  11  norm          .16653E-09    2.6760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1440        3.9313        .10529E-02   -1.5687    
  14  norm          .12745E-06    15.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    2.4385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    4.9046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6308        2.0656        .82718E-03   -1.5682    
  18  Prefactor     .33668E-04    4.3389        .12538E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.760        18.663        .20514E-03   -1.5610    
  20  norm          .42045        .75806        .87186E-03   -1.5695    
  21  Prefactor     5.0384        4.8923        .44627E-03   -1.5663    
  22  norm           .0000        .30148        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .24802        3.0469        .84685E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.267        8.7020        .26477E-03   -1.5632    
  25  norm          2.0510        1.3741        .72148E-03   -1.5679    
  26  Prefactor      .0000        .90552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .33862E-08    22.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.4852        3.4902        .64460E-03   -1.5676    
  29  Prefactor     8.8613        4.3754        .33699E-03   -1.5648    
  30  Prefactor     32.837        42.164        .17161E-03   -1.5593    
  31  Prefactor     .24464E-06    82.690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91125        .15401        .45044E-01   -.96066    
  33  Prefactor     1.0290        .14742        .41380E-01   -.91768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14315e-07
Minuit parameter uncertainties:
  1  2.45985
  2  5.02871e-05
  3  7.54875
  4  0.00282555
  5  0.022856
  6  4.62994
  7  0.00039138
  8  7.50483e-07
  9  4.04324e-06
  10  10.2063
  11  4.14678e-05
  12  1.19693e-05
  13  3.93134
  14  0.00279918
  15  2.20828e-05
  16  4.64386e-05
  17  2.06564
  18  0.0241731
  19  18.6634
  20  0.758062
  21  4.89231
  22  4.0289e-06
  23  1.73858
  24  8.70205
  25  1.37406
  26  3.86412e-07
  27  0.000554614
  28  3.49016
  29  4.37538
  30  42.1642
  31  0.00899499
  32  0.154085
  33  0.147482
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  8.781e+00  1.021e+01  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.029e+00  1.475e-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.112e-01  1.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 247.682 52.354
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 9.39e-09 +/- 1.09e-08
Energy Flux (Fixed Index): 6.73e-06 +/- 7.82e-06

TS (Fixed Index): 1.89
Ra Dec: 247.682 52.354
Photon Flux Upper Limit: 4.38826740508e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14582103867e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730011/likelihoodResults_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.txt

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) = 8740.70315781
delta logL = 0.0013530183769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8740.70314698
delta logL = 0.00136385596852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7456       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9928       1.0000          .0000       5.0000    
     3 'Normalizat'    .91067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0292       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.

 FCN=   8740.703     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7289        488.25        .33870E-03   -.25107E-04
   2  alpha         1.9908        3.3072        .42276        .20067E-04
   3  Normalizat    .91081        .86700E-01    .45038E-01    .20398E-04
   4  Prefactor     1.0291        .64378E-01    .41322E-01    .91461E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.72886
  alpha      = 1.99081
  Normalizat = 0.910814
  Prefactor  = 1.02914
 **********
 **   18 **HESSE 
 **********

 FCN=   8740.703     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7289        10.259        .13548E-04   -1.5649    
   2  alpha         1.9908        .83225        .23738E-01   -.20511    
   3  Normalizat    .91081        .17276        .25490E-03   -.96081    
   4  Prefactor     1.0291        .16952        .23567E-03   -.91764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37015e-10
Minuit parameter uncertainties:
  1  10.2589
  2  0.849187
  3  0.172862
  4  0.169606
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) = 8740.7031419
delta logL = 0.00136893580384

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  8.729e+00  1.026e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        alpha:  1.991e+00  8.492e-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.029e+00  1.696e-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.108e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 247.682 52.354
Photon Index (Free Index): 1.99 +/- 0.85
Photon Flux (Free Index): 9.92e-09 +/- 1.49e-08
Energy Flux (Free Index): 6.49e-06 +/- 8.92e-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/60730011/cmap_HighResolution_756086401_756691201_4FGL_J1630.7+5221_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', photon_flux='9.39e-09', energy_flux2='6.49e-06', photon_flux_error='1.09e-08', dlogl='1.37e-03', energy_flux='6.73e-06', photon_flux2='9.92e-09', job_status='DONE', time_completed='2024-12-24 04:04:44.841187', photon_index_error2='0.85', photon_index2='1.99', ts='1.89', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='4.39e-08', energy_flux_error2='8.92e-06', EG='0.91', time_epoch_completed='1735041884.84', return_code='0', job_id='60730011', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='7.82e-06', photon_flux_error2='1.49e-08', ts2='1.89', photon_index='1.95' WHERE bin_id='855' AND source_name='4FGL J1630.7+5221' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:04:45 PST 2024

