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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1350
RA = 126.236, Dec = 39.2574
tmin = 589248001, tmax = 589507201
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='461108', job_status='RUN', time_executed='2021-08-29 19:43:07.598099', time_epoch_executed='1630291387.6' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461108

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461108/ft1_4FGL_J0824.9+3915_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461108/ft1_4FGL_J0824.9+3915_daily_bin1350.fits outfile=/scratch/kocevski/461108/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1350.fits ra=126.236 dec=39.2574 rad=12.0 tmin=589248001.0 tmax=589507201.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.74
user 2.93
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.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/461108/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.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.26
user 0.34
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/461108/ltcube_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.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/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits
.....................!
real 12.89
user 11.87
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/461108/ltcube_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits outfile=/scratch/kocevski/461108/expmap_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.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/461108/ltcube_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits
.....................!
real 192.29
user 186.06
sys 5.19

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/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits scfile=/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits outfile=/scratch/kocevski/461108/cmap_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.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.66
user 0.36
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits scfile=/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits outfile=/scratch/kocevski/461108/cmap_HighResolution_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.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.60
user 0.39
sys 0.68

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits', '/scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits', expMap='/scratch/kocevski/461108/expmap_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits', expCube='/scratch/kocevski/461108/ltcube_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461108/Model_4FGL_J0824.9+3915_daily_bin1350.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/461108/ft1_filtered_4FGL_J0824.9+3915_daily_bin1350.fits
Spacecraft file(s): /scratch/kocevski/461108/ft2_4FGL_J0824.9+3915_daily_bin1350.fits
Exposure map: /scratch/kocevski/461108/expmap_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits
Exposure cube: /scratch/kocevski/461108/ltcube_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461108/Model_4FGL_J0824.9+3915_daily_bin1350.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) = 5149.59390246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .49901       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4531       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73103       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=   5149.587     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3132 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7075        .12056E-05** at limit **
   2  Prefactor     .10000E-03    6.9535       -.77292E-06** at limit **
   3  norm          .10000E-03    8.6512        .61866E-06** at limit **
   4  norm          4.2922        2.3944        .42640E-07    .71717E-04
   5  Prefactor     .10000E-03    1.9649        .22674E-07** at limit **
   6  Prefactor     46.420        47.633       -.68926E-05    .36060E-04
   7  Prefactor     2.5370        5.3848       -.57028E-06   -.46576E-04
   8  Prefactor     .10000E-03    22.802        .35112E-05** at limit **
   9  norm          .49918        .59765        .11695E-06    .12557E-02
  10  Prefactor     .10000E-03    27.492       -.21060E-04** at limit **
  11  Prefactor     18.750        40.363        .34450E-05    .19850E-04
  12  Prefactor     .10054E-03    22.921       -.42807E-05** at limit **
  13  Prefactor     5.5774        4.7448        .32605E-06    .13111E-02
  14  Prefactor     .10000E-03    16.740        .18850E-05** at limit **
  15  Prefactor     .10000E-03    20.721        .13112E-04** at limit **
  16  norm          9.1300        8.1572       -.93134E-07   -.84818E-04
  17  Prefactor     5.3677        4.4966       -.64675E-06   -.19852E-03
  18  Prefactor     .10000E-03    4.4132       -.20703E-07** at limit **
  19  Prefactor     .10000E-03    50.608        .22407E-04** at limit **
  20  Prefactor     1.6864        6.5349       -.21374E-05   -.74088E-03
  21  Prefactor     .10000E-03    16.164       -.63289E-05** at limit **
  22  norm          .10000E-03    .46804        .41072E-07** at limit **
  23  norm          .10000E-03    6.9940       -.75613E-06** at limit **
  24  Prefactor     .10000E-03    2.3229        .37829E-07** at limit **
  25  Normalizat    1.4526        .21833        .16242E-05    .19601E-03
  26  Prefactor     .73133        .15413       -.30978E-06    .24177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.29222
  Prefactor  = 0.0001
  Prefactor  = 46.4201
  Prefactor  = 2.53703
  Prefactor  = 0.0001
  norm       = 0.49918
  Prefactor  = 0.0001
  Prefactor  = 18.7502
  Prefactor  = 0.000100537
  Prefactor  = 5.5774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.12999
  Prefactor  = 5.36765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68643
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45263
  Prefactor  = 0.731334
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.587     FROM HESSE     STATUS=OK           452 CALLS     3584 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2922        2.3954        .80475E-04   -1.5294    
   5  Prefactor     .10000E-03    1.9658        .98225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.420        47.681        .58845E-04   -1.4344    
   7  Prefactor     2.5370        5.2238        .21701E-03   -1.5389    
   8  Prefactor     .10000E-03    22.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49918        .54405        .55713E-03   -1.5567    
  10  Prefactor     .10000E-03    27.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.750        40.426        .92504E-04   -1.4842    
  12  Prefactor     .10054E-03    82.896        .54527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5774        4.2595        .11991E-03   -1.5236    
  14  Prefactor     .10000E-03    16.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1300        8.1552        .13265E-03   -1.5104    
  17  Prefactor     5.3677        4.5020        .13279E-03   -1.5245    
  18  Prefactor     .10000E-03    4.4351        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6864        6.7010        .32395E-03   -1.5448    
  21  Prefactor     .10000E-03    16.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .47754        .95615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3248        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4526        .25273        .24315E-03   -.79118    
  26  Prefactor     .73133        .17724        .24689E-03   -1.0231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19589e-09
