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


Performing analysis on: 4FGL_J1615.6+4712_weekly_bin854
RA = 243.922, Dec = 47.2028
tmin = 755481601, tmax = 756086401
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='60352423', job_status='RUN', time_executed='2024-12-17 00:51:55.062540', time_epoch_executed='1734425515.06' WHERE source_name='4FGL J1615.6+4712' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352423

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352423/ft1_4FGL_J1615.6+4712_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352423/ft1_4FGL_J1615.6+4712_weekly_bin854.fits outfile=/lscratch/kocevski/60352423/ft1_filteredMKT_4FGL_J1615.6+4712_weekly_bin854.fits ra=243.922 dec=47.2028 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.98
user 4.37
sys 0.41

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.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/60352423/ft1_filteredMKT_4FGL_J1615.6+4712_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.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.57
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352423/ltcube_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.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/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits
.....................!
real 17.53
user 16.19
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352423/ltcube_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits outfile=/lscratch/kocevski/60352423/expmap_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.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/60352423/ltcube_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits
.....................!
real 73.39
user 66.82
sys 4.90

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1615.6+4712 @ 243.922 47.2028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits outfile=/lscratch/kocevski/60352423/cmap_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.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=243.922 yref=47.2028 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.44
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits outfile=/lscratch/kocevski/60352423/cmap_HighResolution_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.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=243.922 yref=47.2028 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.44
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352423/Model_4FGL_J1615.6+4712_weekly_bin854.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/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits.....................!
real 40.85
user 38.78
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits', '/lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits', expMap='/lscratch/kocevski/60352423/expmap_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits', expCube='/lscratch/kocevski/60352423/ltcube_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352423/Model_4FGL_J1615.6+4712_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1615.6+4712'

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.421e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352423/ft1_filtered_4FGL_J1615.6+4712_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352423/ft2_4FGL_J1615.6+4712_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352423/expmap_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352423/ltcube_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352423/Model_4FGL_J1615.6+4712_weekly_bin854.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) = 14192.1955739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3248       1.0000          .0000       .10000E+07
     2 'Prefactor '    .86725E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10389E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.2544       1.0000          .0000       .10000E+07
     5 'norm      '    .16253E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14975E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .31235E-02   1.0000          .0000       .10000E+07
     8 'norm      '    28.545       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.684       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.6251       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.8878       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2400       1.0000          .0000       .10000E+07
    13 'Prefactor '    .86692E-05   1.0000          .0000       .10000E+07
    14 'norm      '    6.4540       1.0000          .0000       .10000E+07
    15 'norm      '    .71609E-08   1.0000          .0000       .10000E+07
    16 'norm      '    .13500E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .60058E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.9717       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32817E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .23419E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .90578       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.8315       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12945E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .66330E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    6.3389       1.0000          .0000       .10000E+07
    26 'norm      '    1.4998       1.0000          .0000       .10000E+07
    27 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    28 'Prefactor '    5.2575       1.0000          .0000       .10000E+07
    29 'norm      '    .54141       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1127       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14190.15     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1761 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3307        1.6856        .33303E-07    .13680E-03
   2  Prefactor     .68667E-07    2.4615       -.15894E-06** at limit **
   3  Prefactor     .34972E-08    2.2719       -.73790E-07** at limit **
   4  Prefactor     5.1709        6.8330        .15821E-07   -.11967E-02
   5  norm          .17947E-06    8.1247        .20972E-06** at limit **
   6  Prefactor     .18707E-07    2.4421       -.58326E-07** at limit **
   7  Prefactor     .99520E-06    2.5717        .91699E-07** at limit **
   8  norm          28.613        6.3530        .28950E-08    .38356E-03
   9  Prefactor     11.391        41.801       -.11158E-05   -.45648E-02
  10  Prefactor     4.6555        4.1235        .16502E-07    .31857E-02
  11  Prefactor     5.5393        17.292        .68348E-06   -.21054E-01
  12  Prefactor     4.2370        3.6605        .12730E-06    .79733E-03
  13  Prefactor      .0000        .75519        .17471E-07** at limit **
  14  norm          6.4455        1.1117       -.59313E-08   -.15726E-02
  15  norm           .0000        .35413E-01   -.17884E-07** at limit **
  16  norm          .77993E-07    2.4028        .64642E-07** at limit **
  17  Prefactor     .37947E-06    3.0699       -.37786E-07** at limit **
  18  Prefactor     3.9763        2.3976       -.44493E-07   -.51413E-03
  19  Prefactor     .11380E-07    4.1511       -.98382E-07** at limit **
  20  norm          .20539E-07    3.6436        .10570E-06** at limit **
  21  Prefactor     .90662        1.2296        .78867E-07    .26193E-02
  22  Prefactor     3.8316        1.4267        .11988E-07    .36549E-02
  23  Prefactor      .0000        .94551        .14425E-06** at limit **
  24  Prefactor      .0000        .87886        .37585E-07** at limit **
  25  Prefactor     6.3417        5.1171       -.56641E-07   -.57261E-03
  26  norm          1.4998        .86492       -.62968E-07   -.25473E-02
  27  norm           .0000        .13770       -.38090E-07** at limit **
  28  Prefactor     5.2501        4.5767       -.62137E-07   -.11970E-03
  29  norm          .54158        .41751        .26704E-07    .63092E-03
  30  Normalizat    1.1129        .14038       -.14081E-05   -.39104E-04
  31  Prefactor     .78383        .13123        .10106E-05   -.24072E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33069
  Prefactor  = 6.86673e-08
  Prefactor  = 3.4972e-09
  Prefactor  = 5.17093
  norm       = 1.79468e-07
  Prefactor  = 1.87073e-08
  Prefactor  = 9.95204e-07
  norm       = 28.6131
  Prefactor  = 11.391
  Prefactor  = 4.65554
  Prefactor  = 5.53934
  Prefactor  = 4.237
  Prefactor  = 0
  norm       = 6.44547
  norm       = 0
  norm       = 7.79932e-08
  Prefactor  = 3.79474e-07
  Prefactor  = 3.97632
  Prefactor  = 1.13798e-08
  norm       = 2.05391e-08
  Prefactor  = 0.906625
  Prefactor  = 3.83157
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.34171
  norm       = 1.49983
  norm       = 0
  Prefactor  = 5.25008
  norm       = 0.541575
  Normalizat = 1.11291
  Prefactor  = 0.783834
 **********
 **   18 **HESSE 
 **********

 FCN=   14190.15     FROM HESSE     STATUS=OK           686 CALLS     2447 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3307        1.7234        .95482E-03   -1.5685    
   2  Prefactor     .68667E-07    2.7123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34972E-08    4.8212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1709        6.8804        .43826E-03   -1.5662    
   5  norm          .17947E-06    8.7216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18707E-07    4.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99520E-06    7.8817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.613        6.3576        .18720E-03   -1.5601    
   9  Prefactor     11.391        41.905        .30628E-03   -1.5640    
  10  Prefactor     4.6555        4.2612        .46776E-03   -1.5665    
  11  Prefactor     5.5393        18.362        .41363E-03   -1.5661    
  12  Prefactor     4.2370        3.6957        .48911E-03   -1.5667    
  13  Prefactor      .0000        .75126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4455        8.4433        .39482E-03   -1.5657    
  15  norm           .0000        .20189E-01    .87959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .77993E-07    2.6683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37947E-06    5.8906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9763        2.4030        .50587E-03   -1.5668    
  19  Prefactor     .11380E-07    4.1267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20539E-07    6.3269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .90662        1.2329        .45362E-03   -1.5689    
  22  Prefactor     3.8316        1.4167        .51536E-03   -1.5669    
  23  Prefactor      .0000        .93139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        .86999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.3417        5.1242        .39844E-03   -1.5658    
  26  norm          1.4998        .86757        .87411E-03   -1.5683    
  27  norm           .0000        .13647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.2501        4.6109        .43813E-03   -1.5662    
  29  norm          .54158        .42883        .74648E-03   -1.5693    
  30  Normalizat    1.1129        .12120        .37507E-01   -.89338    
  31  Prefactor     .78383        .11365        .43509E-01   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42514e-07
