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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1653
RA = 351.19, Dec = 8.0282
tmin = 667785601, tmax = 668044801
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='889526', job_status='RUN', time_executed='2022-03-04 01:17:08.873993', time_epoch_executed='1646385428.87' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889526/ft1_4FGL_J2324.7+0801_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889526/ft1_4FGL_J2324.7+0801_daily_bin1653.fits outfile=/scratch/kocevski/889526/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1653.fits ra=351.19 dec=8.0282 rad=12.0 tmin=667785601.0 tmax=668044801.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 4.26
user 4.02
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.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/889526/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16
Number of photons that survived the gtmktime cut: 668

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889526/ltcube_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.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/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits
.....................!
real 12.27
user 11.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889526/ltcube_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.fits outfile=/scratch/kocevski/889526/expmap_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.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/889526/ltcube_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.fits
.....................!
real 190.31
user 185.05
sys 4.84

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/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits outfile=/scratch/kocevski/889526/cmap_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits outfile=/scratch/kocevski/889526/cmap_HighResolution_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889526/ft2_4FGL_J2324.7+0801_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889526/Model_4FGL_J2324.7+0801_daily_bin1653.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/889526/ft1_filtered_4FGL_J2324.7+0801_daily_bin1653.fits.....................!
real 83.25
user 81.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0512       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.769       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4522       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23470E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.189       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.925       1.0000         .10000E-03   10000.    
    19 'norm      '    .41367E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    83.454       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55634       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3487       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=   7429.538     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2998 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8757       -.10454E-06** at limit **
   2  Prefactor     1.0512        .22413       -.19751E-07   -.10263E-03
   3  norm          4.9218        23.703        .19395E-05   -.27342E-04
   4  Prefactor     .10000E-03    31.415        .79477E-05** at limit **
   5  Prefactor     3.9968        7.3526        .42667E-05   -.20252E-03
   6  Prefactor     .10000E-03    14.543       -.92334E-07** at limit **
   7  Prefactor     12.144        28.971        .38727E-07    .91549E-05
   8  Prefactor     18.766        9.4044       -.24885E-05   -.37429E-03
   9  norm          2.3273        1.5833       -.91769E-07    .87762E-04
  10  Prefactor     7.4524        7.6010       -.16152E-05    .11444E-03
  11  Prefactor     .10178E-03    20.031        .21018E-05** at limit **
  12  Prefactor     .10000E-03    26.996       -.14630E-04** at limit **
  13  norm          22.195        13.461        .53178E-06    .74442E-03
  14  Prefactor     .10049E-03    9.5651       -.21243E-05** at limit **
  15  Prefactor     .10000E-03    137.36        .91514E-05** at limit **
  16  Prefactor     40.895        21.425        .99942E-06    .11643E-02
  17  Prefactor     .10000E-03    24.860        .86037E-05** at limit **
  18  norm          20.926        17.156        .12324E-06    .61014E-04
  19  norm          .10133E-03    26.520       -.47434E-05** at limit **
  20  Prefactor     .10000E-03    2.4853        .51443E-07** at limit **
  21  Prefactor     25.730        50.567       -.77110E-07    .61767E-04
  22  Prefactor     83.454        36.234       -.38090E-06    .67396E-04
  23  Prefactor     .10000E-03    6.0936       -.65831E-07** at limit **
  24  Normalizat    .55637        .27683        .42249E-06    .14090E-03
  25  Prefactor     1.3487        .15449       -.20590E-06    .36161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.05121
  norm       = 4.92181
  Prefactor  = 0.0001
  Prefactor  = 3.99681
  Prefactor  = 0.0001
  Prefactor  = 12.1437
  Prefactor  = 18.7659
  norm       = 2.32725
  Prefactor  = 7.45244
  Prefactor  = 0.000101782
  Prefactor  = 0.0001
  norm       = 22.1948
  Prefactor  = 0.000100486
  Prefactor  = 0.0001
  Prefactor  = 40.895
  Prefactor  = 0.0001
  norm       = 20.926
  norm       = 0.000101334
  Prefactor  = 0.0001
  Prefactor  = 25.7299
  Prefactor  = 83.4544
  Prefactor  = 0.0001
  Normalizat = 0.556369
  Prefactor  = 1.34866
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.538     FROM HESSE     STATUS=OK           437 CALLS     3435 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0512        .22367        .18000E-04   -1.5503    
   3  norm          4.9218        23.390        .18133E-03   -1.5264    
   4  Prefactor     .10000E-03    31.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9968        7.2253        .20174E-03   -1.5308    
   6  Prefactor     .10000E-03    14.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.144        28.817        .11496E-03   -1.5011    
   8  Prefactor     18.766        9.6055        .92449E-04   -1.4841    
   9  norm          2.3273        1.5709        .83252E-04   -1.5403    
  10  Prefactor     7.4524        7.5905        .14691E-03   -1.5162    
  11  Prefactor     .10178E-03    24.196        .10102       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.195        12.034        .85033E-04   -1.4765    
  14  Prefactor     .10049E-03    63.959        .43150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    137.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.895        18.382        .62682E-04   -1.4428    
  17  Prefactor     .10000E-03    24.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.926        17.119        .87560E-04   -1.4793    
  19  norm          .10133E-03    158.73        .71716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5009        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.730        50.424        .78977E-04   -1.4693    
  22  Prefactor     83.454        36.126        .43971E-04   -1.3878    
  23  Prefactor     .10000E-03    6.1438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .55637        .28479        .47504E-03   -1.0987    
  25  Prefactor     1.3487        .16672        .20175E-03   -.81871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61063e-08
