/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 183 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1323.9+1405_daily_bin16
RA = 200.976, Dec = 14.0871
tmin = 243475201, tmax = 243734401
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='526039', job_status='RUN', time_executed='2021-09-07 14:56:08.057737', time_epoch_executed='1631051768.06' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526039/ft1_4FGL_J1323.9+1405_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526039/ft2_4FGL_J1323.9+1405_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526039/ft1_4FGL_J1323.9+1405_daily_bin16.fits outfile=/scratch/kocevski/526039/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin16.fits ra=200.976 dec=14.0871 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.41
user 1.23
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526039/ft1_filtered_4FGL_J1323.9+1405_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/526039/ft2_4FGL_J1323.9+1405_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/526039/ltcube_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.fits outfile=/scratch/kocevski/526039/expmap_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.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/526039/ltcube_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.fits
.....................!
real 194.44
user 186.27
sys 5.29

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/526039/ft1_filtered_4FGL_J1323.9+1405_daily_bin16.fits scfile=/scratch/kocevski/526039/ft2_4FGL_J1323.9+1405_daily_bin16.fits outfile=/scratch/kocevski/526039/cmap_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526039/ft1_filtered_4FGL_J1323.9+1405_daily_bin16.fits scfile=/scratch/kocevski/526039/ft2_4FGL_J1323.9+1405_daily_bin16.fits outfile=/scratch/kocevski/526039/cmap_HighResolution_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1317       1.0000         .10000E-03   10000.    
     5 'norm      '    7.5827       1.0000         .10000E-03   10000.    
     6 'norm      '    25.368       1.0000         .10000E-03   10000.    
     7 'norm      '    .44263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.244       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56828E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7298       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2077       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=   7996.646     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1644 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.880        .99661E-07** at limit **
   2  Prefactor     1.0078        6.0714        .34608E-05   -.16635E-03
   3  Prefactor     23.398        14.755        .30676E-06    .26431E-03
   4  Prefactor     4.1202        14.036        .18145E-05    .25592E-03
   5  norm          7.5842        4.6186       -.15944E-06   -.39172E-03
   6  norm          25.369        22.349       -.25529E-06   -.80022E-04
   7  norm          .44164        4.7624       -.79919E-06    .16990E-03
   8  Prefactor     .10000E-03    8.1592       -.11092E-06** at limit **
   9  Prefactor     36.218        30.401        .56465E-06    .16170E-03
  10  norm          3.5859        9.4763        .82354E-07    .81024E-04
  11  Prefactor     .10000E-03    251.12       -.20366E-05** at limit **
  12  Prefactor     2.8876        3.4963        .32299E-06   -.90589E-04
  13  Prefactor     6.0675        4.4528        .64839E-08   -.20622E-03
  14  Prefactor     9.7340        8.8030        .16949E-06    .10189E-03
  15  Prefactor     .10000E-03    4.3206       -.20674E-07** at limit **
  16  Normalizat    1.0479        .18978       -.17488E-05   -.50647E-04
  17  Prefactor     1.2076        .15393        .52174E-06   -.21348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.00776
  Prefactor  = 23.3979
  Prefactor  = 4.12019
  norm       = 7.58417
  norm       = 25.3693
  norm       = 0.441636
  Prefactor  = 0.0001
  Prefactor  = 36.2177
  norm       = 3.58587
  Prefactor  = 0.000100003
  Prefactor  = 2.88761
  Prefactor  = 6.06749
  Prefactor  = 9.73401
  Prefactor  = 0.0001
  Normalizat = 1.04789
  Prefactor  = 1.20755
 **********
 **   18 **HESSE 
 **********

 FCN=   7996.646     FROM HESSE     STATUS=OK           227 CALLS     1871 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0078        6.3853        .43107E-03   -1.5507    
   3  Prefactor     23.398        14.671        .82852E-04   -1.4740    
   4  Prefactor     4.1202        14.157        .19831E-03   -1.5302    
   5  norm          7.5842        4.6274        .14436E-03   -1.5157    
   6  norm          25.369        22.311        .79534E-04   -1.4700    
   7  norm          .44164        9.2201        .31328E-02   -1.5575    
   8  Prefactor     .10000E-03    8.2556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.218        30.550        .66569E-04   -1.4504    
  10  norm          3.5859        9.0782        .21385E-03   -1.5329    
  11  Prefactor     .10000E-03    257.87        .38041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8876        3.4921        .17595E-03   -1.5368    
  13  Prefactor     6.0675        4.4545        .15588E-03   -1.5215    
  14  Prefactor     9.7340        8.8134        .12847E-03   -1.5084    
  15  Prefactor     .10000E-03    4.3478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0479        .22615        .28377E-03   -.91443    
  17  Prefactor     1.2076        .18536        .22921E-03   -.86099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6191e-10
