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


Performing analysis on: 4FGL_J1322.2+0842_weekly_bin778
RA = 200.551, Dec = 8.7036
tmin = 709516801, tmax = 710121601
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='18877805', job_status='RUN', time_executed='2023-07-10 09:33:36.311256', time_epoch_executed='1689006816.31' WHERE source_name='4FGL J1322.2+0842' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18877805

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18877805/ft1_4FGL_J1322.2+0842_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18877805/ft1_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18877805/ft1_filteredMKT_4FGL_J1322.2+0842_weekly_bin778.fits ra=200.551 dec=8.7036 rad=12.0 tmin=709516801.0 tmax=710121601.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.78
user 4.23
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.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/18877805/ft1_filteredMKT_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.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.22
sys 0.13

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" o/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).

utfile=/lscratch/kocevski/18877805/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits
.....................!
real 18.73
user 18.21
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18877805/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18877805/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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/18877805/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
.....................!
real 67.29
user 62.73
sys 4.01

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

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18877805/cmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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=200.551 yref=8.7036 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.57
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18877805/cmap_HighResolution_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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=200.551 yref=8.7036 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18877805/Model_4FGL_J1322.2+0842_weekly_bin778.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 GALnumber of points = 17494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.2+0842_weekly_bin778
RA = 200.551, Dec = 8.7036
tmin = 709516801, tmax = 710121601
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='18878554', job_status='RUN', time_executed='2023-07-10 09:36:54.818853', time_epoch_executed='1689007014.82' WHERE source_name='4FGL J1322.2+0842' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18878554

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18878554/ft1_4FGL_J1322.2+0842_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18878554/ft1_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18878554/ft1_filteredMKT_4FGL_J1322.2+0842_weekly_bin778.fits ra=200.551 dec=8.7036 rad=12.0 tmin=709516801.0 tmax=710121601.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.63
user 4.11
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.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/18878554/ft1_filteredMKT_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.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.59
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" o_V02
Working on...
/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits.....................!
real 44.14
user 42.74
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits', '/lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits', expMap='/lscratch/kocevski/18877805/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits', expCube='/lscratch/kocevski/18877805/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18877805/Model_4FGL_J1322.2+0842_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18877805/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18877805/ft2_4FGL_J1322.2+0842_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18877805/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18877805/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18877805/Model_4FGL_J1322.2+0842_weekly_bin778.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) = 16426.8553485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49081       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6868       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34978       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.7485       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41286       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44946E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .54141E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .20148E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56548       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6177       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1392       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41089E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22051E-03   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .82447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16425.78     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      813 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49096        .56939       -.24411E-06    .52963E-02
   2  Prefactor     2.6587        5.4273        .30580E-07    .54942E-03
   3  Prefactor     .72464        23.914       -.17779E-05   -.37927E-03
   4  Prefactor     5.8285        7.6868        .52464E-06   -.39549E-02
   5  Prefactor     .44270        5.7313        .97809E-06    .45102E-02
   6  Prefactor     .33495E-06    6.1303       -.94346E-06** at limit **
   7  Prefactor     .33723E-06    6.0319       -.85784E-06** at limit **
   8  norm           .0000        6.5317        .22899E-07** at limit **
   9  Prefactor     .56604        1.4701        .14563E-06    .32505E-03
  10  Prefactor     3.6365        6.5826       -.26261E-06   -.44364E-03
  11  Prefactor     2.1416        1.8953       -.46547E-06    .67046E-02
  12  Prefactor     .16653E-09    26.506       -.37477E-05** at limit **
  13  Prefactor      .0000        1.7239        .57280E-06** at limit **
  14  Normalizat    1.2340        .13741       -.70189E-05    .20231E-03
  15  Prefactor     .82484        .10603        .12818E-04    .29980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.490958
  Prefactor  = 2.65871
  Prefactor  = 0.724635
  Prefactor  = 5.82854
  Prefactor  = 0.442697
  Prefactor  = 3.34954e-07
  Prefactor  = 3.3723e-07
  norm       = 0
  Prefactor  = 0.566043
  Prefactor  = 3.63647
  Prefactor  = 2.1416
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Normalizat = 1.23397
  Prefactor  = 0.824839
 **********
 **   18 **HESSE 
 **********

 FCN=   16425.78     FROM HESSE     STATUS=OK           216 CALLS     1029 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49096        .57094        .79639E-04   -1.5694    
   2  Prefactor     2.6587        5.4912        .62134E-03   -1.5675    
   3  Prefactor     .72464        4.0751        .95552E-02   -1.5691    
   4  Prefactor     5.8285        9.2920        .41868E-03   -1.5660    
   5  Prefactor     .44270        2.3533        .88011E-02   -1.5695    
   6  Prefactor     .33495E-06    12.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .33723E-06    12.222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        6.5888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56604        1.4834        .72379E-03   -1.5693    
  10  Prefactor     3.6365        6.5926        .53096E-03   -1.5670    
  11  Prefactor     2.1416        1.8946        .70444E-03   -1.5679    
  12  Prefactor     .16653E-09    26.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.2340        .11519        .53768E-01   -.85559    
  15  Prefactor     .82484        .88375E-01    .44035E-01   -.98819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51402e-08
