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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin493
RA = 351.19, Dec = 8.0282
tmin = 367113601, tmax = 367372801
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='839344', job_status='RUN', time_executed='2021-09-29 16:14:23.087565', time_epoch_executed='1632957263.09' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839344

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839344/ft1_4FGL_J2324.7+0801_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839344/ft1_4FGL_J2324.7+0801_daily_bin493.fits outfile=/scratch/kocevski/839344/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin493.fits ra=351.19 dec=8.0282 rad=12.0 tmin=367113601.0 tmax=367372801.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.31
user 5.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.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/839344/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin493.fits evtable="EVENTS" outfile="/scratch/kocevski/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/839344/ltcube_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.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/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits
.....................!
real 11.46
user 11.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/839344/ltcube_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.fits outfile=/scratch/kocevski/839344/expmap_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.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/839344/ltcube_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.fits
.....................!
real 191.44
user 186.22
sys 4.83

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/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits outfile=/scratch/kocevski/839344/cmap_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits outfile=/scratch/kocevski/839344/cmap_HighResolution_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/839344/ft2_4FGL_J2324.7+0801_daily_bin493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839344/Model_4FGL_J2324.7+0801_daily_bin493.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/839344/ft1_filtered_4FGL_J2324.7+0801_daily_bin493.fits.....................!
real 57.80
user 56.44
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84455E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2672       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 '    1.8593       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56182E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    13 'norm      '    13.967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13865E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3679       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95049       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=   5142.529     FROM MIGRAD    STATUS=CONVERGED   1103 CALLS     3519 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3038        .17577E-02** at limit **
   2  Prefactor     .84438E-01    .11712        .28516E-03    .86669E-03
   3  norm          .10000E-03    7.4057        .18142E-02** at limit **
   4  Prefactor     .10000E-03    8.7483        .18142E-02** at limit **
   5  Prefactor     3.2669        6.1219        .22404E-03    .11595E-03
   6  Prefactor     .10000E-03    4.3901        .14642E-02** at limit **
   7  Prefactor     .10000E-03    28.454        .18142E-02** at limit **
   8  Prefactor     1.8585        5.5484        .28096E-03    .76153E-04
   9  norm          3.9407        1.5776        .54255E-04   -.62443E-04
  10  Prefactor     .10003E-03    8.2357        .61451E-01** at limit **
  11  Prefactor     .10000E-03    12.294        .18142E-02** at limit **
  12  Prefactor     10.109        111.58        .12666E-03   -.22171E-04
  13  norm          13.988        8.9563        .10718E-03    .18998E-03
  14  Prefactor     .10000E-03    3.0300        .12152E-02** at limit **
  15  Prefactor     .10000E-03    83.685        .18142E-02** at limit **
  16  Prefactor     21.883        22.202        .85472E-04    .61318E-04
  17  Prefactor     .10000E-03    13.252        .18142E-02** at limit **
  18  norm          .10000E-03    10.294        .18142E-02** at limit **
  19  norm          .10000E-03    42.882        .18142E-02** at limit **
  20  Prefactor     .37581E-01    17.092        .42586E-01    .20405E-03
  21  Prefactor     70.363        52.144        .47844E-04   -.40918E-04
  22  Prefactor     .10000E-03    23.495        .18142E-02** at limit **
  23  Prefactor     9.3668        9.9487        .13094E-03    .50793E-04
  24  Normalizat    .71852        .23522        .31060E-03    .17752E-04
  25  Prefactor     .95058        .14696        .17777E-03    .74478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0844381
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85853
  norm       = 3.94075
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 10.1086
  norm       = 13.988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8833
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0375805
  Prefactor  = 70.3625
  Prefactor  = 0.0001
  Prefactor  = 9.36675
  Normalizat = 0.718521
  Prefactor  = 0.950577
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.529     FROM HESSE     STATUS=OK           423 CALLS     3942 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3040        .35154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .84438E-01    .11704        .11406E-04   -1.5650    
   3  norm          .10000E-03    7.4068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2669        6.1202        .89615E-05   -1.5346    
   6  Prefactor     .10000E-03    4.3906        .29284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8585        5.5478        .11238E-04   -1.5435    
   9  norm          3.9407        1.5776        .21702E-05   -1.5311    
  10  Prefactor     .10003E-03    8.0019        .62976E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.109        111.11        .50663E-05   -1.5072    
  13  norm          13.988        8.9576        .42870E-05   -1.4960    
  14  Prefactor     .10000E-03    3.0302        .24303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    83.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.883        20.968        .34189E-05   -1.4772    
  17  Prefactor     .10000E-03    13.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    42.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37581E-01    11.193        .51786E-01   -1.5669    
  21  Prefactor     70.363        52.146        .95688E-05   -1.4028    
  22  Prefactor     .10000E-03    23.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3668        9.9486        .52375E-05   -1.5096    
  24  Normalizat    .71852        .23534        .12424E-04   -1.0317    
  25  Prefactor     .95058        .14706        .35554E-04   -.94396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60911e-10
Minuit parameter uncertainties:
  1  6.63536e-05
  2  0.117037
  3  7.46468e-05
  4  1.51845e-06
  5  6.1214
  6  1.74923e-06
  7  0.000158453
  8  5.54929
  9  1.57765
  10  0.000954897
  11  0.000137972
  12  67.1872
  13  8.9585
  14  8.37145e-06
  15  0.000262268
  16  20.9746
  17  0.000108002
  18  5.18695e-05
  19  7.57964e-05
  20  1.29568
  21  52.1794
  22  4.09742e-05
  23  9.95034
  24  0.235673
  25  0.147125
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.549e-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.506e-01  1.471e-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:  7.185e-01  2.357e-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: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839344/likelihoodResults_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.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) = 5142.52941455
delta logL = -1.45816475197e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5142.52937839
delta logL = 2.15768295675e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41680E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4254       1.0000          .0000       10.000    
     3 'Normalizat'    .71859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95053       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=   5142.227     FROM MIGRAD    STATUS=CONVERGED    218 CALLS      407 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31217E-02    .41438E-03** at limit **
   2  Index         7.1685        2.7211        .10767       -.15198E-03
   3  Normalizat    .65373        .42037E-01    .73275E-01   -.32335E-03
   4  Prefactor     .97669        .26841E-01    .45646E-01    .18649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.16846
  Normalizat = 0.653732
  Prefactor  = 0.976686
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.227     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      446 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .39890E-01    .16992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.1685        8.1746        .60485E-02    .44859    
   3  Normalizat    .65373        .10688        .32435E-03   -1.0575    
   4  Prefactor     .97669        .67586E-01    .17557E-03   -.93511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59678e-07
Minuit parameter uncertainties:
  1  3.32537e-08
  2  6.48215
  3  0.106913
  4  0.0675914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839344': 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) = 5142.22652134
delta logL = 0.302878623385

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.325e-08  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  7.168e+00  6.482e+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.767e-01  6.759e-02  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.537e-01  1.069e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839344/cmap_HighResolution_367113601_367372801_4FGL_J2324.7+0801_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-29 16:25:24.453542', job_id='839344', GAL2='0.98', fit_tolerance='1e-08', EG2='0.65', EG='0.72', time_epoch_completed='1632957924.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.03e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='493' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 839344: <4FGL_J2324.7+0801_daily_bin493> in cluster <slac> Done

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

Your job looked like:

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

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

