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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin925
RA = 351.19, Dec = 8.0282
tmin = 479088001, tmax = 479347201
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='842165', job_status='RUN', time_executed='2021-09-29 16:21:25.864902', time_epoch_executed='1632957685.86' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842165/ft1_4FGL_J2324.7+0801_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842165/ft2_4FGL_J2324.7+0801_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842165/ft1_4FGL_J2324.7+0801_daily_bin925.fits outfile=/scratch/kocevski/842165/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin925.fits ra=351.19 dec=8.0282 rad=12.0 tmin=479088001.0 tmax=479347201.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.49
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842165/ft1_filtered_4FGL_J2324.7+0801_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/842165/ft2_4FGL_J2324.7+0801_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/842165/ltcube_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.fits outfile=/scratch/kocevski/842165/expmap_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.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/842165/ltcube_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.fits
.....................!
real 190.64
user 184.97
sys 5.32

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/842165/ft1_filtered_4FGL_J2324.7+0801_daily_bin925.fits scfile=/scratch/kocevski/842165/ft2_4FGL_J2324.7+0801_daily_bin925.fits outfile=/scratch/kocevski/842165/cmap_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.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.89
user 0.36
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842165/ft1_filtered_4FGL_J2324.7+0801_daily_bin925.fits scfile=/scratch/kocevski/842165/ft2_4FGL_J2324.7+0801_daily_bin925.fits outfile=/scratch/kocevski/842165/cmap_HighResolution_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.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/842165/ft1_filtered_4FGL_J2324.7+0801_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/842165/ft2_4FGL_J2324.7+0801_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842165/Model_4FGL_J2324.7+0801_daily_bin925.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/842165/ft1_filtered_4FGL_J2324.7+0801_daily_bin925.fits.....................!
real 105.71
user 103.66
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5290       1.0000         .10000E-03   10000.    
     3 'norm      '    .29270E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.688       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    544.18       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1193       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.625       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93247       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=   9753.282     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2908 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6926        66.863       -.65313E-05   -.83031E-04
   2  Prefactor     4.5292        .41056        .18069E-07   -.20241E-03
   3  norm          .11521E-03    22.464       -.44587E-05** at limit **
   4  Prefactor     39.110        42.109        .40517E-05    .31913E-03
   5  Prefactor     3.4182        4.2914        .73349E-06    .54601E-03
   6  Prefactor     .10000E-03    4.0222        .64052E-07** at limit **
   7  Prefactor     4.1928        10.957       -.14405E-06    .30401E-04
   8  Prefactor     29.698        11.938       -.38801E-07   -.25265E-04
   9  norm          6.5406        1.7003       -.16251E-07    .49214E-03
  10  Prefactor     .10000E-03    3.2293       -.41098E-07** at limit **
  11  Prefactor     .10000E-03    22.616        .67869E-07** at limit **
  12  Prefactor     .10000E-03    33.007        .44309E-08** at limit **
  13  norm          .10000E-03    4.5543        .14815E-06** at limit **
  14  Prefactor     .10000E-03    4.1240       -.96443E-07** at limit **
  15  Prefactor     544.15        304.86        .19969E-05    .50637E-04
  16  Prefactor     .10000E-03    8.3979        .31896E-06** at limit **
  17  Prefactor     .10000E-03    6.7331       -.37442E-06** at limit **
  18  norm          .10000E-03    5.3289       -.43427E-06** at limit **
  19  norm          .10000E-03    10.215       -.17905E-06** at limit **
  20  Prefactor     1.1170        4.6631        .58319E-07    .72721E-04
  21  Prefactor     24.615        32.405        .40024E-06    .45902E-04
  22  Prefactor     .10000E-03    5.8479        .59311E-06** at limit **
  23  Prefactor     .10000E-03    9.8951        .26285E-06** at limit **
  24  Normalizat    1.3466        .21831        .10394E-05    .30816E-03
  25  Prefactor     .93238        .12984       -.10456E-05    .19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6926
  Prefactor  = 4.5292
  norm       = 0.000115212
  Prefactor  = 39.1098
  Prefactor  = 3.41819
  Prefactor  = 0.0001
  Prefactor  = 4.1928
  Prefactor  = 29.6984
  norm       = 6.5406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 544.147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.11696
  Prefactor  = 24.6145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34657
  Prefactor  = 0.932382
 **********
 **   18 **HESSE 
 **********

 FCN=   9753.282     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6926        67.319        .20660E-03   -1.5324    
   2  Prefactor     4.5292        .41131        .17531E-04   -1.5282    
   3  norm          .11521E-03    11.241        .91571E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.110        42.450        .64005E-04   -1.4456    
   5  Prefactor     3.4182        4.3486        .10941E-02   -1.5338    
   6  Prefactor     .10000E-03    4.0298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1928        10.942        .19671E-03   -1.5298    
   8  Prefactor     29.698        11.935        .73532E-04   -1.4618    
   9  norm          6.5406        1.7025        .61089E-04   -1.5196    
  10  Prefactor     .10000E-03    3.2377        .17331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.6258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     544.15        302.12        .88167E-04   -1.0999    
  16  Prefactor     .10000E-03    8.4255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.3363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1170        4.6736        .38417E-03   -1.5497    
  21  Prefactor     24.615        32.544        .80723E-04   -1.4715    
  22  Prefactor     .10000E-03    5.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3466        .25223        .34579E-03   -.82187    
  25  Prefactor     .93238        .14840        .25007E-03   -.95019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33829e-09