Minuit parameter uncertainties:
  1  0.570937
  2  5.49119
  3  3.43686
  4  9.29199
  5  2.04138
  6  0.00402256
  7  0.00406029
  8  2.14343e-05
  9  1.48336
  10  6.59258
  11  1.89458
  12  0.000124169
  13  2.5984e-06
  14  0.115215
  15  0.0883901
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.427e-01  2.041e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.248e-01  8.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.234e+00  1.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 4.22004230324e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00322991943046 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18877805/likelihoodResults_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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) = 16424.3457707
delta logL = 1.43297181825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16424.3095459
delta logL = 1.46919667537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18999E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.1558       1.0000          .0000       10.000    
     3 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16425.78     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      380 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .26050        .42118E-03** at limit **
   2  Index         .48894        .48089        .23499E-04     .0000    
   3  Normalizat    1.2351        1.1517       -.22942E-04    .15236E-03
   4  Prefactor     .82482        1.1851        .10673E-04    .24074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.488941
  Normalizat = 1.23509
  Prefactor  = 0.824821
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16425.78     FROM HESSE     STATUS=FAILED         9 CALLS      389 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .26050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10260E-01    .59227        .23499E-04   -7.4081    
   3  Normalizat    1.2351        1.1517       -.22942E-04   -.85525    
   4  Prefactor     .82482        1.1851        .10673E-04   -.98820    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.67591e-11
Minuit parameter uncertainties:
  1  1.86563e-06
  2  0.484965
  3  1.17682
  4  1.22522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16425.7823155
delta logL = -0.00357293695561

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  1.866e-06  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  4.889e-01  4.850e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.248e-01  1.225e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.235e+00  1.177e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 200.551 8.704

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/18877805/cmap_HighResolution_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2023-07-10 09:41:54.229913', job_id='18877805', GAL2='0.82', fit_tolerance='1e-08', EG2='1.24', EG='1.23', time_epoch_completed='1689007314.23', return_code2='101', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-3.57e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='778' AND source_name='4FGL J1322.2+0842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:41:54 PDT 2023

