/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 238 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 = 7323
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin330
RA = 351.19, Dec = 8.0282
tmin = 324864001, tmax = 325123201
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='838113', job_status='RUN', time_executed='2021-09-29 16:10:03.991147', time_epoch_executed='1632957003.99' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838113/ft1_4FGL_J2324.7+0801_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838113/ft1_4FGL_J2324.7+0801_daily_bin330.fits outfile=/scratch/kocevski/838113/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin330.fits ra=351.19 dec=8.0282 rad=12.0 tmin=324864001.0 tmax=325123201.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.69
user 5.41
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/838113/ltcube_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.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/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits
.....................!
real 11.42
user 11.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/838113/ltcube_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.fits outfile=/scratch/kocevski/838113/expmap_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.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/838113/ltcube_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.fits
.....................!
real 190.99
user 185.51
sys 5.11

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/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits scfile=/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits outfile=/scratch/kocevski/838113/cmap_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.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/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits scfile=/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits outfile=/scratch/kocevski/838113/cmap_HighResolution_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.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/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/838113/ft2_4FGL_J2324.7+0801_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838113/Model_4FGL_J2324.7+0801_daily_bin330.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/838113/ft1_filtered_4FGL_J2324.7+0801_daily_bin330.fits.....................!
real 65.22
user 63.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0921       1.0000         .10000E-03   10000.    
     3 'norm      '    .29468E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11771E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11258E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .60643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13627E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.345       1.0000         .10000E-03   10000.    
    13 'norm      '    .10823E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.811       1.0000         .10000E-03   10000.    
    18 'norm      '    .18081E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    12.271       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6627       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62397       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0027       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=   5914.374     FROM MIGRAD    STATUS=CONVERGED   1003 CALLS     3314 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.402        .18142E-02** at limit **
   2  Prefactor     1.0919        .20357        .14442E-04   -.94621E-03
   3  norm          .10001E-03    71.184        .49022E-02** at limit **
   4  Prefactor     .10000E-03    25.780        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.5877        .14128E-02** at limit **
   6  Prefactor     .10000E-03    3.4793        .13996E-02** at limit **
   7  Prefactor     .10000E-03    9.6193        .18142E-02** at limit **
   8  Prefactor     .10000E-03    2.0019        .10601E-02** at limit **
   9  norm          .60560        .71241        .71656E-03   -.15755E-02
  10  Prefactor     21.504        12.444        .86349E-04   -.64514E-05
  11  Prefactor     .10000E-03    20.101        .36285E-03** at limit **
  12  Prefactor     22.385        54.435        .84736E-04   -.25357E-04
  13  norm          .10000E-03    3.1944        .13406E-02** at limit **
  14  Prefactor     19.314        10.090        .91103E-04   -.10445E-03
  15  Prefactor     .10000E-03    54.095        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.6847        .16228E-02** at limit **
  17  Prefactor     19.847        28.312        .89985E-04   -.69107E-04
  18  norm          .10000E-03    110.13        .50965E-02** at limit **
  19  norm          12.291        18.903        .11436E-03    .29626E-04
  20  Prefactor     6.3478        4.5036        .12755E-03    .14477E-03
  21  Prefactor     .10000E-03    15.264        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.5667        .18142E-02** at limit **
  23  Prefactor     7.6623        7.4153        .14487E-03   -.23700E-04
  24  Normalizat    .62418        .23771        .35014E-03   -.21660E-03
  25  Prefactor     1.0028        .14652        .18150E-03    .18647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.0919
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.605602
  Prefactor  = 21.5042
  Prefactor  = 0.0001
  Prefactor  = 22.385
  norm       = 0.0001
  Prefactor  = 19.3143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8466
  norm       = 0.000100003
  norm       = 12.2913
  Prefactor  = 6.34785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.66226
  Normalizat = 0.624183
  Prefactor  = 1.00275
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.374     FROM HESSE     STATUS=OK           401 CALLS     3715 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0919        .20357        .28884E-05   -1.5499    
   3  norm          .10001E-03    72.340        .98044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5888        .28256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4795        .27992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0020        .21202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .60560        .71222        .28662E-04   -1.5552    
  10  Prefactor     21.504        12.443        .34539E-05   -1.4780    
  11  Prefactor     .10000E-03    20.102        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.385        54.450        .33895E-05   -1.4761    
  13  norm          .10000E-03    3.1945        .26813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.314        10.088        .36441E-05   -1.4829    
  15  Prefactor     .10000E-03    54.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6849        .32457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.847        28.308        .35994E-05   -1.4817    
  18  norm          .10000E-03    114.05        .20386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.291        18.902        .45742E-05   -1.5007    
  20  Prefactor     6.3478        4.5035        .25510E-04   -1.5204    
  21  Prefactor     .10000E-03    15.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.6623        7.4151        .57947E-05   -1.5154    
  24  Normalizat    .62418        .23775        .14006E-04   -1.0697    
  25  Prefactor     1.0028        .14659        .36300E-04   -.92638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19695e-09
