/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7427
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.4+2440_daily_bin979
RA = 126.108, Dec = 24.6709
tmin = 493084801, tmax = 493344001
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='437528', job_status='RUN', time_executed='2021-08-29 18:33:14.949282', time_epoch_executed='1630287194.95' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437528/ft1_4FGL_J0824.4+2440_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437528/ft1_4FGL_J0824.4+2440_daily_bin979.fits outfile=/scratch/kocevski/437528/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin979.fits ra=126.108 dec=24.6709 rad=12.0 tmin=493084801.0 tmax=493344001.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 6.98
user 3.34
sys 3.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.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/437528/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.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.48
user 0.32
sys 2.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/437528/ltcube_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.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/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits
.....................!
real 15.60
user 11.53
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/437528/ltcube_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits outfile=/scratch/kocevski/437528/expmap_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.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/437528/ltcube_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits
.....................!
real 196.09
user 185.44
sys 8.03

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.4+2440 @ 126.108 24.6709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits outfile=/scratch/kocevski/437528/cmap_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.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.108 yref=24.6709 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.62
user 0.37
sys 3.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits outfile=/scratch/kocevski/437528/cmap_HighResolution_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.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.108 yref=24.6709 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.61
user 0.39
sys 3.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437528/Model_4FGL_J0824.4+2440_daily_bin979.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/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits.....................!
real 61.36
user 55.12
sys 5.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits', '/scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits', expMap='/scratch/kocevski/437528/expmap_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits', expCube='/scratch/kocevski/437528/ltcube_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437528/Model_4FGL_J0824.4+2440_daily_bin979.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.4+2440'

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.553e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437528/ft1_filtered_4FGL_J0824.4+2440_daily_bin979.fits
Spacecraft file(s): /scratch/kocevski/437528/ft2_4FGL_J0824.4+2440_daily_bin979.fits
Exposure map: /scratch/kocevski/437528/expmap_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits
Exposure cube: /scratch/kocevski/437528/ltcube_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437528/Model_4FGL_J0824.4+2440_daily_bin979.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) = 5829.43316889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.813       1.0000         .10000E-03   10000.    
     7 'norm      '    77.613       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.124       1.0000         .10000E-03   10000.    
    12 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9502       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .70166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6578       1.0000         .10000E-03   10000.    
    18 'norm      '    39.840       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78826       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5829.421     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2058 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2006        3.6275        .33188E-07   -.35224E-04
   2  Prefactor     .10000E-03    111.09       -.77073E-06** at limit **
   3  Prefactor     .10000E-03    4.3655       -.30497E-07** at limit **
   4  Prefactor     37.323        41.975        .33934E-06   -.28200E-05
   5  Prefactor     .10000E-03    12.507       -.23563E-07** at limit **
   6  norm          12.813        12.076        .77156E-07   -.25293E-04
   7  norm          77.585        95.581        .71499E-07   -.14819E-04
   8  Prefactor     3.0661        215.09        .29617E-04    .12147E-04
   9  Prefactor     31.636        51.916       -.66422E-05    .26673E-04
  10  Prefactor     .10000E-03    23.658        .48490E-06** at limit **
  11  Prefactor     19.126        17.382       -.12082E-07    .42578E-05
  12  norm          .10000E-03    .38794        .36478E-06** at limit **
  13  Prefactor     3.9498        6.7634        .47151E-06   -.83032E-04
  14  Prefactor     .10000E-03    2.4299       -.70164E-07** at limit **
  15  norm          .70159        .62897        .24586E-07    .11455E-04
  16  Prefactor     .10000E-03    6.0768       -.65653E-07** at limit **
  17  Prefactor     5.6569        11.580        .33676E-06   -.27523E-04
  18  norm          39.837        31.667        .12730E-06    .10595E-05
  19  Normalizat    .78821        .18572       -.15325E-05   -.48838E-04
  20  Prefactor     1.1306        .15439        .39270E-06   -.16926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.20063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3227
  Prefactor  = 0.0001
  norm       = 12.8135
  norm       = 77.5854
  Prefactor  = 3.06613
  Prefactor  = 31.6357
  Prefactor  = 0.0001
  Prefactor  = 19.126
  norm       = 0.0001
  Prefactor  = 3.94984
  Prefactor  = 0.0001
  norm       = 0.701591
  Prefactor  = 0.0001
  Prefactor  = 5.65686
  norm       = 39.8374
  Normalizat = 0.788205
  Prefactor  = 1.13056
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.421     FROM HESSE     STATUS=OK           291 CALLS     2349 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2006        3.6195        .11632E-03   -1.5252    
   2  Prefactor     .10000E-03    113.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3687        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.323        41.982        .65598E-04   -1.4485    
   5  Prefactor     .10000E-03    12.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.813        12.075        .11190E-03   -1.4992    
   7  norm          77.585        95.651        .45582E-04   -1.3944    
   8  Prefactor     3.0661        216.37        .22405E-03   -1.5358    
   9  Prefactor     31.636        51.825        .71411E-04   -1.4582    
  10  Prefactor     .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.126        17.314        .91587E-04   -1.4833    
  12  norm          .10000E-03    .39457        .91929E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9498        6.7490        .20296E-03   -1.5310    
  14  Prefactor     .10000E-03    2.4358        .11621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .70159        .61944        .54939E-04   -1.5540    
  16  Prefactor     .10000E-03    6.0990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6569        11.574        .16888E-03   -1.5232    
  18  norm          39.837        31.665        .63504E-04   -1.4445    
  19  Normalizat    .78821        .21258        .28068E-03   -1.0051    
  20  Prefactor     1.1306        .17828        .20428E-03   -.88496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18601e-11
