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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin7
RA = 200.976, Dec = 14.0871
tmin = 241142401, tmax = 241401601
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='526026', job_status='RUN', time_executed='2021-09-07 14:56:20.374642', time_epoch_executed='1631051780.37' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526026/ft1_4FGL_J1323.9+1405_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526026/ft1_4FGL_J1323.9+1405_daily_bin7.fits outfile=/scratch/kocevski/526026/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin7.fits ra=200.976 dec=14.0871 rad=12.0 tmin=241142401.0 tmax=241401601.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.53
user 1.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.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/526026/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin7.fits evtable="EVENTS" outfile="/scratch/kocevski/526026/ft1_filtered_4FGL_J1323.9+1405_daily_bin7.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526026/ft1_filtered_4FGL_J1323.9+1405_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/526026/ltcube_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.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/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits
.....................!
real 18.61
user 18.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526026/ft1_filtered_4FGL_J1323.9+1405_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/526026/ltcube_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.fits outfile=/scratch/kocevski/526026/expmap_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.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/526026/ltcube_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.fits
.....................!
real 192.45
user 186.66
sys 4.96

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/526026/ft1_filtered_4FGL_J1323.9+1405_daily_bin7.fits scfile=/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits outfile=/scratch/kocevski/526026/cmap_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526026/ft1_filtered_4FGL_J1323.9+1405_daily_bin7.fits scfile=/scratch/kocevski/526026/ft2_4FGL_J1323.9+1405_daily_bin7.fits outfile=/scratch/kocevski/526026/cmap_HighResolution_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.015       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7338       1.0000         .10000E-03   10000.    
     6 'norm      '    29.278       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.974       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26878E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.498       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0227       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=   8884.188     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1593 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4244       -.51323E-08** at limit **
   2  Prefactor     .10000E-03    1.8436        .18746E-07** at limit **
   3  Prefactor     1.5571        8.3190        .66705E-06   -.14456E-04
   4  Prefactor     24.021        13.272        .23478E-06   -.16884E-04
   5  norm          3.7338        2.7675        .19479E-07   -.52543E-05
   6  norm          29.279        16.795       -.57817E-07   -.24089E-05
   7  norm          2.3385        3.3565       -.18110E-06   -.39181E-05
   8  Prefactor     .10000E-03    3.9487       -.13961E-07** at limit **
   9  Prefactor     27.957        31.278        .28098E-05    .61703E-06
  10  norm          3.1822        4.2721        .17052E-05   -.29473E-05
  11  Prefactor     .10000E-03    46.562       -.68950E-07** at limit **
  12  Prefactor     3.0492        3.6747        .20455E-06   -.19278E-04
  13  Prefactor     .10000E-03    2.2499        .22667E-06** at limit **
  14  Prefactor     5.5786        5.3715        .21796E-07   -.12026E-04
  15  Prefactor     13.498        8.7004        .41001E-07   -.11271E-04
  16  Normalizat    1.1171        .16505       -.26171E-06   -.18997E-04
  17  Prefactor     1.0227        .13581       -.36312E-06   -.58656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55714
  Prefactor  = 24.0213
  norm       = 3.73383
  norm       = 29.2789
  norm       = 2.33855
  Prefactor  = 0.0001
  Prefactor  = 27.9565
  norm       = 3.18216
  Prefactor  = 0.0001
  Prefactor  = 3.04923
  Prefactor  = 0.0001
  Prefactor  = 5.57861
  Prefactor  = 13.4983
  Normalizat = 1.11708
  Prefactor  = 1.02271
 **********
 **   18 **HESSE 
 **********

 FCN=   8884.188     FROM HESSE     STATUS=OK           229 CALLS     1822 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8516        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5571        8.2367        .34057E-03   -1.5458    
   4  Prefactor     24.021        13.257        .81741E-04   -1.4727    
   5  norm          3.7338        2.7632        .13143E-03   -1.5321    
   6  norm          29.279        16.794        .74044E-04   -1.4625    
   7  norm          2.3385        3.3379        .19775E-03   -1.5402    
   8  Prefactor     .10000E-03    3.9677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.957        31.284        .75746E-04   -1.4650    
  10  norm          3.1822        4.2777        .10857E-02   -1.5351    
  11  Prefactor     .10000E-03    46.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0492        3.6647        .18685E-03   -1.5359    
  13  Prefactor     .10000E-03    6.1701        .27263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5786        5.3749        .17009E-03   -1.5236    
  15  Prefactor     13.498        8.7064        .10902E-03   -1.4973    
  16  Normalizat    1.1171        .19881        .25976E-03   -.89205    
  17  Prefactor     1.0227        .16318        .22860E-03   -.91976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0401e-10
