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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin645
RA = 351.19, Dec = 8.0282
tmin = 406512001, tmax = 406771201
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='840675', job_status='RUN', time_executed='2021-09-29 16:17:08.492362', time_epoch_executed='1632957428.49' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840675/ft1_4FGL_J2324.7+0801_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840675/ft1_4FGL_J2324.7+0801_daily_bin645.fits outfile=/scratch/kocevski/840675/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin645.fits ra=351.19 dec=8.0282 rad=12.0 tmin=406512001.0 tmax=406771201.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840675/ft1_filtered_4FGL_J2324.7+0801_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/840675/ltcube_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.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/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840675/ft1_filtered_4FGL_J2324.7+0801_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/840675/ltcube_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.fits outfile=/scratch/kocevski/840675/expmap_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.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/840675/ltcube_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.fits
.....................!
real 191.65
user 186.49
sys 4.79

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/840675/ft1_filtered_4FGL_J2324.7+0801_daily_bin645.fits scfile=/scratch/kocevski/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits outfile=/scratch/kocevski/840675/cmap_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840675/ft1_filtered_4FGL_J2324.7+0801_daily_bin645.fits scfile=/scratch/kocevski/840675/ft2_4FGL_J2324.7+0801_daily_bin645.fits outfile=/scratch/kocevski/840675/cmap_HighResolution_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2938       1.0000         .10000E-03   10000.    
     3 'norm      '    13.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.880       1.0000         .10000E-03   10000.    
     9 'norm      '    .32012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.602       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12596E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55499E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98763       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=   8002.896     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2910 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.585        .19904E-05** at limit **
   2  Prefactor     1.2938        .24594       -.35682E-07   -.90363E-03
   3  norm          13.452        12.541        .34959E-06    .66363E-05
   4  Prefactor     .10000E-03    16.285       -.69847E-06** at limit **
   5  Prefactor     4.2226        8.2541        .28461E-05   -.72172E-05
   6  Prefactor     4.6689        9.4169        .20084E-05    .32086E-05
   7  Prefactor     21.051        14.664        .90280E-07    .66093E-05
   8  Prefactor     16.882        10.342       -.89335E-08   -.87528E-06
   9  norm          .32003        .67870        .56483E-07   -.13033E-03
  10  Prefactor     .10000E-03    6.3896        .25935E-07** at limit **
  11  Prefactor     25.605        25.476       -.14479E-06    .30569E-06
  12  Prefactor     .10000E-03    40.157       -.26875E-05** at limit **
  13  norm          .10000E-03    4.1140       -.35870E-07** at limit **
  14  Prefactor     .10000E-03    7.6587       -.22151E-06** at limit **
  15  Prefactor     .10000E-03    60.349        .23518E-05** at limit **
  16  Prefactor     10.309        7.8973        .26453E-06    .13529E-03
  17  Prefactor     .10000E-03    11.036        .17309E-05** at limit **
  18  norm          .10000E-03    4.1676        .33629E-07** at limit **
  19  norm          .10000E-03    12.657       -.12603E-05** at limit **
  20  Prefactor     .10000E-03    1.0955       -.96909E-08** at limit **
  21  Prefactor     .10000E-03    110.01        .32366E-05** at limit **
  22  Prefactor     .10000E-03    12.475       -.10340E-05** at limit **
  23  Prefactor     .10000E-03    3.6596       -.79490E-08** at limit **
  24  Normalizat    1.0604        .19450       -.35750E-06   -.43547E-04
  25  Prefactor     .98754        .11999       -.36071E-06   -.44817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.29383
  norm       = 13.4515
  Prefactor  = 0.0001
  Prefactor  = 4.22261
  Prefactor  = 4.66887
  Prefactor  = 21.0513
  Prefactor  = 16.8817
  norm       = 0.32003
  Prefactor  = 0.0001
  Prefactor  = 25.605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3091
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0604
  Prefactor  = 0.987542
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.896     FROM HESSE     STATUS=OK           427 CALLS     3337 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2938        .24593        .18293E-04   -1.5480    
   3  norm          13.452        12.542        .54610E-03   -1.4974    
   4  Prefactor     .10000E-03    16.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2226        8.2517        .98067E-03   -1.5297    
   6  Prefactor     4.6689        9.3921        .93146E-03   -1.5276    
   7  Prefactor     21.051        14.673        .87301E-04   -1.4790    
   8  Prefactor     16.882        10.334        .97483E-04   -1.4886    
   9  norm          .32003        .63512        .10262E-02   -1.5595    
  10  Prefactor     .10000E-03    6.6646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.605        25.475        .79171E-04   -1.4696    
  12  Prefactor     .10000E-03    40.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2272        .35427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9761        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    60.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.309        7.8697        .12477E-03   -1.5066    
  17  Prefactor     .10000E-03    11.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1697        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0990        .91393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    113.40        .42210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6721        .16713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0604        .22743        .31955E-03   -.91034    
  25  Prefactor     .98754        .14077        .20706E-03   -.93146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94154e-09
