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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1202
RA = 126.236, Dec = 39.2574
tmin = 550886401, tmax = 551145601
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='460887', job_status='RUN', time_executed='2021-08-29 19:44:51.324708', time_epoch_executed='1630291491.32' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460887/ft1_4FGL_J0824.9+3915_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460887/ft1_4FGL_J0824.9+3915_daily_bin1202.fits outfile=/scratch/kocevski/460887/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1202.fits ra=126.236 dec=39.2574 rad=12.0 tmin=550886401.0 tmax=551145601.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.04
user 3.47
sys 3.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460887/ft1_filtered_4FGL_J0824.9+3915_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/460887/ltcube_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.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/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits
.....................!
real 15.50
user 11.32
sys 3.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460887/ft1_filtered_4FGL_J0824.9+3915_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/460887/ltcube_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.fits outfile=/scratch/kocevski/460887/expmap_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.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/460887/ltcube_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.fits
.....................!
real 194.80
user 185.88
sys 8.26

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/460887/ft1_filtered_4FGL_J0824.9+3915_daily_bin1202.fits scfile=/scratch/kocevski/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits outfile=/scratch/kocevski/460887/cmap_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.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 3.69
user 0.37
sys 3.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460887/ft1_filtered_4FGL_J0824.9+3915_daily_bin1202.fits scfile=/scratch/kocevski/460887/ft2_4FGL_J0824.9+3915_daily_bin1202.fits outfile=/scratch/kocevski/460887/cmap_HighResolution_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.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 3.73
user 0.37
sys 3.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.437       1.0000         .10000E-03   10000.    
     4 'norm      '    9.9946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.939       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .56495E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6045       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4394       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76978       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=   3780.315     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3057 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.527       -.17484E-05** at limit **
   2  Prefactor     .10000E-03    19.401       -.11068E-05** at limit **
   3  norm          33.439        18.987       -.71312E-07   -.26763E-05
   4  norm          9.9948        8.2208       -.13877E-05   -.17670E-02
   5  Prefactor     .10000E-03    7.3593        .78228E-06** at limit **
   6  Prefactor     .10001E-03    58.564        .20183E-04** at limit **
   7  Prefactor     .10000E-03    4.2215       -.57073E-08** at limit **
   8  Prefactor     24.942        35.928        .29501E-05   -.93874E-04
   9  norm          1.0527        .76325        .10356E-07    .23806E-03
  10  Prefactor     .10000E-03    17.580        .66297E-05** at limit **
  11  Prefactor     .10000E-03    11.794       -.33766E-06** at limit **
  12  Prefactor     .10000E-03    6.0525        .29651E-06** at limit **
  13  Prefactor     .10000E-03    1.2129       -.38707E-08** at limit **
  14  Prefactor     .10002E-03    67.186       -.20774E-04** at limit **
  15  Prefactor     .10000E-03    21.099       -.53189E-05** at limit **
  16  norm          .10000E-03    10.876       -.10578E-06** at limit **
  17  Prefactor     .10000E-03    2.3754       -.10669E-07** at limit **
  18  Prefactor     1.6050        5.1507       -.11865E-05   -.48719E-03
  19  Prefactor     .10000E-03    27.129        .13924E-05** at limit **
  20  Prefactor     .10000E-03    1.7416        .25780E-08** at limit **
  21  Prefactor     .10000E-03    11.731       -.87142E-06** at limit **
  22  norm          .10000E-03    .87885        .14210E-07** at limit **
  23  norm          .10000E-03    6.5866       -.82596E-06** at limit **
  24  Prefactor     1.4402        3.4737       -.34910E-06   -.39170E-03
  25  Normalizat    1.4517        .25138        .46361E-06    .58272E-04
  26  Prefactor     .76971        .18917        .42448E-07    .60929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.4388
  norm       = 9.99477
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 24.9419
  norm       = 1.05269
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4402
  Normalizat = 1.45168
  Prefactor  = 0.769714
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.315     FROM HESSE     STATUS=OK           446 CALLS     3503 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.439        18.991        .69299E-04   -1.4551    
   4  norm          9.9948        8.8533        .63374E-03   -1.5076    
   5  Prefactor     .10000E-03    7.3732        .16288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    56.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2530        .12333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.942        35.758        .80215E-04   -1.4709    
   9  norm          1.0527        .76706        .44369E-04   -1.5503    
  10  Prefactor     .10000E-03    17.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0576        .14772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2154        .66122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    65.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    66.405        .39297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3832        .92517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6050        5.2386        .24239E-03   -1.5455    
  19  Prefactor     .10000E-03    27.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7444        .79221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5989        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.6049        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4402        3.4264        .17220E-03   -1.5468    
  25  Normalizat    1.4517        .28760        .25206E-03   -.79145    
  26  Prefactor     .76971        .21700        .25408E-03   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94249e-09
Minuit parameter uncertainties:
  1  8.86165e-05
  2  7.10902e-05
  3  18.9946
  4  8.85449
  5  2.36807e-05
  6  0.00180339
  7  9.82729e-07
  8  35.7886
  9  0.767072
  10  0.000360232
  11  8.91058e-06
  12  8.32411e-06
  13  2.69815e-08
  14  0.00213736
  15  0.000332802
  16  0.00035384
  17  2.33509e-07
  18  5.24013
  19  8.62059e-05
  20  6.54561e-07
  21  3.78935e-05
  22  1.45931e-06
  23  2.81855e-05
  24  3.4269
  25  0.28792
  26  0.217236
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.698e-08  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.697e-01  2.172e-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.452e+00  2.879e-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: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460887/likelihoodResults_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.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) = 3780.31802338
delta logL = -0.00345648735038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3780.31456651
delta logL = 3.82261987397e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4175       1.0000          .0000       10.000    
     3 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76972       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3780.315     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.207        .66813E-02** at limit **
   2  Index         1.8197        5.6074        .50000       -.17490E-06
   3  Normalizat    1.4517        .27011E-01    .25206E-03   -.24311E-03
   4  Prefactor     .76971        .20672E-01    .25408E-03   -.22851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81968
  Normalizat = 1.45168
  Prefactor  = 0.769713
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.315     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    194.95        .74731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8197        7.0159        .50000       -.68939    
   3  Normalizat    1.4517        .89453E-01    .50412E-04   -.79145    
   4  Prefactor     .76971        .68456E-01    .50816E-04   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55426e-09
Minuit parameter uncertainties:
  1  3.73536e-06
  2  882.821
  3  0.0894624
  4  0.0684638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460887': 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) = 3780.31455802
delta logL = 8.87200212674e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.735e-06  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.820e+00  8.828e+02  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.697e-01  6.846e-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:  1.452e+00  8.946e-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/460887/cmap_HighResolution_550886401_551145601_4FGL_J0824.9+3915_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-08-29 19:56:06.919870', job_id='460887', GAL2='0.77', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630292166.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='8.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1202' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 460887: <4FGL_J0824.9+3915_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1202> 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) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:40:38 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:38 2021
Terminated at Sun Aug 29 19:56:08 2021
Results reported at Sun Aug 29 19:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1202 126.236 39.2574 550886401 551145601 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 :                                   680.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

