/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 128 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin326
RA = 200.551, Dec = 8.7036
tmin = 323827201, tmax = 324086401
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='510783', job_status='RUN', time_executed='2021-09-07 14:04:20.456241', time_epoch_executed='1631048660.46' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510783/ft1_4FGL_J1322.2+0842_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510783/ft1_4FGL_J1322.2+0842_daily_bin326.fits outfile=/scratch/kocevski/510783/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin326.fits ra=200.551 dec=8.7036 rad=12.0 tmin=323827201.0 tmax=324086401.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 3.34
user 3.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.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/510783/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/510783/ft1_filtered_4FGL_J1322.2+0842_daily_bin326.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.51
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510783/ft1_filtered_4FGL_J1322.2+0842_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/510783/ltcube_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.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/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits
.....................!
real 15.83
user 15.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510783/ft1_filtered_4FGL_J1322.2+0842_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/510783/ltcube_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.fits outfile=/scratch/kocevski/510783/expmap_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.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/510783/ltcube_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.fits
.....................!
real 192.37
user 186.90
sys 5.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=/scratch/kocevski/510783/ft1_filtered_4FGL_J1322.2+0842_daily_bin326.fits scfile=/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits outfile=/scratch/kocevski/510783/cmap_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510783/ft1_filtered_4FGL_J1322.2+0842_daily_bin326.fits scfile=/scratch/kocevski/510783/ft2_4FGL_J1322.2+0842_daily_bin326.fits outfile=/scratch/kocevski/510783/cmap_HighResolution_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16633E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10995E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5785       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.7798       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .63882       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=   6018.950     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1588 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3950        2.0599        .10758E-07   -.12458E-04
   2  Prefactor     .10001E-03    35.306       -.41487E-05** at limit **
   3  Prefactor     .10000E-03    21.792       -.19293E-05** at limit **
   4  Prefactor     2.8839        9.9888        .28035E-06   -.12363E-03
   5  Prefactor     .10003E-03    8.5253        .11659E-05** at limit **
   6  Prefactor     .10000E-03    22.810       -.46688E-06** at limit **
   7  Prefactor     6.7725        8.8764        .12462E-05   -.48215E-03
   8  Prefactor     .10000E-03    23.687        .93464E-06** at limit **
   9  Prefactor     .10000E-03    15.291        .36260E-06** at limit **
  10  norm          .10000E-03    10.173       -.55184E-07** at limit **
  11  Prefactor     .46850        2.5256       -.44626E-07   -.63329E-04
  12  Prefactor     .10001E-03    30.859        .43180E-05** at limit **
  13  Prefactor     4.0895        4.1375        .49333E-07   -.48012E-04
  14  Prefactor     8.6317        8.8444        .32747E-07    .13792E-04
  15  Prefactor     9.5787        13.496        .10537E-05   -.28524E-03
  16  Normalizat    1.7795        .21838       -.20652E-06   -.14306E-03
  17  Prefactor     .63877        .16494       -.24625E-06   -.12383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.39503
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 2.88385
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 6.77254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.4685
  Prefactor  = 0.000100007
  Prefactor  = 4.08951
  Prefactor  = 8.63171
  Prefactor  = 9.57867
  Normalizat = 1.77952
  Prefactor  = 0.638772
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.950     FROM HESSE     STATUS=OK           225 CALLS     1813 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3950        2.0596        .73890E-04   -1.5289    
   2  Prefactor     .10001E-03    37.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8839        9.9608        .23908E-03   -1.5368    
   5  Prefactor     .10003E-03    34.160        .41174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7725        9.9272        .77104E-03   -1.5187    
   8  Prefactor     .10000E-03    23.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .46850        12.131        .23078E-02   -1.5571    
  12  Prefactor     .10001E-03    33.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0895        4.1323        .15374E-03   -1.5303    
  14  Prefactor     8.6317        8.8495        .13649E-03   -1.5120    
  15  Prefactor     9.5787        14.215        .64742E-03   -1.5089    
  16  Normalizat    1.7795        .25968        .23971E-03   -.70199    
  17  Prefactor     .63877        .19599        .28673E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43193e-08
Minuit parameter uncertainties:
  1  2.05962
  2  0.000973841
  3  0.000349769
  4  9.96656
  5  0.00205854
  6  8.1939e-05
  7  9.92964
  8  0.000173575
  9  5.48505e-05
  10  6.97688e-06
  11  4.76844
  12  0.000939616
  13  4.13259
  14  8.85081
  15  14.22
  16  0.259876
  17  0.196198
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  6.773e+00  9.930e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  6.388e-01  1.962e-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.780e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510783/likelihoodResults_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.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) = 6018.91927764
delta logL = 0.0312060111655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6018.91723337
delta logL = 0.0332502775318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3851       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9147       1.0000          .0000       10.000    
     3 'Normalizat'    1.7904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63435       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=   6018.917     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3725        558.77        .36897E-02    .35225E-04
   2  Index         1.9125        6.5768        .26305       -.99079E-05
   3  Normalizat    1.7900        .15308        .54094E-01    .22628E-06
   4  Prefactor     .63465        .67722E-01    .64992E-01    .17207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37246
  Index      = 1.91247
  Normalizat = 1.78995
  Prefactor  = 0.634646
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.917     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3725        11.009        .14759E-03   -1.5165    
   2  Index         1.9125        1.2346        .15758E-01   -.66557    
   3  Normalizat    1.7900        .25625        .23915E-03   -.69926    
   4  Prefactor     .63465        .19510        .28757E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1701e-12
Minuit parameter uncertainties:
  1  11.0123
  2  1.25586
  3  0.256437
  4  0.195306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510783': 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) = 6018.91722917
delta logL = 0.0332544791127

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.372e+00  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.912e+00  1.256e+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:  6.346e-01  1.953e-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.790e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/510783/cmap_HighResolution_323827201_324086401_4FGL_J1322.2+0842_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-07 14:13:10.647692', job_id='510783', GAL2='0.63', fit_tolerance='1e-08', EG2='1.79', EG='1.78', time_epoch_completed='1631049190.65', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.33e-02', ts2='0.76', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='326' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 510783: <4FGL_J1322.2+0842_daily_bin326> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin326> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:01:02 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:02:03 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:02:03 2021
Terminated at Tue Sep  7 14:13:11 2021
Results reported at Tue Sep  7 14:13:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin326 200.551 8.7036 323827201 324086401 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            729 sec.

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

