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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1202
RA = 351.19, Dec = 8.0282
tmin = 550886401, tmax = 551145601
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='843660', job_status='RUN', time_executed='2021-09-29 16:27:54.151200', time_epoch_executed='1632958074.15' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843660/ft1_4FGL_J2324.7+0801_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843660/ft1_4FGL_J2324.7+0801_daily_bin1202.fits outfile=/scratch/kocevski/843660/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1202.fits ra=351.19 dec=8.0282 rad=12.0 tmin=550886401.0 tmax=551145601.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.74
user 3.54
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/843660/ltcube_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.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/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits
.....................!
real 11.69
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/843660/ltcube_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.fits outfile=/scratch/kocevski/843660/expmap_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.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/843660/ltcube_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.fits
.....................!
real 189.74
user 185.54
sys 3.89

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/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits scfile=/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits outfile=/scratch/kocevski/843660/cmap_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits scfile=/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits outfile=/scratch/kocevski/843660/cmap_HighResolution_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/843660/ft2_4FGL_J2324.7+0801_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843660/Model_4FGL_J2324.7+0801_daily_bin1202.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/843660/ft1_filtered_4FGL_J2324.7+0801_daily_bin1202.fits......................!
real 36.10
user 34.85
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1825       1.0000         .10000E-03   10000.    
     3 'norm      '    12.767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    103.57       1.0000         .10000E-03   10000.    
    13 'norm      '    .15242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1882       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14413E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.205       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    26.096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    93.701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.911       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .26268       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3476       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=   2571.672     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2959 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7550       -.19075E-07** at limit **
   2  Prefactor     1.1825        .35274       -.36795E-07   -.69908E-04
   3  norm          12.767        22.582        .19488E-06   -.11073E-04
   4  Prefactor     .10000E-03    30.577       -.99450E-06** at limit **
   5  Prefactor     3.8844        10.810        .56623E-05   -.55698E-03
   6  Prefactor     .10000E-03    33.133        .10489E-05** at limit **
   7  Prefactor     .10000E-03    13.725       -.81247E-07** at limit **
   8  Prefactor     .10000E-03    20.575       -.11436E-05** at limit **
   9  norm          .10000E-03    .77615        .48905E-07** at limit **
  10  Prefactor     5.7674        18.554       -.36478E-05   -.12201E-03
  11  Prefactor     .10000E-03    16.186        .46809E-07** at limit **
  12  Prefactor     103.56        119.76       -.38702E-06   -.42315E-04
  13  norm          .11390E-03    21.178        .21106E-05** at limit **
  14  Prefactor     6.2433        12.850       -.17872E-05   -.68432E-04
  15  Prefactor     .10000E-03    179.29       -.46962E-07** at limit **
  16  Prefactor     .10000E-03    19.567        .82394E-06** at limit **
  17  Prefactor     58.277        48.263        .55676E-05    .37940E-03
  18  norm          .10000E-03    8.5755        .25874E-08** at limit **
  19  norm          26.088        33.668        .17595E-05    .77376E-04
  20  Prefactor     .10000E-03    6.8831        .60222E-07** at limit **
  21  Prefactor     93.648        77.532       -.37301E-05   -.19710E-03
  22  Prefactor     .10000E-03    10.982        .48797E-07** at limit **
  23  Prefactor     16.911        21.834        .50472E-06    .25380E-04
  24  Normalizat    .26277        .49205       -.36839E-05   -.59818E-04
  25  Prefactor     1.3476        .31093       -.14782E-06   -.53775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.18249
  norm       = 12.7668
  Prefactor  = 0.0001
  Prefactor  = 3.88436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.7674
  Prefactor  = 0.0001
  Prefactor  = 103.561
  norm       = 0.000113901
  Prefactor  = 6.24335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.2769
  norm       = 0.0001
  norm       = 26.0875
  Prefactor  = 0.0001
  Prefactor  = 93.648
  Prefactor  = 0.0001
  Prefactor  = 16.9105
  Normalizat = 0.262769
  Prefactor  = 1.34755
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.672     FROM HESSE     STATUS=OK           429 CALLS     3388 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7555        .15471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1825        .35175        .15741E-04   -1.5490    
   3  norm          12.767        22.493        .11210E-03   -1.4993    
   4  Prefactor     .10000E-03    30.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8844        11.535        .10234E-02   -1.5314    
   6  Prefactor     .10000E-03    33.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1357        .86770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7674        18.906        .16757E-03   -1.5228    
  11  Prefactor     .10000E-03    16.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     103.56        118.98        .39510E-04   -1.3669    
  13  norm          .11390E-03    66.465        .54428E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2433        14.092        .16138E-03   -1.5208    
  15  Prefactor     .10000E-03    179.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.277        51.438        .52585E-04   -1.4180    
  18  norm          .10000E-03    8.5762        .14506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          26.088        33.573        .78419E-04   -1.4686    
  20  Prefactor     .10000E-03    6.9424        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     93.648        77.184        .41518E-04   -1.3769    
  22  Prefactor     .10000E-03    10.984        .16415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.911        21.414        .97393E-04   -1.4885    
  24  Normalizat    .26277        .38565        .57137E-03   -1.2513    
  25  Prefactor     1.3476        .25342        .17798E-03   -.81904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81955e-09
