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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin825
RA = 351.19, Dec = 8.0282
tmin = 453168001, tmax = 453427201
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='844240', job_status='RUN', time_executed='2021-09-29 16:30:10.997643', time_epoch_executed='1632958211.0' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844240

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844240/ft1_4FGL_J2324.7+0801_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844240/ft1_4FGL_J2324.7+0801_daily_bin825.fits outfile=/scratch/kocevski/844240/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin825.fits ra=351.19 dec=8.0282 rad=12.0 tmin=453168001.0 tmax=453427201.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844240/ft1_filtered_4FGL_J2324.7+0801_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/844240/ltcube_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.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/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits
.....................!
real 11.72
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844240/ft1_filtered_4FGL_J2324.7+0801_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/844240/ltcube_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.fits outfile=/scratch/kocevski/844240/expmap_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.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/844240/ltcube_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.fits
.....................!
real 190.27
user 185.38
sys 4.57

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/844240/ft1_filtered_4FGL_J2324.7+0801_daily_bin825.fits scfile=/scratch/kocevski/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits outfile=/scratch/kocevski/844240/cmap_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.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.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844240/ft1_filtered_4FGL_J2324.7+0801_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/844240/ft2_4FGL_J2324.7+0801_daily_bin825.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844240/Model_4FGL_J2324.7+0801_daily_bin825.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/844240/ft1_filtered_4FGL_J2324.7+0801_daily_bin825.fits.....................!
real 83.84
user 82.52
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.2161       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2219       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4873       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19535E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2509       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2798       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.683       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4896       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1695       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81776       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=   7523.885     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2881 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6974       -.71431E-07** at limit **
   2  Prefactor     3.2162        .32465        .34282E-08    .26853E-03
   3  norm          .10000E-03    5.5017        .95435E-07** at limit **
   4  Prefactor     20.566        32.813       -.12206E-05   -.10207E-04
   5  Prefactor     .10000E-03    15.427       -.70590E-06** at limit **
   6  Prefactor     8.2863        12.814        .63253E-06    .77521E-06
   7  Prefactor     .10000E-03    11.912       -.84993E-07** at limit **
   8  Prefactor     7.2225        7.1705       -.72897E-07   -.14517E-04
   9  norm          1.4982        1.0038       -.10133E-07   -.37726E-04
  10  Prefactor     2.4873        9.7571       -.14336E-07   -.82579E-03
  11  Prefactor     42.730        23.880       -.60969E-06   -.35582E-05
  12  Prefactor     .10000E-03    146.13        .69198E-04** at limit **
  13  norm          4.5661        7.0411        .57095E-06   -.21776E-04
  14  Prefactor     .10000E-03    4.6592        .22865E-06** at limit **
  15  Prefactor     .10000E-03    180.93       -.87039E-04** at limit **
  16  Prefactor     1.2575        9.0452        .23531E-05   -.11087E-02
  17  Prefactor     8.2834        21.174       -.13697E-05   -.15690E-04
  18  norm          .10000E-03    9.6275       -.19134E-06** at limit **
  19  norm          .10000E-03    24.319        .32641E-06** at limit **
  20  Prefactor     12.678        7.4246       -.59887E-06   -.38381E-03
  21  Prefactor     .10000E-03    45.794       -.24207E-05** at limit **
  22  Prefactor     9.4910        16.722       -.34449E-06   -.77879E-05
  23  Prefactor     .10000E-03    3.8139        .16397E-06** at limit **
  24  Normalizat    1.1694        .21197        .26276E-06   -.13126E-03
  25  Prefactor     .81775        .12580        .11207E-06   -.12848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.21618
  norm       = 0.0001
  Prefactor  = 20.5656
  Prefactor  = 0.0001
  Prefactor  = 8.28632
  Prefactor  = 0.0001
  Prefactor  = 7.22254
  norm       = 1.4982
  Prefactor  = 2.48728
  Prefactor  = 42.7301
  Prefactor  = 0.0001
  norm       = 4.56606
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.2575
  Prefactor  = 8.28337
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6779
  Prefactor  = 0.0001
  Prefactor  = 9.49096
  Prefactor  = 0.0001
  Normalizat = 1.16942
  Prefactor  = 0.817754
 **********
 **   18 **HESSE 
 **********

 FCN=   7523.885     FROM HESSE     STATUS=OK           431 CALLS     3312 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2162        .32487        .15124E-04   -1.5349    
   3  norm          .10000E-03    5.5117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.566        32.838        .88312E-04   -1.4801    
   5  Prefactor     .10000E-03    16.034        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2863        12.810        .13931E-03   -1.5132    
   7  Prefactor     .10000E-03    11.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2225        7.1627        .14926E-03   -1.5170    
   9  norm          1.4982        1.0003        .68356E-04   -1.5463    
  10  Prefactor     2.4873        10.454        .12959E-02   -1.5393    
  11  Prefactor     42.730        23.880        .61330E-04   -1.4400    
  12  Prefactor     .10000E-03    146.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5661        6.9906        .18846E-03   -1.5281    
  14  Prefactor     .10000E-03    4.7082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    181.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2575        39.946        .19991E-02   -1.5484    
  17  Prefactor     8.2834        21.102        .13932E-03   -1.5132    
  18  norm          .10000E-03    9.6550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.678        8.4026        .56238E-03   -1.4996    
  21  Prefactor     .10000E-03    46.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4910        16.727        .13009E-03   -1.5092    
  23  Prefactor     .10000E-03    3.8264        .16543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1694        .25120        .31566E-03   -.87553    
  25  Prefactor     .81775        .14785        .22754E-03   -.99077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04606e-08