Minuit parameter uncertainties:
  1  9.30733e-06
  2  1.04374e-05
  3  1.76614e-05
  4  2.39549
  5  6.43667e-06
  6  47.7205
  7  5.22476
  8  1.40843e-05
  9  0.544051
  10  1.78103e-05
  11  40.4855
  12  0.0133638
  13  4.25976
  14  1.90636e-07
  15  6.41127e-05
  16  8.1562
  17  4.50231
  18  3.68792e-06
  19  3.36374e-05
  20  6.70395
  21  1.54035e-05
  22  3.24687e-06
  23  4.85316e-06
  24  8.58997e-06
  25  0.252949
  26  0.177376
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  5.577e+00  4.260e+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:  7.313e-01  1.774e-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:  1.453e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.71e-05

TS (Fixed Index): 2.59
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461108/likelihoodResults_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.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) = 5148.64525061
delta logL = 0.942052080953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.63749667
delta logL = 0.949806019674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0442       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4363       1.0000          .0000       10.000    
     3 'Normalizat'    1.3822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76522       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=   5148.637     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      249 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0454        18.876        .72299E-02    .42380E-03
   2  Index         3.4361        2.9653        .10676        .12901E-03
   3  Normalizat    1.3824        .78501E-01    .56045E-01   -.17707E-05
   4  Prefactor     .76515        .56591E-01    .43263E-01   -.68373E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04539
  Index      = 3.43609
  Normalizat = 1.38238
  Prefactor  = 0.765146
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.637     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0454        3.8839        .54316E-04   -1.5422    
   2  Index         3.4361        1.1286        .42062E-02   -.31812    
   3  Normalizat    1.3824        .24185        .24783E-03   -.81140    
   4  Prefactor     .76515        .17752        .24183E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74746e-11
Minuit parameter uncertainties:
  1  3.88442
  2  1.13949
  3  0.242054
  4  0.177649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461108': 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) = 5148.63749617
delta logL = 0.949806513945

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.045e+00  3.884e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  3.436e+00  1.139e+00  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:  7.651e-01  1.776e-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:  1.382e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 126.236 39.257
Photon Index (Free Index): 3.44 +/- 1.14
Photon Flux (Free Index): 1.32e-07 +/- 7.76e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.32e-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/461108/cmap_HighResolution_589248001_589507201_4FGL_J0824.9+3915_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='2.24e-05', photon_flux_error='5.44e-08', dlogl='9.50e-01', energy_flux='2.24e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-29 19:55:23.705421', photon_index_error2='1.14', photon_index2='3.44', ts='2.59', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.32e-05', EG='1.45', time_epoch_completed='1630292123.71', return_code='0', job_id='461108', GAL2='0.77', EG2='1.38', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.76e-08', ts2='4.64', photon_index='2.43' WHERE bin_id='1350' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:55:23 PDT 2021


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

Job <4FGL_J0824.9+3915_daily_bin1350> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:40:50 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:40:52 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:40:52 2021
Terminated at Sun Aug 29 19:55:24 2021
Results reported at Sun Aug 29 19:55:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1350 126.236 39.2574 589248001 589507201 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 :                                   720.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

