/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 156 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin122
RA = 200.551, Dec = 8.7036
tmin = 270950401, tmax = 271209601
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='510505', job_status='RUN', time_executed='2021-09-07 14:03:39.924926', time_epoch_executed='1631048619.92' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510505/ft1_4FGL_J1322.2+0842_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510505/ft1_4FGL_J1322.2+0842_daily_bin122.fits outfile=/scratch/kocevski/510505/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin122.fits ra=200.551 dec=8.7036 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.64
user 1.44
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510505/ft1_filtered_4FGL_J1322.2+0842_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/510505/ltcube_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.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/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits
.....................!
real 17.66
user 17.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510505/ft1_filtered_4FGL_J1322.2+0842_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/510505/ltcube_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.fits outfile=/scratch/kocevski/510505/expmap_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.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/510505/ltcube_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.fits
.....................!
real 192.49
user 186.99
sys 4.92

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/510505/ft1_filtered_4FGL_J1322.2+0842_daily_bin122.fits scfile=/scratch/kocevski/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits outfile=/scratch/kocevski/510505/cmap_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.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/510505/ft1_filtered_4FGL_J1322.2+0842_daily_bin122.fits scfile=/scratch/kocevski/510505/ft2_4FGL_J1322.2+0842_daily_bin122.fits outfile=/scratch/kocevski/510505/cmap_HighResolution_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.373       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1858       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .59465E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1963       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2996       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84289       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=   7895.056     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1585 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3283        1.7344        .48407E-02   -.25077E-03
   2  Prefactor     .10000E-03    10.373        .90712E-02** at limit **
   3  Prefactor     .10000E-03    14.988        .90712E-02** at limit **
   4  Prefactor     13.380        10.626        .27383E-02    .20702E-02
   5  Prefactor     5.8628        10.511        .41450E-02   -.77189E-03
   6  Prefactor     .10000E-03    7.7881        .90712E-02** at limit **
   7  Prefactor     5.1867        10.483        .44132E-02    .28349E-03
   8  Prefactor     4.0870        24.520        .49875E-02   -.75361E-04
   9  Prefactor     .10000E-03    12.513        .90712E-02** at limit **
  10  norm          .10000E-03    86.057        .10534E-01** at limit **
  11  Prefactor     .10000E-03    2.7813        .90712E-02** at limit **
  12  Prefactor     23.417        19.971        .20690E-02    .11178E-02
  13  Prefactor     .10000E-03    1.5647        .90712E-02** at limit **
  14  Prefactor     19.916        13.540        .22437E-02   -.21810E-03
  15  Prefactor     1.1996        26.557        .10391E-01    .41081E-03
  16  Normalizat    1.2996        .18260        .56938E-01    .76791E-04
  17  Prefactor     .84279        .14042        .44273E-01    .55923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32833
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.3798
  Prefactor  = 5.86278
  Prefactor  = 0.0001
  Prefactor  = 5.18672
  Prefactor  = 4.087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4171
  Prefactor  = 0.0001
  Prefactor  = 19.9158
  Prefactor  = 1.19964
  Normalizat = 1.2996
  Prefactor  = 0.842789
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.056     FROM HESSE     STATUS=OK           223 CALLS     1808 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3283        1.7337        .71409E-04   -1.5292    
   2  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.380        10.660        .10953E-03   -1.4976    
   5  Prefactor     5.8628        10.534        .16580E-03   -1.5224    
   6  Prefactor     .10000E-03    7.8085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1867        10.494        .17653E-03   -1.5252    
   8  Prefactor     4.0870        24.517        .19950E-03   -1.5304    
   9  Prefactor     .10000E-03    12.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    89.737        .42138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8669        .28907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.417        19.810        .82760E-04   -1.4740    
  13  Prefactor     .10000E-03    1.5813        .10852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.916        13.546        .89747E-04   -1.4815    
  15  Prefactor     1.1996        26.696        .41562E-03   -1.5489    
  16  Normalizat    1.2996        .22268        .25179E-03   -.83578    
  17  Prefactor     .84279        .17021        .24076E-03   -.98170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96173e-09
Minuit parameter uncertainties:
  1  1.73376
  2  9.07369e-05
  3  0.000248185
  4  10.6614
  5  10.5378
  6  3.78667e-05
  7  10.4972
  8  20.0321
  9  0.000114244
  10  4.0216e-05
  11  4.1376e-05
  12  19.8157
  13  5.36356e-06
  14  13.5476
  15  11.3234
  16  0.22284
  17  0.170319
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.187e+00  1.050e+01  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:  8.428e-01  1.703e-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.300e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510505/likelihoodResults_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.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) = 7893.94275572
delta logL = 1.11374422997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7893.92258067
delta logL = 1.13391927943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85308       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8905       1.0000          .0000       10.000    
     3 'Normalizat'    1.1972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89373       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=   7893.923     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      268 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85132        6.4922        .11726E-01    .11025E-02
   2  Index         3.8914        1.7849        .11266        .19127E-03
   3  Normalizat    1.1973        .39677E-01    .58963E-01   -.68394E-05
   4  Prefactor     .89372        .31422E-01    .44925E-01    .54691E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.851316
  Index      = 3.89138
  Normalizat = 1.19726
  Prefactor  = 0.893722
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.923     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85132        17.718        .53068E-04   -1.5523    
   2  Index         3.8914        3.5605        .39021E-02   -.22358    
   3  Normalizat    1.1973        .19785        .26077E-03   -.86688    
   4  Prefactor     .89372        .15509        .23448E-03   -.96361    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.8555e-07
Minuit parameter uncertainties:
  1  7.76973
  2  3.99171
  3  0.197973
  4  0.155167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510505': 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) = 7893.9225804
delta logL = 1.13391954895

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.513e-01  7.770e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.891e+00  3.992e+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:  8.937e-01  1.552e-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.197e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.89 +/- 3.99
Photon Flux (Free Index): 8.96e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.26e-05

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/510505/cmap_HighResolution_270950401_271209601_4FGL_J1322.2+0842_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='1.13e+00', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-07 14:13:36.647130', photon_index_error2='3.99', photon_index2='3.89', ts='0.30', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.37e-08', energy_flux_error2='1.26e-05', EG='1.30', time_epoch_completed='1631049216.65', return_code='0', job_id='510505', GAL2='0.89', EG2='1.20', return_code2='102', photon_flux_error2='6.11e-08', ts2='2.75', photon_index='2.26' WHERE bin_id='122' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 510505: <4FGL_J1322.2+0842_daily_bin122> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin122> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:41 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:00:52 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:00:52 2021
Terminated at Tue Sep  7 14:13:37 2021
Results reported at Tue Sep  7 14:13:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin122 200.551 8.7036 270950401 271209601 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 :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            776 sec.

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