Minuit parameter uncertainties:
  1  3.61968
  2  3.05106e-06
  3  1.19995e-06
  4  42.0153
  5  2.69274e-06
  6  12.0777
  7  95.8413
  8  51.7091
  9  51.899
  10  4.12399e-05
  11  17.319
  12  3.50138e-06
  13  6.75026
  14  2.67356e-06
  15  0.61945
  16  5.2449e-06
  17  11.5783
  18  31.6783
  19  0.212805
  20  0.178376
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.913e+01  1.732e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.131e+00  1.784e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  7.882e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.44e-06

TS (Fixed Index): 1.90
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437528/likelihoodResults_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.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) = 5829.18862727
delta logL = 0.232779933828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5829.18748049
delta logL = 0.233926715313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.775       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1137       1.0000          .0000       10.000    
     3 'Normalizat'    .79846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+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=   5829.187     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.776        27.615        .73424E-04   -.15329E-04
   2  Index         2.1137        .56270        .74835E-02   -.30722E-04
   3  Normalizat    .79848        .20509        .27902E-03    .19884E-04
   4  Prefactor     1.1233        .17645        .20480E-03    .33418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7757
  Index      = 2.11369
  Normalizat = 0.798483
  Prefactor  = 1.12328
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.187     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.776        27.218        .29370E-05   -1.4616    
   2  Index         2.1137        .55465        .29934E-03   -.61537    
   3  Normalizat    .79848        .20524        .11161E-04   -1.0012    
   4  Prefactor     1.1233        .17659        .81920E-05   -.88726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50677e-11
Minuit parameter uncertainties:
  1  27.2295
  2  0.556374
  3  0.205436
  4  0.176678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437528': 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) = 5829.18748048
delta logL = 0.233926723969

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.978e+01  2.723e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.114e+00  5.564e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.123e+00  1.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  7.985e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.11 +/- 0.56
Photon Flux (Free Index): 3.11e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.87e-05

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/437528/cmap_HighResolution_493084801_493344001_4FGL_J0824.4+2440_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='1.66e-05', photon_flux_error='3.35e-08', dlogl='2.34e-01', energy_flux='1.04e-05', photon_flux2='3.11e-08', job_status='DONE', time_completed='2021-08-29 18:43:31.996349', photon_index_error2='0.56', photon_index2='2.11', ts='1.90', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.87e-05', EG='0.79', time_epoch_completed='1630287812.0', return_code='0', job_id='437528', GAL2='1.12', EG2='0.80', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='3.01e-08', ts2='2.37', photon_index='2.53' WHERE bin_id='979' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:43:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 437528: <4FGL_J0824.4+2440_daily_bin979> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin979> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 18:30:32 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:30:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 18:30:33 2021
Terminated at Sun Aug 29 18:43:34 2021
Results reported at Sun Aug 29 18:43:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin979 126.108 24.6709 493084801 493344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.4+2440 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.19 sec.
    Max Memory :                                 1185 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

