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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1023
RA = 126.236, Dec = 39.2574
tmin = 504489601, tmax = 504748801
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='459215', job_status='RUN', time_executed='2021-08-29 19:39:09.472878', time_epoch_executed='1630291149.47' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459215

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459215/ft1_4FGL_J0824.9+3915_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459215/ft1_4FGL_J0824.9+3915_daily_bin1023.fits outfile=/scratch/kocevski/459215/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1023.fits ra=126.236 dec=39.2574 rad=12.0 tmin=504489601.0 tmax=504748801.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.00
user 4.15
sys 0.78

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.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/459215/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.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 1.08
user 0.31
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/459215/ltcube_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.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/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits
.....................!
real 12.18
user 11.20
sys 0.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/459215/ltcube_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits outfile=/scratch/kocevski/459215/expmap_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.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/459215/ltcube_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits
.....................!
real 190.35
user 184.86
sys 5.10

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

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits outfile=/scratch/kocevski/459215/cmap_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.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=126.236 yref=39.2574 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 1.27
user 0.37
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits outfile=/scratch/kocevski/459215/cmap_HighResolution_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.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=126.236 yref=39.2574 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 1.28
user 0.38
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/459215/Model_4FGL_J0824.9+3915_daily_bin1023.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/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits.....................!
real 56.52
user 53.75
sys 1.85

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits', '/scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits', expMap='/scratch/kocevski/459215/expmap_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits', expCube='/scratch/kocevski/459215/ltcube_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459215/Model_4FGL_J0824.9+3915_daily_bin1023.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/459215/ft1_filtered_4FGL_J0824.9+3915_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/459215/ft2_4FGL_J0824.9+3915_daily_bin1023.fits
Exposure map: /scratch/kocevski/459215/expmap_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits
Exposure cube: /scratch/kocevski/459215/ltcube_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459215/Model_4FGL_J0824.9+3915_daily_bin1023.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) = 5827.62728258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.703       1.0000         .10000E-03   10000.    
     4 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    16 'norm      '    .28498E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4918       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0308       1.0000         .10000E-03   10000.    
    23 'norm      '    8.8682       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72413       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5827.600     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3593 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0950        .39898E-07** at limit **
   2  Prefactor     .10000E-03    15.185       -.39162E-06** at limit **
   3  norm          16.716        12.630        .21602E-07    .38697E-05
   4  norm          .10000E-03    1.7845        .88591E-07** at limit **
   5  Prefactor     4.1043        5.5121        .41537E-05   -.10733E-04
   6  Prefactor     .10000E-03    30.535       -.15387E-05** at limit **
   7  Prefactor     .10000E-03    2.7321       -.57453E-09** at limit **
   8  Prefactor     .10000E-03    59.854        .34331E-05** at limit **
   9  norm          1.9834        .74633       -.59345E-07   -.62192E-04
  10  Prefactor     .10000E-03    11.892       -.75892E-06** at limit **
  11  Prefactor     4.3705        44.547       -.27088E-05   -.78425E-05
  12  Prefactor     .10000E-03    7.3913        .11652E-06** at limit **
  13  Prefactor     1.9690        1.8357        .24556E-07   -.55132E-07
  14  Prefactor     .10000E-03    13.190        .10871E-05** at limit **
  15  Prefactor     14.662        12.545        .13200E-06   -.13459E-05
  16  norm          .10336E-03    3.0297       -.71896E-06** at limit **
  17  Prefactor     .10000E-03    1.1492        .45052E-07** at limit **
  18  Prefactor     .10000E-03    2.1970        .12013E-06** at limit **
  19  Prefactor     18.066        68.020       -.89704E-05   -.55334E-04
  20  Prefactor     2.5945        2.9938        .49839E-06   -.87340E-04
  21  Prefactor     8.6100        63.648        .68437E-06    .82457E-05
  22  norm          1.0308        .56092        .16684E-07   -.23908E-03
  23  norm          8.8392        15.807        .11127E-05   -.95141E-04
  24  Prefactor     .10000E-03    2.8026        .12041E-05** at limit **
  25  Normalizat    .72407        .17285       -.29454E-05    .92619E-04
  26  Prefactor     .99839        .13841        .17366E-05   -.13145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7157
  norm       = 0.0001
  Prefactor  = 4.10433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98344
  Prefactor  = 0.0001
  Prefactor  = 4.37046
  Prefactor  = 0.0001
  Prefactor  = 1.96899
  Prefactor  = 0.0001
  Prefactor  = 14.662
  norm       = 0.000103358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0661
  Prefactor  = 2.59452
  Prefactor  = 8.60996
  norm       = 1.03084
  norm       = 8.83923
  Prefactor  = 0.0001
  Normalizat = 0.724075
  Prefactor  = 0.998394
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.600     FROM HESSE     STATUS=OK           464 CALLS     4057 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1085        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.716        12.632        .98000E-04   -1.4890    
   4  norm          .10000E-03    3.3597        .19701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1043        5.5560        .99493E-03   -1.5303    
   6  Prefactor     .10000E-03    30.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7621        .12309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9834        .74425        .38289E-04   -1.5426    
  10  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3705        44.586        .19225E-03   -1.5290    
  12  Prefactor     .10000E-03    7.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9690        1.8409        .96495E-04   -1.5427    
  14  Prefactor     .10000E-03    13.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.662        12.543        .10461E-03   -1.4942    
  16  norm          .10336E-03    6.5055        .44640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1663        .79825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2265        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.066        69.279        .93852E-04   -1.4858    
  20  Prefactor     2.5945        2.9630        .12968E-03   -1.5386    
  21  Prefactor     8.6100        63.189        .13756E-03   -1.5121    
  22  norm          1.0308        .56266        .40593E-04   -1.5505    
  23  norm          8.8392        15.670        .13460E-03   -1.5113    
  24  Prefactor     .10000E-03    2.8914        .24789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .72407        .19765        .27781E-03   -1.0295    
  26  Prefactor     .99839        .15896        .19849E-03   -.92783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53925e-09
