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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin754
RA = 351.19, Dec = 8.0282
tmin = 434764801, tmax = 435024001
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='840834', job_status='RUN', time_executed='2021-09-29 16:16:13.857982', time_epoch_executed='1632957373.86' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840834/ft1_4FGL_J2324.7+0801_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840834/ft1_4FGL_J2324.7+0801_daily_bin754.fits outfile=/scratch/kocevski/840834/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin754.fits ra=351.19 dec=8.0282 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.73
user 5.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.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/840834/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/840834/ltcube_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.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/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits
.....................!
real 11.97
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/840834/ltcube_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.fits outfile=/scratch/kocevski/840834/expmap_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.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/840834/ltcube_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.fits
.....................!
real 190.14
user 183.89
sys 5.91

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/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.fits scfile=/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits outfile=/scratch/kocevski/840834/cmap_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.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.55
user 0.37
sys 0.17

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/840834/ft2_4FGL_J2324.7+0801_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840834/Model_4FGL_J2324.7+0801_daily_bin754.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/840834/ft1_filtered_4FGL_J2324.7+0801_daily_bin754.fits.....................!
real 35.32
user 33.94
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5069       1.0000         .10000E-03   10000.    
     3 'norm      '    14.077       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    111.74       1.0000         .10000E-03   10000.    
    13 'norm      '    23.684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    165.82       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    48.783       1.0000         .10000E-03   10000.    
    19 'norm      '    50.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.676       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .29381       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2324.838     FROM MIGRAD    STATUS=CONVERGED     66 CALLS     2433 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    24.190       -.39916E-05** at limit **
   2  Prefactor     2.5070        .53865        .74038E-07    .21959E-02
   3  norm          14.084        1.2228        .59711E-07   -.11511E-02
   4  Prefactor     .10676E-03    18.247       -.47591E-05** at limit **
   5  Prefactor     13.746        1.1347        .42678E-07   -.78396E-03
   6  Prefactor     .10225E-03    28.117       -.45077E-05** at limit **
   7  Prefactor     .10001E-03    12.368       -.28342E-06** at limit **
   8  Prefactor     .10001E-03    12.042        .30776E-06** at limit **
   9  norm          .10000E-03    1.0253       -.13258E-06** at limit **
  10  Prefactor     20.002        1.2778        .42890E-07   -.17714E-02
  11  Prefactor     2.3630        1.7894        .27290E-06   -.11122E-02
  12  Prefactor     111.74        1.0848        .10747E-07   -.29822E-02
  13  norm          23.682        1.0086       -.96935E-08    .25881E-03
  14  Prefactor     1.3137        1.1194       -.77613E-07    .10980E-04
  15  Prefactor     165.82        1.0000       -.10111E-09    .10679E-03
  16  Prefactor     30.298        1.4250        .55697E-07   -.25613E-02
  17  Prefactor     .11015E-03    42.438       -.53535E-05** at limit **
  18  norm          48.788        1.1977        .26124E-07   -.24817E-02
  19  norm          50.921        1.0082        .65881E-08    .71094E-04
  20  Prefactor     .10000E-03    4.1904        .59400E-06** at limit **
  21  Prefactor     .10186E-03    24.458       -.50946E-05** at limit **
  22  Prefactor     48.684        1.6981        .52131E-07   -.62043E-02
  23  Prefactor     10.331        1.0065        .20499E-07   -.24465E-04
  24  Normalizat    .29339        .39170        .30253E-05    .81246E-04
  25  Prefactor     1.0481        .25314        .22470E-06    .21224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100246
  Prefactor  = 2.50699
  norm       = 14.0839
  Prefactor  = 0.000106764
  Prefactor  = 13.7458
  Prefactor  = 0.000102249
  Prefactor  = 0.000100008
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 20.002
  Prefactor  = 2.36302
  Prefactor  = 111.742
  norm       = 23.6824
  Prefactor  = 1.31367
  Prefactor  = 165.816
  Prefactor  = 30.2975
  Prefactor  = 0.000110146
  norm       = 48.7878
  norm       = 50.9211
  Prefactor  = 0.0001
  Prefactor  = 0.000101856
  Prefactor  = 48.6838
  Prefactor  = 10.3308
  Normalizat = 0.293387
  Prefactor  = 1.04815
 **********
 **   18 **HESSE 
 **********

 FCN=   2324.838     FROM HESSE     STATUS=OK           477 CALLS     2910 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    24.780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5070        .57341        .35725E-02   -1.5391    
   3  norm          14.084        26.337        .26688E-02   -1.4957    
   4  Prefactor     .10676E-03    53.509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.746        26.249        .27013E-02   -1.4966    
   6  Prefactor     .10225E-03    34.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    12.384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    11.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.002        36.612        .22391E-02   -1.4813    
  11  Prefactor     2.3630        127.08        .66812E-02   -1.5401    
  12  Prefactor     111.74        131.95        .95135E-03   -1.3590    
  13  norm          23.682        50.167        .20577E-02   -1.4734    
  14  Prefactor     1.3137        272.32        .95904E-02   -1.5479    
  15  Prefactor     165.82        392.88        .78310E-03   -1.3125    
  16  Prefactor     30.298        50.229        .18200E-02   -1.4607    
  17  Prefactor     .11015E-03    84.048        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          48.788        36.662        .14353E-02   -1.4310    
  19  norm          50.921        102.16        .14050E-02   -1.4280    
  20  Prefactor     .10000E-03    4.1883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10186E-03    67.120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.684        57.762        .14369E-02   -1.4311    
  23  Prefactor     10.331        15.270        .31169E-02   -1.5065    
  24  Normalizat    .29339        .57227        .12535       -1.2323    
  25  Prefactor     1.0481        .29938        .40033E-01   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0856e-06
