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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin526
RA = 200.551, Dec = 8.7036
tmin = 375667201, tmax = 375926401
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='512107', job_status='RUN', time_executed='2021-09-07 14:09:13.707667', time_epoch_executed='1631048953.71' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512107/ft1_4FGL_J1322.2+0842_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512107/ft1_4FGL_J1322.2+0842_daily_bin526.fits outfile=/scratch/kocevski/512107/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin526.fits ra=200.551 dec=8.7036 rad=12.0 tmin=375667201.0 tmax=375926401.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.04
user 4.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.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/512107/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin526.fits evtable="EVENTS" outfile="/scratch/kocevski/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.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.55
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/512107/ltcube_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits outfile=/scratch/kocevski/512107/expmap_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.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/512107/ltcube_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits
.....................!
real 197.53
user 191.79
sys 5.17

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/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.fits scfile=/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits outfile=/scratch/kocevski/512107/cmap_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.fits scfile=/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits outfile=/scratch/kocevski/512107/cmap_HighResolution_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.fits', '/scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits', expMap='/scratch/kocevski/512107/expmap_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits', expCube='/scratch/kocevski/512107/ltcube_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512107/Model_4FGL_J1322.2+0842_daily_bin526.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/512107/ft1_filtered_4FGL_J1322.2+0842_daily_bin526.fits
Spacecraft file(s): /scratch/kocevski/512107/ft2_4FGL_J1322.2+0842_daily_bin526.fits
Exposure map: /scratch/kocevski/512107/expmap_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits
Exposure cube: /scratch/kocevski/512107/ltcube_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512107/Model_4FGL_J1322.2+0842_daily_bin526.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) = 8309.45536028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1000       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0033       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=   8309.443     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1559 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.955        3.4672       -.11468E-06    .10168E-03
   2  Prefactor     12.862        25.673       -.21257E-04   -.91266E-05
   3  Prefactor     .10000E-03    28.847       -.23132E-04** at limit **
   4  Prefactor     .10000E-03    8.3831        .39174E-05** at limit **
   5  Prefactor     26.546        15.343        .42636E-06   -.71847E-04
   6  Prefactor     10.609        10.721       -.83654E-07   -.22636E-04
   7  Prefactor     .10000E-03    5.4857        .74955E-06** at limit **
   8  Prefactor     .10000E-03    19.535        .12280E-04** at limit **
   9  Prefactor     .10000E-03    22.494        .15574E-04** at limit **
  10  norm          .10000E-03    26.357       -.26946E-05** at limit **
  11  Prefactor     4.4342        3.2544       -.17418E-06   -.34156E-03
  12  Prefactor     .10000E-03    6.5303       -.25031E-05** at limit **
  13  Prefactor     3.5780        3.7815        .16247E-05   -.64694E-04
  14  Prefactor     .10000E-03    14.850       -.15139E-04** at limit **
  15  Prefactor     .10000E-03    23.684        .85404E-05** at limit **
  16  Normalizat    1.0999        .18675        .12985E-06   -.81222E-05
  17  Prefactor     1.0034        .14513        .30222E-06    .20360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.9549
  Prefactor  = 12.8621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5463
  Prefactor  = 10.6085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.43416
  Prefactor  = 0.0001
  Prefactor  = 3.57804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09987
  Prefactor  = 1.00339
 **********
 **   18 **HESSE 
 **********

 FCN=   8309.443     FROM HESSE     STATUS=OK           221 CALLS     1780 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.955        3.4686        .55803E-04   -1.4613    
   2  Prefactor     12.862        25.714        .11163E-03   -1.4991    
   3  Prefactor     .10000E-03    28.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.546        15.458        .77755E-04   -1.4677    
   6  Prefactor     10.609        10.722        .12301E-03   -1.5056    
   7  Prefactor     .10000E-03    5.5181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    26.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4342        3.2536        .13539E-03   -1.5287    
  12  Prefactor     .10000E-03    6.5416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5780        3.7772        .17615E-03   -1.5330    
  14  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0999        .22642        .29070E-03   -.89756    
  17  Prefactor     1.0034        .17566        .24059E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90912e-11
Minuit parameter uncertainties:
  1  3.46862
  2  25.7357
  3  3.30974e-05
  4  8.44049e-06
  5  15.4607
  6  10.7235
  7  5.16926e-06
  8  2.08994e-05
  9  2.29752e-05
  10  5.61064e-06
  11  3.25378
  12  3.5195e-06
  13  3.77746
  14  3.11357e-05
  15  0.000213983
  16  0.226623
  17  0.175763
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.169e-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.003e+00  1.758e-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:  1.100e+00  2.266e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512107/likelihoodResults_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.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) = 8309.44384938
delta logL = -0.000863812538228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8309.4429856
delta logL = -3.02279659081e-08

Fit tolerance = 1e-08

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

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

 FCN=   8309.443     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    163.63        .90712E-02** at limit **
   2  Index         2.2692        6.9210        .50000       -.55520E-05
   3  Normalizat    1.0999        .25726E-01    .65712E-01    .19445E-04
   4  Prefactor     1.0034        .20541E-01    .44560E-01    .15155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26923
  Normalizat = 1.09987
  Prefactor  = 1.00339
 **********
 **   18 **HESSE 
 **********

 FCN=   8309.443     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1105.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2692        5.2397        .50000       -.57777    
   3  Normalizat    1.0999        .11030        .29070E-03   -.89756    
   4  Prefactor     1.0034        .88099E-01    .24059E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69376e-09
Minuit parameter uncertainties:
  1  0.000128768
  2  60.4517
  3  0.110327
  4  0.0881119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512107': 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): 102
logL (Free Index) = 8309.44298556
delta logL = 9.29139787331e-09

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.288e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.269e+00  6.045e+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:  1.003e+00  8.811e-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.100e+00  1.103e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/512107/cmap_HighResolution_375667201_375926401_4FGL_J1322.2+0842_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-07 14:19:40.668454', job_id='512107', GAL2='1.00', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631049580.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='9.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='526' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:19:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 512107: <4FGL_J1322.2+0842_daily_bin526> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin526> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:30 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:45 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:05:45 2021
Terminated at Tue Sep  7 14:19:41 2021
Results reported at Tue Sep  7 14:19:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin526 200.551 8.7036 375667201 375926401 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            851 sec.

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

