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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin666
RA = 200.551, Dec = 8.7036
tmin = 411955201, tmax = 412214401
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='513377', job_status='RUN', time_executed='2021-09-07 14:13:58.853614', time_epoch_executed='1631049238.85' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513377/ft1_4FGL_J1322.2+0842_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513377/ft1_4FGL_J1322.2+0842_daily_bin666.fits outfile=/scratch/kocevski/513377/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin666.fits ra=200.551 dec=8.7036 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.67
user 5.36
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.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/513377/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/513377/ft1_filtered_4FGL_J1322.2+0842_daily_bin666.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/513377/ft1_filtered_4FGL_J1322.2+0842_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/513377/ltcube_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.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/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits
.....................!
real 17.23
user 16.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513377/ft1_filtered_4FGL_J1322.2+0842_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/513377/ltcube_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.fits outfile=/scratch/kocevski/513377/expmap_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.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/513377/ltcube_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.fits
.....................!
real 192.69
user 187.75
sys 4.41

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/513377/ft1_filtered_4FGL_J1322.2+0842_daily_bin666.fits scfile=/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits outfile=/scratch/kocevski/513377/cmap_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513377/ft1_filtered_4FGL_J1322.2+0842_daily_bin666.fits scfile=/scratch/kocevski/513377/ft2_4FGL_J1322.2+0842_daily_bin666.fits outfile=/scratch/kocevski/513377/cmap_HighResolution_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.261       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54306E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.614       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.052       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90858       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0174       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=   6162.611     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1609 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6595        3.0563        .41920E-07   -.26115E-04
   2  Prefactor     .10000E-03    13.476        .13588E-05** at limit **
   3  Prefactor     .10000E-03    47.724        .63814E-05** at limit **
   4  Prefactor     .10000E-03    15.678       -.14098E-05** at limit **
   5  Prefactor     9.8324        15.952       -.21599E-06   -.59746E-04
   6  Prefactor     .10000E-03    3.9632        .79277E-07** at limit **
   7  Prefactor     .10000E-03    6.1406        .39254E-06** at limit **
   8  Prefactor     .10000E-03    18.208        .12816E-05** at limit **
   9  Prefactor     75.259        65.972       -.11546E-05   -.53996E-04
  10  norm          .10000E-03    8.6016       -.19312E-06** at limit **
  11  Prefactor     .37305E-01    87.181       -.42943E-05   -.55702E-05
  12  Prefactor     15.615        12.476       -.10122E-07   -.39279E-05
  13  Prefactor     2.5780        4.4791        .24586E-06   -.13558E-03
  14  Prefactor     .10000E-03    2.4903       -.40541E-08** at limit **
  15  Prefactor     30.053        16.297        .12396E-06   -.52127E-05
  16  Normalizat    .90854        .22732       -.44381E-05   -.31036E-04
  17  Prefactor     1.0175        .17469        .29861E-05   -.25301E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.65948
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 9.83236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.2589
  norm       = 0.0001
  Prefactor  = 0.037305
  Prefactor  = 15.6146
  Prefactor  = 2.57795
  Prefactor  = 0.0001
  Prefactor  = 30.053
  Normalizat = 0.908541
  Prefactor  = 1.01753
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.611     FROM HESSE     STATUS=OK           227 CALLS     1836 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6595        3.0571        .78900E-04   -1.5119    
   2  Prefactor     .10000E-03    13.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8324        16.052        .12777E-03   -1.5081    
   6  Prefactor     .10000E-03    3.9649        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     75.259        66.231        .46283E-04   -1.3971    
  10  norm          .10000E-03    8.6062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37305E-01    5.2263        .35356E-01   -1.5669    
  12  Prefactor     15.615        12.475        .10136E-03   -1.4917    
  13  Prefactor     2.5780        4.4841        .20766E-03   -1.5387    
  14  Prefactor     .10000E-03    2.4917        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.053        16.296        .73087E-04   -1.4611    
  16  Normalizat    .90854        .23881        .28599E-03   -.96161    
  17  Prefactor     1.0175        .18272        .21303E-03   -.92148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06071e-10
Minuit parameter uncertainties:
  1  3.05715
  2  9.63322e-05
  3  0.000892416
  4  4.82176e-05
  5  16.0592
  6  3.49808e-06
  7  2.08897e-05
  8  0.000105732
  9  66.2958
  10  1.16274e-05
  11  0.881997
  12  12.4775
  13  4.48471
  14  1.14106e-06
  15  16.298
  16  0.239087
  17  0.182829
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.089e-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.018e+00  1.828e-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:  9.085e-01  2.391e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513377/likelihoodResults_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.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) = 6162.61138569
delta logL = -0.000767078709032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6162.61061861
delta logL = -5.36329025635e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2499       1.0000          .0000       10.000    
     3 'Normalizat'    .90853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6162.611     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    107.89        .18142E-02** at limit **
   2  Index         2.1841        6.0118        .50000        .11678E-04
   3  Normalizat    .90854        .19874E-01    .28599E-03    .13118E-05
   4  Prefactor     1.0175        .15676E-01    .21303E-03   -.37891E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100967
  Index      = 2.18405
  Normalizat = 0.908539
  Prefactor  = 1.01753
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.611     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    471.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1841        5.9724        .50000       -.59824    
   3  Normalizat    .90854        .45087E-01    .11440E-04   -.96161    
   4  Prefactor     1.0175        .35533E-01    .85211E-05   -.92147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78578e-08
Minuit parameter uncertainties:
  1  0.0430244
  2  1196.89
  3  0.0450889
  4  0.0355334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513377': 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) = 6162.61061842
delta logL = 1.88527337741e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.010e-04  4.302e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.184e+00  1.197e+03  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.018e+00  3.553e-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:  9.085e-01  4.509e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/513377/cmap_HighResolution_411955201_412214401_4FGL_J1322.2+0842_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-07 14:23:01.293286', job_id='513377', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631049781.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='666' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 513377: <4FGL_J1322.2+0842_daily_bin666> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin666> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:21 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:10:36 2021
Terminated at Tue Sep  7 14:23:02 2021
Results reported at Tue Sep  7 14:23:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin666 200.551 8.7036 411955201 412214401 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 :                                   542.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            761 sec.

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

