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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin397
RA = 200.976, Dec = 14.0871
tmin = 342230401, tmax = 342489601
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='527768', job_status='RUN', time_executed='2021-09-07 14:56:12.842543', time_epoch_executed='1631051772.84' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527768/ft1_4FGL_J1323.9+1405_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527768/ft1_4FGL_J1323.9+1405_daily_bin397.fits outfile=/scratch/kocevski/527768/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin397.fits ra=200.976 dec=14.0871 rad=12.0 tmin=342230401.0 tmax=342489601.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.53
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.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/527768/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.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.67
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/527768/ltcube_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.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/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits
.....................!
real 13.59
user 13.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/527768/ltcube_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits outfile=/scratch/kocevski/527768/expmap_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.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/527768/ltcube_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits
.....................!
real 191.32
user 185.65
sys 4.91

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1323.9+1405 @ 200.976 14.0871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits outfile=/scratch/kocevski/527768/cmap_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.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.976 yref=14.0871 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits outfile=/scratch/kocevski/527768/cmap_HighResolution_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.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.976 yref=14.0871 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/527768/Model_4FGL_J1323.9+1405_daily_bin397.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/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits.....................!
real 50.76
user 49.11
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits', '/scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits', expMap='/scratch/kocevski/527768/expmap_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits', expCube='/scratch/kocevski/527768/ltcube_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/527768/Model_4FGL_J1323.9+1405_daily_bin397.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1323.9+1405'

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  5.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/527768/ft1_filtered_4FGL_J1323.9+1405_daily_bin397.fits
Spacecraft file(s): /scratch/kocevski/527768/ft2_4FGL_J1323.9+1405_daily_bin397.fits
Exposure map: /scratch/kocevski/527768/expmap_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits
Exposure cube: /scratch/kocevski/527768/ltcube_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/527768/Model_4FGL_J1323.9+1405_daily_bin397.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) = 6282.69927483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7120       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6354       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4436       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89861       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6282.646     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1380 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.392       -.71429E-07** at limit **
   2  Prefactor     .10000E-03    2.0355       -.19993E-07** at limit **
   3  Prefactor     14.386        14.602       -.39267E-05   -.65328E-04
   4  Prefactor     7.7072        14.598        .43125E-05   -.42107E-04
   5  norm          7.6362        4.5557        .20566E-05   -.44554E-04
   6  norm          .10000E-03    6.7713       -.99691E-07** at limit **
   7  norm          11.023        6.8641        .85389E-06   -.41755E-04
   8  Prefactor     .10000E-03    5.0726        .18082E-07** at limit **
   9  Prefactor     .10000E-03    123.38       -.13586E-05** at limit **
  10  norm          .10000E-03    14.905       -.44096E-06** at limit **
  11  Prefactor     12.657        41.358        .26928E-04   -.37671E-05
  12  Prefactor     2.3158        3.9901       -.72045E-06   -.69233E-03
  13  Prefactor     .10000E-03    1.4339        .84204E-07** at limit **
  14  Prefactor     23.828        15.233        .25901E-06   -.12751E-04
  15  Prefactor     7.4529        12.821       -.54130E-05   -.78621E-04
  16  Normalizat    .89857        .20422        .46347E-06   -.61140E-04
  17  Prefactor     1.2977        .16824       -.10449E-05    .71301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3855
  Prefactor  = 7.70719
  norm       = 7.63619
  norm       = 0.0001
  norm       = 11.0225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6575
  Prefactor  = 2.31581
  Prefactor  = 0.0001
  Prefactor  = 23.8284
  Prefactor  = 7.45293
  Normalizat = 0.898568
  Prefactor  = 1.29768
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.646     FROM HESSE     STATUS=OK           223 CALLS     1603 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0379        .11044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.386        14.625        .10561E-03   -1.4949    
   4  Prefactor     7.7072        14.543        .14440E-03   -1.5153    
   5  norm          7.6362        4.5498        .12657E-03   -1.5155    
   6  norm          .10000E-03    6.7772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.023        6.8565        .12063E-03   -1.5044    
   8  Prefactor     .10000E-03    5.0898        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    127.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.657        41.187        .11267E-03   -1.4996    
  12  Prefactor     2.3158        4.0001        .19946E-03   -1.5404    
  13  Prefactor     .10000E-03    1.4369        .92681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.828        15.239        .82059E-04   -1.4731    
  15  Prefactor     7.4529        12.919        .14700E-03   -1.5162    
  16  Normalizat    .89857        .24472        .29905E-03   -.96510    
  17  Prefactor     1.2977        .20171        .21964E-03   -.83376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3628e-10