Minuit parameter uncertainties:
  1  2.3898e-06
  2  6.48571e-05
  3  12.6341
  4  5.05668e-05
  5  5.55669
  6  0.000168571
  7  4.23147e-06
  8  0.000134713
  9  0.744251
  10  6.64426e-06
  11  27.9451
  12  3.73263e-06
  13  1.84091
  14  2.07749e-05
  15  12.5451
  16  0.00934907
  17  3.61884e-06
  18  2.35829e-06
  19  69.5896
  20  2.96314
  21  46.719
  22  0.56266
  23  15.6777
  24  1.17236e-05
  25  0.197843
  26  0.159033
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.969e+00  1.841e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.984e-01  1.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.241e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.62
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 7.91e-06 +/- 7.39e-06

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) = 5826.63654544
delta logL = 0.963303945051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5826.6238163
delta logL = 0.976033084466

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5826.624     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6272        1.6146        .82914E-02   -.31024E-03
   2  Index         1.4415        .43845        .24413       -.50386E-04
   3  Normalizat    .73800        .16144        .62258E-01    .21474E-04
   4  Prefactor     .99466        .13435        .46201E-01    .26643E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62719
  Index      = 1.4415
  Normalizat = 0.737997
  Prefactor  = 0.994662
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.624     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6272        2.0992        .93803E-04   -1.5453    
   2  Index         1.4415        .65446        .92737E-02   -.79191    
   3  Normalizat    .73800        .18651        .27540E-03   -1.0241    
   4  Prefactor     .99466        .15546        .19885E-03   -.92908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44618e-09
Minuit parameter uncertainties:
  1  2.09932
  2  0.658304
  3  0.186672
  4  0.155525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459215': 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) = 5826.62381265
delta logL = 0.976036732716

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.627e+00  2.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.442e+00  6.583e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.947e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.380e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.44 +/- 0.66
Photon Flux (Free Index): 7.69e-09 +/- 1.07e-08
Energy Flux (Free Index): 2.96e-05 +/- 4.71e-05

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/459215/cmap_HighResolution_504489601_504748801_4FGL_J0824.9+3915_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='2.96e-05', photon_flux_error='2.35e-08', dlogl='9.76e-01', energy_flux='7.91e-06', photon_flux2='7.69e-09', job_status='DONE', time_completed='2021-08-29 19:51:02.032736', photon_index_error2='0.66', photon_index2='1.44', ts='4.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.71e-05', EG='0.72', time_epoch_completed='1630291862.03', return_code='0', job_id='459215', GAL2='0.99', EG2='0.74', return_code2='0', energy_flux_error='7.39e-06', photon_flux_error2='1.07e-08', ts2='6.57', photon_index='2.43' WHERE bin_id='1023' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:51:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 459215: <4FGL_J0824.9+3915_daily_bin1023> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1023> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:35:49 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:35:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:35:51 2021
Terminated at Sun Aug 29 19:51:02 2021
Results reported at Sun Aug 29 19:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1023 126.236 39.2574 504489601 504748801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

