/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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin154
RA = 351.19, Dec = 8.0282
tmin = 279244801, tmax = 279504001
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='837827', job_status='RUN', time_executed='2021-09-29 16:06:07.688834', time_epoch_executed='1632956767.69' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837827/ft1_4FGL_J2324.7+0801_daily_bin154.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837827/ft1_4FGL_J2324.7+0801_daily_bin154.fits outfile=/scratch/kocevski/837827/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin154.fits ra=351.19 dec=8.0282 rad=12.0 tmin=279244801.0 tmax=279504001.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.66
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/837827/ltcube_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.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/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits
.....................!
real 14.09
user 13.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/837827/ltcube_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.fits outfile=/scratch/kocevski/837827/expmap_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.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/837827/ltcube_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.fits
.....................!
real 191.77
user 186.32
sys 4.99

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/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits scfile=/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits outfile=/scratch/kocevski/837827/cmap_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits scfile=/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits outfile=/scratch/kocevski/837827/cmap_HighResolution_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/837827/ft2_4FGL_J2324.7+0801_daily_bin154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837827/Model_4FGL_J2324.7+0801_daily_bin154.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/837827/ft1_filtered_4FGL_J2324.7+0801_daily_bin154.fits.....................!
real 79.85
user 78.41
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.725       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3215       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6926       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13363E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30304       1.0000         .10000E-03   10000.    
     9 'norm      '    .33222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37135E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15485E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.859       1.0000         .10000E-03   10000.    
    18 'norm      '    12.401       1.0000         .10000E-03   10000.    
    19 'norm      '    .13562E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.507       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.431       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1353       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99287       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7171.979     FROM MIGRAD    STATUS=FAILED      1032 CALLS     3428 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.724        25.111        .11229E-03    .49609E-05
   2  Prefactor     4.3214        .37497        .14212E-04    .15599E-03
   3  norm          3.6890        15.225        .21017E-03   -.12982E-04
   4  Prefactor     .10000E-03    114.49        .18142E-02** at limit **
   5  Prefactor     15.125        9.0212        .10298E-03    .19429E-04
   6  Prefactor     .10000E-03    5.5553        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.0099        .18142E-02** at limit **
   8  Prefactor     .32900        34.532        .37358E-02    .20283E-02
   9  norm          .33292        .89377        .12570E-03    .71270E-04
  10  Prefactor     .10001E-03    12.901        .66906E-01** at limit **
  11  Prefactor     9.5530        18.019        .12956E-03   -.17901E-04
  12  Prefactor     .10000E-03    21.116        .18142E-02** at limit **
  13  norm          18.837        8.9266        .92293E-04    .14695E-03
  14  Prefactor     .10000E-03    2.0665        .11858E-02** at limit **
  15  Prefactor     .10000E-03    126.75        .18142E-02** at limit **
  16  Prefactor     13.188        12.102        .11014E-03    .37881E-04
  17  Prefactor     39.875        27.698        .63489E-04    .79326E-04
  18  norm          12.401        10.259        .11375E-03    .17290E-04
  19  norm          .10000E-03    18.723        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.0268        .32609E-03** at limit **
  21  Prefactor     10.506        27.353        .12361E-03    .48745E-05
  22  Prefactor     24.429        16.908        .81043E-04    .85570E-05
  23  Prefactor     1.1334        13.816        .43745E-03    .45740E-04
  24  Normalizat    .62065        .23671        .38847E-03    .59233E-04
  25  Prefactor     .99296        .14895        .20501E-03   -.41725E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7171.979     FROM SIMPLEX   STATUS=UNCHANGED   1178 CALLS     4606 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.724        25.111        .35164E-06   -1.4994    
   2  Prefactor     4.3214        .37497        .22390E-06   -1.5292    
   3  norm          3.6890        15.225        .26740E-06   -1.5324    
   4  Prefactor     .10000E-03    114.49        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.125        9.0212        .20895E-06   -1.4930    
   6  Prefactor     .10000E-03    5.5553        .25627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0099        .31108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32900        34.532        .23058E-06   -1.5593    
   9  norm          .33292        .89377        .21849E-06   -1.5593    
  10  Prefactor     .10001E-03    12.901        .27519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5530        18.019        .21357E-06   -1.5090    
  12  Prefactor     .10000E-03    21.116        .70861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.837        8.9266        .20803E-06   -1.4840    
  14  Prefactor     .10000E-03    2.0665        .26010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    126.75        .61985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.188        12.102        .20980E-06   -1.4981    
  17  Prefactor     39.875        27.698        .20232E-06   -1.4444    
  18  norm          12.401        10.259        .21018E-06   -1.5004    
  19  norm          .10000E-03    18.723        .68110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0268        .15014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.506        27.353        .21357E-06   -1.5060    
  22  Prefactor     24.429        16.908        .20846E-06   -1.4719    
  23  Prefactor     1.1334        13.816        .21985E-06   -1.5495    
  24  Normalizat    .62065        .23671        .14996E-06   -1.0711    
  25  Prefactor     .99296        .14895        .13013E-06   -.92965    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7171.979     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     5022 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.724        25.109        .44916E-05   -.50622E-06
   2  Prefactor     4.3214        .37491        .56847E-06   -.27440E-04
   3  norm          3.6891        15.218        .84068E-05    .54092E-07
   4  Prefactor     .10000E-03    114.55        .36285E-03** at limit **
   5  Prefactor     15.125        9.0202        .41194E-05   -.27598E-05
   6  Prefactor     .10000E-03    5.5559        .36285E-03** at limit **
   7  Prefactor     .10000E-03    6.0101        .36285E-03** at limit **
   8  Prefactor     .32903        33.795        .74716E-03    .82075E-04
   9  norm          .33292        .89353        .50279E-05    .36178E-05
  10  Prefactor     .10001E-03    10.820        .75176E-01** at limit **
  11  Prefactor     9.5530        17.733        .51823E-05   -.39488E-05
  12  Prefactor     .10000E-03    21.116        .36285E-03** at limit **
  13  norm          18.837        8.9253        .36917E-05   -.23404E-04
  14  Prefactor     .10000E-03    2.0666        .23717E-03** at limit **
  15  Prefactor     .10000E-03    126.75        .36285E-03** at limit **
  16  Prefactor     13.188        12.098        .44057E-05   -.51609E-06
  17  Prefactor     39.875        27.698        .25396E-05   -.12535E-04
  18  norm          12.401        10.259        .45501E-05   -.49972E-06
  19  norm          .10000E-03    18.724        .36285E-03** at limit **
  20  Prefactor     .10000E-03    4.0269        .65218E-04** at limit **
  21  Prefactor     10.506        27.351        .49444E-05   -.91973E-06
  22  Prefactor     24.429        16.906        .32417E-05   -.70140E-06
  23  Prefactor     1.1334        13.808        .17498E-04   -.12994E-06
  24  Normalizat    .62065        .23674        .15539E-04   -.90722E-05
  25  Prefactor     .99296        .14901        .41001E-04   -.16637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7243
  Prefactor  = 4.32145
  norm       = 3.68906
  Prefactor  = 0.0001
  Prefactor  = 15.1248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.329026
  norm       = 0.332916
  Prefactor  = 0.000100013
  Prefactor  = 9.55304
  Prefactor  = 0.0001
  norm       = 18.8375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1883
  Prefactor  = 39.8751
  norm       = 12.4008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.506
  Prefactor  = 24.4291
  Prefactor  = 1.13336
  Normalizat = 0.620646
  Prefactor  = 0.992957
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.979     FROM HESSE     STATUS=OK           413 CALLS     5435 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.724        25.001        .89832E-06   -1.4994    
   2  Prefactor     4.3214        .37482        .36459E-06   -1.5292    
   3  norm          3.6891        15.216        .84068E-05   -1.5324    
   4  Prefactor     .10000E-03    114.56        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.125        9.0163        .82387E-06   -1.4930    
   6  Prefactor     .10000E-03    5.5559        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0101        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32903        33.544        .14943E-03   -1.5593    
   9  norm          .33292        .89343        .50279E-05   -1.5593    
  10  Prefactor     .10001E-03    11.455        .72345E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5530        17.696        .10365E-05   -1.5090    
  12  Prefactor     .10000E-03    21.116        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.837        8.9281        .73835E-06   -1.4840    
  14  Prefactor     .10000E-03    2.0666        .47433E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    126.75        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.188        12.087        .88113E-06   -1.4981    
  17  Prefactor     39.875        27.708        .50791E-06   -1.4444    
  18  norm          12.401        10.252        .91001E-06   -1.5004    
  19  norm          .10000E-03    18.724        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0269        .13044E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.506        27.371        .98888E-06   -1.5060    
  22  Prefactor     24.429        16.918        .64835E-06   -1.4719    
  23  Prefactor     1.1334        13.804        .34996E-05   -1.5495    
  24  Normalizat    .62065        .23653        .31078E-05   -1.0711    
  25  Prefactor     .99296        .14897        .82002E-05   -.92965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82688e-13
