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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1332
RA = 126.236, Dec = 39.2574
tmin = 584582401, tmax = 584841601
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='461083', job_status='RUN', time_executed='2021-08-29 19:41:58.180025', time_epoch_executed='1630291318.18' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461083/ft1_4FGL_J0824.9+3915_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461083/ft1_4FGL_J0824.9+3915_daily_bin1332.fits outfile=/scratch/kocevski/461083/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1332.fits ra=126.236 dec=39.2574 rad=12.0 tmin=584582401.0 tmax=584841601.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 4.34
user 2.65
sys 1.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.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/461083/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.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.78
user 0.33
sys 1.41

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/461083/ltcube_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits outfile=/scratch/kocevski/461083/expmap_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.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/461083/ltcube_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits
.....................!
real 192.48
user 185.37
sys 5.87

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/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.fits scfile=/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits outfile=/scratch/kocevski/461083/cmap_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.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.83
user 0.35
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.fits scfile=/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits outfile=/scratch/kocevski/461083/cmap_HighResolution_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.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.79
user 0.39
sys 1.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.fits', '/scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits', expMap='/scratch/kocevski/461083/expmap_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits', expCube='/scratch/kocevski/461083/ltcube_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461083/Model_4FGL_J0824.9+3915_daily_bin1332.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/461083/ft1_filtered_4FGL_J0824.9+3915_daily_bin1332.fits
Spacecraft file(s): /scratch/kocevski/461083/ft2_4FGL_J0824.9+3915_daily_bin1332.fits
Exposure map: /scratch/kocevski/461083/expmap_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits
Exposure cube: /scratch/kocevski/461083/ltcube_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461083/Model_4FGL_J0824.9+3915_daily_bin1332.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 138.209337217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13606E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6849.7       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12314E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13339E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19680E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20921E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .27859E-07   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=   133.3332     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3593 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    301.99        .19853E-06** at limit **
   2  Prefactor     .10000E-03    128.44       -.30543E-05** at limit **
   3  norm         10000.0        9978.4        .73760E-05** at limit **
   4  norm          .10000E-03    6.1728       -.32880E-06** at limit **
   5  Prefactor     .10001E-03    389.95       -.25239E-05** at limit **
   6  Prefactor     6836.3        8411.7        .13665E-03    .10679E-04
   7  Prefactor    10000.0        6914.2        .32725E-05** at limit **
   8  Prefactor     .10001E-03    1700.3       -.16701E-05** at limit **
   9  norm         10000.0        529.53        .72218E-06** at limit **
  10  Prefactor     .10001E-03    715.17       -.20276E-05** at limit **
  11  Prefactor     .10000E-03    601.76       -.11644E-05** at limit **
  12  Prefactor    10000.0        8140.0        .63823E-05** at limit **
  13  Prefactor     .10009E-03    1927.1       -.61061E-05** at limit **
  14  Prefactor     .10030E-03    6792.3       -.11002E-04** at limit **
  15  Prefactor    10000.0        9676.1        .11832E-04** at limit **
  16  norm         10000.0        7092.4        .50298E-05** at limit **
  17  Prefactor     .10000E-03    23.253        .16525E-07** at limit **
  18  Prefactor     3.1396        7.3229        .48780E-05    .10275E-02
  19  Prefactor     .10000E-03    60.160        .29867E-07** at limit **
  20  Prefactor     .10000E-03    5.1177       -.46465E-08** at limit **
  21  Prefactor     .10000E-03    20.573       -.61082E-08** at limit **
  22  norm          .10000E-03    .91928       -.36893E-09** at limit **
  23  norm          .10000E-03    7.9820       -.20325E-08** at limit **
  24  Prefactor     .10000E-03    13.513       -.47020E-06** at limit **
  25  Normalizat    .10000E-01    .10610       -.87965E-05** at limit **
  26  Prefactor     .24905E-09    .27500       -.73995E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 6836.31
  Prefactor  = 10000
  Prefactor  = 0.000100007
  norm       = 10000
  Prefactor  = 0.00010001
  Prefactor  = 0.000100003
  Prefactor  = 10000
  Prefactor  = 0.00010009
  Prefactor  = 0.000100302
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 3.13961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 2.49055e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   133.3332     FROM HESSE     STATUS=OK           434 CALLS     4027 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    302.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    128.46        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        9978.3        .18400E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.1731        .28070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    390.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6836.3        8416.8        .43054E-04    .37606    
   7  Prefactor    10000.0        6914.0        .20309E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    1700.3        .20619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        529.59        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    715.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    601.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        8139.7        .18988E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    1926.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10030E-03    6790.9        .18254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9675.5        .18221E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        7091.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.253        .54499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1396        7.7926        .49858E-04   -1.5354    
  19  Prefactor     .10000E-03    60.160        .87714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1201        .25556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.573        .51261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .91937        .10832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.9820        .31922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.578        .83030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .10626        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .24905E-09    .29221        .36859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68442e-09
Minuit parameter uncertainties:
  1  0.00336269
  2  0.000266865
  3  0.125623
  4  1.49969e-05
  5  0.00295791
  6  8899.29
  7  0.0202498
  8  0.00697519
  9  0.00116659
  10  0.00545631
  11  0.00287647
  12  0.0579059
  13  0.027296
  14  0.0704852
  15  0.154167
  16  0.0585897
  17  9.48966e-06
  18  7.79513
  19  2.64271e-05
  20  3.12309e-06
  21  9.01812e-07
  22  2.92274e-07
  23  3.90934e-07
  24  0.000557095
  25  1.23926e-06
  26  1.71461e-05
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  2.730e-02  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:  2.491e-10  1.715e-05  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  1.239e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 9.40e-05 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461083/likelihoodResults_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 133.333177635
delta logL = -8.60167568817e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 133.333169061
delta logL = -2.70566715699e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12533E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4767       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22874E-08   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=   133.3332     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      237 TOTAL
                     EDM=   .89E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1252.2       -.19490E-02** at limit **
   2  Index         3.4730        6.6756       -.77285E-03    .11253E-06
   3  Normalizat    .10000E-01    .10167       -.34607E-07** at limit **
   4  Prefactor     .43299E-13    .23895        .21071E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Index      = 3.47301
  Normalizat = 0.01
  Prefactor  = 4.32987e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   133.3332     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    837.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4730        6.6526        .50000       -.31036    
   3  Normalizat    .10000E-01    .10192        .11656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .43299E-13    .26159        .36886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67138e-11
Minuit parameter uncertainties:
  1  0.0106756
  2  4.76436
  3  1.25025e-08
  4  2.13819e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461083': 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) = 133.333169047
delta logL = -1.34356241688e-08

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.068e-02  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  3.473e+00  4.764e+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:  4.330e-14  2.138e-07  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  1.250e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

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/461083/cmap_HighResolution_584582401_584841601_4FGL_J0824.9+3915_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e+00', job_status='DONE', photon_flux_upper_limit='9.40e-05', time_completed='2021-08-29 19:47:58.517545', job_id='461083', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630291678.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1332' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:47:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 461083: <4FGL_J0824.9+3915_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1332 126.236 39.2574 584582401 584841601 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 :                                   375.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             445.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   429 sec.
    Turnaround time :                            431 sec.

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

