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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1007
RA = 351.19, Dec = 8.0282
tmin = 500342401, tmax = 500601601
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='842284', job_status='RUN', time_executed='2021-09-29 16:23:30.557310', time_epoch_executed='1632957810.56' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842284/ft1_4FGL_J2324.7+0801_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842284/ft1_4FGL_J2324.7+0801_daily_bin1007.fits outfile=/scratch/kocevski/842284/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1007.fits ra=351.19 dec=8.0282 rad=12.0 tmin=500342401.0 tmax=500601601.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.64
user 4.39
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.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/842284/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/842284/ltcube_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.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/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits
.....................!
real 12.46
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/842284/ltcube_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits outfile=/scratch/kocevski/842284/expmap_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.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/842284/ltcube_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits
.....................!
real 190.46
user 184.94
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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits outfile=/scratch/kocevski/842284/cmap_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.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=351.19 yref=8.0282 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits outfile=/scratch/kocevski/842284/cmap_HighResolution_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.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=351.19 yref=8.0282 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842284/Model_4FGL_J2324.7+0801_daily_bin1007.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/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits.....................!
real 70.10
user 68.72
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits', '/scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits', expMap='/scratch/kocevski/842284/expmap_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits', expCube='/scratch/kocevski/842284/ltcube_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/842284/Model_4FGL_J2324.7+0801_daily_bin1007.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/842284/ft1_filtered_4FGL_J2324.7+0801_daily_bin1007.fits
Spacecraft file(s): /scratch/kocevski/842284/ft2_4FGL_J2324.7+0801_daily_bin1007.fits
Exposure map: /scratch/kocevski/842284/expmap_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits
Exposure cube: /scratch/kocevski/842284/ltcube_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/842284/Model_4FGL_J2324.7+0801_daily_bin1007.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) = 5571.89790911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4541       1.0000         .10000E-03   10000.    
     3 'norm      '    42.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14258E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0575       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4328       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9510       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5571.875     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2899 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2712       -.83100E-07** at limit **
   2  Prefactor     5.4542        .51044       -.14248E-07    .67165E-04
   3  norm          42.176        28.039       -.29560E-06    .68999E-05
   4  Prefactor     19.972        55.291        .51155E-05    .81598E-04
   5  Prefactor     .10000E-03    7.0350        .38901E-07** at limit **
   6  Prefactor     .10000E-03    14.715        .19506E-06** at limit **
   7  Prefactor     .10000E-03    8.1511        .72887E-07** at limit **
   8  Prefactor     .10000E-03    5.5449        .17845E-07** at limit **
   9  norm          2.2231        1.4932       -.25718E-07   -.58600E-04
  10  Prefactor     .10000E-03    3.2282       -.20736E-06** at limit **
  11  Prefactor     26.281        25.660       -.32538E-06    .44602E-05
  12  Prefactor     .10000E-03    20.641        .34838E-06** at limit **
  13  norm          8.6679        8.9933       -.14519E-06   -.19643E-03
  14  Prefactor     .10000E-03    7.3766       -.13283E-05** at limit **
  15  Prefactor     .10000E-03    200.63       -.64366E-05** at limit **
  16  Prefactor     9.6842        13.800        .13110E-06    .22001E-04
  17  Prefactor     .10000E-03    16.302       -.90286E-06** at limit **
  18  norm          .10000E-03    166.36        .17522E-04** at limit **
  19  norm          .10000E-03    46.211       -.24486E-05** at limit **
  20  Prefactor     10.750        9.4171       -.33956E-06   -.22500E-03
  21  Prefactor     8.0728        61.558       -.49263E-06    .91035E-05
  22  Prefactor     5.4428        47.689       -.19828E-05    .59314E-05
  23  Prefactor     .10000E-03    26.841        .88730E-06** at limit **
  24  Normalizat    1.9502        .35334        .67042E-05   -.36614E-04
  25  Prefactor     .63126        .19865       -.61525E-05    .90101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.45422
  norm       = 42.1758
  Prefactor  = 19.9718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22307
  Prefactor  = 0.0001
  Prefactor  = 26.2805
  Prefactor  = 0.0001
  norm       = 8.66795
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.68423
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.7502
  Prefactor  = 8.07283
  Prefactor  = 5.44282
  Prefactor  = 0.0001
  Normalizat = 1.95019
  Prefactor  = 0.631256
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.875     FROM HESSE     STATUS=OK           425 CALLS     3324 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4542        .51062        .15730E-04   -1.5241    
   3  norm          42.176        28.034        .61728E-04   -1.4408    
   4  Prefactor     19.972        56.472        .89827E-04   -1.4814    
   5  Prefactor     .10000E-03    7.0835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5695        .17155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2231        1.4873        .72455E-04   -1.5410    
  10  Prefactor     .10000E-03    3.2321        .13103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.281        25.657        .78160E-04   -1.4682    
  12  Prefactor     .10000E-03    20.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6679        9.0448        .68078E-03   -1.5119    
  14  Prefactor     .10000E-03    7.5891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    201.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6842        13.772        .64395E-03   -1.5085    
  17  Prefactor     .10000E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    160.26        .58554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    46.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.750        9.4291        .61108E-03   -1.5052    
  21  Prefactor     8.0728        61.361        .14125E-03   -1.5140    
  22  Prefactor     5.4428        47.455        .17240E-03   -1.5241    
  23  Prefactor     .10000E-03    27.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.9502        .35908        .30543E-03   -.65805    
  25  Prefactor     .63126        .20109        .29873E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95103e-10