utfile=/lscratch/kocevski/18878554/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits
.....................!
real 17.42
user 16.93
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18878554/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18878554/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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/18878554/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
.....................!
real 66.60
user 62.44
sys 3.63

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

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18878554/cmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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=200.551 yref=8.7036 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.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits outfile=/lscratch/kocevski/18878554/cmap_HighResolution_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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=200.551 yref=8.7036 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.63
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18878554/Model_4FGL_J1322.2+0842_weekly_bin778.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/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits.....................!
real 43.40
user 42.12
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits', '/lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits', expMap='/lscratch/kocevski/18878554/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits', expCube='/lscratch/kocevski/18878554/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18878554/Model_4FGL_J1322.2+0842_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18878554/ft1_filtered_4FGL_J1322.2+0842_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18878554/ft2_4FGL_J1322.2+0842_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18878554/expmap_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18878554/ltcube_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18878554/Model_4FGL_J1322.2+0842_weekly_bin778.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) = 16426.8553485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49081       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6868       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34978       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.7485       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41286       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44946E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .54141E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .20148E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56548       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6177       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1392       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41089E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22051E-03   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .82447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16425.78     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      813 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49096        .56939       -.24411E-06    .52963E-02
   2  Prefactor     2.6587        5.4273        .30580E-07    .54942E-03
   3  Prefactor     .72464        23.914       -.17779E-05   -.37927E-03
   4  Prefactor     5.8285        7.6868        .52464E-06   -.39549E-02
   5  Prefactor     .44270        5.7313        .97809E-06    .45102E-02
   6  Prefactor     .33495E-06    6.1303       -.94346E-06** at limit **
   7  Prefactor     .33723E-06    6.0319       -.85784E-06** at limit **
   8  norm           .0000        6.5317        .22899E-07** at limit **
   9  Prefactor     .56604        1.4701        .14563E-06    .32505E-03
  10  Prefactor     3.6365        6.5826       -.26261E-06   -.44364E-03
  11  Prefactor     2.1416        1.8953       -.46547E-06    .67046E-02
  12  Prefactor     .16653E-09    26.506       -.37477E-05** at limit **
  13  Prefactor      .0000        1.7239        .57280E-06** at limit **
  14  Normalizat    1.2340        .13741       -.70189E-05    .20231E-03
  15  Prefactor     .82484        .10603        .12818E-04    .29980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.490958
  Prefactor  = 2.65871
  Prefactor  = 0.724635
  Prefactor  = 5.82854
  Prefactor  = 0.442697
  Prefactor  = 3.34954e-07
  Prefactor  = 3.3723e-07
  norm       = 0
  Prefactor  = 0.566043
  Prefactor  = 3.63647
  Prefactor  = 2.1416
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Normalizat = 1.23397
  Prefactor  = 0.824839
 **********
 **   18 **HESSE 
 **********

 FCN=   16425.78     FROM HESSE     STATUS=OK           216 CALLS     1029 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49096        .57094        .79639E-04   -1.5694    
   2  Prefactor     2.6587        5.4912        .62134E-03   -1.5675    
   3  Prefactor     .72464        4.0751        .95552E-02   -1.5691    
   4  Prefactor     5.8285        9.2920        .41868E-03   -1.5660    
   5  Prefactor     .44270        2.3533        .88011E-02   -1.5695    
   6  Prefactor     .33495E-06    12.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .33723E-06    12.222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        6.5888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56604        1.4834        .72379E-03   -1.5693    
  10  Prefactor     3.6365        6.5926        .53096E-03   -1.5670    
  11  Prefactor     2.1416        1.8946        .70444E-03   -1.5679    
  12  Prefactor     .16653E-09    26.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.7243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.2340        .11519        .53768E-01   -.85559    
  15  Prefactor     .82484        .88375E-01    .44035E-01   -.98819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51402e-08
Minuit parameter uncertainties:
  1  0.570937
  2  5.49119
  3  3.43686
  4  9.29199
  5  2.04138
  6  0.00402256
  7  0.00406029
  8  2.14343e-05
  9  1.48336
  10  6.59258
  11  1.89458
  12  0.000124169
  13  2.5984e-06
  14  0.115215
  15  0.0883901
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.427e-01  2.041e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.248e-01  8.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.234e+00  1.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 4.22004230324e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00322991943046 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18878554/likelihoodResults_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.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) = 16424.3457707
delta logL = 1.43297181825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16424.3095459
delta logL = 1.46919667537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18999E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.1558       1.0000          .0000       10.000    
     3 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16425.78     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      380 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .26050        .42118E-03** at limit **
   2  Index         .48894        .48089        .23499E-04     .0000    
   3  Normalizat    1.2351        1.1517       -.22942E-04    .15236E-03
   4  Prefactor     .82482        1.1851        .10673E-04    .24074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.488941
  Normalizat = 1.23509
  Prefactor  = 0.824821
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16425.78     FROM HESSE     STATUS=FAILED         9 CALLS      389 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .26050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10260E-01    .59227        .23499E-04   -7.4081    
   3  Normalizat    1.2351        1.1517       -.22942E-04   -.85525    
   4  Prefactor     .82482        1.1851        .10673E-04   -.98820    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.67591e-11
Minuit parameter uncertainties:
  1  1.86563e-06
  2  0.484965
  3  1.17682
  4  1.22522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16425.7823155
delta logL = -0.00357293695561

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  1.866e-06  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  4.889e-01  4.850e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.248e-01  1.225e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.235e+00  1.177e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 200.551 8.704

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/18878554/cmap_HighResolution_709516801_710121601_4FGL_J1322.2+0842_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2023-07-10 09:44:50.542229', job_id='18878554', GAL2='0.82', fit_tolerance='1e-08', EG2='1.24', EG='1.23', time_epoch_completed='1689007490.54', return_code2='101', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-3.57e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='778' AND source_name='4FGL J1322.2+0842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:44:50 PDT 2023

