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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin896
RA = 351.19, Dec = 8.0282
tmin = 471571201, tmax = 471830401
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='842122', job_status='RUN', time_executed='2021-09-29 16:23:51.719171', time_epoch_executed='1632957831.72' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842122/ft1_4FGL_J2324.7+0801_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842122/ft1_4FGL_J2324.7+0801_daily_bin896.fits outfile=/scratch/kocevski/842122/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin896.fits ra=351.19 dec=8.0282 rad=12.0 tmin=471571201.0 tmax=471830401.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.85
user 3.62
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits" evtable="EVENTS" scfile=/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits sctable="SC_DATA" outfile=/scratch/kocevski/842122/ltcube_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.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/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits
.....................!
real 9.68
user 9.38
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/842122/ltcube_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.fits outfile=/scratch/kocevski/842122/expmap_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.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/842122/ltcube_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.fits
.....................!
real 145.44
user 141.56
sys 3.64

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/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits scfile=/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits outfile=/scratch/kocevski/842122/cmap_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.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.44
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits scfile=/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits outfile=/scratch/kocevski/842122/cmap_HighResolution_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/842122/ft2_4FGL_J2324.7+0801_daily_bin896.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842122/Model_4FGL_J2324.7+0801_daily_bin896.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/842122/ft1_filtered_4FGL_J2324.7+0801_daily_bin896.fits.....................!
real 62.34
user 61.24
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.4131       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11822E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3634       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5257       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4773       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3329       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8105       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1961       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=   6943.103     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2521 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.871       -.18850E-05** at limit **
   2  Prefactor     3.4131        .39347        .37081E-08    .47407E-03
   3  norm          .10000E-03    7.0032        .44248E-08** at limit **
   4  Prefactor     .10000E-03    30.623       -.11116E-05** at limit **
   5  Prefactor     .37706        7.9893       -.28624E-06    .11369E-04
   6  Prefactor     1.9308        6.7837        .11589E-05   -.50080E-03
   7  Prefactor     .10000E-03    58.690       -.10867E-04** at limit **
   8  Prefactor     7.3653        11.913       -.27864E-06   -.27480E-04
   9  norm          3.5257        1.5566        .83262E-08    .35348E-04
  10  Prefactor     3.2707        18.828        .17606E-05   -.31556E-04
  11  Prefactor     20.070        21.355        .19210E-06   -.24880E-04
  12  Prefactor     .10000E-03    25.691        .34461E-05** at limit **
  13  norm          2.3633        15.593        .22009E-05   -.48883E-04
  14  Prefactor     .10000E-03    11.882       -.22344E-06** at limit **
  15  Prefactor     .10000E-03    190.10       -.34621E-05** at limit **
  16  Prefactor     .10000E-03    2.8370        .41844E-08** at limit **
  17  Prefactor     5.4764        38.956        .18902E-06   -.14362E-04
  18  norm          .10000E-03    62.100        .12092E-04** at limit **
  19  norm          .10000E-03    5.8022       -.15254E-07** at limit **
  20  Prefactor     1.3329        2.4765        .41330E-07   -.65955E-04
  21  Prefactor     .10000E-03    20.829       -.28147E-06** at limit **
  22  Prefactor     .10000E-03    9.5180        .71610E-08** at limit **
  23  Prefactor     5.8106        6.5330       -.18361E-05   -.10655E-03
  24  Normalizat    1.0430        .24844       -.41404E-06   -.59341E-06
  25  Prefactor     1.1961        .15008       -.44184E-07   -.22839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.41314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.377061
  Prefactor  = 1.93085
  Prefactor  = 0.0001
  Prefactor  = 7.36525
  norm       = 3.5257
  Prefactor  = 3.27073
  Prefactor  = 20.07
  Prefactor  = 0.0001
  norm       = 2.36332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4764
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8106
  Normalizat = 1.04302
  Prefactor  = 1.19606
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.103     FROM HESSE     STATUS=OK           427 CALLS     2948 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4131        .39227        .16636E-04   -1.5338    
   3  norm          .10000E-03    7.0103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .37706        58.825        .43113E-02   -1.5585    
   6  Prefactor     1.9308        34.165        .14940E-02   -1.5430    
   7  Prefactor     .10000E-03    59.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3653        11.866        .14781E-03   -1.5165    
   9  norm          3.5257        1.5565        .66976E-04   -1.5332    
  10  Prefactor     3.2707        17.018        .22395E-03   -1.5346    
  11  Prefactor     20.070        21.295        .44701E-03   -1.4812    
  12  Prefactor     .10000E-03    25.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3633        14.030        .26606E-03   -1.5400    
  14  Prefactor     .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    190.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8378        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4764        38.401        .17168E-03   -1.5240    
  18  norm          .10000E-03    63.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3329        2.4289        .17413E-03   -1.5477    
  21  Prefactor     .10000E-03    20.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8106        6.5649        .16661E-03   -1.5226    
  24  Normalizat    1.0430        .29101        .37889E-03   -.91603    
  25  Prefactor     1.1961        .17646        .22323E-03   -.86453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63592e-09
Minuit parameter uncertainties:
  1  2.62054e-05
  2  0.392274
  3  1.24065e-06
  4  2.2144e-05
  5  9.42748
  6  16.2544
  7  0.000155092
  8  11.8698
  9  1.55652
  10  14.9278
  11  21.3035
  12  6.08007e-05
  13  11.5203
  14  8.86846e-05
  15  0.000156219
  16  1.38004e-07
  17  29.0297
  18  0.000111407
  19  1.47115e-08
  20  2.42905
  21  4.89466e-06
  22  6.54893e-07
  23  6.56575
  24  0.29146
  25  0.176544
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.271e+00  1.493e+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.196e+00  1.765e-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.043e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842122/likelihoodResults_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.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) = 6942.97370209
delta logL = 0.129313205252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6942.94885193
delta logL = 0.15416336038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6762       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1595       1.0000          .0000       10.000    
     3 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2052       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=   6942.949     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      243 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6697        77.366        .81370E-02    .14692E-02
   2  Index         3.1601        3.5512        .14338        .21067E-03
   3  Normalizat    1.0104        .58037E-01    .86784E-01   -.40947E-03
   4  Prefactor     1.2055        .35753E-01    .50316E-01   -.67756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66968
  Index      = 3.16006
  Normalizat = 1.01044
  Prefactor  = 1.20553
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.949     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6697        226.41        .17398E-03   -1.5450    
   2  Index         3.1601        5.2848        .85793E-02   -.37684    
   3  Normalizat    1.0104        .29235        .38426E-03   -.92681    
   4  Prefactor     1.2055        .18418        .22243E-03   -.86161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10314e-09
Minuit parameter uncertainties:
  1  39.0365
  2  10.5161
  3  0.292818
  4  0.184277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842122': 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): 102
logL (Free Index) = 6942.9488469
delta logL = 0.154168399252

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.670e+00  3.904e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.160e+00  1.052e+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.206e+00  1.843e-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.010e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/842122/cmap_HighResolution_471571201_471830401_4FGL_J2324.7+0801_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-29 16:33:12.956659', job_id='842122', GAL2='1.21', fit_tolerance='1e-08', EG2='1.01', EG='1.04', time_epoch_completed='1632958392.96', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.54e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='896' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:33:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 842122: <4FGL_J2324.7+0801_daily_bin896> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin896> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:26 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:28 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:20:28 2021
Terminated at Wed Sep 29 16:33:13 2021
Results reported at Wed Sep 29 16:33:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin896 351.19 8.0282 471571201 471830401 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 :                                   558.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

