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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1211
RA = 351.19, Dec = 8.0282
tmin = 553219201, tmax = 553478401
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='843673', job_status='RUN', time_executed='2021-09-29 16:29:01.595135', time_epoch_executed='1632958141.6' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843673/ft1_4FGL_J2324.7+0801_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843673/ft1_4FGL_J2324.7+0801_daily_bin1211.fits outfile=/scratch/kocevski/843673/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1211.fits ra=351.19 dec=8.0282 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.89
user 2.54
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.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/843673/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.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.55
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/843673/ltcube_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.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/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits
.....................!
real 14.89
user 14.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/843673/ltcube_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.fits outfile=/scratch/kocevski/843673/expmap_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.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/843673/ltcube_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.fits
.....................!
real 191.33
user 185.20
sys 5.72

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/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits outfile=/scratch/kocevski/843673/cmap_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits outfile=/scratch/kocevski/843673/cmap_HighResolution_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/843673/ft2_4FGL_J2324.7+0801_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843673/Model_4FGL_J2324.7+0801_daily_bin1211.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/843673/ft1_filtered_4FGL_J2324.7+0801_daily_bin1211.fits.....................!
real 77.62
user 76.17
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76994       1.0000         .10000E-03   10000.    
     3 'norm      '    11.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.814       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8241       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.232       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.528       1.0000         .10000E-03   10000.    
    19 'norm      '    25.376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4789       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0056       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82180       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=   7160.165     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2915 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0529        7.7378        .16666E-05   -.24576E-03
   2  Prefactor     .76993        .18467        .42311E-08   -.25865E-03
   3  norm          11.357        21.255        .27248E-06   -.20227E-05
   4  Prefactor     20.820        33.118       -.64998E-06   -.13998E-04
   5  Prefactor     .10000E-03    2.9251        .25671E-06** at limit **
   6  Prefactor     .10000E-03    2.2849        .63000E-07** at limit **
   7  Prefactor     6.8242        12.681        .73126E-07   -.35569E-04
   8  Prefactor     .10000E-03    3.3457        .26920E-06** at limit **
   9  norm          1.1691        1.0073        .17504E-07    .68777E-04
  10  Prefactor     .10001E-03    5.1784        .91642E-06** at limit **
  11  Prefactor     .10000E-03    56.239        .57897E-05** at limit **
  12  Prefactor     40.231        39.224        .15060E-06   -.49646E-06
  13  norm          5.1702        6.2710       -.13330E-05   -.16413E-03
  14  Prefactor     .10000E-03    4.2927        .15058E-05** at limit **
  15  Prefactor     .10000E-03    73.753        .47256E-05** at limit **
  16  Prefactor     7.6535        22.514       -.11981E-05    .88935E-05
  17  Prefactor     .10000E-03    10.956        .54761E-06** at limit **
  18  norm          10.528        9.8366        .61575E-07   -.15345E-04
  19  norm          25.377        37.591        .24023E-06    .41022E-05
  20  Prefactor     1.5813        5.1691        .69545E-06   -.21694E-04
  21  Prefactor     .10000E-03    14.024        .39617E-07** at limit **
  22  Prefactor     4.4829        21.976        .54080E-06   -.33812E-04
  23  Prefactor     4.0063        6.8242        .15364E-06   -.11929E-04
  24  Normalizat    1.0644        .19094       -.10245E-05   -.11506E-03
  25  Prefactor     .82194        .11508       -.53517E-06   -.13128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05289
  Prefactor  = 0.769933
  norm       = 11.3567
  Prefactor  = 20.8197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.82422
  Prefactor  = 0.0001
  norm       = 1.1691
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 40.2308
  norm       = 5.17018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65351
  Prefactor  = 0.0001
  norm       = 10.5275
  norm       = 25.3773
  Prefactor  = 1.58132
  Prefactor  = 0.0001
  Prefactor  = 4.48287
  Prefactor  = 4.00626
  Normalizat = 1.06437
  Prefactor  = 0.82194
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.165     FROM HESSE     STATUS=OK           439 CALLS     3354 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0529        34.353        .24025E-02   -1.5503    
   2  Prefactor     .76993        .18588        .16997E-04   -1.5532    
   3  norm          11.357        21.262        .11889E-03   -1.5034    
   4  Prefactor     20.820        33.117        .87794E-04   -1.4795    
   5  Prefactor     .10000E-03    2.9503        .14135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2864        .12492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8242        12.700        .76795E-03   -1.5185    
   8  Prefactor     .10000E-03    3.4070        .15108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1691        .98590        .75628E-04   -1.5492    
  10  Prefactor     .10001E-03    18.728        .34495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.714        .49542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.231        39.221        .31597E-03   -1.4439    
  13  norm          5.1702        6.2755        .17682E-03   -1.5253    
  14  Prefactor     .10000E-03    4.3978        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    73.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6535        21.976        .14493E-03   -1.5155    
  17  Prefactor     .10000E-03    10.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.528        9.8362        .12349E-03   -1.5059    
  19  norm          25.377        37.345        .79522E-04   -1.4700    
  20  Prefactor     1.5813        5.0279        .29469E-03   -1.5456    
  21  Prefactor     .10000E-03    14.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4829        22.234        .95127E-03   -1.5284    
  23  Prefactor     4.0063        6.8210        .20150E-03   -1.5308    
  24  Normalizat    1.0644        .22544        .28789E-03   -.90904    
  25  Prefactor     .82194        .13641        .20108E-03   -.98925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13133e-09
