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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin715
RA = 200.551, Dec = 8.7036
tmin = 424656001, tmax = 424915201
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='513447', job_status='RUN', time_executed='2021-09-07 14:14:34.587732', time_epoch_executed='1631049274.59' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513447/ft1_4FGL_J1322.2+0842_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513447/ft2_4FGL_J1322.2+0842_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513447/ft1_4FGL_J1322.2+0842_daily_bin715.fits outfile=/scratch/kocevski/513447/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin715.fits ra=200.551 dec=8.7036 rad=12.0 tmin=424656001.0 tmax=424915201.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.59
user 4.33
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513447/ft1_filtered_4FGL_J1322.2+0842_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/513447/ft2_4FGL_J1322.2+0842_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/513447/ltcube_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.fits outfile=/scratch/kocevski/513447/expmap_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.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/513447/ltcube_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.fits
.....................!
real 191.85
user 186.18
sys 5.03

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/513447/ft1_filtered_4FGL_J1322.2+0842_daily_bin715.fits scfile=/scratch/kocevski/513447/ft2_4FGL_J1322.2+0842_daily_bin715.fits outfile=/scratch/kocevski/513447/cmap_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513447/ft1_filtered_4FGL_J1322.2+0842_daily_bin715.fits scfile=/scratch/kocevski/513447/ft2_4FGL_J1322.2+0842_daily_bin715.fits outfile=/scratch/kocevski/513447/cmap_HighResolution_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.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.57
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.400       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15661E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1654       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91372       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=   5518.999     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1584 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37403        .45255E-08** at limit **
   2  Prefactor     .10000E-03    40.711        .44990E-06** at limit **
   3  Prefactor     20.149        65.273       -.87328E-05    .34820E-05
   4  Prefactor     26.074        22.899        .12070E-05    .24136E-04
   5  Prefactor     2.3318        16.398        .39262E-05    .37531E-05
   6  Prefactor     .10000E-03    10.472        .25043E-07** at limit **
   7  Prefactor     .10000E-03    4.4744       -.33951E-07** at limit **
   8  Prefactor     38.379        57.165        .15525E-05   -.39960E-05
   9  Prefactor     .10000E-03    26.967        .47875E-06** at limit **
  10  norm          .10000E-03    8.5863        .14626E-07** at limit **
  11  Prefactor     .10000E-03    3.0929       -.20296E-07** at limit **
  12  Prefactor     .10000E-03    32.602       -.98183E-06** at limit **
  13  Prefactor     .10000E-03    1.6669       -.93186E-08** at limit **
  14  Prefactor     .10000E-03    10.424       -.97579E-07** at limit **
  15  Prefactor     9.1640        12.727        .98516E-07    .13565E-04
  16  Normalizat    1.2237        .21721        .60905E-06    .27746E-04
  17  Prefactor     .91368        .16490       -.57882E-06    .38354E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1488
  Prefactor  = 26.0741
  Prefactor  = 2.33184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.16402
  Normalizat = 1.22366
  Prefactor  = 0.91368
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.999     FROM HESSE     STATUS=OK           221 CALLS     1805 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .37610        .44363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.149        65.392        .89397E-04   -1.4810    
   4  Prefactor     26.074        23.051        .78435E-04   -1.4686    
   5  Prefactor     2.3318        16.589        .13441E-02   -1.5403    
   6  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4806        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.379        57.161        .64680E-04   -1.4468    
   9  Prefactor     .10000E-03    26.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.5897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3503        .25107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6697        .93668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1640        12.722        .13238E-03   -1.5102    
  16  Normalizat    1.2237        .26354        .26082E-03   -.85875    
  17  Prefactor     .91368        .19967        .22971E-03   -.95665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27138e-12
Minuit parameter uncertainties:
  1  4.07037e-08
  2  1.39444e-05
  3  65.6263
  4  23.0585
  5  12.4437
  6  2.38359e-06
  7  2.83536e-06
  8  57.2428
  9  1.41161e-05
  10  1.44641e-07
  11  4.42827e-06
  12  2.41444e-05
  13  3.0563e-07
  14  1.92453e-06
  15  12.7255
  16  0.263828
  17  0.199829
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.835e-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:  9.137e-01  1.998e-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.224e+00  2.638e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513447/likelihoodResults_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.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) = 5518.99982806
delta logL = -0.00106063539715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5518.99876739
delta logL = 3.18132151733e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2521       1.0000          .0000       10.000    
     3 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91369       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=   5518.999     FROM MIGRAD    STATUS=FAILED        84 CALLS      236 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    218.18        .15409E-02** at limit **
   2  Index         2.1071        6.3493        .50000        .12512E-04
   3  Normalizat    1.2237        .37647E-01    .26082E-03   -.25150E-04
   4  Prefactor     .91368        .29272E-01    .22972E-03   -.14501E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5518.999     FROM SIMPLEX   STATUS=PROGRESS     138 CALLS      374 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    218.18        .29737E-03** at limit **
   2  Index         2.1069        6.3493        .55848E-04    .12512E-04
   3  Normalizat    1.2237        .37647E-01    .68545E-06   -.25150E-04
   4  Prefactor     .91368        .29272E-01    .49667E-06   -.14501E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5518.999     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      420 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1130.9        .30819E-03** at limit **
   2  Index         1.8505        8.8777        .50000       -.33288E-07
   3  Normalizat    1.2237        .19228        .10433E-04   -.89356E-05
   4  Prefactor     .91368        .14899        .91886E-05    .27220E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85046
  Normalizat = 1.22366
  Prefactor  = 0.91368
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.999     FROM HESSE     STATUS=OK            29 CALLS      449 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1639        .61638E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8505        8.9923        .50000       -.68144    
   3  Normalizat    1.2237        .25362        .20866E-05   -.85875    
   4  Prefactor     .91368        .19735        .18377E-05   -.95665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1379e-12
Minuit parameter uncertainties:
  1  5.74601e-06
  2  185.452
  3  0.253879
  4  0.197509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513447': 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) = 5518.99876643
delta logL = 9.93311914499e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.746e-06  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.850e+00  1.855e+02  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:  9.137e-01  1.975e-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.224e+00  2.539e-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/513447/cmap_HighResolution_424656001_424915201_4FGL_J1322.2+0842_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-07 14:23:16.947691', job_id='513447', GAL2='0.91', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631049796.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='715' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:23:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 513447: <4FGL_J1322.2+0842_daily_bin715> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin715> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:27 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:51 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:10:51 2021
Terminated at Tue Sep  7 14:23:17 2021
Results reported at Tue Sep  7 14:23:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin715 200.551 8.7036 424656001 424915201 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 :                                   522.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            770 sec.

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