Minuit parameter uncertainties:
  1  2.15455e-05
  2  0.245932
  3  12.5447
  4  6.03095e-07
  5  8.25396
  6  9.39509
  7  14.6755
  8  10.335
  9  0.635133
  10  3.58003e-06
  11  25.4862
  12  7.18552e-05
  13  7.18624e-07
  14  1.14752e-05
  15  1.78457e-06
  16  7.87044
  17  5.53698e-06
  18  2.21158e-07
  19  1.02208e-05
  20  4.33545e-07
  21  0.000655708
  22  2.48442e-06
  23  8.16168e-08
  24  0.227644
  25  0.140823
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.580e-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.875e-01  1.408e-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.060e+00  2.276e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840675/likelihoodResults_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.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) = 8002.89676709
delta logL = -0.000716477065907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8002.89604836
delta logL = 2.25390431297e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1206       1.0000          .0000       10.000    
     3 'Normalizat'    1.0604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98756       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=   8002.896     FROM MIGRAD    STATUS=FAILED       116 CALLS      282 TOTAL
                     EDM=   .11E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41872E-03    5000.0        .34795E-02** at limit **
   2  Index         1.5363        2.8959        .50000       -.51528E-04
   3  Normalizat    1.0604        .32059E-01    .31955E-03    .46357E-04
   4  Prefactor     .98754        .21163E-01    .20706E-03    .12752E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8002.894     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      413 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38155        5000.0        .66999E-03   -.16548E-01
   2  Index         1.5361        2.8959        .12828E-04   -.51528E-04
   3  Normalizat    1.0604        .32059E-01    .22565E-06    .46357E-04
   4  Prefactor     .98754        .21163E-01    .88017E-07    .12752E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8002.894     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      486 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43351        534.10        .13918E-02   -.13519E-04
   2  Index         1.6132        5.3843        .50000        .88694E-05
   3  Normalizat    1.0613        .24029E-01    .12782E-04    .48918E-04
   4  Prefactor     .98660        .15164E-01    .41412E-04    .69620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.43351
  Index      = 1.61322
  Normalizat = 1.06131
  Prefactor  = 0.986598
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.894     FROM HESSE     STATUS=OK            29 CALLS      515 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43351        28.374        .55672E-04   -1.5576    
   2  Index         1.6132        2.3136        .26389E-01   -.74416    
   3  Normalizat    1.0613        .22191        .25564E-05   -.91004    
   4  Prefactor     .98660        .14068        .82823E-05   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19196e-11
Minuit parameter uncertainties:
  1  7.01705
  2  2.50214
  3  0.222102
  4  0.140729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840675': 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) = 8002.89378603
delta logL = 0.00226458368616

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.335e-01  7.017e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.613e+00  2.502e+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.866e-01  1.407e-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.061e+00  2.221e-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/840675/cmap_HighResolution_406512001_406771201_4FGL_J2324.7+0801_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-29 16:30:24.484110', job_id='840675', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632958224.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.26e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='645' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 840675: <4FGL_J2324.7+0801_daily_bin645> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin645 351.19 8.0282 406512001 406771201 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 :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