Minuit parameter uncertainties:
  1  8.19065e-05
  2  3.77526e-06
  3  14.6282
  4  14.5495
  5  4.54996
  6  9.22283e-06
  7  6.857
  8  1.4707e-06
  9  0.00014171
  10  8.83062e-05
  11  41.2799
  12  4.00053
  13  2.91065e-06
  14  15.242
  15  12.9234
  16  0.245025
  17  0.201831
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  1.417e-04  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.298e+00  2.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.986e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.976 14.087
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/527768/likelihoodResults_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.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) = 6282.6457123
delta logL = -3.72428658011e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.54920609
delta logL = 0.09646896303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8427       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8252       1.0000          .0000       10.000    
     3 'Normalizat'    .88552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   6282.549     FROM MIGRAD    STATUS=FAILED        93 CALLS      327 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8439        544.83        .25462E-03    .44494E-03
   2  Index         2.8252        6.3112        .11066E-01    .16963E-03
   3  Normalizat    .88549        .22280        .30106E-03    .24945E-03
   4  Prefactor     1.2994        .18616        .21950E-03    .34554E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6282.549     FROM SIMPLEX   STATUS=UNCHANGED    103 CALLS      430 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8439        544.83        .23899E-03    .44494E-03
   2  Index         2.8252        6.3112        .90627E-03    .16963E-03
   3  Normalizat    .88549        .22280        .76142E-04    .24945E-03
   4  Prefactor     1.2994        .18616        .25619E-04    .34554E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6282.549     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      460 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8441        10.735        .10185E-04    .64028E-03
   2  Index         2.8252        1.7007        .44264E-03    .10810E-03
   3  Normalizat    .88549        .23180        .12043E-04    .26074E-03
   4  Prefactor     1.2994        .19919        .43899E-04    .36246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84408
  Index      = 2.8252
  Normalizat = 0.885488
  Prefactor  = 1.29937
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.549     FROM HESSE     STATUS=OK            23 CALLS      483 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8441        10.279        .20369E-05   -1.5436    
   2  Index         2.8252        1.6653        .17706E-04   -.44999    
   3  Normalizat    .88549        .23183        .24085E-05   -.96972    
   4  Prefactor     1.2994        .19921        .87798E-05   -.83326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11829e-10
Minuit parameter uncertainties:
  1  8.70941
  2  1.70587
  3  0.232087
  4  0.199323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527768': 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): 0
logL (Free Index) = 6282.54920603
delta logL = 0.0964690258752

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.844e+00  8.709e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.825e+00  1.706e+00  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.299e+00  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.855e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.976 14.087

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/527768/cmap_HighResolution_342230401_342489601_4FGL_J1323.9+1405_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-07 15:05:12.539855', job_id='527768', GAL2='1.30', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1631052312.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='9.65e-02', ts2='0.19', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='397' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 527768: <4FGL_J1323.9+1405_daily_bin397> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin397> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 14:55:38 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:55:59 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:55:59 2021
Terminated at Tue Sep  7 15:05:13 2021
Results reported at Tue Sep  7 15:05:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin397 200.976 14.0871 342230401 342489601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1323.9+1405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            575 sec.

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