Minuit parameter uncertainties:
  1  4.61767e-06
  2  0.223667
  3  21.4725
  4  1.24076e-05
  5  7.22692
  6  2.84937e-05
  7  28.8505
  8  9.60629
  9  1.57098
  10  7.59145
  11  0.0131378
  12  1.31126e-07
  13  12.035
  14  0.0111592
  15  6.56802e-07
  16  18.3845
  17  1.808e-05
  18  17.1232
  19  0.0291851
  20  4.02588e-07
  21  50.5077
  22  36.1357
  23  2.41877e-06
  24  0.285537
  25  0.166785
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.452e+00  7.591e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.349e+00  1.668e-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.564e-01  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/889526/likelihoodResults_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.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) = 7428.5887536
delta logL = 0.949333632032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7428.58752201
delta logL = 0.950565227776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1281       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2813       1.0000          .0000       10.000    
     3 'Normalizat'    .56703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3487       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=   7428.588     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1281        7.3610        .37562E-02   -.18570E-02
   2  Index         1.2810        .46691        .30385       -.46080E-04
   3  Normalizat    .56732        .23771        .10618        .33096E-04
   4  Prefactor     1.3485        .15192        .45652E-01   -.80681E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.12812
  Index      = 1.28095
  Normalizat = 0.567321
  Prefactor  = 1.34849
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.588     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1281        9.1397        .75124E-03   -1.5174    
   2  Index         1.2810        .66626        .11640E-01   -.83875    
   3  Normalizat    .56732        .25718        .47072E-03   -1.0939    
   4  Prefactor     1.3485        .16512        .20178E-03   -.81876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35386e-09
Minuit parameter uncertainties:
  1  9.14153
  2  0.670756
  3  0.257724
  4  0.165182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889526': 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) = 7428.58752102
delta logL = 0.95056621409

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.128e+00  9.142e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.281e+00  6.708e-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.348e+00  1.652e-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.673e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.22
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.28 +/- 0.67
Photon Flux (Free Index): 7.21e-09 +/- 1.03e-08
Energy Flux (Free Index): 4.69e-05 +/- 7.12e-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/889526/cmap_HighResolution_667785601_668044801_4FGL_J2324.7+0801_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='4.69e-05', photon_flux_error='2.73e-08', dlogl='9.51e-01', energy_flux='1.15e-05', photon_flux2='7.21e-09', job_status='DONE', time_completed='2022-03-04 01:29:38.080496', photon_index_error2='0.67', photon_index2='1.28', ts='3.34', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='7.12e-05', EG='0.56', time_epoch_completed='1646386178.08', return_code='0', job_id='889526', GAL2='1.35', EG2='0.57', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.03e-08', ts2='5.22', photon_index='2.23' WHERE bin_id='1653' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:29:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 889526: <4FGL_J2324.7+0801_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:54 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:50 2022
Terminated at Fri Mar  4 01:29:38 2022
Results reported at Fri Mar  4 01:29:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1653 351.19 8.0282 667785601 668044801 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 :                                   750.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            824 sec.

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