Minuit parameter uncertainties:
  1  4.51722e-06
  2  0.510621
  3  28.0426
  4  56.624
  5  8.4886e-06
  6  2.65457e-05
  7  5.7536e-06
  8  4.93688e-06
  9  1.48729
  10  1.27726e-05
  11  25.6675
  12  2.10832e-05
  13  9.04624
  14  0.000106553
  15  0.00166838
  16  13.7762
  17  6.89033e-05
  18  0.000458359
  19  0.000391089
  20  9.43036
  21  44.5766
  22  32.1766
  23  9.49623e-05
  24  0.35958
  25  0.201322
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.277e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  6.313e-01  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.950e+00  3.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842284/likelihoodResults_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.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) = 5571.87658424
delta logL = -0.00132443765324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5571.87525983
delta logL = -2.59597072727e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2019       1.0000          .0000       10.000    
     3 'Normalizat'    1.9504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5571.875     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10364E-03    3.5658        .13525E-01** at limit **
   2  Index         2.1074        8.9463        .50000        .60208E-04
   3  Normalizat    1.9502        .72673E-02    .30544E-03    .64094E-04
   4  Prefactor     .63125        .43679E-02    .29873E-03    .26754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103645
  Index      = 2.10742
  Normalizat = 1.9502
  Prefactor  = 0.631253
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.875     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10364E-03    45.776        .14019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1074        7.9797        .50000       -.61691    
   3  Normalizat    1.9502        .26355E-01    .61088E-04   -.65805    
   4  Prefactor     .63125        .15840E-01    .11949E-04   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65431e-08
Minuit parameter uncertainties:
  1  0.0258523
  2  243.615
  3  0.0263551
  4  0.0158404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842284': 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) = 5571.87525834
delta logL = 1.46638376464e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.036e-04  2.585e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.107e+00  2.436e+02  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  6.313e-01  1.584e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.950e+00  2.636e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/842284/cmap_HighResolution_500342401_500601601_4FGL_J2324.7+0801_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-29 16:34:55.770081', job_id='842284', GAL2='0.63', fit_tolerance='1e-08', EG2='1.95', EG='1.95', time_epoch_completed='1632958495.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1007' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:34:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 842284: <4FGL_J2324.7+0801_daily_bin1007> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1007> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:37 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:20:39 2021
Terminated at Wed Sep 29 16:34:56 2021
Results reported at Wed Sep 29 16:34:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1007 351.19 8.0282 500342401 500601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

