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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1009
RA = 200.976, Dec = 14.0871
tmin = 500860801, tmax = 501120001
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='530953', job_status='RUN', time_executed='2021-09-07 15:09:16.085470', time_epoch_executed='1631052556.09' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530953

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530953/ft1_4FGL_J1323.9+1405_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530953/ft1_4FGL_J1323.9+1405_daily_bin1009.fits outfile=/scratch/kocevski/530953/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1009.fits ra=200.976 dec=14.0871 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.60
user 4.31
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530953/ft1_filtered_4FGL_J1323.9+1405_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/530953/ltcube_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.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/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits
.....................!
real 16.78
user 16.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530953/ft1_filtered_4FGL_J1323.9+1405_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/530953/ltcube_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.fits outfile=/scratch/kocevski/530953/expmap_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.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/530953/ltcube_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.fits
.....................!
real 192.33
user 187.45
sys 4.06

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/530953/ft1_filtered_4FGL_J1323.9+1405_daily_bin1009.fits scfile=/scratch/kocevski/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits outfile=/scratch/kocevski/530953/cmap_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530953/ft1_filtered_4FGL_J1323.9+1405_daily_bin1009.fits scfile=/scratch/kocevski/530953/ft2_4FGL_J1323.9+1405_daily_bin1009.fits outfile=/scratch/kocevski/530953/cmap_HighResolution_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6386       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2109       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3945       1.0000         .10000E-03   10000.    
     7 'norm      '    24.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7041       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.390       1.0000         .10000E-03   10000.    
    10 'norm      '    .41115E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.532       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94455       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1471       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=   5614.018     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     1915 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.101        .16003    ** at limit **
   2  Prefactor     .10000E-03    13.232        .36285E-03** at limit **
   3  Prefactor     .10000E-03    5.7620        .17545E-02** at limit **
   4  Prefactor     4.6416        11.703        .18687E-03    .12898E-04
   5  norm          4.2038        5.4733        .96006E-03    .34281E-03
   6  norm          2.4623        35.966        .26465E-03   -.48113E-05
   7  norm          24.254        9.8052        .81342E-04   -.46122E-04
   8  Prefactor     5.7047        6.1517        .16818E-03    .20144E-04
   9  Prefactor     44.369        43.511        .30087E-03   -.44210E-05
  10  norm          .10004E-03    55.928        .33452E-02** at limit **
  11  Prefactor     36.511        51.580        .66307E-04   -.85728E-06
  12  Prefactor     .10000E-03    1.2868        .82820E-03** at limit **
  13  Prefactor     3.2425        3.2593        .13160E-03    .48293E-04
  14  Prefactor     .10000E-03    6.3720        .18142E-02** at limit **
  15  Prefactor     11.413        11.078        .11857E-03    .12272E-04
  16  Normalizat    .94464        .24554        .28552E-03   -.63309E-04
  17  Prefactor     1.1471        .20242        .22053E-03    .23714E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64165
  norm       = 4.20384
  norm       = 2.46228
  norm       = 24.2544
  Prefactor  = 5.70467
  Prefactor  = 44.3692
  norm       = 0.000100039
  Prefactor  = 36.5112
  Prefactor  = 0.0001
  Prefactor  = 3.24255
  Prefactor  = 0.0001
  Prefactor  = 11.4133
  Normalizat = 0.944642
  Prefactor  = 1.1471
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.018     FROM HESSE     STATUS=OK           217 CALLS     2132 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.638        .15564       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.233        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7623        .35091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6416        11.702        .74748E-05   -1.5277    
   5  norm          4.2038        5.4722        .19201E-03   -1.5298    
   6  norm          2.4623        35.949        .10586E-04   -1.5394    
   7  norm          24.254        9.7906        .32537E-05   -1.4723    
   8  Prefactor     5.7047        6.1517        .67273E-05   -1.5230    
   9  Prefactor     44.369        43.510        .12035E-04   -1.4375    
  10  norm          .10004E-03    56.760        .66904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.511        51.614        .26523E-05   -1.4499    
  12  Prefactor     .10000E-03    1.2868        .16564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2425        3.2592        .52638E-05   -1.5348    
  14  Prefactor     .10000E-03    6.3726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.413        11.078        .47429E-05   -1.5032    
  16  Normalizat    .94464        .24577        .11421E-04   -.94909    
  17  Prefactor     1.1471        .20264        .88211E-05   -.87975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47463e-10
Minuit parameter uncertainties:
  1  6.11013e-05
  2  0.000124397
  3  1.39753e-06
  4  11.7079
  5  5.47288
  6  18.8298
  7  9.79126
  8  6.15236
  9  43.5408
  10  0.00299406
  11  51.6772
  12  9.63665e-08
  13  3.25942
  14  3.5547e-06
  15  11.0796
  16  0.246065
  17  0.202781
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  4.437e+01  4.354e+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.147e+00  2.028e-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:  9.446e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 3.02e-05

TS (Fixed Index): 1.80
Ra Dec: 200.976 14.087
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530953/likelihoodResults_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.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) = 5613.11102175
delta logL = 0.906991012865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5613.08361415
delta logL = 0.934398614498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1420       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0483       1.0000          .0000       10.000    
     3 'Normalizat'    .85526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1911       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=   5613.084     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      276 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0988        68.465        .40498E-02    .24595E-03
   2  Index         3.0510        2.0197        .81010E-01    .21519E-03
   3  Normalizat    .85502        .78500E-01    .67517E-01    .45231E-05
   4  Prefactor     1.1912        .58559E-01    .34845E-01   -.24335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.09878
  Index      = 3.05104
  Normalizat = 0.855016
  Prefactor  = 1.19117
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.084     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0988        109.74        .11012E-03   -1.5214    
   2  Index         3.0510        2.9828        .30044E-02   -.40041    
   3  Normalizat    .85502        .29232        .29870E-03   -.98059    
   4  Prefactor     1.1912        .22446        .21677E-03   -.86603    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32358e-09
Minuit parameter uncertainties:
  1  51.851
  2  3.24473
  3  0.292865
  4  0.224645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530953': 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) = 5613.08360924
delta logL = 0.934403518345

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  6.099e+00  5.185e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  3.051e+00  3.245e+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.191e+00  2.246e-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.550e-01  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 200.976 14.087
Photon Index (Free Index): 3.05 +/- 3.24
Photon Flux (Free Index): 1.08e-07 +/- 1.37e-07
Energy Flux (Free Index): 2.10e-05 +/- 1.56e-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/530953/cmap_HighResolution_500860801_501120001_4FGL_J1323.9+1405_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='2.10e-05', photon_flux_error='3.17e-08', dlogl='9.34e-01', energy_flux='3.08e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-07 15:18:30.314300', photon_index_error2='3.24', photon_index2='3.05', ts='1.80', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.56e-05', EG='0.94', time_epoch_completed='1631053110.31', return_code='0', job_id='530953', GAL2='1.19', EG2='0.86', return_code2='102', energy_flux_error='3.02e-05', photon_flux_error2='1.37e-07', ts2='3.76', photon_index='1.88' WHERE bin_id='1009' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:18:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 530953: <4FGL_J1323.9+1405_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1009 200.976 14.0871 500860801 501120001 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 :                                   550.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             233.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            760 sec.

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

