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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1310
RA = 126.236, Dec = 39.2574
tmin = 578880001, tmax = 579139201
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='461052', job_status='RUN', time_executed='2021-08-29 19:41:22.591774', time_epoch_executed='1630291282.59' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461052/ft1_4FGL_J0824.9+3915_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461052/ft1_4FGL_J0824.9+3915_daily_bin1310.fits outfile=/scratch/kocevski/461052/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1310.fits ra=126.236 dec=39.2574 rad=12.0 tmin=578880001.0 tmax=579139201.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.63
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461052/ft1_filtered_4FGL_J0824.9+3915_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/461052/ltcube_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.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/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits
.....................!
real 11.92
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461052/ft1_filtered_4FGL_J0824.9+3915_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/461052/ltcube_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.fits outfile=/scratch/kocevski/461052/expmap_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.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/461052/ltcube_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.fits
.....................!
real 193.92
user 184.80
sys 5.66

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/461052/ft1_filtered_4FGL_J0824.9+3915_daily_bin1310.fits scfile=/scratch/kocevski/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits outfile=/scratch/kocevski/461052/cmap_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461052/ft1_filtered_4FGL_J0824.9+3915_daily_bin1310.fits scfile=/scratch/kocevski/461052/ft2_4FGL_J0824.9+3915_daily_bin1310.fits outfile=/scratch/kocevski/461052/cmap_HighResolution_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.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.60
user 0.37
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24881E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22173E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.897       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.1292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0879       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11254       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92076       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0186       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=   6492.417     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3163 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.019       -.95204E-07** at limit **
   2  Prefactor     10.375        14.948        .32583E-05    .32675E-03
   3  norm          .10000E-03    3.2118        .56901E-07** at limit **
   4  norm          3.4328        2.2338       -.12495E-09   -.16319E-04
   5  Prefactor     .10003E-03    6.5384        .21529E-05** at limit **
   6  Prefactor     .10000E-03    21.848        .31350E-06** at limit **
   7  Prefactor     .10004E-03    2.6874        .41031E-06** at limit **
   8  Prefactor     25.892        35.706       -.27502E-07   -.15707E-04
   9  norm          1.0186        .68396        .33493E-07   -.50136E-03
  10  Prefactor     .10000E-03    51.462        .53416E-07** at limit **
  11  Prefactor     14.520        33.605        .91809E-06    .82947E-04
  12  Prefactor     12.874        11.278        .23555E-06   -.18100E-04
  13  Prefactor     .10000E-03    1.6329       -.11651E-06** at limit **
  14  Prefactor     44.900        27.179       -.86061E-06   -.21654E-03
  15  Prefactor     .10000E-03    16.772       -.26469E-05** at limit **
  16  norm          7.1300        6.2055        .60999E-07   -.84314E-04
  17  Prefactor     3.5645        2.4779        .36439E-07    .10781E-04
  18  Prefactor     .20757        2.1483        .61159E-06   -.40481E-03
  19  Prefactor     10.275        33.647        .65411E-07   -.26880E-04
  20  Prefactor     .10000E-03    1.1177       -.91888E-07** at limit **
  21  Prefactor     6.0766        16.244        .63576E-07   -.17601E-04
  22  norm          .10000E-03    .13284       -.22154E-07** at limit **
  23  norm          .10000E-03    3.5940        .48952E-07** at limit **
  24  Prefactor     .13326        1.3145        .20518E-06   -.22960E-03
  25  Normalizat    .92066        .18134       -.26846E-06   -.20519E-03
  26  Prefactor     1.0186        .14342       -.19203E-06   -.20981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3751
  norm       = 0.0001
  norm       = 3.43282
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 25.892
  norm       = 1.01858
  Prefactor  = 0.0001
  Prefactor  = 14.52
  Prefactor  = 12.8736
  Prefactor  = 0.0001
  Prefactor  = 44.8996
  Prefactor  = 0.000100002
  norm       = 7.13002
  Prefactor  = 3.56447
  Prefactor  = 0.207568
  Prefactor  = 10.2745
  Prefactor  = 0.0001
  Prefactor  = 6.07664
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.133255
  Normalizat = 0.920664
  Prefactor  = 1.01864
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.417     FROM HESSE     STATUS=OK           466 CALLS     3629 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.375        15.405        .62193E-03   -1.5064    
   3  norm          .10000E-03    3.2153        .14103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4328        2.2326        .94371E-04   -1.5337    
   5  Prefactor     .10003E-03    13.047        .31792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    25.874        .23789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.892        35.692        .78719E-04   -1.4690    
   9  norm          1.0186        .65213        .50128E-04   -1.5506    
  10  Prefactor     .10000E-03    51.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.520        33.834        .10520E-03   -1.4946    
  12  Prefactor     12.874        11.047        .11166E-03   -1.4990    
  13  Prefactor     .10000E-03    3.8993        .19520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.900        27.109        .59825E-04   -1.4367    
  15  Prefactor     .10000E-03    17.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1300        6.2069        .15024E-03   -1.5174    
  17  Prefactor     3.5645        2.4744        .10111E-03   -1.5330    
  18  Prefactor     .20757        11.091        .21724E-02   -1.5617    
  19  Prefactor     10.275        33.544        .12493E-03   -1.5067    
  20  Prefactor     .10000E-03    1.1255        .83039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0766        16.194        .16272E-03   -1.5215    
  22  norm          .10000E-03    .13831        .57269E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.5976        .14904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13326        11.286        .17153E-02   -1.5635    
  25  Normalizat    .92066        .20529        .26893E-03   -.95738    
  26  Prefactor     1.0186        .16436        .21360E-03   -.92111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66478e-09