Minuit parameter uncertainties:
  1  0.00494319
  2  0.573412
  3  26.3588
  4  0.0380843
  5  26.2706
  6  0.0175046
  7  0.000634312
  8  0.000509465
  9  3.67702e-06
  10  36.6534
  11  34.7357
  12  132.294
  13  50.256
  14  38.0029
  15  399.356
  16  50.2993
  17  0.0584859
  18  36.6787
  19  102.512
  20  3.24845e-05
  21  0.0223491
  22  57.829
  23  15.2753
  24  0.584278
  25  0.299862
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.000e+01  3.665e+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.048e+00  2.999e-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.934e-01  5.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840834/likelihoodResults_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.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) = 2324.37935566
delta logL = 0.459136289415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2324.32147105
delta logL = 0.517020893168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9036       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3570       1.0000          .0000       10.000    
     3 'Normalizat'    .15623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1002       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=   2324.321     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      254 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8492        98.699        .45409E-02   -.11018E-02
   2  Index         3.3617        3.2384        .80989E-01   -.22777E-03
   3  Normalizat    .15598        .13775        .17226        .42783E-05
   4  Prefactor     1.1001        .82770E-01    .37579E-01   -.86582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84917
  Index      = 3.36172
  Normalizat = 0.155981
  Prefactor  = 1.10013
 **********
 **   18 **HESSE 
 **********

 FCN=   2324.321     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8492        147.00        .83742E-04   -1.5268    
   2  Index         3.3617        6.6440        .31636E-02   -.33382    
   3  Normalizat    .15598        .48348        .74473E-03   -1.3284    
   4  Prefactor     1.1001        .31120        .18816E-03   -.89462    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.27187e-10
Minuit parameter uncertainties:
  1  53.5415
  2  5.0315
  3  0.497656
  4  0.311715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840834': 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) = 2324.32146193
delta logL = 0.517030015757

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.849e+00  5.354e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.362e+00  5.031e+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.100e+00  3.117e-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.560e-01  4.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.36 +/- 5.03
Photon Flux (Free Index): 2.02e-07 +/- 2.15e-07
Energy Flux (Free Index): 3.49e-05 +/- 4.49e-05

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/840834/cmap_HighResolution_434764801_435024001_4FGL_J2324.7+0801_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-02', comment='SUCCESS', energy_flux2='3.49e-05', dlogl='5.17e-01', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-29 16:23:40.341902', photon_index_error2='5.03', photon_index2='3.36', ts='0.61', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.13e-07', energy_flux_error2='4.49e-05', EG='0.29', time_epoch_completed='1632957820.34', return_code='0', job_id='840834', GAL2='1.10', EG2='0.16', return_code2='102', photon_flux_error2='2.15e-07', ts2='1.81', photon_index='2.23' WHERE bin_id='754' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 840834: <4FGL_J2324.7+0801_daily_bin754> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:37 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:38 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:15:38 2021
Terminated at Wed Sep 29 16:23:41 2021
Results reported at Wed Sep 29 16:23:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin754 351.19 8.0282 434764801 435024001 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 :                                   444.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            484 sec.

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

