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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin735
RA = 351.19, Dec = 8.0282
tmin = 429840001, tmax = 430099201
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='840807', job_status='RUN', time_executed='2021-09-29 16:18:57.814142', time_epoch_executed='1632957537.81' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840807/ft1_4FGL_J2324.7+0801_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840807/ft1_4FGL_J2324.7+0801_daily_bin735.fits outfile=/scratch/kocevski/840807/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin735.fits ra=351.19 dec=8.0282 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.84
user 5.57
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.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/840807/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/840807/ltcube_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.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/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/840807/ltcube_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits outfile=/scratch/kocevski/840807/expmap_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.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/840807/ltcube_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits
.....................!
real 191.00
user 185.16
sys 5.53

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/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits outfile=/scratch/kocevski/840807/cmap_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits outfile=/scratch/kocevski/840807/cmap_HighResolution_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840807/Model_4FGL_J2324.7+0801_daily_bin735.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/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits.....................!
real 55.61
user 54.29
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits', '/scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits', expMap='/scratch/kocevski/840807/expmap_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits', expCube='/scratch/kocevski/840807/ltcube_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/840807/Model_4FGL_J2324.7+0801_daily_bin735.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/840807/ft1_filtered_4FGL_J2324.7+0801_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/840807/ft2_4FGL_J2324.7+0801_daily_bin735.fits
Exposure map: /scratch/kocevski/840807/expmap_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits
Exposure cube: /scratch/kocevski/840807/ltcube_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/840807/Model_4FGL_J2324.7+0801_daily_bin735.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) = 4338.9414884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
     3 'norm      '    13.923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .96731       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36130       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15608E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11717E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67294       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83467       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=   4338.853     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2925 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.622       -.66552E-04** at limit **
   2  Prefactor     12.757        1.0017        .59940E-07    .18750E-02
   3  norm          13.929        21.222        .33810E-05   -.55537E-04
   4  Prefactor     27.435        67.771        .13277E-03    .19748E-04
   5  Prefactor     6.6174        18.520        .23713E-05   -.35268E-04
   6  Prefactor     .10000E-03    40.983        .38891E-04** at limit **
   7  Prefactor     .10000E-03    8.8868       -.18352E-06** at limit **
   8  Prefactor     .10000E-03    3.8530        .47169E-07** at limit **
   9  norm          .96729        1.2283        .27539E-06   -.57675E-03
  10  Prefactor     .37931        19.736       -.64393E-05    .13996E-03
  11  Prefactor     .10210E-03    24.840        .39418E-05** at limit **
  12  Prefactor     .10000E-03    26.726       -.35965E-05** at limit **
  13  norm          6.9875        19.458        .20159E-05    .40835E-03
  14  Prefactor     18.013        16.506        .22372E-05    .22716E-03
  15  Prefactor     .10000E-03    103.35        .72009E-04** at limit **
  16  Prefactor     .10000E-03    15.064       -.16365E-05** at limit **
  17  Prefactor     .10000E-03    12.025        .41173E-06** at limit **
  18  norm          .10000E-03    10.076       -.51886E-07** at limit **
  19  norm          .10000E-03    26.081       -.10403E-04** at limit **
  20  Prefactor     6.3200        7.5067        .17911E-05   -.15492E-03
  21  Prefactor     69.937        62.072        .36660E-04   -.86366E-05
  22  Prefactor     .10000E-03    20.497        .65025E-05** at limit **
  23  Prefactor     .10000E-03    7.3487        .30193E-06** at limit **
  24  Normalizat    .67192        .31699       -.35078E-04    .14744E-03
  25  Prefactor     .83520        .18110        .24724E-06   -.26259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.757
  norm       = 13.9294
  Prefactor  = 27.4345
  Prefactor  = 6.61739
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.967294
  Prefactor  = 0.379313
  Prefactor  = 0.000102104
  Prefactor  = 0.0001
  norm       = 6.98749
  Prefactor  = 18.0129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.31998
  Prefactor  = 69.9373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.671918
  Prefactor  = 0.835204
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.853     FROM HESSE     STATUS=OK           427 CALLS     3352 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.757        1.0021        .17381E-04   -1.4993    
   3  norm          13.929        21.235        .10734E-03   -1.4961    
   4  Prefactor     27.435        67.705        .76652E-04   -1.4660    
   5  Prefactor     6.6174        18.501        .15598E-03   -1.5193    
   6  Prefactor     .10000E-03    41.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8551        .12627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .96729        1.1662        .79296E-03   -1.5511    
  10  Prefactor     .37931        283.40        .48154E-02   -1.5585    
  11  Prefactor     .10210E-03    237.57        .63323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9875        20.679        .15178E-03   -1.5179    
  14  Prefactor     18.013        16.593        .94389E-04   -1.4859    
  15  Prefactor     .10000E-03    103.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3200        7.4897        .15969E-03   -1.5205    
  21  Prefactor     69.937        62.408        .48018E-04   -1.4033    
  22  Prefactor     .10000E-03    20.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3667        .17440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67192        .36683        .42515E-03   -1.0501    
  25  Prefactor     .83520        .21424        .23790E-03   -.98443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21234e-08
Minuit parameter uncertainties:
  1  0.000143185
  2  1.00212
  3  21.246
  4  67.895
  5  18.5173
  6  0.0007184
  7  4.30489e-05
  8  1.60876e-05
  9  1.1662
  10  20.8332
  11  0.044896
  12  6.11347e-05
  13  20.6997
  14  16.5972
  15  2.49555e-06
  16  5.24083e-05
  17  1.96205e-06
  18  5.67589e-05
  19  3.14986e-05
  20  7.49082
  21  62.4663
  22  1.02608e-06
  23  8.33096e-05
  24  0.368172
  25  0.214457
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.793e-01  2.083e+01  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:  8.352e-01  2.145e-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:  6.719e-01  3.682e-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: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840807/likelihoodResults_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.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) = 4338.85230328
delta logL = 0.000698921126968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4338.8520747
delta logL = 0.000927495633732

Fit tolerance = 1e-08

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

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

 FCN=   4338.852     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      245 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76819        18.478        .10768        .18690E-03
   2  Index         2.4246        .69797        .50000        .22277E-04
   3  Normalizat    .67112        .10761E-01    .95941E-01    .11376E-03
   4  Prefactor     .83465        .67044E-02    .44173E-01    .16387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768189
  Index      = 2.42455
  Normalizat = 0.671122
  Prefactor  = 0.834649
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.852     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76819        81.471        .37812E-02   -1.5533    
   2  Index         2.4246        3.2201        .71921E-02   -.54111    
   3  Normalizat    .67112        .33387        .42537E-03   -1.0504    
   4  Prefactor     .83465        .21008        .23795E-03   -.98463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56139e-10
Minuit parameter uncertainties:
  1  15.8433
  2  3.64334
  3  0.334881
  4  0.210287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840807': 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) = 4338.85159748
delta logL = 0.00140472249586

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.682e-01  1.584e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.425e+00  3.643e+00  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:  8.346e-01  2.103e-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:  6.711e-01  3.349e-01  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/840807/cmap_HighResolution_429840001_430099201_4FGL_J2324.7+0801_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-29 16:28:56.909489', job_id='840807', GAL2='0.83', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632958136.91', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.40e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='735' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 840807: <4FGL_J2324.7+0801_daily_bin735> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:34 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:35 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:15:35 2021
Terminated at Wed Sep 29 16:28:57 2021
Results reported at Wed Sep 29 16:28:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin735 351.19 8.0282 429840001 430099201 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 :                                   598.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

