/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 4 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin148
RA = 126.236, Dec = 39.2574
tmin = 277689601, tmax = 277948801
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='452846', job_status='RUN', time_executed='2021-08-29 19:17:14.737636', time_epoch_executed='1630289834.74' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452846/ft1_4FGL_J0824.9+3915_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452846/ft1_4FGL_J0824.9+3915_daily_bin148.fits outfile=/scratch/kocevski/452846/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin148.fits ra=126.236 dec=39.2574 rad=12.0 tmin=277689601.0 tmax=277948801.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 7.75
user 3.37
sys 3.96

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.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/452846/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/452846/ft1_filtered_4FGL_J0824.9+3915_daily_bin148.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 6.13
user 0.32
sys 3.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452846/ft1_filtered_4FGL_J0824.9+3915_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/452846/ltcube_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.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/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits
.....................!
real 18.83
user 11.39
sys 4.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452846/ft1_filtered_4FGL_J0824.9+3915_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/452846/ltcube_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.fits outfile=/scratch/kocevski/452846/expmap_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.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/452846/ltcube_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.fits
.....................!
real 207.47
user 186.60
sys 8.71

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/452846/ft1_filtered_4FGL_J0824.9+3915_daily_bin148.fits scfile=/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits outfile=/scratch/kocevski/452846/cmap_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.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 4.23
user 0.37
sys 3.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452846/ft1_filtered_4FGL_J0824.9+3915_daily_bin148.fits scfile=/scratch/kocevski/452846/ft2_4FGL_J0824.9+3915_daily_bin148.fits outfile=/scratch/kocevski/452846/cmap_HighResolution_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.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 4.22
user 0.38
sys 3.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8509       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32942E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9961       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1947       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18678E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32873E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .97245       1.0000         .10000E-03   10000.    
    23 'norm      '    .10625E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1222       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .59208       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2375       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=   6256.978     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3230 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3137        10.993        .73202E-05   -.11451E-04
   2  Prefactor     .10000E-03    14.765       -.17482E-06** at limit **
   3  norm          7.8510        9.9790        .27507E-07   -.18756E-06
   4  norm          2.9123        2.0410        .21660E-07    .22620E-04
   5  Prefactor     8.3830        11.180       -.30759E-06   -.18311E-04
   6  Prefactor     3.9524        112.76        .33021E-05    .10402E-04
   7  Prefactor     .55055        2.6222        .48892E-06    .59604E-04
   8  Prefactor     .10000E-03    12.000        .22019E-06** at limit **
   9  norm          1.6462        .64220        .15881E-08    .25089E-03
  10  Prefactor     .10000E-03    24.874        .13410E-06** at limit **
  11  Prefactor     23.768        25.522        .87393E-07    .64239E-05
  12  Prefactor     .10000E-03    9.2185       -.62172E-07** at limit **
  13  Prefactor     .10001E-03    1.3254       -.93544E-06** at limit **
  14  Prefactor     .10000E-03    12.379        .16153E-06** at limit **
  15  Prefactor     9.9966        8.6656       -.11350E-07   -.24750E-04
  16  norm          2.1948        3.4853        .91084E-07    .80469E-05
  17  Prefactor     .10000E-03    1.1343        .40384E-07** at limit **
  18  Prefactor     .10000E-03    1.9702        .90076E-07** at limit **
  19  Prefactor     54.574        44.071        .12254E-05   -.14241E-03
  20  Prefactor     .10000E-03    1.1969       -.29534E-06** at limit **
  21  Prefactor     .10001E-03    21.388       -.30258E-05** at limit **
  22  norm          .97256        .55135       -.11688E-08   -.80765E-04
  23  norm          .10000E-03    4.8022       -.52004E-06** at limit **
  24  Prefactor     2.1229        1.9542       -.15382E-07    .37554E-06
  25  Normalizat    .59187        .17290        .72451E-06    .15798E-03
  26  Prefactor     1.2377        .14762       -.10866E-05    .93622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31367
  Prefactor  = 0.000100001
  norm       = 7.851
  norm       = 2.91233
  Prefactor  = 8.38303
  Prefactor  = 3.95236
  Prefactor  = 0.550548
  Prefactor  = 0.0001
  norm       = 1.6462
  Prefactor  = 0.0001
  Prefactor  = 23.768
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 9.99661
  norm       = 2.19478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5735
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.972563
  norm       = 0.0001
  Prefactor  = 2.12287
  Normalizat = 0.59187
  Prefactor  = 1.23767
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.978     FROM HESSE     STATUS=OK           460 CALLS     3690 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3137        11.237        .13481E-02   -1.5404    
   2  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8510        9.9673        .14311E-03   -1.5148    
   4  norm          2.9123        2.0407        .92081E-04   -1.5367    
   5  Prefactor     8.3830        10.889        .13840E-03   -1.5129    
   6  Prefactor     3.9524        107.40        .20275E-03   -1.5310    
   7  Prefactor     .55055        2.4960        .24531E-03   -1.5560    
   8  Prefactor     .10000E-03    12.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6462        .63681        .37708E-04   -1.5451    
  10  Prefactor     .10000E-03    24.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.768        25.514        .82165E-04   -1.4733    
  12  Prefactor     .10000E-03    9.2871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.3556        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9966        8.6635        .12674E-03   -1.5076    
  16  norm          2.1948        3.4654        .18105E-03   -1.5412    
  17  Prefactor     .10000E-03    1.1705        .16441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6764        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.574        44.372        .54289E-04   -1.4229    
  20  Prefactor     .10000E-03    1.2167        .84679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    22.408        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .97256        .54317        .42659E-04   -1.5511    
  23  norm          .10000E-03    4.8562        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1229        1.9428        .10223E-03   -1.5417    
  25  Normalizat    .59187        .18993        .30778E-03   -1.0833    
  26  Prefactor     1.2377        .16458        .19349E-03   -.85180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85855e-09
