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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1209
RA = 126.236, Dec = 39.2574
tmin = 552700801, tmax = 552960001
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='460900', job_status='RUN', time_executed='2021-08-29 19:43:55.114249', time_epoch_executed='1630291435.11' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460900/ft1_4FGL_J0824.9+3915_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460900/ft1_4FGL_J0824.9+3915_daily_bin1209.fits outfile=/scratch/kocevski/460900/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1209.fits ra=126.236 dec=39.2574 rad=12.0 tmin=552700801.0 tmax=552960001.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 2.62
user 2.31
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.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/460900/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/460900/ft1_filtered_4FGL_J0824.9+3915_daily_bin1209.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.46
user 0.25
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460900/ft1_filtered_4FGL_J0824.9+3915_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/460900/ltcube_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.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/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits
.....................!
real 8.99
user 8.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460900/ft1_filtered_4FGL_J0824.9+3915_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/460900/ltcube_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.fits outfile=/scratch/kocevski/460900/expmap_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.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/460900/ltcube_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.fits
.....................!
real 139.81
user 135.68
sys 3.75

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/460900/ft1_filtered_4FGL_J0824.9+3915_daily_bin1209.fits scfile=/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits outfile=/scratch/kocevski/460900/cmap_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.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 0.97
user 0.51
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460900/ft1_filtered_4FGL_J0824.9+3915_daily_bin1209.fits scfile=/scratch/kocevski/460900/ft2_4FGL_J0824.9+3915_daily_bin1209.fits outfile=/scratch/kocevski/460900/cmap_HighResolution_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.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 0.80
user 0.49
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13450E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24262E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36997E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13658E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19046E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74727E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1739.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15511E-01   1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17294E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .40885       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4328       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95958E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   235.0302     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3656 TOTAL
                     EDM=   .17E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10590E-03    43.765         .0000    ** at limit **
   2  Prefactor     .10019E-03    56.761         .0000    ** at limit **
   3  norm         10000.0        4.9820         .0000       -.49954E-03
   4  norm          .10000E-03    9.2386         .0000    ** at limit **
   5  Prefactor     .10026E-03    77.670         .0000    ** at limit **
   6  Prefactor     .20529E-03    2.7182         .0000    ** at limit **
   7  Prefactor    10000.0        53.013         .0000       -.14697E-02
   8  Prefactor     .51126E-02    48.698         .0000        .14136E-02
   9  norm         10000.0        269.99         .0000    ** at limit **
  10  Prefactor     .21601E-03    49.311         .0000    ** at limit **
  11  Prefactor     .59853E-02    6.2857         .0000        .53055E-03
  12  Prefactor    10000.0        9.9138         .0000    ** at limit **
  13  Prefactor     1739.0        1.0032         .0000        .29437E-03
  14  Prefactor     .56972E-02    35.984         .0000        .12501E-02
  15  Prefactor     .13949E-01    3.3001         .0000        .40714E-03
  16  norm         10000.0        6.4233         .0000    ** at limit **
  17  Prefactor     .10000E-03    11.367         .0000    ** at limit **
  18  Prefactor     .10000E-03    19.020         .0000    ** at limit **
  19  Prefactor     .10322E-03    69.674         .0000    ** at limit **
  20  Prefactor     .10000E-03    3.6301         .0000    ** at limit **
  21  Prefactor     .10002E-03    18.375         .0000    ** at limit **
  22  norm          .40914        1.1903         .0000       -.86687E-05
  23  norm          .10001E-03    7.6130         .0000    ** at limit **
  24  Prefactor     3.4333        4.5667         .0000        .53017E-03
  25  Normalizat    .10000E-01    .11990         .0000    ** at limit **
  26  Prefactor     .95639E-01    .17340         .0000       -.14727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105905
  Prefactor  = 0.000100185
  norm       = 9999.97
  norm       = 0.0001
  Prefactor  = 0.000100262
  Prefactor  = 0.000205287
  Prefactor  = 9999.99
  Prefactor  = 0.00511255
  norm       = 10000
  Prefactor  = 0.000216007
  Prefactor  = 0.00598533
  Prefactor  = 10000
  Prefactor  = 1739
  Prefactor  = 0.00569723
  Prefactor  = 0.0139487
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.00010322
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 0.40914
  norm       = 0.000100009
  Prefactor  = 3.43326
  Normalizat = 0.01
  Prefactor  = 0.0956389
 **********
 **   18 **HESSE 
 **********

 FCN=   235.0302     FROM HESSE     STATUS=OK           488 CALLS     4144 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10590E-03    99.702        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10019E-03    56.868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        9586.4        .91688E-02    1.5675    
   4  norm          .10000E-03    9.1840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10026E-03    120.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20529E-03    2234.2        .10649E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        2268.1        .90740E-02    1.5693    
   8  Prefactor     .51126E-02    6148.1        .90712E-02   -1.5694    
   9  norm         10000.0        302.36        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21601E-03    874.13        .10136E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .59853E-02    7818.7        .92962E-02   -1.5693    
  12  Prefactor    10000.0        6706.0        .98966E-02    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1739.0        5686.7        .26384E-03   -.71048    
  14  Prefactor     .56972E-02    6349.5        .90712E-02   -1.5693    
  15  Prefactor     .13949E-01    9346.8        .91004E-02   -1.5684    
  16  norm         10000.0        6487.8        .10266E-01    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10322E-03    76.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    18.384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .40914        1.2190        .62867E-02   -1.5580    
  23  norm          .10001E-03    7.6129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4333        4.5733        .54578E-02   -1.5337    
  25  Normalizat    .10000E-01    .11961        .74377E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .95639E-01    .17903        .60546E-01   -1.3749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08181e-05
