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


Performing analysis on: 4FGL_J1215.0+1656_weekly_bin858
RA = 183.774, Dec = 16.9372
tmin = 757900801, tmax = 758505601
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='61724754', job_status='RUN', time_executed='2025-01-14 02:56:12.377669', time_epoch_executed='1736852172.38' WHERE source_name='4FGL J1215.0+1656' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61724754

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61724754/ft1_4FGL_J1215.0+1656_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61724754/ft1_4FGL_J1215.0+1656_weekly_bin858.fits outfile=/lscratch/kocevski/61724754/ft1_filteredMKT_4FGL_J1215.0+1656_weekly_bin858.fits ra=183.774 dec=16.9372 rad=12.0 tmin=757900801.0 tmax=758505601.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.03
user 3.61
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.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/61724754/ft1_filteredMKT_4FGL_J1215.0+1656_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.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.45
user 0.23
sys 0.16

Number of photons that the gtmktime cut: 1380

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61724754/ltcube_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.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/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits
.....................!
real 22.29
user 21.65
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61724754/ltcube_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits outfile=/lscratch/kocevski/61724754/expmap_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.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/61724754/ltcube_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits
.....................!
real 75.12
user 70.23
sys 4.29

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

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits outfile=/lscratch/kocevski/61724754/cmap_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.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=183.774 yref=16.9372 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits outfile=/lscratch/kocevski/61724754/cmap_HighResolution_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.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=183.774 yref=16.9372 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.43
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61724754/Model_4FGL_J1215.0+1656_weekly_bin858.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/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits....................!
real 50.10
user 48.62
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits', '/lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits', expMap='/lscratch/kocevski/61724754/expmap_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits', expCube='/lscratch/kocevski/61724754/ltcube_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61724754/Model_4FGL_J1215.0+1656_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61724754/ft1_filtered_4FGL_J1215.0+1656_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61724754/ft2_4FGL_J1215.0+1656_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61724754/expmap_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61724754/ltcube_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61724754/Model_4FGL_J1215.0+1656_weekly_bin858.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) = 15132.3548064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76153E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .31301E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .59413       1.0000          .0000       .10000E+07
     4 'Prefactor '    42.193       1.0000          .0000       .10000E+07
     5 'Prefactor '    .93701E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .76706E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.9833       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27041E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20595E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.7467       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28286E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5644       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0434       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10795E-03   1.0000          .0000       .10000E+07
    15 'norm      '     .0000       1.0000          .0000       .10000E+07
    16 'norm      '    .66803       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.450       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13531E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .41877E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10267E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15132.35     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1765 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    4.4558       -.22036E-06** at limit **
   2  Prefactor     .83267E-08    4.0176        .22805E-07** at limit **
   3  Prefactor     .59390        .63165       -.71808E-07    .33667E-03
   4  Prefactor     42.156        7.8054       -.16364E-06    .20360    
   5  Prefactor      .0000        1.3286        .11106E-06** at limit **
   6  Prefactor     .55511E-10    2.5588        .40126E-06** at limit **
   7  Prefactor     3.9826        2.3356        .30159E-07   -.34236E-03
   8  Prefactor     .21713E-05    7.9755        .47093E-06** at limit **
   9  Prefactor      .0000        .53764       -.61658E-07** at limit **
  10  Prefactor     1.7464        1.4727       -.17427E-06   -.13287E-02
  11  Prefactor     .28317E-04    245.23       -.41454E-05** at limit **
  12  Prefactor     2.5643        1.3160       -.15114E-06   -.30982E-02
  13  Prefactor     1.0276        4.0212       -.44792E-06   -.12585E-01
  14  Prefactor      .0000        1.2423       -.15732E-06** at limit **
  15  norm           .0000        .52530E-01   -.61106E-07** at limit **
  16  norm          .65144        2.0312       -.62083E-06   -.93709E-03
  17  Prefactor     11.450        1.0243        .23170E-07    .15010E-01
  18  Prefactor      .0000        .72207       -.31157E-06** at limit **
  19  Prefactor     .37608E-05    7.0318       -.22288E-06** at limit **
  20  Prefactor     .55511E-10    2.0451        .72437E-06** at limit **
  21  Normalizat    1.2232        .13498       -.15416E-06   -.76696E-04
  22  Prefactor     .92321        .13066       -.17091E-05   -.89235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Prefactor  = 8.32667e-09
  Prefactor  = 0.5939
  Prefactor  = 42.156
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.98258
  Prefactor  = 2.17126e-06
  Prefactor  = 0
  Prefactor  = 1.74645
  Prefactor  = 2.83166e-05
  Prefactor  = 2.5643
  Prefactor  = 1.02756
  Prefactor  = 0
  norm       = 0
  norm       = 0.651439
  Prefactor  = 11.4502
  Prefactor  = 0
  Prefactor  = 3.76077e-06
  Prefactor  = 5.55112e-11
  Normalizat = 1.22321
  Prefactor  = 0.923212
 **********
 **   18 **HESSE 
 **********

 FCN=   15132.35     FROM HESSE     STATUS=OK           394 CALLS     2159 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    4.4562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .83267E-08    4.0191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .59390        .63240        .69756E-03   -1.5693    
   4  Prefactor     42.156        49.533        .15396E-03   -1.5578    
   5  Prefactor      .0000        1.3243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    2.5637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9826        2.3415        .50511E-03   -1.5668    
   8  Prefactor     .21713E-05    10.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .53434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7464        1.4826        .79321E-03   -1.5682    
  11  Prefactor     .28317E-04    7.4700        .16542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5643        1.3220        .63721E-03   -1.5676    
  13  Prefactor     1.0276        11.092        .14588E-01   -1.5688    
  14  Prefactor      .0000        1.2368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .27607E-01    .11441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65144        2.0454        .63342E-03   -1.5692    
  17  Prefactor     11.450        6.2910        .29581E-03   -1.5640    
  18  Prefactor      .0000        .72159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .37608E-05    11.995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    2.0449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2232        .11487        .52896E-01   -.85888    
  22  Prefactor     .92321        .11106        .45299E-01   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78054e-06