Minuit parameter uncertainties:
  1  25.0217
  2  0.374816
  3  14.991
  4  7.55526e-06
  5  9.01706
  6  1.25637e-07
  7  9.35352e-08
  8  6.64721
  9  0.893462
  10  0.000761036
  11  17.7061
  12  3.30116e-07
  13  8.9287
  14  7.00746e-08
  15  6.34937e-07
  16  12.0894
  17  27.7167
  18  10.2533
  19  2.2075e-07
  20  4.61113e-08
  21  27.4037
  22  16.9214
  23  7.91276
  24  0.236919
  25  0.149028
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  7.610e-04  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.930e-01  1.490e-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:  6.206e-01  2.369e-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: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837827/likelihoodResults_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.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) = 7171.97932501
delta logL = -3.83764745493e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7171.97910653
delta logL = 0.000214636397686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64393E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9221       1.0000          .0000       10.000    
     3 'Normalizat'    .62053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99300       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=   7171.971     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      302 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65128        121.06        .37664E-02    .22336E-03
   2  Index         2.6965        5.5530        .42051E-02    .52717E-04
   3  Normalizat    .61722        .22446        .38942E-03   -.26257E-03
   4  Prefactor     .99278        .14839        .20499E-03    .12485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.651283
  Index      = 2.69646
  Normalizat = 0.61722
  Prefactor  = 0.992784
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.971     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65128        13.679        .15066E-03   -1.5547    
   2  Index         2.6965        2.6604        .16820E-03   -.47879    
   3  Normalizat    .61722        .22416        .15577E-04   -1.0726    
   4  Prefactor     .99278        .14729        .40997E-04   -.92970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.048e-09
Minuit parameter uncertainties:
  1  5.97063
  2  2.85293
  3  0.224496
  4  0.147351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837827': 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) = 7171.97063108
delta logL = 0.00869008707105

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.513e-01  5.971e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.696e+00  2.853e+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.928e-01  1.474e-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:  6.172e-01  2.245e-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/837827/cmap_HighResolution_279244801_279504001_4FGL_J2324.7+0801_daily_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-29 16:21:46.792322', job_id='837827', GAL2='0.99', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632957706.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.69e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='154' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 837827: <4FGL_J2324.7+0801_daily_bin154> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin154> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:30 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:32 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:05:32 2021
Terminated at Wed Sep 29 16:21:47 2021
Results reported at Wed Sep 29 16:21:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin154 351.19 8.0282 279244801 279504001 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 :                                   936.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

