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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin280
RA = 200.551, Dec = 8.7036
tmin = 311904001, tmax = 312163201
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='510729', job_status='RUN', time_executed='2021-09-07 14:04:16.326813', time_epoch_executed='1631048656.33' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510729/ft1_4FGL_J1322.2+0842_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510729/ft1_4FGL_J1322.2+0842_daily_bin280.fits outfile=/scratch/kocevski/510729/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin280.fits ra=200.551 dec=8.7036 rad=12.0 tmin=311904001.0 tmax=312163201.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.54
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510729/ft1_filtered_4FGL_J1322.2+0842_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/510729/ltcube_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.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/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits
.....................!
real 17.20
user 16.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510729/ft1_filtered_4FGL_J1322.2+0842_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/510729/ltcube_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.fits outfile=/scratch/kocevski/510729/expmap_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.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/510729/ltcube_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.fits
.....................!
real 195.74
user 189.77
sys 5.28

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/510729/ft1_filtered_4FGL_J1322.2+0842_daily_bin280.fits scfile=/scratch/kocevski/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits outfile=/scratch/kocevski/510729/cmap_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510729/ft1_filtered_4FGL_J1322.2+0842_daily_bin280.fits scfile=/scratch/kocevski/510729/ft2_4FGL_J1322.2+0842_daily_bin280.fits outfile=/scratch/kocevski/510729/cmap_HighResolution_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87128       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.854       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6373       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73373       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=   6850.258     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1557 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87128        .88724       -.53538E-08    .23461E-03
   2  Prefactor     .10000E-03    13.644        .23161E-05** at limit **
   3  Prefactor     4.0409        134.17       -.19905E-04   -.11479E-05
   4  Prefactor     10.916        16.557        .29696E-05    .11636E-05
   5  Prefactor     21.381        18.791       -.28219E-06   -.15760E-04
   6  Prefactor     .10000E-03    11.383       -.62128E-05** at limit **
   7  Prefactor     .10000E-03    8.6775       -.29547E-05** at limit **
   8  Prefactor     .10000E-03    62.195       -.10517E-05** at limit **
   9  Prefactor     82.849        62.390       -.46685E-05    .64274E-04
  10  norm          .10000E-03    10.412        .10153E-05** at limit **
  11  Prefactor     6.0439        5.2761        .83601E-06   -.44312E-03
  12  Prefactor     .10000E-03    9.6545        .55792E-05** at limit **
  13  Prefactor     .10000E-03    1.7349        .60702E-07** at limit **
  14  Prefactor     11.545        14.012       -.13327E-05   -.83000E-03
  15  Prefactor     .10000E-03    7.1651        .16716E-06** at limit **
  16  Normalizat    1.6372        .20843       -.23214E-06    .10171E-03
  17  Prefactor     .73378        .15549        .49717E-06    .22344E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.871281
  Prefactor  = 0.0001
  Prefactor  = 4.04094
  Prefactor  = 10.9161
  Prefactor  = 21.3813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.8489
  norm       = 0.0001
  Prefactor  = 6.04385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5446
  Prefactor  = 0.0001
  Normalizat = 1.63723
  Prefactor  = 0.733779
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.258     FROM HESSE     STATUS=OK           219 CALLS     1776 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87128        .90252        .76563E-04   -1.5521    
   2  Prefactor     .10000E-03    13.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0409        131.75        .20045E-03   -1.5306    
   4  Prefactor     10.916        16.309        .12126E-03   -1.5047    
   5  Prefactor     21.381        18.853        .86621E-04   -1.4783    
   6  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     82.849        61.984        .44128E-04   -1.3885    
  10  norm          .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0439        5.2327        .16331E-03   -1.5216    
  12  Prefactor     .10000E-03    9.4999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7459        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.545        14.734        .58949E-03   -1.5028    
  15  Prefactor     .10000E-03    7.1885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.6372        .25096        .25281E-03   -.73992    
  17  Prefactor     .73378        .18562        .27371E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58129e-09
Minuit parameter uncertainties:
  1  0.902534
  2  5.2627e-05
  3  46.2578
  4  16.3154
  5  18.8579
  6  0.000135487
  7  5.73427e-05
  8  9.51804e-05
  9  62.0323
  10  2.06532e-05
  11  5.23306
  12  0.000108627
  13  1.34428e-06
  14  14.7387
  15  7.94165e-06
  16  0.251158
  17  0.185775
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.734e-05  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:  7.338e-01  1.858e-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.637e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510729/likelihoodResults_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.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) = 6850.2584012
delta logL = -0.00054849488788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6850.25785425
delta logL = -1.54134704644e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2838       1.0000          .0000       10.000    
     3 'Normalizat'    1.6369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73402       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=   6850.258     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.317        .90712E-02** at limit **
   2  Index         2.3059        6.0358        .50000       -.22841E-04
   3  Normalizat    1.6372        .20070        .57175E-01    .12204E-03
   4  Prefactor     .73378        .15354        .61879E-01    .11691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.30593
  Normalizat = 1.63723
  Prefactor  = 0.73378
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.258     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    815.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3059        8.1253        .50000       -.56903    
   3  Normalizat    1.6372        .56208E-01    .25281E-03   -.73992    
   4  Prefactor     .73378        .42962E-01    .27371E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23916e-09
Minuit parameter uncertainties:
  1  0.0031499
  2  40.6348
  3  0.0562106
  4  0.0429636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510729': 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) = 6850.25785248
delta logL = 2.24050381803e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.150e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.306e+00  4.063e+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:  7.338e-01  4.296e-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.637e+00  5.621e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/510729/cmap_HighResolution_311904001_312163201_4FGL_J1322.2+0842_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-07 14:13:38.719016', job_id='510729', GAL2='0.73', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631049218.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='280' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 510729: <4FGL_J1322.2+0842_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin280 200.551 8.7036 311904001 312163201 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            763 sec.

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