Minuit parameter uncertainties:
  1  1.07369e-05
  2  5.07392
  3  14.673
  4  14.1683
  5  4.62765
  6  22.3188
  7  4.03606
  8  7.28278e-06
  9  30.5627
  10  9.08163
  11  0.00164561
  12  3.49237
  13  4.45474
  14  8.81462
  15  6.45097e-06
  16  0.226361
  17  0.185459
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  3.622e+01  3.056e+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.208e+00  1.855e-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.048e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.64e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.12e-05

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

Saving results to:
/scratch/kocevski/526039/likelihoodResults_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.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): 0
logL (Free Index) = 7996.35378715
delta logL = 0.292474489524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7996.34942319
delta logL = 0.296838451733

Fit tolerance = 1e-08

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

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

 FCN=   7996.349     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      302 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.437        31.159        .84585E-04   -.14785E-05
   2  Index         2.3050        .63626        .53846E-02    .42060E-04
   3  Normalizat    1.0273        .21472        .28623E-03    .15449E-02
   4  Prefactor     1.2139        .18338        .22862E-03    .23528E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4369
  Index      = 2.30503
  Normalizat = 1.02727
  Prefactor  = 1.21391
 **********
 **   18 **HESSE 
 **********

 FCN=   7996.349     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.437        26.766        .33834E-05   -1.4760    
   2  Index         2.3050        .54641        .21538E-03   -.56924    
   3  Normalizat    1.0273        .21427        .57245E-04   -.92123    
   4  Prefactor     1.2139        .18331        .45724E-04   -.85904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98796e-09
Minuit parameter uncertainties:
  1  26.7808
  2  0.547951
  3  0.214446
  4  0.183407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526039': 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) = 7996.34941259
delta logL = 0.296849048991

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.244e+01  2.678e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.305e+00  5.480e-01  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.214e+00  1.834e-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.027e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 200.976 14.087
Photon Index (Free Index): 2.31 +/- 0.55
Photon Flux (Free Index): 4.78e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.43e-05

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/526039/cmap_HighResolution_243475201_243734401_4FGL_J1323.9+1405_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', comment='SUCCESS', photon_flux='2.64e-08', energy_flux2='1.80e-05', photon_flux_error='2.22e-08', dlogl='2.97e-01', energy_flux='2.51e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-07 15:06:22.594362', photon_index_error2='0.55', photon_index2='2.31', ts='2.95', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='1.43e-05', EG='1.05', time_epoch_completed='1631052382.59', return_code='0', job_id='526039', GAL2='1.21', EG2='1.03', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='4.21e-08', ts2='3.54', photon_index='1.88' WHERE bin_id='16' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:06:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 526039: <4FGL_J1323.9+1405_daily_bin16> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin16> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:50:18 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:52:54 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:52:54 2021
Terminated at Tue Sep  7 15:06:23 2021
Results reported at Tue Sep  7 15:06:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin16 200.976 14.0871 243475201 243734401 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 :                                   610.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            965 sec.

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

