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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin630
RA = 351.19, Dec = 8.0282
tmin = 402624001, tmax = 402883201
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='840654', job_status='RUN', time_executed='2021-09-29 16:16:40.208903', time_epoch_executed='1632957400.21' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840654

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840654/ft1_4FGL_J2324.7+0801_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840654/ft1_4FGL_J2324.7+0801_daily_bin630.fits outfile=/scratch/kocevski/840654/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin630.fits ra=351.19 dec=8.0282 rad=12.0 tmin=402624001.0 tmax=402883201.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 3.60
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits" evtable="EVENTS" scfile=/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits sctable="SC_DATA" outfile=/scratch/kocevski/840654/ltcube_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.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/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits
.....................!
real 12.18
user 11.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/840654/ltcube_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.fits outfile=/scratch/kocevski/840654/expmap_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.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/840654/ltcube_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.fits
.....................!
real 190.64
user 185.87
sys 4.39

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/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits scfile=/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits outfile=/scratch/kocevski/840654/cmap_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits scfile=/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits outfile=/scratch/kocevski/840654/cmap_HighResolution_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.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/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/840654/ft2_4FGL_J2324.7+0801_daily_bin630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840654/Model_4FGL_J2324.7+0801_daily_bin630.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/840654/ft1_filtered_4FGL_J2324.7+0801_daily_bin630.fits.....................!
real 74.69
user 73.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4858       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0523       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.295       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.488       1.0000         .10000E-03   10000.    
    13 'norm      '    16.061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7597       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.674       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6012       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2436       1.0000         .10000E-03   10000.    
    19 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.669       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6344       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86254       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87983       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=   6755.643     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2956 TOTAL
                     EDM=   .94E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2310       -.20121E-06** at limit **
   2  Prefactor     2.4858        .30259        .32353E-08    .10460E-03
   3  norm          5.0528        12.714        .15380E-06   -.21830E-05
   4  Prefactor     .10000E-03    10.742       -.14236E-06** at limit **
   5  Prefactor     .10000E-03    2.8515       -.84369E-07** at limit **
   6  Prefactor     .10000E-03    3.8255       -.63699E-07** at limit **
   7  Prefactor     20.259        20.289        .57820E-06   -.22914E-05
   8  Prefactor     .10000E-03    9.5150       -.30100E-06** at limit **
   9  norm          .10000E-03    .35370        .71774E-07** at limit **
  10  Prefactor     2.7001        7.1031        .63493E-06    .46230E-05
  11  Prefactor     9.7094        19.625        .63799E-07    .10363E-04
  12  Prefactor     22.362        61.546       -.61969E-05   -.49293E-05
  13  norm          16.055        10.394        .15802E-06    .51211E-05
  14  Prefactor     3.7621        7.6486        .36162E-06    .20612E-05
  15  Prefactor     .10000E-03    102.19       -.17095E-06** at limit **
  16  Prefactor     13.676        15.746       -.67508E-06   -.24677E-04
  17  Prefactor     1.6265        57.006       -.15981E-05   -.39706E-05
  18  norm          4.2412        9.4600       -.49378E-07    .15720E-05
  19  norm          .10000E-03    22.010        .88301E-07** at limit **
  20  Prefactor     1.7962        6.6792        .17936E-05   -.80899E-05
  21  Prefactor     30.661        44.336        .35836E-06   -.33869E-05
  22  Prefactor     1.6342        30.072        .38566E-06   -.56351E-06
  23  Prefactor     .10000E-03    3.1724       -.64935E-07** at limit **
  24  Normalizat    .86274        .21366       -.58863E-06    .16515E-04
  25  Prefactor     .87978        .12398        .31097E-06   -.37344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.48575
  norm       = 5.05285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.70007
  Prefactor  = 9.70943
  Prefactor  = 22.3615
  norm       = 16.0552
  Prefactor  = 3.76209
  Prefactor  = 0.0001
  Prefactor  = 13.6756
  Prefactor  = 1.62653
  norm       = 4.24115
  norm       = 0.0001
  Prefactor  = 1.79616
  Prefactor  = 30.6611
  Prefactor  = 1.63416
  Prefactor  = 0.0001
  Normalizat = 0.862743
  Prefactor  = 0.879784
 **********
 **   18 **HESSE 
 **********

 FCN=   6755.643     FROM HESSE     STATUS=OK           435 CALLS     3391 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4858        .30288        .15158E-04   -1.5393    
   3  norm          5.0528        12.702        .89445E-03   -1.5258    
   4  Prefactor     .10000E-03    10.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8602        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8296        .15700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.259        20.297        .88907E-04   -1.4807    
   8  Prefactor     .10000E-03    9.7078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .58337        .94387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7001        7.0464        .12402E-02   -1.5379    
  11  Prefactor     9.7094        19.631        .12843E-03   -1.5085    
  12  Prefactor     22.362        61.643        .84466E-04   -1.4762    
  13  norm          16.055        10.290        .99938E-04   -1.4906    
  14  Prefactor     3.7621        7.5809        .10411E-02   -1.5320    
  15  Prefactor     .10000E-03    102.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.676        15.805        .10832E-03   -1.4968    
  17  Prefactor     1.6265        56.676        .33503E-03   -1.5453    
  18  norm          4.2412        9.4479        .19560E-03   -1.5296    
  19  norm          .10000E-03    22.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7962        6.7441        .15582E-02   -1.5440    
  21  Prefactor     30.661        44.431        .72349E-04   -1.4600    
  22  Prefactor     1.6342        30.148        .33068E-03   -1.5452    
  23  Prefactor     .10000E-03    3.1793        .14296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86274        .24818        .33269E-03   -.97782    
  25  Prefactor     .87978        .14429        .20409E-03   -.96851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39936e-09
