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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin544
RA = 200.551, Dec = 8.7036
tmin = 380332801, tmax = 380592001
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='512133', job_status='RUN', time_executed='2021-09-07 14:08:47.220842', time_epoch_executed='1631048927.22' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512133/ft1_4FGL_J1322.2+0842_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512133/ft1_4FGL_J1322.2+0842_daily_bin544.fits outfile=/scratch/kocevski/512133/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin544.fits ra=200.551 dec=8.7036 rad=12.0 tmin=380332801.0 tmax=380592001.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.51
user 3.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512133/ft1_filtered_4FGL_J1322.2+0842_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/512133/ltcube_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.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/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits
.....................!
real 17.80
user 17.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512133/ft1_filtered_4FGL_J1322.2+0842_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/512133/ltcube_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.fits outfile=/scratch/kocevski/512133/expmap_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.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/512133/ltcube_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.fits
.....................!
real 193.16
user 187.63
sys 5.02

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/512133/ft1_filtered_4FGL_J1322.2+0842_daily_bin544.fits scfile=/scratch/kocevski/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits outfile=/scratch/kocevski/512133/cmap_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512133/ft1_filtered_4FGL_J1322.2+0842_daily_bin544.fits scfile=/scratch/kocevski/512133/ft2_4FGL_J1322.2+0842_daily_bin544.fits outfile=/scratch/kocevski/512133/cmap_HighResolution_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9880       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.281       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91731       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=   8054.090     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1368 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.340        2.5482        .18450E-07   -.10781E-04
   2  Prefactor     .10000E-03    54.182        .94794E-06** at limit **
   3  Prefactor     1.6303        207.57       -.87649E-05    .59039E-05
   4  Prefactor     34.289        15.506       -.15074E-05    .76271E-04
   5  Prefactor     9.9905        14.627        .79473E-06    .10456E-04
   6  Prefactor     15.102        14.797        .15212E-06   -.73066E-05
   7  Prefactor     .10000E-03    2.9768        .69482E-07** at limit **
   8  Prefactor     .10000E-03    15.524       -.17005E-07** at limit **
   9  Prefactor     48.286        37.659        .35969E-06    .24016E-05
  10  norm          .10000E-03    10.554        .62907E-07** at limit **
  11  Prefactor     4.7885        3.5276        .20030E-06    .51443E-05
  12  Prefactor     2.6952        8.2939        .60768E-06    .29919E-05
  13  Prefactor     .10000E-03    3.0223        .10518E-06** at limit **
  14  Prefactor     16.033        15.146        .16465E-06   -.12906E-04
  15  Prefactor     .10000E-03    5.3270        .34225E-07** at limit **
  16  Normalizat    1.1271        .18907       -.17603E-05    .53144E-04
  17  Prefactor     .91734        .14383        .90576E-06   -.11297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3401
  Prefactor  = 0.0001
  Prefactor  = 1.63029
  Prefactor  = 34.2889
  Prefactor  = 9.99052
  Prefactor  = 15.1018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2856
  norm       = 0.0001
  Prefactor  = 4.78855
  Prefactor  = 2.69517
  Prefactor  = 0.0001
  Prefactor  = 16.0331
  Prefactor  = 0.0001
  Normalizat = 1.1271
  Prefactor  = 0.917339
 **********
 **   18 **HESSE 
 **********

 FCN=   8054.090     FROM HESSE     STATUS=OK           227 CALLS     1595 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.340        2.5509        .60494E-04   -1.4977    
   2  Prefactor     .10000E-03    54.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6303        217.03        .32119E-02   -1.5453    
   4  Prefactor     34.289        15.856        .68435E-04   -1.4536    
   5  Prefactor     9.9905        14.648        .12679E-03   -1.5076    
   6  Prefactor     15.102        14.807        .10307E-03   -1.4931    
   7  Prefactor     .10000E-03    2.9826        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.286        37.671        .28855E-03   -1.4317    
  10  norm          .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7885        3.5292        .13780E-03   -1.5270    
  12  Prefactor     2.6952        8.2775        .24812E-03   -1.5380    
  13  Prefactor     .10000E-03    3.1150        .30455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.033        15.169        .10003E-03   -1.4907    
  15  Prefactor     .10000E-03    5.3483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1271        .22333        .27551E-03   -.88886    
  17  Prefactor     .91734        .17026        .23832E-03   -.95538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10295e-10
Minuit parameter uncertainties:
  1  2.55092
  2  5.53303e-05
  3  37.7595
  4  15.8583
  5  14.6536
  6  14.8105
  7  2.98543e-06
  8  3.99013e-06
  9  37.6899
  10  5.99366e-08
  11  3.52933
  12  8.28104
  13  1.0338e-06
  14  15.1728
  15  2.27171e-06
  16  0.223515
  17  0.170363
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.985e-06  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:  9.173e-01  1.704e-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.127e+00  2.235e-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: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512133/likelihoodResults_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.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) = 8054.09152582
delta logL = -0.00159239048935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8054.08993343
delta logL = 2.80942913378e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2482       1.0000          .0000       10.000    
     3 'Normalizat'    1.1271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91737       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8054.090     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    6.4034        .15243E-01** at limit **
   2  Index         1.8132        8.9717        .50000        .15869E-05
   3  Normalizat    1.1271        .60249E-02    .27552E-03   -.28100E-04
   4  Prefactor     .91734        .47809E-02    .23832E-03   -.36207E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8054.090     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      359 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    6.4034        .30393E-03** at limit **
   2  Index         1.8132        8.9717        .18852E-02    .15869E-05
   3  Normalizat    1.1271        .60249E-02    .47782E-05   -.28100E-04
   4  Prefactor     .91734        .47809E-02    .54191E-05   -.36207E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8054.090     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      392 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    272.29        .16291E-02** at limit **
   2  Index         1.8413        5.7662        .50000        .40911E-05
   3  Normalizat    1.1271        .43579E-01    .11021E-04   -.26409E-04
   4  Prefactor     .91734        .34572E-01    .95329E-05   -.34823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100094
  Index      = 1.84135
  Normalizat = 1.1271
  Prefactor  = 0.917341
 **********
 **   18 **HESSE 
 **********

 FCN=   8054.090     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      421 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    837.64        .32582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8413        5.7701        .50000       -.68378    
   3  Normalizat    1.1271        .20954        .22041E-05   -.88886    
   4  Prefactor     .91734        .16539        .19066E-05   -.95538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96096e-08
Minuit parameter uncertainties:
  1  0.0179914
  2  2510.47
  3  0.209693
  4  0.16548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512133': 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) = 8054.08993116
delta logL = 2.27482723858e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.001e-04  1.799e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.841e+00  2.510e+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:  9.173e-01  1.655e-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.127e+00  2.097e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/512133/cmap_HighResolution_380332801_380592001_4FGL_J1322.2+0842_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-07 14:18:50.028399', job_id='512133', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631049530.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='544' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:18:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 512133: <4FGL_J1322.2+0842_daily_bin544> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin544> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:32 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:48 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:48 2021
Terminated at Tue Sep  7 14:18:50 2021
Results reported at Tue Sep  7 14:18:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin544 200.551 8.7036 380332801 380592001 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            798 sec.

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