Minuit parameter uncertainties:
  1  1.69691e-06
  2  0.324867
  3  1.12352e-06
  4  32.8665
  5  1.52846e-05
  6  12.8143
  7  8.6878e-06
  8  7.16353
  9  1.00026
  10  10.2012
  11  23.885
  12  0.000181014
  13  6.99182
  14  9.26742e-06
  15  0.00138545
  16  14.1847
  17  21.1214
  18  2.73125e-06
  19  2.59739e-05
  20  8.40333
  21  3.32368e-05
  22  16.7356
  23  3.61851e-07
  24  0.251464
  25  0.147919
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.487e+00  1.020e+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:  8.178e-01  1.479e-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.169e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844240/likelihoodResults_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.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) = 7522.41607614
delta logL = 1.46852135133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7522.37840837
delta logL = 1.50618912055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35257E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1716       1.0000          .0000       10.000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86957       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=   7522.378     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      283 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34751E-01    .28179        .22212E-02    .59739E-02
   2  Index         5.1778        1.8155        .94886E-01    .24559E-03
   3  Normalizat    1.0353        .53046E-01    .75079E-01    .14844E-04
   4  Prefactor     .86999        .32682E-01    .44616E-01    .14009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0347505
  Index      = 5.17784
  Normalizat = 1.03527
  Prefactor  = 0.869989
 **********
 **   18 **HESSE 
 **********

 FCN=   7522.378     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      318 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34751E-01    .68277        .10048E-03   -1.5671    
   2  Index         5.1778        3.2822        .35184E-02    .35576E-01
   3  Normalizat    1.0353        .19163        .33226E-03   -.91858    
   4  Prefactor     .86999        .11623        .22116E-03   -.97198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05669e-10
Minuit parameter uncertainties:
  1  0.30763
  2  3.58088
  3  0.191758
  4  0.116263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844240': 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) = 7522.37840058
delta logL = 1.50619690879

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.475e-02  3.076e-01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  5.178e+00  3.581e+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:  8.700e-01  1.163e-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.035e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 351.190 8.028
Photon Index (Free Index): 5.18 +/- 3.58
Photon Flux (Free Index): 1.18e-07 +/- 7.27e-08
Energy Flux (Free Index): 1.54e-05 +/- 9.77e-06

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/844240/cmap_HighResolution_453168001_453427201_4FGL_J2324.7+0801_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='1.51e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-29 16:43:02.421137', photon_index_error2='3.58', photon_index2='5.18', ts='0.08', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='9.77e-06', EG='1.17', time_epoch_completed='1632958982.42', return_code='0', job_id='844240', GAL2='0.87', EG2='1.04', return_code2='102', photon_flux_error2='7.27e-08', ts2='3.38', photon_index='2.23' WHERE bin_id='825' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:43:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 842018: <4FGL_J2324.7+0801_daily_bin825> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin825 351.19 8.0282 453168001 453427201 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 :                                   768.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 844240: <4FGL_J2324.7+0801_daily_bin825> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin825> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:26:25 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:26:27 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:26:27 2021
Terminated at Wed Sep 29 16:43:03 2021
Results reported at Wed Sep 29 16:43:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin825 351.19 8.0282 453168001 453427201 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

