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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin758
RA = 126.236, Dec = 39.2574
tmin = 435801601, tmax = 436060801
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='457460', job_status='RUN', time_executed='2021-08-29 19:32:24.541750', time_epoch_executed='1630290744.54' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457460/ft1_4FGL_J0824.9+3915_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457460/ft1_4FGL_J0824.9+3915_daily_bin758.fits outfile=/scratch/kocevski/457460/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin758.fits ra=126.236 dec=39.2574 rad=12.0 tmin=435801601.0 tmax=436060801.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 9.18
user 5.39
sys 3.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457460/ft1_filtered_4FGL_J0824.9+3915_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/457460/ltcube_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.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/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits
.....................!
real 16.23
user 11.95
sys 4.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457460/ft1_filtered_4FGL_J0824.9+3915_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/457460/ltcube_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.fits outfile=/scratch/kocevski/457460/expmap_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.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/457460/ltcube_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.fits
.....................!
real 196.57
user 186.20
sys 9.86

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/457460/ft1_filtered_4FGL_J0824.9+3915_daily_bin758.fits scfile=/scratch/kocevski/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits outfile=/scratch/kocevski/457460/cmap_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.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.00
user 0.36
sys 3.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457460/ft1_filtered_4FGL_J0824.9+3915_daily_bin758.fits scfile=/scratch/kocevski/457460/ft2_4FGL_J0824.9+3915_daily_bin758.fits outfile=/scratch/kocevski/457460/cmap_HighResolution_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.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.10
user 0.37
sys 3.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .74905       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20261E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.717       1.0000         .10000E-03   10000.    
     9 'norm      '    .30082       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.514       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33436E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3072       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.619       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11192E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89785       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=   5990.427     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3178 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3929       -.29948E-06** at limit **
   2  Prefactor     .10000E-03    8.8514       -.20587E-06** at limit **
   3  norm          .10000E-03    2.7902       -.52558E-07** at limit **
   4  norm          .74821        1.8285        .26120E-06    .33250E-03
   5  Prefactor     .10026E-03    40.989        .10796E-04** at limit **
   6  Prefactor     .10000E-03    23.846       -.23186E-06** at limit **
   7  Prefactor     8.4243        6.2274       -.76387E-06   -.70854E-03
   8  Prefactor     12.715        34.340       -.19036E-06    .18456E-04
   9  norm          .30079        .28896        .82354E-08   -.56916E-03
  10  Prefactor     .10000E-03    10.978        .51530E-07** at limit **
  11  Prefactor     .10000E-03    7.4860       -.30690E-07** at limit **
  12  Prefactor     .10000E-03    14.488       -.27706E-06** at limit **
  13  Prefactor     .10000E-03    1.6711       -.15651E-06** at limit **
  14  Prefactor     61.470        35.858       -.35236E-05   -.68367E-03
  15  Prefactor     .10015E-03    16.636       -.14188E-05** at limit **
  16  norm          17.136        8.1883       -.68912E-07   -.15717E-03
  17  Prefactor     .10000E-03    1.6613       -.12081E-06** at limit **
  18  Prefactor     4.3075        3.7572       -.42193E-07    .53071E-04
  19  Prefactor     .10000E-03    71.657       -.20622E-05** at limit **
  20  Prefactor     .10000E-03    3.9792       -.13705E-05** at limit **
  21  Prefactor     45.640        28.958        .87606E-06    .13654E-03
  22  norm          .10000E-03    .26622       -.39632E-08** at limit **
  23  norm          .10000E-03    20.918       -.29740E-05** at limit **
  24  Prefactor     .10000E-03    2.3607       -.86963E-06** at limit **
  25  Normalizat    1.1606        .19121       -.66300E-06   -.30287E-03
  26  Prefactor     .89796        .14801        .13519E-05   -.30167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.748205
  Prefactor  = 0.000100259
  Prefactor  = 0.0001
  Prefactor  = 8.42432
  Prefactor  = 12.7146
  norm       = 0.300789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4699
  Prefactor  = 0.000100147
  norm       = 17.1358
  Prefactor  = 0.0001
  Prefactor  = 4.30749
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 45.6398
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.16065
  Prefactor  = 0.897965
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.427     FROM HESSE     STATUS=OK           456 CALLS     3634 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.7927        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .74821        1.6965        .16022E-02   -1.5535    
   5  Prefactor     .10026E-03    57.656        .32769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4243        6.3122        .69068E-03   -1.5127    
   8  Prefactor     12.715        34.331        .11233E-03   -1.4995    
   9  norm          .30079        .30235        .39431E-03   -1.5598    
  10  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7050        .97724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.470        36.414        .51159E-04   -1.4138    
  15  Prefactor     .10015E-03    27.119        .40852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.136        8.1633        .96764E-04   -1.4880    
  17  Prefactor     .10000E-03    2.9233        .19190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3075        3.7541        .13601E-03   -1.5293    
  19  Prefactor     .10000E-03    71.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0957        .30003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.640        29.219        .59362E-04   -1.4356    
  22  norm          .10000E-03    .64212        .77610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    21.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.4325        .23141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1606        .22086        .25544E-03   -.87828    
  26  Prefactor     .89796        .16985        .22956E-03   -.96212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08225e-08
Minuit parameter uncertainties:
  1  6.48855e-05
  2  1.50619e-05
  3  3.3248e-06
  4  1.69657
  5  0.00773387
  6  3.30724e-06
  7  6.31266
  8  34.3843
  9  0.302354
  10  6.44078e-05
  11  6.76709e-06
  12  5.15738e-05
  13  2.21011e-06
  14  36.4272
  15  0.003992
  16  8.16384
  17  1.7355e-05
  18  3.75428
  19  0.000463976
  20  7.33422e-05
  21  29.2281
  22  8.21399e-06
  23  0.00029031
  24  3.37343e-05
  25  0.221041
  26  0.169947
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.210e-06  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:  8.980e-01  1.699e-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.161e+00  2.210e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/457460/likelihoodResults_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.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) = 5990.42954958
delta logL = -0.00278936105587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5990.42676029
delta logL = -7.88668330642e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4231       1.0000          .0000       10.000    
     3 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89799       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=   5990.427     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    39.973        .98042E-03** at limit **
   2  Index         2.3900        5.6079        .50000        .34331E-04
   3  Normalizat    1.1606        .23732E-01    .25544E-03   -.32223E-04
   4  Prefactor     .89796        .19126E-01    .22957E-03   -.25653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100343
  Index      = 2.39004
  Normalizat = 1.16065
  Prefactor  = 0.897965
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 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     .10034E-03    157.21        .19608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3900        5.4208        .50000       -.54918    
   3  Normalizat    1.1606        .51859E-01    .10218E-04   -.87828    
   4  Prefactor     .89796        .41779E-01    .91826E-05   -.96212    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7207e-08
Minuit parameter uncertainties:
  1  0.0147206
  2  535.124
  3  0.0518614
  4  0.0417809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457460': 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) = 5990.42675993
delta logL = 2.84980160359e-07

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.003e-04  1.472e-02  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.390e+00  5.351e+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:  8.980e-01  4.178e-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.161e+00  5.186e-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/457460/cmap_HighResolution_435801601_436060801_4FGL_J0824.9+3915_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-08-29 19:46:27.734204', job_id='457460', GAL2='0.90', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630291587.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='758' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 457460: <4FGL_J0824.9+3915_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin758 126.236 39.2574 435801601 436060801 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 :                                   887.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