Minuit parameter uncertainties:
  1  12.0353
  2  0.185879
  3  21.2761
  4  33.146
  5  8.96566e-07
  6  7.63539e-07
  7  12.7046
  8  1.13008e-06
  9  0.985912
  10  0.000676913
  11  0.000918886
  12  39.2459
  13  6.27633
  14  1.20333e-05
  15  0.000138693
  16  21.9987
  17  3.40903e-06
  18  9.83768
  19  37.379
  20  5.02923
  21  1.01165e-05
  22  19.979
  23  6.82237
  24  0.22564
  25  0.13647
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  6.769e-04  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.219e-01  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.064e+00  2.256e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843673/likelihoodResults_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.16569507
delta logL = -0.000253185103247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.16544341
delta logL = -1.5258192434e-06

Fit tolerance = 1e-08

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

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

 FCN=   7159.649     FROM MIGRAD    STATUS=CONVERGED    195 CALLS      365 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42292E-01    .66391E-01     .0000       -.13601    
   2  Index         4.7905        .50010         .0000        .63256E-04
   3  Normalizat    1.0002        .19089         .0000       -.32968E-03
   4  Prefactor     .84528        .11528         .0000       -.29105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0422917
  Index      = 4.79051
  Normalizat = 1.00019
  Prefactor  = 0.845276
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.649     FROM HESSE     STATUS=OK            31 CALLS      396 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42292E-01    .59731E-01    .92902E-03   -1.5749    
   2  Index         4.7905        .56559        .55303E-02   -.41910E-01
   3  Normalizat    1.0002        .22451        .29578E-03   -.93024    
   4  Prefactor     .84528        .13664        .19851E-03   -.98080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40319e-07
Minuit parameter uncertainties:
  1  0.059731
  2  0.566808
  3  0.224718
  4  0.136693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843673': 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) = 7159.6494727
delta logL = 0.515969181321

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.229e-02  5.973e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  4.791e+00  5.668e-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.453e-01  1.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

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


TS (Free Index): 1.12
Ra Dec: 351.190 8.028
Photon Index (Free Index): 4.79 +/- 0.57
Photon Flux (Free Index): 5.47e-08 +/- 1.38e-07
Energy Flux (Free Index): 7.41e-06 +/- 1.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/843673/cmap_HighResolution_553219201_553478401_4FGL_J2324.7+0801_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', comment='SUCCESS', energy_flux2='7.41e-06', dlogl='5.16e-01', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-29 16:41:23.041554', photon_index_error2='0.57', photon_index2='4.79', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='1.84e-05', EG='1.06', time_epoch_completed='1632958883.04', return_code='0', job_id='843673', GAL2='0.85', EG2='1.00', return_code2='0', photon_flux_error2='1.38e-07', ts2='1.12', photon_index='2.23' WHERE bin_id='1211' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 843673: <4FGL_J2324.7+0801_daily_bin1211> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1211> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:33 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:34 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:25:34 2021
Terminated at Wed Sep 29 16:41:23 2021
Results reported at Wed Sep 29 16:41:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1211 351.19 8.0282 553219201 553478401 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