Minuit parameter uncertainties:
  1  3.67671e-05
  2  0.203567
  3  0.00156371
  4  7.11021e-05
  5  4.98788e-06
  6  2.86586e-06
  7  8.83374e-06
  8  1.33064e-07
  9  0.712227
  10  12.4442
  11  3.74924e-05
  12  54.5717
  13  8.88895e-06
  14  10.0893
  15  0.000200191
  16  9.10378e-06
  17  28.327
  18  0.00115416
  19  18.9108
  20  4.50374
  21  4.77475e-05
  22  8.01974e-07
  23  7.41602
  24  0.238139
  25  0.146646
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.150e+01  1.244e+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:  1.003e+00  1.466e-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.242e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.91e-05

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) = 5914.3734756
delta logL = 0.000631869888821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5914.37246005
delta logL = 0.00164742428751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.314       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1945       1.0000          .0000       10.000    
     3 'Normalizat'    .62633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0019       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=   5914.372     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.330        266.73        .21198E-02    .13885E-04
   2  Index         2.1940        3.4162        .11482        .12219E-03
   3  Normalizat    .62674        .13700        .78930E-01    .31031E-04
   4  Prefactor     1.0017        .57373E-01    .45013E-01   -.50337E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3299
  Index      = 2.19401
  Normalizat = 0.626737
  Prefactor  = 1.00167
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.372     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.330        20.485        .84793E-04   -1.4763    
   2  Index         2.1940        .63458        .57202E-02   -.59583    
   3  Normalizat    .62674        .22935        .34951E-03   -1.0686    
   4  Prefactor     1.0017        .14692        .18159E-03   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06883e-12
Minuit parameter uncertainties:
  1  20.4915
  2  0.637093
  3  0.2297
  4  0.146983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838113': 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) = 5914.37245826
delta logL = 0.00164920770658

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.233e+01  2.049e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.194e+00  6.371e-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:  1.002e+00  1.470e-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.267e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.19 +/- 0.64
Photon Flux (Free Index): 7.53e-08 +/- 5.57e-08
Energy Flux (Free Index): 3.42e-05 +/- 3.09e-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/838113/cmap_HighResolution_324864001_325123201_4FGL_J2324.7+0801_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='3.42e-05', photon_flux_error='4.48e-08', dlogl='1.65e-03', energy_flux='3.30e-05', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-29 16:20:32.294827', photon_index_error2='0.64', photon_index2='2.19', ts='6.27', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='0.62', time_epoch_completed='1632957632.29', return_code='0', job_id='838113', GAL2='1.00', EG2='0.63', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='5.57e-08', ts2='6.28', photon_index='2.23' WHERE bin_id='330' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 838113: <4FGL_J2324.7+0801_daily_bin330> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin330> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:56 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:57 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:05:57 2021
Terminated at Wed Sep 29 16:20:32 2021
Results reported at Wed Sep 29 16:20:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin330 351.19 8.0282 324864001 325123201 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            876 sec.

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