Minuit parameter uncertainties:
  1  0.048608
  2  0.00649436
  3  41.6529
  4  8.85878e-05
  5  0.0112425
  6  1.01034
  7  7.19001
  8  7.08601
  9  0.349317
  10  0.646546
  11  13.0428
  12  5.35253
  13  4719.26
  14  8.18524
  15  28.2944
  16  3.0358
  17  0.000164384
  18  0.00050674
  19  0.0313505
  20  8.50554e-05
  21  0.00135181
  22  1.21904
  23  0.000537874
  24  4.57377
  25  4.87326e-06
  26  0.180054
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.739e+03  4.719e+03  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.564e-02  1.801e-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.000e-02  4.873e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.17180350832

TS (Fixed Index): 0.15
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.74e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460900/likelihoodResults_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.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) = 233.514375322
delta logL = 1.51580953039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 233.512747554
delta logL = 1.51743729752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    3.7453       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=   233.5127     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       54 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       3.7451        .36376        .20843E-01    .30379E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 3.74514
 **********
 **   18 **HESSE 
 **********

 FCN=   233.5127     FROM HESSE     STATUS=OK             7 CALLS       61 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       3.7451        .36500        .11238E-03   -.25368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13558e-14
Minuit parameter uncertainties:
  1  0.36535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460900': 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) = 233.512747507
delta logL = 1.51743734456

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.739e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
315        Index:  3.745e+00  3.654e-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.552e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 3.19
Ra Dec: 126.236 39.257
Photon Index (Free Index): 3.75 +/- 0.37
Photon Flux (Free Index): 1.93e-04 +/- 1.25e-04
Energy Flux (Free Index): 3.04e-02 +/- 1.74e-02

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/460900/cmap_HighResolution_552700801_552960001_4FGL_J0824.9+3915_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.74e+04', comment='SUCCESS', energy_flux2='3.04e-02', dlogl='1.52e+00', photon_flux2='1.93e-04', job_status='DONE', time_completed='2021-08-29 19:48:58.388277', photon_index_error2='0.37', photon_index2='3.75', ts='0.15', fit_tolerance='1e-08', GAL='0.10', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.74e-02', EG='0.01', time_epoch_completed='1630291738.39', return_code='0', job_id='460900', GAL2='0.10', EG2='0.01', return_code2='0', photon_flux_error2='1.25e-04', ts2='3.19', photon_index='2.43' WHERE bin_id='1209' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 460900: <4FGL_J0824.9+3915_daily_bin1209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1209 126.236 39.2574 552700801 552960001 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 :                                   273.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            503 sec.

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

