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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin861
RA = 351.17, Dec = 31.2573
tmin = 462499201, tmax = 462758401
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='833411', job_status='RUN', time_executed='2021-09-29 15:52:42.381333', time_epoch_executed='1632955962.38' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833411/ft1_4FGL_J2324.6+3115_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833411/ft1_4FGL_J2324.6+3115_daily_bin861.fits outfile=/scratch/kocevski/833411/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin861.fits ra=351.17 dec=31.2573 rad=12.0 tmin=462499201.0 tmax=462758401.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.53
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.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/833411/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin861.fits evtable="EVENTS" outfile="/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.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/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits" evtable="EVENTS" scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits sctable="SC_DATA" outfile=/scratch/kocevski/833411/ltcube_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.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/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits
.....................!
real 11.88
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/833411/ltcube_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits outfile=/scratch/kocevski/833411/expmap_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.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/833411/ltcube_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits
.....................!
real 190.67
user 184.84
sys 5.46

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits outfile=/scratch/kocevski/833411/cmap_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.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.17 yref=31.2573 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits outfile=/scratch/kocevski/833411/cmap_HighResolution_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.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.17 yref=31.2573 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833411/Model_4FGL_J2324.6+3115_daily_bin861.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/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits.....................!
real 94.24
user 92.79
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits', '/scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits', expMap='/scratch/kocevski/833411/expmap_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits', expCube='/scratch/kocevski/833411/ltcube_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833411/Model_4FGL_J2324.6+3115_daily_bin861.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/833411/ft1_filtered_4FGL_J2324.6+3115_daily_bin861.fits
Spacecraft file(s): /scratch/kocevski/833411/ft2_4FGL_J2324.6+3115_daily_bin861.fits
Exposure map: /scratch/kocevski/833411/expmap_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits
Exposure cube: /scratch/kocevski/833411/ltcube_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833411/Model_4FGL_J2324.6+3115_daily_bin861.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) = 8834.50921232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45527       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .40715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.059       1.0000         .10000E-03   10000.    
    14 'norm      '    9.2693       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0404       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98375       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   8834.406     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2954 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3998        .18142E-02** at limit **
   2  Prefactor     .45572        10.617        .34542E-02    .27896E-03
   3  norm          .10000E-03    .36974        .10889E-02** at limit **
   4  Prefactor     .10000E-03    18.942        .18142E-02** at limit **
   5  Prefactor     5.3173        9.5687        .87144E-03    .20192E-03
   6  Prefactor     27.765        17.822        .76038E-04   -.13103E-03
   7  Prefactor     2.9843        5.5295        .23496E-03   -.94835E-04
   8  Prefactor     .10000E-03    3.6088        .17417E-02** at limit **
   9  Prefactor     .10000E-03    7.9886        .18142E-02** at limit **
  10  norm          .40617        .94474        .13580E-03   -.48019E-03
  11  Prefactor     .10000E-03    18.328        .98781E-01** at limit **
  12  Prefactor     2.8173        6.8863        .24235E-03    .42500E-04
  13  Prefactor     33.009        30.040        .69692E-04    .27732E-04
  14  norm          9.2688        5.9579        .13164E-03    .32318E-03
  15  norm          9.0188        7.2774        .13346E-03    .14993E-04
  16  Prefactor     7.0448        17.376        .15119E-03   -.38500E-04
  17  norm          .10000E-03    .96484        .17654E-03** at limit **
  18  Prefactor     .10000E-03    16.026        .18142E-02** at limit **
  19  Prefactor     29.233        32.129        .74072E-04    .46658E-04
  20  Prefactor     .10000E-03    19.623        .18142E-02** at limit **
  21  Prefactor     .10000E-03    4.4029        .18142E-02** at limit **
  22  Normalizat    .98404        .22000        .33018E-03    .34287E-03
  23  Prefactor     .95693        .10920        .16945E-03    .43565E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.455718
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31733
  Prefactor  = 27.7647
  Prefactor  = 2.98427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406173
  Prefactor  = 0.000100001
  Prefactor  = 2.81732
  Prefactor  = 33.0088
  norm       = 9.26882
  norm       = 9.01885
  Prefactor  = 7.04475
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.984042
  Prefactor  = 0.956925
 **********
 **   18 **HESSE 
 **********

 FCN=   8834.406     FROM HESSE     STATUS=OK           358 CALLS     3312 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .45572        10.651        .13817E-03   -1.5573    
   3  norm          .10000E-03    .37000        .21778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3173        9.5679        .34858E-04   -1.5247    
   6  Prefactor     27.765        17.821        .15208E-04   -1.4654    
   7  Prefactor     2.9843        5.5291        .93984E-05   -1.5362    
   8  Prefactor     .10000E-03    3.6091        .34834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40617        .94457        .54321E-05   -1.5581    
  11  Prefactor     .10000E-03    16.674        .10521       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8173        6.8854        .96940E-05   -1.5372    
  13  Prefactor     33.009        30.016        .27877E-05   -1.4558    
  14  norm          9.2688        5.9557        .52654E-05   -1.5099    
  15  norm          9.0188        7.2773        .53382E-05   -1.5107    
  16  Prefactor     7.0448        17.364        .60476E-05   -1.5177    
  17  norm          .10000E-03    .96486        .35307E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.233        32.115        .29629E-05   -1.4626    
  20  Prefactor     .10000E-03    19.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98404        .21996        .13207E-04   -.93567    
  23  Prefactor     .95693        .10927        .33889E-04   -.94179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66308e-10
