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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1122
RA = 200.976, Dec = 14.0871
tmin = 530150401, tmax = 530409601
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='532174', job_status='RUN', time_executed='2021-09-07 15:13:26.315670', time_epoch_executed='1631052806.32' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532174/ft1_4FGL_J1323.9+1405_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532174/ft1_4FGL_J1323.9+1405_daily_bin1122.fits outfile=/scratch/kocevski/532174/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1122.fits ra=200.976 dec=14.0871 rad=12.0 tmin=530150401.0 tmax=530409601.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.67
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532174/ft1_filtered_4FGL_J1323.9+1405_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/532174/ltcube_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.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/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits
.....................!
real 15.88
user 15.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532174/ft1_filtered_4FGL_J1323.9+1405_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/532174/ltcube_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.fits outfile=/scratch/kocevski/532174/expmap_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.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/532174/ltcube_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.fits
.....................!
real 192.45
user 186.80
sys 5.17

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/532174/ft1_filtered_4FGL_J1323.9+1405_daily_bin1122.fits scfile=/scratch/kocevski/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits outfile=/scratch/kocevski/532174/cmap_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532174/ft1_filtered_4FGL_J1323.9+1405_daily_bin1122.fits scfile=/scratch/kocevski/532174/ft2_4FGL_J1323.9+1405_daily_bin1122.fits outfile=/scratch/kocevski/532174/cmap_HighResolution_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4918       1.0000         .10000E-03   10000.    
     6 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1795       1.0000         .10000E-03   10000.    
    10 'norm      '    10.049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11261E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66248E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6906       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89791       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2331       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5790.897     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1403 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.937         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.2248         .0000    ** at limit **
   3  Prefactor     6.0834        11.815         .0000        .18110E-03
   4  Prefactor     .10000E-03    7.2888         .0000    ** at limit **
   5  norm          2.4917        2.6316         .0000       -.26307E-04
   6  norm          .10000E-03    8.0392         .0000    ** at limit **
   7  norm          25.952        9.2827         .0000       -.22796E-03
   8  Prefactor     6.2303        10.801         .0000       -.78935E-03
   9  Prefactor     9.0641        33.303         .0000        .23026E-03
  10  norm          10.049        8.7533         .0000        .91308E-04
  11  Prefactor     .10000E-03    17.423         .0000    ** at limit **
  12  Prefactor     .10000E-03    2.0154         .0000    ** at limit **
  13  Prefactor     .10000E-03    2.2725         .0000    ** at limit **
  14  Prefactor     1.6903        13.426         .0000        .76471E-02
  15  Prefactor     .10000E-03    7.1405         .0000    ** at limit **
  16  Normalizat    .89831        .20121         .0000        .17821E-04
  17  Prefactor     1.2327        .17078         .0000        .16762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08339
  Prefactor  = 0.0001
  norm       = 2.49174
  norm       = 0.0001
  norm       = 25.9525
  Prefactor  = 6.23033
  Prefactor  = 9.06407
  norm       = 10.0491
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.69033
  Prefactor  = 0.0001
  Normalizat = 0.898312
  Prefactor  = 1.23267
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.897     FROM HESSE     STATUS=OK           231 CALLS     1634 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2435        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0834        11.880        .16273E-03   -1.5215    
   4  Prefactor     .10000E-03    7.3182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4917        2.6328        .12367E-03   -1.5392    
   6  norm          .10000E-03    8.0574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.952        9.2910        .78633E-04   -1.4689    
   8  Prefactor     6.2303        10.796        .16072E-03   -1.5209    
   9  Prefactor     9.0641        33.313        .66141E-03   -1.5106    
  10  norm          10.049        8.7558        .12640E-03   -1.5074    
  11  Prefactor     .10000E-03    17.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0141        .38104E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3018        .11201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6903        13.417        .16188E-02   -1.5448    
  15  Prefactor     .10000E-03    7.1888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .89831        .24473        .28625E-03   -.96519    
  17  Prefactor     1.2327        .20813        .21630E-03   -.85332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56654e-09
Minuit parameter uncertainties:
  1  9.58374e-05
  2  2.784e-06
  3  11.8845
  4  1.34565e-06
  5  2.63288
  6  5.22433e-06
  7  9.29154
  8  10.7997
  9  33.3815
  10  8.75694
  11  1.75083e-05
  12  9.76471e-05
  13  1.78952e-06
  14  9.52704
  15  4.91607e-06
  16  0.245029
  17  0.208265
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  9.064e+00  3.338e+01  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.233e+00  2.083e-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.983e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/532174/likelihoodResults_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.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) = 5788.59037446
delta logL = 2.30661006057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5788.54919958
delta logL = 2.34778494378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25719       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1281       1.0000          .0000       10.000    
     3 'Normalizat'    .75186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3056       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=   5788.549     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25284        2.0349        .45250E-02    .14909E-03
   2  Index         4.1334        1.5968        .58043E-01    .13235E-03
   3  Normalizat    .75242        .61010E-01    .69983E-01    .23347E-05
   4  Prefactor     1.3053        .52597E-01    .47668E-01   -.11697E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.252835
  Index      = 4.13343
  Normalizat = 0.752424
  Prefactor  = 1.30526
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.549     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25284        3.6959        .20323E-04   -1.5607    
   2  Index         4.1334        2.3644        .23504E-02   -.17419    
   3  Normalizat    .75242        .21436        .30969E-03   -1.0186    
   4  Prefactor     1.3053        .18454        .21072E-03   -.83151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.06144e-12
Minuit parameter uncertainties:
  1  1.93311
  2  2.46625
  3  0.214602
  4  0.184635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532174': 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) = 5788.54918879
delta logL = 2.347795736

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.528e-01  1.933e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  4.133e+00  2.466e+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.305e+00  1.846e-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:  7.524e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 200.976 14.087
Photon Index (Free Index): 4.13 +/- 2.47
Photon Flux (Free Index): 1.22e-07 +/- 6.71e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.11e-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/532174/cmap_HighResolution_530150401_530409601_4FGL_J1323.9+1405_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='2.35e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-07 15:22:04.050898', photon_index_error2='2.47', photon_index2='4.13', ts='0.09', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.51e-08', energy_flux_error2='1.11e-05', EG='0.90', time_epoch_completed='1631053324.05', return_code='0', job_id='532174', GAL2='1.31', EG2='0.75', return_code2='102', photon_flux_error2='6.71e-08', ts2='5.09', photon_index='1.88' WHERE bin_id='1122' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:22:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 532174: <4FGL_J1323.9+1405_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1122> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:10:17 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:10:23 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:10:23 2021
Terminated at Tue Sep  7 15:22:04 2021
Results reported at Tue Sep  7 15:22:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1122 200.976 14.0871 530150401 530409601 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 :                                   516.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            707 sec.

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