Minuit parameter uncertainties:
  1  9.41791e-07
  2  0.302876
  3  12.7089
  4  3.82382e-07
  5  6.75177e-08
  6  1.67399e-07
  7  20.3036
  8  7.45968e-06
  9  4.26997e-06
  10  7.04852
  11  19.6445
  12  61.8193
  13  10.2907
  14  7.58286
  15  2.85488e-06
  16  15.8096
  17  19.2219
  18  9.4512
  19  2.59294e-06
  20  6.74693
  21  44.4794
  22  14.0458
  23  3.97324e-07
  24  0.248507
  25  0.144356
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.700e+00  7.049e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.798e-01  1.444e-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:  8.627e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840654/likelihoodResults_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.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) = 6755.45862167
delta logL = 0.184284036781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6755.43925187
delta logL = 0.203653838121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0118       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5887       1.0000          .0000       10.000    
     3 'Normalizat'    .86876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87638       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=   6755.439     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      279 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9958        695.53        .44907E-02    .69359E-04
   2  Index         1.5867        7.3167        .28871       -.13654E-04
   3  Normalizat    .86916        .15445        .74920E-01    .28437E-04
   4  Prefactor     .87622        .76659E-01    .44703E-01    .11892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99583
  Index      = 1.58668
  Normalizat = 0.869159
  Prefactor  = 0.876221
 **********
 **   18 **HESSE 
 **********

 FCN=   6755.439     FROM HESSE     STATUS=OK            33 CALLS      312 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9958        8.4782        .17963E-03   -1.5261    
   2  Index         1.5867        .87381        .14801E-01   -.75140    
   3  Normalizat    .86916        .22837        .33158E-03   -.97552    
   4  Prefactor     .87622        .14260        .20440E-03   -.96977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05009e-10
Minuit parameter uncertainties:
  1  8.48021
  2  0.882359
  3  0.228626
  4  0.142659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840654': 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) = 6755.43924658
delta logL = 0.203659121657

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.996e+00  8.480e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.587e+00  8.824e-01  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.762e-01  1.427e-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:  8.692e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/840654/cmap_HighResolution_402624001_402883201_4FGL_J2324.7+0801_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-29 16:28:34.317990', job_id='840654', GAL2='0.88', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1632958114.32', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.04e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='630' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 840654: <4FGL_J2324.7+0801_daily_bin630> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin630 351.19 8.0282 402624001 402883201 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 :                                   714.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