Minuit parameter uncertainties:
  1  1.7234
  2  0.000863244
  3  0.000260244
  4  6.88045
  5  0.00250205
  6  0.000596535
  7  0.00560147
  8  6.35758
  9  41.9062
  10  4.26121
  11  18.3626
  12  3.69569
  13  6.49592e-07
  14  8.44331
  15  4.88321e-08
  16  0.000912436
  17  0.00299018
  18  2.40299
  19  0.000433662
  20  0.000720921
  21  1.23286
  22  1.41665
  23  8.0066e-06
  24  2.70063e-06
  25  5.12416
  26  0.867565
  27  2.79952e-07
  28  4.61086
  29  0.42883
  30  0.121226
  31  0.113689
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  4.656e+00  4.261e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  7.838e-01  1.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.113e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.11
Ra Dec: 243.922 47.203
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 9.58e-06 +/- 8.77e-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) = 14189.9209472
delta logL = 0.226613969004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14189.9010908
delta logL = 0.246470361359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6994       1.0000          .0000       .10000E+07
     2 'Index     '    1.5008       1.0000          .0000       10.000    
     3 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14189.90     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      209 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7015        4.8114         .0000       -.82952E-01
   2  Index         1.5012        .74826         .0000       -.13122E-03
   3  Normalizat    1.1305        .11809         .0000        .89810E-04
   4  Prefactor     .77707        .11319         .0000        .93086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70148
  Index      = 1.50119
  Normalizat = 1.13045
  Prefactor  = 0.777075
 **********
 **   18 **HESSE 
 **********

 FCN=   14189.90     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7015        4.4117        .10334E-03   -1.5669    
   2  Index         1.5012        .82007        .16976E-01   -.77506    
   3  Normalizat    1.1305        .13270        .22909E-03   -.88780    
   4  Prefactor     .77707        .12968        .26422E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29434e-10
Minuit parameter uncertainties:
  1  4.41174
  2  0.827454
  3  0.132742
  4  0.129731
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) = 14189.9010902
delta logL = 0.246470979939

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  3.701e+00  4.412e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.501e+00  8.275e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  7.771e-01  1.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.130e+00  1.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.60
Ra Dec: 243.922 47.203
Photon Index (Free Index): 1.50 +/- 0.83
Photon Flux (Free Index): 5.31e-09 +/- 1.01e-08
Energy Flux (Free Index): 1.67e-05 +/- 2.43e-05

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/60352423/cmap_HighResolution_755481601_756086401_4FGL_J1615.6+4712_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='1.67e-05', photon_flux_error='1.91e-08', dlogl='2.46e-01', energy_flux='9.58e-06', photon_flux2='5.31e-09', job_status='DONE', time_completed='2024-12-17 01:00:43.630004', photon_index_error2='0.83', photon_index2='1.50', ts='9.11', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.11', time_epoch_completed='1734426043.63', return_code='0', job_id='60352423', GAL2='0.78', EG2='1.13', return_code2='0', energy_flux_error='8.77e-06', photon_flux_error2='1.01e-08', ts2='9.60', photon_index='2.19' WHERE bin_id='854' AND source_name='4FGL J1615.6+4712' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:00:43 PST 2024