Minuit parameter uncertainties:
  1  5.9914e-06
  2  4.40671
  3  1.09431e-05
  4  0.000121832
  5  9.57066
  6  17.8249
  7  5.53
  8  6.77184e-06
  9  4.74381e-05
  10  0.944602
  11  0.000262498
  12  6.88731
  13  30.0294
  14  5.95611
  15  7.27799
  16  17.3769
  17  1.2554e-05
  18  6.62955e-05
  19  32.1339
  20  6.67104e-05
  21  8.43768e-06
  22  0.220159
  23  0.109298
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  7.045e+00  1.738e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.569e-01  1.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.840e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833411/likelihoodResults_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8834.36589372
delta logL = 0.0398210333678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8834.35896619
delta logL = 0.046748560273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9218       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4897       1.0000          .0000       10.000    
     3 'Normalizat'    .98901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8834.359     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      299 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9376        17.051        .67094E-03   -.39209E-04
   2  Index         2.4920        1.1101        .12912E-01    .55198E-04
   3  Normalizat    .98902        .21076        .32943E-03   -.27249E-03
   4  Prefactor     .95463        .10652        .16961E-03   -.68681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.93757
  Index      = 2.492
  Normalizat = 0.98902
  Prefactor  = 0.954633
 **********
 **   18 **HESSE 
 **********

 FCN=   8834.359     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9376        17.035        .26838E-04   -1.5110    
   2  Index         2.4920        1.1096        .51649E-03   -.52545    
   3  Normalizat    .98902        .21097        .13177E-04   -.93399    
   4  Prefactor     .95463        .10659        .33922E-04   -.94257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97589e-10
Minuit parameter uncertainties:
  1  17.044
  2  1.1221
  3  0.21115
  4  0.10661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833411': 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) = 8834.35896158
delta logL = 0.0467531702234

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  8.938e+00  1.704e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.492e+00  1.122e+00  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.546e-01  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.890e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 351.170 31.257

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/833411/cmap_HighResolution_462499201_462758401_4FGL_J2324.6+3115_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-29 16:07:00.424310', job_id='833411', GAL2='0.95', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1632956820.42', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.68e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='861' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 833411: <4FGL_J2324.6+3115_daily_bin861> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin861> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:50:35 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:50:37 2021
Terminated at Wed Sep 29 16:07:01 2021
Results reported at Wed Sep 29 16:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin861 351.17 31.2573 462499201 462758401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   855.14 sec.
    Max Memory :                                 1234 MB
    Average Memory :                             289.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

