/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 112 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7443
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin960
RA = 200.551, Dec = 8.7036
tmin = 488160001, tmax = 488419201
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='514911', job_status='RUN', time_executed='2021-09-07 14:19:13.755442', time_epoch_executed='1631049553.76' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514911

Creating custom pfile directory:
/scratch/kocevski/514911/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=488160001.0 && nMetStart<488419201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=488160001.0 && nMetStart<488419201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514911/ft1_4FGL_J1322.2+0842_daily_bin960.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=488160001.0 && nMetStart<488419201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514911/ft1_4FGL_J1322.2+0842_daily_bin960.fits outfile=/scratch/kocevski/514911/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin960.fits ra=200.551 dec=8.7036 rad=12.0 tmin=488160001.0 tmax=488419201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.39
user 5.14
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/514911/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/514911/ltcube_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.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 /scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits
.....................!
real 16.27
user 15.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/514911/ltcube_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits outfile=/scratch/kocevski/514911/expmap_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.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 /scratch/kocevski/514911/ltcube_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits
.....................!
real 192.72
user 187.07
sys 4.87

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=/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits outfile=/scratch/kocevski/514911/cmap_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits outfile=/scratch/kocevski/514911/cmap_HighResolution_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514911/Model_4FGL_J1322.2+0842_daily_bin960.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...
/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits.....................!
real 44.59
user 43.12
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits', '/scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits', expMap='/scratch/kocevski/514911/expmap_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits', expCube='/scratch/kocevski/514911/ltcube_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514911/Model_4FGL_J1322.2+0842_daily_bin960.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/514911/ft1_filtered_4FGL_J1322.2+0842_daily_bin960.fits
Spacecraft file(s): /scratch/kocevski/514911/ft2_4FGL_J1322.2+0842_daily_bin960.fits
Exposure map: /scratch/kocevski/514911/expmap_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits
Exposure cube: /scratch/kocevski/514911/ltcube_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514911/Model_4FGL_J1322.2+0842_daily_bin960.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) = 5310.43866219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.899       1.0000         .10000E-03   10000.    
    10 'norm      '    18.871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .92242       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2177       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5310.438     FROM MIGRAD    STATUS=CONVERGED    314 CALLS     1528 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5801        1.9795        .22501E-06   -.37283E-03
   2  Prefactor     12.483        46.586       -.38120E-04   -.29104E-05
   3  Prefactor     .10000E-03    63.704        .17726E-06** at limit **
   4  Prefactor     .10000E-03    14.321       -.55576E-05** at limit **
   5  Prefactor     13.976        16.435        .30624E-06    .41781E-04
   6  Prefactor     .10000E-03    7.9789       -.68536E-06** at limit **
   7  Prefactor     .10000E-03    7.9676       -.52298E-06** at limit **
   8  Prefactor     .10000E-03    8.5106        .25592E-05** at limit **
   9  Prefactor     39.899        39.117        .36149E-06    .26456E-05
  10  norm          18.872        26.877        .67243E-06   -.42459E-05
  11  Prefactor     .10000E-03    2.0486       -.20705E-07** at limit **
  12  Prefactor     .10000E-03    6.1289        .93893E-07** at limit **
  13  Prefactor     2.6799        2.8879       -.42087E-07    .72834E-05
  14  Prefactor     .10000E-03    8.8417       -.11905E-05** at limit **
  15  Prefactor     .10000E-03    14.677        .54373E-05** at limit **
  16  Normalizat    .92241        .22127        .51097E-06    .24741E-04
  17  Prefactor     1.2177        .17835        .52118E-06    .28403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58009
  Prefactor  = 12.4834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8992
  norm       = 18.8719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.922413
  Prefactor  = 1.2177
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.438     FROM HESSE     STATUS=OK           219 CALLS     1747 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5801        1.9566        .11059E-03   -1.5457    
   2  Prefactor     12.483        46.595        .11330E-03   -1.5001    
   3  Prefactor     .10000E-03    63.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.976        16.499        .10713E-03   -1.4960    
   6  Prefactor     .10000E-03    7.9987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.899        39.122        .31729E-03   -1.4444    
  10  norm          18.872        26.899        .92199E-04   -1.4839    
  11  Prefactor     .10000E-03    2.0686        .10180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1324        .17620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6799        2.8865        .12506E-03   -1.5381    
  14  Prefactor     .10000E-03    8.9027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .92241        .26331        .29210E-03   -.95677    
  17  Prefactor     1.2177        .21260        .20995E-03   -.85788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27952e-11
Minuit parameter uncertainties:
  1  1.95666
  2  46.7315
  3  7.63969e-06
  4  7.82063e-06
  5  16.5048
  6  1.17221e-06
  7  7.80578e-06
  8  1.51672e-06
  9  39.1475
  10  26.9164
  11  4.27058e-06
  12  3.63991e-06
  13  2.88661
  14  6.49747e-06
  15  5.12742e-05
  16  0.263676
  17  0.212746
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.806e-06  1.000e-04  1.000e+04 ( 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:  1.218e+00  2.127e-01  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:  9.224e-01  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514911/likelihoodResults_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.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): 102
logL (Free Index) = 5310.43877495
delta logL = -0.000594797717895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5310.43818129
delta logL = -1.13895112008e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2801       1.0000          .0000       10.000    
     3 'Normalizat'    .92216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2179       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5310.438     FROM MIGRAD    STATUS=FAILED        87 CALLS      240 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    710.78        .18142E-02** at limit **
   2  Index         2.2985        7.6951        .50000       -.20450E-04
   3  Normalizat    .92241        .55726E-01    .29210E-03    .63635E-04
   4  Prefactor     1.2177        .45594E-01    .20995E-03    .72786E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5310.438     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      418 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    710.78        .44372E-03** at limit **
   2  Index         2.2985        7.6951        .29767E-05   -.20450E-04
   3  Normalizat    .92241        .55726E-01    .12086E-06    .63635E-04
   4  Prefactor     1.2177        .45594E-01    .37836E-07    .72786E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5310.438     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      452 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1892.8        .36285E-03** at limit **
   2  Index         2.2986        7.7080        .50000       -.20458E-04
   3  Normalizat    .92241        .22952        .11684E-04    .61495E-04
   4  Prefactor     1.2177        .18786        .41991E-04    .69960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.29863
  Normalizat = 0.922413
  Prefactor  = 1.2177
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.438     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5898        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2986        6.1486        .50000       -.57076    
   3  Normalizat    .92241        .25639        .23368E-05   -.95677    
   4  Prefactor     1.2177        .20992        .83982E-05   -.85788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89182e-10
Minuit parameter uncertainties:
  1  0.00034059
  2  4.30488
  3  0.25673
  4  0.21006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514911': No such file or directory
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) = 5310.43817998
delta logL = 1.67756297742e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.406e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.299e+00  4.305e+00  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:  1.218e+00  2.101e-01  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:  9.224e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.551 8.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/514911/cmap_HighResolution_488160001_488419201_4FGL_J1322.2+0842_daily_bin960.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/514911

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-07 14:27:55.231257', job_id='514911', GAL2='1.22', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631050075.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='960' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:27:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 514911: <4FGL_J1322.2+0842_daily_bin960> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin960> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:36 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:17:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:17:12 2021
Terminated at Tue Sep  7 14:27:55 2021
Results reported at Tue Sep  7 14:27:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin960 200.551 8.7036 488160001 488419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.2+0842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            739 sec.

The output (if any) is above this job summary.

