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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1097
RA = 126.236, Dec = 39.2574
tmin = 523670401, tmax = 523929601
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='460697', job_status='RUN', time_executed='2021-08-29 19:40:50.852971', time_epoch_executed='1630291250.85' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460697/ft1_4FGL_J0824.9+3915_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460697/ft1_4FGL_J0824.9+3915_daily_bin1097.fits outfile=/scratch/kocevski/460697/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1097.fits ra=126.236 dec=39.2574 rad=12.0 tmin=523670401.0 tmax=523929601.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 3.93
user 3.30
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460697/ft1_filtered_4FGL_J0824.9+3915_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/460697/ltcube_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.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/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits
.....................!
real 12.70
user 11.54
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460697/ft1_filtered_4FGL_J0824.9+3915_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/460697/ltcube_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.fits outfile=/scratch/kocevski/460697/expmap_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.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/460697/ltcube_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.fits
.....................!
real 193.65
user 185.13
sys 5.29

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/460697/ft1_filtered_4FGL_J0824.9+3915_daily_bin1097.fits scfile=/scratch/kocevski/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits outfile=/scratch/kocevski/460697/cmap_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=126.236 yref=39.2574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.78
user 0.35
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460697/ft1_filtered_4FGL_J0824.9+3915_daily_bin1097.fits scfile=/scratch/kocevski/460697/ft2_4FGL_J0824.9+3915_daily_bin1097.fits outfile=/scratch/kocevski/460697/cmap_HighResolution_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=126.236 yref=39.2574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.78
user 0.36
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9236       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41771E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.258       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2428       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6436       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.718       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.545       1.0000         .10000E-03   10000.    
    22 'norm      '    6.8377       1.0000         .10000E-03   10000.    
    23 'norm      '    .10575E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5513       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3722       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65014       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=   7036.349     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2705 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2268        5.5777        .16406E-05   -.10986E-02
   2  Prefactor     .10000E-03    20.399        .16251E-05** at limit **
   3  norm          8.9225        10.675        .26777E-06   -.84453E-05
   4  norm          8.3445        3.7383        .47632E-06    .13850E-03
   5  Prefactor     .10000E-03    8.7694       -.94218E-06** at limit **
   6  Prefactor     .10000E-03    20.477       -.20911E-06** at limit **
   7  Prefactor     .10001E-03    2.4348       -.26199E-06** at limit **
   8  Prefactor     18.257        19.006       -.69918E-06   -.19892E-04
   9  norm          1.3853        .59985        .32331E-08    .38040E-03
  10  Prefactor     .10000E-03    11.920       -.43102E-05** at limit **
  11  Prefactor     .10000E-03    10.772        .53260E-05** at limit **
  12  Prefactor     3.0314        11.250        .14054E-05    .14570E-04
  13  Prefactor     .83864        2.3673        .32831E-07   -.28932E-03
  14  Prefactor     1.1210        155.59       -.14150E-05   -.16880E-04
  15  Prefactor     .10000E-03    3.3814       -.23530E-07** at limit **
  16  norm          16.753        8.2092       -.23039E-07   -.31776E-04
  17  Prefactor     1.6437        3.2375        .13522E-06   -.24835E-03
  18  Prefactor     .19208        2.2407       -.74779E-06    .34981E-03
  19  Prefactor     33.722        33.007        .24040E-05    .41151E-04
  20  Prefactor     2.1057        4.1694        .39037E-05    .25796E-03
  21  Prefactor     14.539        20.902       -.11535E-05   -.10103E-03
  22  norm          6.8377        1.2576       -.10619E-06   -.32948E-03
  23  norm          .10000E-03    4.9363       -.10204E-06** at limit **
  24  Prefactor     1.5505        2.8563       -.14724E-05   -.62886E-03
  25  Normalizat    1.3724        .18432       -.10008E-05    .98692E-04
  26  Prefactor     .65004        .13490        .60128E-07   -.82803E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22683
  Prefactor  = 0.0001
  norm       = 8.92245
  norm       = 8.34451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 18.2568
  norm       = 1.38528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03139
  Prefactor  = 0.838637
  Prefactor  = 1.12103
  Prefactor  = 0.0001
  norm       = 16.7532
  Prefactor  = 1.64372
  Prefactor  = 0.192078
  Prefactor  = 33.7221
  Prefactor  = 2.1057
  Prefactor  = 14.5385
  norm       = 6.83767
  norm       = 0.0001
  Prefactor  = 1.55048
  Normalizat = 1.3724
  Prefactor  = 0.650044
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.349     FROM HESSE     STATUS=OK           466 CALLS     3171 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2268        14.533        .13769E-02   -1.5410    
   2  Prefactor     .10000E-03    20.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9225        10.672        .13417E-03   -1.5110    
   4  norm          8.3445        3.7372        .10438E-03   -1.5130    
   5  Prefactor     .10000E-03    9.0382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    16.687        .24414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.257        19.012        .93734E-04   -1.4853    
   9  norm          1.3853        .59366        .39932E-04   -1.5473    
  10  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0314        10.827        .23299E-03   -1.5360    
  13  Prefactor     .83864        2.2440        .19319E-03   -1.5525    
  14  Prefactor     1.1210        158.55        .40199E-03   -1.5496    
  15  Prefactor     .10000E-03    3.3831        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.753        8.1875        .97849E-04   -1.4889    
  17  Prefactor     1.6437        3.2232        .19722E-03   -1.5452    
  18  Prefactor     .19208        6.4234        .24234E-02   -1.5620    
  19  Prefactor     33.722        32.940        .69010E-04   -1.4546    
  20  Prefactor     2.1057        4.1728        .21467E-03   -1.5418    
  21  Prefactor     14.539        20.910        .52510E-03   -1.4945    
  22  norm          6.8377        1.2540        .37547E-04   -1.5185    
  23  norm          .10000E-03    4.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5505        2.8342        .17722E-03   -1.5459    
  25  Normalizat    1.3724        .21504        .24849E-03   -.81430    
  26  Prefactor     .65004        .15808        .26458E-03   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72658e-09
