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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin369
RA = 351.19, Dec = 8.0282
tmin = 334972801, tmax = 335232001
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='838165', job_status='RUN', time_executed='2021-09-29 16:08:21.325701', time_epoch_executed='1632956901.33' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838165

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838165/ft1_4FGL_J2324.7+0801_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838165/ft1_4FGL_J2324.7+0801_daily_bin369.fits outfile=/scratch/kocevski/838165/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin369.fits ra=351.19 dec=8.0282 rad=12.0 tmin=334972801.0 tmax=335232001.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.39
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/838165/ltcube_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.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/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits
.....................!
real 11.71
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/838165/ltcube_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.fits outfile=/scratch/kocevski/838165/expmap_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.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/838165/ltcube_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.fits
.....................!
real 189.87
user 185.01
sys 4.55

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/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits scfile=/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits outfile=/scratch/kocevski/838165/cmap_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits scfile=/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits outfile=/scratch/kocevski/838165/cmap_HighResolution_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/838165/ft2_4FGL_J2324.7+0801_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838165/Model_4FGL_J2324.7+0801_daily_bin369.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/838165/ft1_filtered_4FGL_J2324.7+0801_daily_bin369.fits.....................!
real 60.91
user 59.60
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30241       1.0000         .10000E-03   10000.    
     3 'norm      '    15.222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56522       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.806       1.0000         .10000E-03   10000.    
    13 'norm      '    .10666E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.328       1.0000         .10000E-03   10000.    
    18 'norm      '    23.812       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.514       1.0000         .10000E-03   10000.    
    21 'Prefactor '    203.69       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58075       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0544       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=   5686.097     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2964 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4939       -.88570E-08** at limit **
   2  Prefactor     .30240        .12996       -.18595E-07    .11028E-03
   3  norm          15.222        13.737        .21874E-06    .62990E-05
   4  Prefactor     .10000E-03    11.289        .19096E-05** at limit **
   5  Prefactor     2.7857        2.8026        .66685E-06   -.18146E-02
   6  Prefactor     12.767        11.222       -.29094E-06    .55155E-05
   7  Prefactor     28.152        22.857        .14203E-05    .18809E-04
   8  Prefactor     .57062        3.7913       -.22076E-06   -.33064E-04
   9  norm          2.1644        1.2749        .22127E-07   -.11698E-04
  10  Prefactor     2.4867        14.242       -.48236E-05   -.53860E-04
  11  Prefactor     .10000E-03    11.003       -.17291E-05** at limit **
  12  Prefactor     62.790        73.121       -.13775E-04   -.45464E-04
  13  norm          .10000E-03    7.6113        .19046E-06** at limit **
  14  Prefactor     .10000E-03    2.3255        .21239E-07** at limit **
  15  Prefactor     .10000E-03    140.22       -.71867E-06** at limit **
  16  Prefactor     4.2195        11.836        .19038E-05   -.33632E-04
  17  Prefactor     23.336        25.513       -.67061E-06    .24193E-04
  18  norm          23.812        18.310       -.42777E-06    .46181E-05
  19  norm          .10000E-03    19.008        .38442E-05** at limit **
  20  Prefactor     30.513        8.7731       -.23545E-06   -.10795E-03
  21  Prefactor     203.69        66.484        .13150E-06    .12324E-04
  22  Prefactor     .10000E-03    18.573       -.41967E-05** at limit **
  23  Prefactor     .10000E-03    2.5666       -.12120E-08** at limit **
  24  Normalizat    .58084        .23057        .15413E-05    .62317E-04
  25  Prefactor     1.0543        .14192        .26481E-06    .83761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.302399
  norm       = 15.222
  Prefactor  = 0.0001
  Prefactor  = 2.78572
  Prefactor  = 12.7668
  Prefactor  = 28.1524
  Prefactor  = 0.570619
  norm       = 2.16444
  Prefactor  = 2.48669
  Prefactor  = 0.0001
  Prefactor  = 62.7896
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21947
  Prefactor  = 23.3365
  norm       = 23.8119
  norm       = 0.0001
  Prefactor  = 30.5131
  Prefactor  = 203.688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.580837
  Prefactor  = 1.05429
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.097     FROM HESSE     STATUS=OK           427 CALLS     3391 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4953        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30240        .12993        .17178E-04   -1.5598    
   3  norm          15.222        13.736        .10266E-03   -1.4927    
   4  Prefactor     .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7857        6.8813        .12188E-02   -1.5374    
   6  Prefactor     12.767        11.227        .11211E-03   -1.4993    
   7  Prefactor     28.152        22.858        .75504E-04   -1.4646    
   8  Prefactor     .57062        16.986        .27722E-02   -1.5557    
   9  norm          2.1644        1.2705        .62763E-04   -1.5414    
  10  Prefactor     2.4867        14.155        .25933E-03   -1.5393    
  11  Prefactor     .10000E-03    11.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.790        73.434        .50634E-04   -1.4122    
  13  norm          .10000E-03    7.7220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3359        .11226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    140.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2195        11.747        .19609E-03   -1.5297    
  17  Prefactor     23.336        25.373        .82933E-04   -1.4741    
  18  norm          23.812        18.324        .82088E-04   -1.4732    
  19  norm          .10000E-03    18.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.513        8.7543        .72533E-04   -1.4603    
  21  Prefactor     203.69        66.562        .28317E-04   -1.2844    
  22  Prefactor     .10000E-03    18.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5705        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .58084        .25679        .37654E-03   -1.0880    
  25  Prefactor     1.0543        .15978        .18613E-03   -.90941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09585e-08