Minuit parameter uncertainties:
  1  6.91019e-06
  2  15.4111
  3  3.54618e-06
  4  2.23265
  5  0.00117463
  6  0.000120204
  7  0.00210633
  8  35.7209
  9  0.652139
  10  4.06745e-05
  11  33.8791
  12  11.0491
  13  2.49381e-06
  14  27.1168
  15  0.000392196
  16  6.20749
  17  2.47446
  18  3.03437
  19  33.6053
  20  3.10539e-06
  21  16.2052
  22  2.40025e-07
  23  1.79557e-06
  24  2.45228
  25  0.205467
  26  0.164439
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.494e-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:  1.019e+00  1.644e-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:  9.207e-01  2.055e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461052/likelihoodResults_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.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) = 6492.41817994
delta logL = -0.00122284614645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6492.41695743
delta logL = -3.36887751473e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4460       1.0000          .0000       10.000    
     3 'Normalizat'    .92057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0188       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=   6492.417     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      219 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4472        .32240E-01** at limit **
   2  Index         2.4603        5.9662        .50000       -.33738E-04
   3  Normalizat    .92067        .66065E-02    .45164E-01    .81773E-04
   4  Prefactor     1.0186        .55205E-02    .42265E-01    .78020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.4603
  Normalizat = 0.920665
  Prefactor  = 1.01864
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.417     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    546.66        .19465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4603        6.6956        .50000       -.53279    
   3  Normalizat    .92067        .65437E-01    .26893E-03   -.95738    
   4  Prefactor     1.0186        .54577E-01    .21360E-03   -.92111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56147e-08
Minuit parameter uncertainties:
  1  0.00192736
  2  51.0912
  3  0.0654427
  4  0.0545797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461052': 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) = 6492.41695688
delta logL = 2.20102265303e-07

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.927e-03  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.460e+00  5.109e+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.019e+00  5.458e-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:  9.207e-01  6.544e-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/461052/cmap_HighResolution_578880001_579139201_4FGL_J0824.9+3915_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-08-29 19:54:48.771590', job_id='461052', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630292088.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1310' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 461052: <4FGL_J0824.9+3915_daily_bin1310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1310 126.236 39.2574 578880001 579139201 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 :                                   797.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