Minuit parameter uncertainties:
  1  11.3812
  2  4.48169e-05
  3  10.6739
  4  3.73728
  5  1.74005e-06
  6  1.46805e-06
  7  0.000763955
  8  19.0179
  9  0.593664
  10  8.30383e-05
  11  0.000107766
  12  10.8341
  13  2.2442
  14  26.7354
  15  1.09573e-06
  16  8.188
  17  3.22351
  18  2.2212
  19  32.9582
  20  4.17341
  21  20.92
  22  1.25401
  23  1.47793e-06
  24  2.83443
  25  0.215184
  26  0.158187
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  8.386e-01  2.244e+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

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  6.500e-01  1.582e-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.372e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/460697/likelihoodResults_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7036.34759068
delta logL = 0.00100319622288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7036.34750547
delta logL = 0.00108840294524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81669       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4953       1.0000          .0000       10.000    
     3 'Normalizat'    1.3716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65039       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=   7036.347     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      257 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81139        2.2395        .18755E-03   -.25059E-03
   2  Index         2.5024        1.5209        .85768E-02   -.49885E-04
   3  Normalizat    1.3715        .20283        .24856E-03    .16758E-03
   4  Prefactor     .65043        .15420        .26451E-03    .13590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.811392
  Index      = 2.50236
  Normalizat = 1.37153
  Prefactor  = 0.65043
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.347     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81139        2.1858        .75019E-05   -1.5528    
   2  Index         2.5024        1.4859        .34307E-03   -.52305    
   3  Normalizat    1.3715        .20296        .49712E-04   -.81456    
   4  Prefactor     .65043        .15428        .10580E-04   -1.0550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38111e-10
Minuit parameter uncertainties:
  1  2.18602
  2  1.5167
  3  0.203078
  4  0.154386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460697': 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) = 7036.34749417
delta logL = 0.0010997074105

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  8.114e-01  2.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.502e+00  1.517e+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:  6.504e-01  1.544e-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.372e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 126.236 39.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/460697/cmap_HighResolution_523670401_523929601_4FGL_J0824.9+3915_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-08-29 19:54:27.565109', job_id='460697', GAL2='0.65', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630292067.57', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.10e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1097' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:54:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 460697: <4FGL_J0824.9+3915_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1097 126.236 39.2574 523670401 523929601 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 :                                   812.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