Minuit parameter uncertainties:
  1  1.01058e-06
  2  0.129928
  3  13.7387
  4  1.50356e-05
  5  6.8833
  6  11.2286
  7  22.8652
  8  6.22804
  9  1.27049
  10  11.8698
  11  2.27898e-05
  12  73.5404
  13  5.97136e-05
  14  3.81371e-06
  15  3.13255e-05
  16  11.7537
  17  25.3842
  18  18.3281
  19  6.072e-06
  20  8.75469
  21  66.587
  22  5.38623e-05
  23  1.43633e-06
  24  0.257319
  25  0.159853
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.487e+00  1.187e+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.054e+00  1.599e-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:  5.808e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838165/likelihoodResults_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.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) = 5686.06510767
delta logL = 0.0322001938857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5686.06343744
delta logL = 0.0338704180704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2528       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6051       1.0000          .0000       10.000    
     3 'Normalizat'    .57366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0555       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5686.063     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      257 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2501        13.839        .13687E-02   -.10715E-03
   2  Index         2.6088        1.8308        .90917E-02   -.13296E-04
   3  Normalizat    .57373        .24339        .37872E-03   -.59317E-04
   4  Prefactor     1.0555        .15877        .18602E-03   -.36705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25005
  Index      = 2.60877
  Normalizat = 0.573729
  Prefactor  = 1.05549
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.063     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2501        8.6200        .54749E-04   -1.5408    
   2  Index         2.6088        1.4330        .36367E-03   -.49866    
   3  Normalizat    .57373        .24349        .15149E-04   -1.0911    
   4  Prefactor     1.0555        .15852        .37205E-04   -.90902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0364e-11
Minuit parameter uncertainties:
  1  8.62472
  2  1.45974
  3  0.243948
  4  0.158586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838165': 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) = 5686.06343246
delta logL = 0.0338753980868

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.250e+00  8.625e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.609e+00  1.460e+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:  1.055e+00  1.586e-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:  5.737e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/838165/cmap_HighResolution_334972801_335232001_4FGL_J2324.7+0801_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-29 16:19:02.916541', job_id='838165', GAL2='1.06', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1632957542.92', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.39e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='369' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:19:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 838165: <4FGL_J2324.7+0801_daily_bin369> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin369> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:06:00 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:06:02 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:06:02 2021
Terminated at Wed Sep 29 16:19:03 2021
Results reported at Wed Sep 29 16:19:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin369 351.19 8.0282 334972801 335232001 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