Minuit parameter uncertainties:
  1  31.574
  2  0.411311
  3  0.0261585
  4  42.4833
  5  4.34895
  6  3.43976e-06
  7  10.9476
  8  11.9357
  9  1.70247
  10  4.10302e-06
  11  2.01908e-05
  12  2.1426e-06
  13  8.63648e-06
  14  6.39814e-06
  15  303.025
  16  2.87942e-05
  17  3.26384e-05
  18  3.16915e-05
  19  1.71164e-05
  20  4.56994
  21  32.5675
  22  4.67965e-05
  23  3.02156e-05
  24  0.252457
  25  0.148468
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.103e-06  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:  9.324e-01  1.485e-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.347e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842165/likelihoodResults_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.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) = 9753.28389918
delta logL = -0.0014670444034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9753.28243496
delta logL = -2.82329165202e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11963E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2111       1.0000          .0000       10.000    
     3 'Normalizat'    1.3466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93240       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9753.282     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      248 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.3122        .17541E-02** at limit **
   2  Index         2.1937        6.0961        .50000        .42745E-04
   3  Normalizat    1.3466        .23536        .34579E-03   -.17228E-04
   4  Prefactor     .93238        .14578        .25007E-03   -.16730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.19371
  Normalizat = 1.34657
  Prefactor  = 0.932383
 **********
 **   18 **HESSE 
 **********

 FCN=   9753.282     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.3146        .35083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1937        6.0960        .50000       -.59591    
   3  Normalizat    1.3466        .23557        .13832E-04   -.82187    
   4  Prefactor     .93238        .14591        .10003E-04   -.95019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44649e-09
Minuit parameter uncertainties:
  1  0.000259475
  2  4.13963
  3  0.235763
  4  0.145975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842165': 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) = 9753.28243177
delta logL = 3.65371306543e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.595e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.194e+00  4.140e+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:  9.324e-01  1.460e-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.347e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/842165/cmap_HighResolution_479088001_479347201_4FGL_J2324.7+0801_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-29 16:36:38.481729', job_id='842165', GAL2='0.93', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632958598.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='925' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 842165: <4FGL_J2324.7+0801_daily_bin925> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin925 351.19 8.0282 479088001 479347201 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 :                                   909.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