Minuit parameter uncertainties:
  1  9.39843e-07
  2  1.10805e-06
  3  7.16389
  4  13.2591
  5  2.76328
  6  16.7966
  7  3.33814
  8  6.78431e-07
  9  31.3019
  10  4.27807
  11  1.25101e-05
  12  3.66501
  13  1.81002e-05
  14  5.3754
  15  8.70719
  16  0.198943
  17  0.163257
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.796e+01  3.130e+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.023e+00  1.633e-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.117e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 2.17e-05

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

Saving results to:
/scratch/kocevski/526026/likelihoodResults_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.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) = 8883.91882742
delta logL = 0.269580171118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8883.73720106
delta logL = 0.451206525582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0456       1.0000         .10000E-03   10000.    
     2 'Index     '    .69652       1.0000          .0000       10.000    
     3 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0289       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=   8883.737     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      251 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0385        17.119        .13326E-03   -.83301E-03
   2  Index         .69606        .82834        .24645E-01    .11362E-03
   3  Normalizat    1.1243        .19102        .25896E-03    .61025E-03
   4  Prefactor     1.0289        .16261        .22799E-03    .63768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.03849
  Index      = 0.696063
  Normalizat = 1.12434
  Prefactor  = 1.02894
 **********
 **   18 **HESSE 
 **********

 FCN=   8883.737     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0385        20.002        .26652E-04   -1.5107    
   2  Index         .69606        .96096        .98579E-03   -1.0368    
   3  Normalizat    1.1243        .19120        .51791E-04   -.88974    
   4  Prefactor     1.0289        .16278        .45598E-04   -.91771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17249e-09
Minuit parameter uncertainties:
  1  20.0168
  2  0.985396
  3  0.191322
  4  0.162857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526026': 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) = 8883.73720087
delta logL = 0.451206722901

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  9.038e+00  2.002e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  6.961e-01  9.854e-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.029e+00  1.629e-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.124e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 200.976 14.087
Photon Index (Free Index): 0.70 +/- 0.99
Photon Flux (Free Index): 2.34e-09 +/- 3.26e-09
Energy Flux (Free Index): 6.21e-05 +/- 8.75e-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/526026/cmap_HighResolution_241142401_241401601_4FGL_J1323.9+1405_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='6.21e-05', photon_flux_error='2.28e-08', dlogl='4.51e-01', energy_flux='1.94e-05', photon_flux2='2.34e-09', job_status='DONE', time_completed='2021-09-07 15:06:56.636277', photon_index_error2='0.99', photon_index2='0.70', ts='1.22', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='8.75e-05', EG='1.12', time_epoch_completed='1631052416.64', return_code='0', job_id='526026', GAL2='1.03', EG2='1.12', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='3.26e-09', ts2='2.11', photon_index='1.88' WHERE bin_id='7' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 526026: <4FGL_J1323.9+1405_daily_bin7> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin7> 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) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:52:51 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:51 2021
Terminated at Tue Sep  7 15:06:57 2021
Results reported at Tue Sep  7 15:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin7 200.976 14.0871 241142401 241401601 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 :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            999 sec.

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