Minuit parameter uncertainties:
  1  1.68372e-06
  2  0.351747
  3  22.5082
  4  0.000151816
  5  11.5417
  6  0.000199507
  7  1.74007e-06
  8  0.000126447
  9  3.45096e-06
  10  18.9258
  11  9.97489e-06
  12  119.256
  13  0.0608592
  14  14.0994
  15  3.7267e-05
  16  0.000110005
  17  51.4775
  18  4.38065e-07
  19  33.5973
  20  7.52403e-06
  21  77.2673
  22  5.70301e-06
  23  21.4236
  24  0.389644
  25  0.253656
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.767e+00  1.893e+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.348e+00  2.537e-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:  2.628e-01  3.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843660/likelihoodResults_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.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) = 2571.67143294
delta logL = 0.000177451204308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2571.67111413
delta logL = 0.000496260506679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4181       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1054       1.0000          .0000       10.000    
     3 'Normalizat'    .26552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3463       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=   2571.671     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      283 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3845        30.413        .79214E-03   -.57128E-04
   2  Index         2.1089        3.1915        .11575E-01   -.19354E-04
   3  Normalizat    .26621        .38177        .56784E-03   -.73597E-04
   4  Prefactor     1.3460        .25580        .17807E-03   -.18318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.38447
  Index      = 2.10895
  Normalizat = 0.26621
  Prefactor  = 1.34598
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.671     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3845        24.339        .31685E-04   -1.5203    
   2  Index         2.1089        2.8791        .46298E-03   -.61653    
   3  Normalizat    .26621        .37711        .22714E-04   -1.2491    
   4  Prefactor     1.3460        .25384        .35614E-04   -.81950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83274e-10
Minuit parameter uncertainties:
  1  24.3767
  2  3.19626
  3  0.38079
  4  0.254076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843660': 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) = 2571.67111074
delta logL = 0.000499651768223

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.384e+00  2.438e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.109e+00  3.196e+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.346e+00  2.541e-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:  2.662e-01  3.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/843660/cmap_HighResolution_550886401_551145601_4FGL_J2324.7+0801_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.93e-07', time_completed='2021-09-29 16:35:41.539970', job_id='843660', GAL2='1.35', fit_tolerance='1e-08', EG2='0.27', EG='0.26', time_epoch_completed='1632958541.54', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='5.00e-04', ts2='0.13', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1202' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 843660: <4FGL_J2324.7+0801_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1202 351.19 8.0282 550886401 551145601 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 :                                   463.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             230.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            609 sec.

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

