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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1077
RA = 200.976, Dec = 14.0871
tmin = 518486401, tmax = 518745601
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='531051', job_status='RUN', time_executed='2021-09-07 15:09:40.627966', time_epoch_executed='1631052580.63' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531051/ft1_4FGL_J1323.9+1405_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531051/ft1_4FGL_J1323.9+1405_daily_bin1077.fits outfile=/scratch/kocevski/531051/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1077.fits ra=200.976 dec=14.0871 rad=12.0 tmin=518486401.0 tmax=518745601.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 7.00
user 6.58
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.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/531051/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/531051/ltcube_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits outfile=/scratch/kocevski/531051/expmap_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.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/531051/ltcube_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits
.....................!
real 192.25
user 186.43
sys 5.38

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/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.fits scfile=/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits outfile=/scratch/kocevski/531051/cmap_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.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.63
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.fits scfile=/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits outfile=/scratch/kocevski/531051/cmap_HighResolution_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.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.61
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.fits', '/scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits', expMap='/scratch/kocevski/531051/expmap_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits', expCube='/scratch/kocevski/531051/ltcube_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531051/Model_4FGL_J1323.9+1405_daily_bin1077.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/531051/ft1_filtered_4FGL_J1323.9+1405_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/531051/ft2_4FGL_J1323.9+1405_daily_bin1077.fits
Exposure map: /scratch/kocevski/531051/expmap_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits
Exposure cube: /scratch/kocevski/531051/ltcube_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531051/Model_4FGL_J1323.9+1405_daily_bin1077.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) = 6047.99283966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2053       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.458       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.889       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4632       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35379E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.212       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2848       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0743       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=   6047.959     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1602 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.898       -.26544E-05** at limit **
   2  Prefactor     2.9681        4.0743        .23171E-05   -.20541E-02
   3  Prefactor     9.2063        11.236        .24404E-06   -.99841E-05
   4  Prefactor     22.459        18.529       -.18551E-06    .87996E-04
   5  norm          .10000E-03    .92412       -.19799E-07** at limit **
   6  norm          15.888        14.653        .16430E-06    .80699E-04
   7  norm          1.2657        15.247       -.87574E-05   -.48797E-03
   8  Prefactor     .10000E-03    3.2032        .97619E-08** at limit **
   9  Prefactor     .10001E-03    85.183       -.50050E-05** at limit **
  10  norm          4.4295        13.635        .82188E-05    .18290E-03
  11  Prefactor     .10000E-03    18.823        .21167E-05** at limit **
  12  Prefactor     .10000E-03    1.8133        .96674E-08** at limit **
  13  Prefactor     .10000E-03    3.6566        .93249E-07** at limit **
  14  Prefactor     .10000E-03    11.809       -.54050E-07** at limit **
  15  Prefactor     14.215        16.567       -.47450E-06    .10021E-03
  16  Normalizat    1.2843        .21912       -.92571E-06    .23441E-03
  17  Prefactor     1.0749        .17478        .21654E-06    .13243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 2.96809
  Prefactor  = 9.20626
  Prefactor  = 22.4587
  norm       = 0.0001
  norm       = 15.8878
  norm       = 1.26566
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 4.42949
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2153
  Normalizat = 1.28431
  Prefactor  = 1.07486
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.959     FROM HESSE     STATUS=OK           223 CALLS     1825 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9681        5.7240        .11783E-02   -1.5363    
   3  Prefactor     9.2063        11.230        .13210E-03   -1.5101    
   4  Prefactor     22.459        18.615        .84523E-04   -1.4760    
   5  norm          .10000E-03    .92482        .73010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.888        14.657        .10048E-03   -1.4911    
   7  norm          1.2657        18.305        .40155E-03   -1.5483    
   8  Prefactor     .10000E-03    3.2049        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    84.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4295        14.635        .19060E-03   -1.5287    
  11  Prefactor     .10000E-03    18.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8233        .10225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2319        .28795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.215        16.646        .10625E-03   -1.4954    
  16  Normalizat    1.2843        .26924        .27246E-03   -.84036    
  17  Prefactor     1.0749        .21374        .24501E-03   -.90274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71002e-09
Minuit parameter uncertainties:
  1  0.000421319
  2  5.72508
  3  11.2326
  4  18.62
  5  3.76868e-07
  6  14.6602
  7  9.62967
  8  6.71752e-07
  9  0.00170268
  10  14.6464
  11  0.000313799
  12  1.09324e-06
  13  1.13706e-05
  14  1.5183e-05
  15  16.6513
  16  0.269537
  17  0.213906
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  1.703e-03  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.075e+00  2.139e-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:  1.284e+00  2.695e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531051/likelihoodResults_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.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) = 6047.9588058
delta logL = -5.61295673833e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6047.45856197
delta logL = 0.500187702884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18445       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0844       1.0000          .0000       10.000    
     3 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       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.

 FCN=   6047.459     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      324 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17769        3.0493        .75601E-02    .39231E-02
   2  Index         4.0975        2.0139        .75911E-01    .33962E-03
   3  Normalizat    1.2049        .44007E-01    .63289E-01    .10805E-03
   4  Prefactor     1.1113        .36791E-01    .54598E-01    .89672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.177686
  Index      = 4.09754
  Normalizat = 1.20491
  Prefactor  = 1.1113
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.459     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      359 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17769        9.4488        .34628E-03   -1.5624    
   2  Index         4.0975        4.0217        .41832E-02   -.18149    
   3  Normalizat    1.2049        .17503        .27995E-03   -.86451    
   4  Prefactor     1.1113        .14460        .24141E-03   -.89106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51027e-10
Minuit parameter uncertainties:
  1  2.59117
  2  4.70893
  3  0.175114
  4  0.144652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531051': 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) = 6047.45855058
delta logL = 0.500199094363

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.777e-01  2.591e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  4.098e+00  4.709e+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.111e+00  1.447e-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:  1.205e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 200.976 14.087
Photon Index (Free Index): 4.10 +/- 4.71
Photon Flux (Free Index): 7.64e-08 +/- 7.71e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.31e-05

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/531051/cmap_HighResolution_518486401_518745601_4FGL_J1323.9+1405_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='5.00e-01', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-07 15:18:58.745765', photon_index_error2='4.71', photon_index2='4.10', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.96e-08', energy_flux_error2='1.31e-05', EG='1.28', time_epoch_completed='1631053138.75', return_code='0', job_id='531051', GAL2='1.11', EG2='1.20', return_code2='102', photon_flux_error2='7.71e-08', ts2='1.06', photon_index='1.88' WHERE bin_id='1077' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:18:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 531051: <4FGL_J1323.9+1405_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1077> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 15:05:58 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:06:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:06:18 2021
Terminated at Tue Sep  7 15:18:59 2021
Results reported at Tue Sep  7 15:18:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1077 200.976 14.0871 518486401 518745601 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 :                                   555.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            781 sec.

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