Minuit parameter uncertainties:
  1  0.000101478
  2  0.000366117
  3  0.632397
  4  49.533
  5  5.73479e-06
  6  1.88162e-05
  7  2.34147
  8  0.00966437
  9  1.50671e-06
  10  1.48257
  11  0.0290879
  12  1.32195
  13  6.75205
  14  2.92401e-06
  15  1.5648e-07
  16  2.04544
  17  6.29099
  18  2.93785e-06
  19  0.013433
  20  2.15136e-05
  21  0.114894
  22  0.111091
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.746e+00  1.483e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.232e-01  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.223e+00  1.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 7.04e-06 +/- 5.98e-06

TS (Fixed Index): 2.34
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 6.16505888617e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0047670895199 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61724754/likelihoodResults_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.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) = 15132.18271
delta logL = 0.167857589471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15132.1779669
delta logL = 0.172600687154

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15132.18     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0543        50.638        .72051E-03    .76328E-02
   2  Index         2.0579        5.9485        .25461        .54776E-05
   3  Normalizat    1.2316        .47856E-01    .52740E-01    .12422E-04
   4  Prefactor     .91772        .42634E-01    .45231E-01    .32366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05427
  Index      = 2.05795
  Normalizat = 1.2316
  Prefactor  = 0.917718
 **********
 **   18 **HESSE 
 **********

 FCN=   15132.18     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .25E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0543        1.7355        .14435E-04   -1.5679    
   2  Index         2.0579        .57097        .12114E-01   -.62909    
   3  Normalizat    1.2316        .13305        .23319E-03   -.85632    
   4  Prefactor     .91772        .13067        .26046E-03   -.95525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50119e-14
Minuit parameter uncertainties:
  1  1.73555
  2  0.572888
  3  0.133092
  4  0.130718
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) = 15132.1779653
delta logL = 0.172602296472

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.054e+00  1.736e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  2.058e+00  5.729e-01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.177e-01  1.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.232e+00  1.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.06 +/- 0.57
Photon Flux (Free Index): 1.60e-08 +/- 1.72e-08
Energy Flux (Free Index): 9.65e-06 +/- 1.02e-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/61724754/cmap_HighResolution_757900801_758505601_4FGL_J1215.0+1656_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='9.65e-06', photon_flux_error='1.85e-08', dlogl='1.73e-01', energy_flux='7.04e-06', photon_flux2='1.60e-08', job_status='DONE', time_completed='2025-01-14 03:04:56.695184', photon_index_error2='0.57', photon_index2='2.06', ts='2.34', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.17e-08', energy_flux_error2='1.02e-05', EG='1.22', time_epoch_completed='1736852696.7', return_code='0', job_id='61724754', GAL2='0.92', EG2='1.23', return_code2='0', energy_flux_error='5.98e-06', photon_flux_error2='1.72e-08', ts2='2.69', photon_index='2.41' WHERE bin_id='858' AND source_name='4FGL J1215.0+1656' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 03:04:56 PST 2025