Minuit parameter uncertainties:
  1  10.2005
  2  0.000177912
  3  9.96939
  4  2.04075
  5  10.8917
  6  41.2873
  7  2.34443
  8  7.56039e-05
  9  0.636815
  10  3.26684e-05
  11  25.5261
  12  6.12422e-05
  13  0.00054411
  14  6.28293e-05
  15  8.66459
  16  3.46567
  17  2.49558e-06
  18  2.9767e-06
  19  44.3985
  20  1.93519e-05
  21  0.000750674
  22  0.543171
  23  6.46947e-05
  24  1.94289
  25  0.190142
  26  0.164649
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.441e-04  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:  1.238e+00  1.646e-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:  5.919e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452846/likelihoodResults_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.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) = 6256.97844656
delta logL = -0.000573512599658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6256.97787311
delta logL = -5.9688318288e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4520       1.0000          .0000       10.000    
     3 'Normalizat'    .59191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2377       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=   6256.978     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      236 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2115        .50928E-01** at limit **
   2  Index         2.4725        6.2336        .50000       -.22406E-04
   3  Normalizat    .59187        .45272E-02    .69537E-01   -.26351E-03
   4  Prefactor     1.2377        .40077E-02    .33796E-01   -.27389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47246
  Normalizat = 0.591866
  Prefactor  = 1.23767
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.978     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1374.3        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4725        5.6791        .50000       -.52997    
   3  Normalizat    .59187        .73687E-01    .30778E-03   -1.0833    
   4  Prefactor     1.2377        .64993E-01    .19349E-03   -.85180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74889e-08
Minuit parameter uncertainties:
  1  0.00122779
  2  55.7665
  3  0.0736995
  4  0.0649974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452846': 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): 102
logL (Free Index) = 6256.97787283
delta logL = 2.13156454265e-07

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.228e-03  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.472e+00  5.577e+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:  1.238e+00  6.500e-02  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:  5.919e-01  7.370e-02  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/452846/cmap_HighResolution_277689601_277948801_4FGL_J0824.9+3915_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-08-29 19:31:44.390127', job_id='452846', GAL2='1.24', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630290704.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='148' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 452846: <4FGL_J0824.9+3915_daily_bin148> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin148> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:59 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:59 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:15:59 2021
Terminated at Sun Aug 29 19:31:46 2021
Results reported at Sun Aug 29 19:31:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin148 126.236 39.2574 277689601 277948801 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 :                                   907.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

