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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin486
RA = 200.551, Dec = 8.7036
tmin = 365299201, tmax = 365558401
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='512049', job_status='RUN', time_executed='2021-09-07 14:08:43.515230', time_epoch_executed='1631048923.52' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512049

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512049/ft1_4FGL_J1322.2+0842_daily_bin486.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512049/ft1_4FGL_J1322.2+0842_daily_bin486.fits outfile=/scratch/kocevski/512049/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin486.fits ra=200.551 dec=8.7036 rad=12.0 tmin=365299201.0 tmax=365558401.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.50
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512049/ft1_filtered_4FGL_J1322.2+0842_daily_bin486.fits" evtable="EVENTS" scfile=/scratch/kocevski/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits sctable="SC_DATA" outfile=/scratch/kocevski/512049/ltcube_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.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/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits
.....................!
real 16.22
user 15.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512049/ft1_filtered_4FGL_J1322.2+0842_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits sctable="SC_DATA" expcube=/scratch/kocevski/512049/ltcube_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.fits outfile=/scratch/kocevski/512049/expmap_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.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/512049/ltcube_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.fits
.....................!
real 192.62
user 186.77
sys 5.15

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/512049/ft1_filtered_4FGL_J1322.2+0842_daily_bin486.fits scfile=/scratch/kocevski/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits outfile=/scratch/kocevski/512049/cmap_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512049/ft1_filtered_4FGL_J1322.2+0842_daily_bin486.fits scfile=/scratch/kocevski/512049/ft2_4FGL_J1322.2+0842_daily_bin486.fits outfile=/scratch/kocevski/512049/cmap_HighResolution_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.091       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.439       1.0000         .10000E-03   10000.    
    10 'norm      '    22.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-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 '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .87300       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1906       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=   6006.771     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     1559 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4592        1.3208       -.40112E-07   -.37259E-03
   2  Prefactor     .10000E-03    27.269        .23419E-07** at limit **
   3  Prefactor     32.098        35.494        .91271E-05    .14489E-05
   4  Prefactor     .10000E-03    10.259       -.29640E-06** at limit **
   5  Prefactor     12.131        14.128        .33106E-06   -.41122E-04
   6  Prefactor     17.495        16.160       -.17737E-06   -.18676E-05
   7  Prefactor     .10000E-03    13.180       -.19065E-05** at limit **
   8  Prefactor     83.101        44.008       -.44689E-07   -.23347E-06
   9  Prefactor     94.440        57.608        .99718E-06   -.13540E-05
  10  norm          22.296        28.652       -.12425E-05   -.34046E-05
  11  Prefactor     4.3619        4.7734       -.17800E-06   -.43030E-03
  12  Prefactor     .10000E-03    19.403        .65787E-06** at limit **
  13  Prefactor     .10000E-03    1.3788       -.67068E-07** at limit **
  14  Prefactor     .10000E-03    13.065        .18568E-05** at limit **
  15  Prefactor     .10000E-03    18.587       -.36377E-06** at limit **
  16  Normalizat    .87302        .21438       -.81296E-06    .28202E-05
  17  Prefactor     1.1906        .17146        .79573E-08   -.11738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45923
  Prefactor  = 0.0001
  Prefactor  = 32.0981
  Prefactor  = 0.0001
  Prefactor  = 12.1309
  Prefactor  = 17.4951
  Prefactor  = 0.0001
  Prefactor  = 83.1011
  Prefactor  = 94.4404
  norm       = 22.2963
  Prefactor  = 4.36194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.873017
  Prefactor  = 1.1906
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.771     FROM HESSE     STATUS=OK           219 CALLS     1778 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4592        1.3038        .82435E-04   -1.5466    
   2  Prefactor     .10000E-03    27.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.098        35.353        .70732E-04   -1.4574    
   4  Prefactor     .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.131        14.162        .11503E-03   -1.5011    
   6  Prefactor     17.495        16.165        .95754E-04   -1.4871    
   7  Prefactor     .10000E-03    13.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     83.101        44.017        .44063E-04   -1.3882    
   9  Prefactor     94.440        57.620        .41357E-04   -1.3761    
  10  norm          22.296        28.678        .84826E-04   -1.4763    
  11  Prefactor     4.3619        4.7924        .16836E-03   -1.5290    
  12  Prefactor     .10000E-03    19.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3820        .88867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .87302        .25126        .30567E-03   -.97415    
  17  Prefactor     1.1906        .20153        .21648E-03   -.86621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44424e-10
Minuit parameter uncertainties:
  1  1.30387
  2  5.39728e-06
  3  35.3761
  4  9.33083e-05
  5  14.1658
  6  16.169
  7  4.25283e-05
  8  44.0341
  9  57.6537
  10  28.6956
  11  4.79279
  12  1.10765e-05
  13  3.18826e-07
  14  4.82035e-07
  15  2.19383e-05
  16  0.251596
  17  0.201661
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.253e-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:  1.191e+00  2.017e-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:  8.730e-01  2.516e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512049/likelihoodResults_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.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) = 6006.7716149
delta logL = -0.000347871608938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6006.77126686
delta logL = 1.61845491675e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2959       1.0000          .0000       10.000    
     3 'Normalizat'    .87302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1906       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=   6006.771     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      231 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22512        .65899E-01** at limit **
   2  Index         2.3297        8.2273        .50000       -.19535E-04
   3  Normalizat    .87302        .10894E-02    .69087E-01   -.14697E-03
   4  Prefactor     1.1906        .89030E-03    .34857E-01   -.28383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32971
  Normalizat = 0.873017
  Prefactor  = 1.1906
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.771     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.455        .33396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3297        7.0852        .50000       -.56339    
   3  Normalizat    .87302        .76942E-02    .30567E-03   -.97415    
   4  Prefactor     1.1906        .62983E-02    .21648E-03   -.86621    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20315e-07
Minuit parameter uncertainties:
  1  0.000140195
  2  102.572
  3  0.00769422
  4  0.0062983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512049': 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) = 6006.7712667
delta logL = 3.26615918311e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.402e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.330e+00  1.026e+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:  1.191e+00  6.298e-03  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:  8.730e-01  7.694e-03  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/512049/cmap_HighResolution_365299201_365558401_4FGL_J1322.2+0842_daily_bin486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-07 14:17:27.865389', job_id='512049', GAL2='1.19', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631049447.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='486' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 512049: <4FGL_J1322.2+0842_daily_bin486> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin486> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:26 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:05:40 2021
Terminated at Tue Sep  7 14:17:28 2021
Results reported at Tue Sep  7 14:17:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin486 200.551 8.7036 365299201 365558401 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 :                                   523.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            722 sec.

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

