/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 43 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.4+2440_daily_bin1069
RA = 126.108, Dec = 24.6709
tmin = 516412801, tmax = 516672001
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='437693', job_status='RUN', time_executed='2021-08-29 18:32:12.496207', time_epoch_executed='1630287132.5' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437693/ft1_4FGL_J0824.4+2440_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437693/ft1_4FGL_J0824.4+2440_daily_bin1069.fits outfile=/scratch/kocevski/437693/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1069.fits ra=126.108 dec=24.6709 rad=12.0 tmin=516412801.0 tmax=516672001.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 4.11
user 3.26
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.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/437693/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1069.fits evtable="EVENTS" outfile="/scratch/kocevski/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.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.00
user 0.34
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits" evtable="EVENTS" scfile=/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits sctable="SC_DATA" outfile=/scratch/kocevski/437693/ltcube_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.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/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits
.....................!
real 12.40
user 11.63
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/437693/ltcube_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits outfile=/scratch/kocevski/437693/expmap_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.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/437693/ltcube_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits
.....................!
real 190.85
user 185.49
sys 4.30

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/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits scfile=/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits outfile=/scratch/kocevski/437693/cmap_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.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 0.77
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits scfile=/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits outfile=/scratch/kocevski/437693/cmap_HighResolution_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.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 0.76
user 0.38
sys 0.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits', '/scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits', expMap='/scratch/kocevski/437693/expmap_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits', expCube='/scratch/kocevski/437693/ltcube_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437693/Model_4FGL_J0824.4+2440_daily_bin1069.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/437693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1069.fits
Spacecraft file(s): /scratch/kocevski/437693/ft2_4FGL_J0824.4+2440_daily_bin1069.fits
Exposure map: /scratch/kocevski/437693/expmap_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits
Exposure cube: /scratch/kocevski/437693/ltcube_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437693/Model_4FGL_J0824.4+2440_daily_bin1069.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) = 5769.39352951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    90.438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.7914       1.0000         .10000E-03   10000.    
     7 'norm      '    159.97       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5897       1.0000         .10000E-03   10000.    
    12 'norm      '    .92715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.447       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.679       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89649E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    24.414       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93229       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85389       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=   5767.708     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2187 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1373        .16669E-05** at limit **
   2  Prefactor     90.467        42.613       -.11011E-06   -.21739E-03
   3  Prefactor     15.261        15.190       -.10629E-05   -.33564E-03
   4  Prefactor     .10000E-03    25.471        .46828E-06** at limit **
   5  Prefactor     .10000E-03    38.689       -.33166E-07** at limit **
   6  norm          9.7902        11.747        .18681E-06   -.27415E-04
   7  norm          159.97        108.74       -.12151E-06   -.15256E-04
   8  Prefactor     .10000E-03    20.679       -.16355E-06** at limit **
   9  Prefactor     .10000E-03    10.136       -.12706E-06** at limit **
  10  Prefactor     .10000E-03    10.161        .13230E-06** at limit **
  11  Prefactor     1.5352        68.934        .24087E-05    .38816E-04
  12  norm          .92765        1.2253        .72774E-06    .55513E-03
  13  Prefactor     10.448        7.4300       -.62986E-07   -.63590E-04
  14  Prefactor     .10000E-03    3.3606       -.57301E-07** at limit **
  15  norm          1.1032        .75385        .20615E-07   -.49758E-04
  16  Prefactor     43.678        16.552        .10419E-06    .19180E-04
  17  Prefactor     .10075E-03    8.7458       -.83051E-06** at limit **
  18  norm          24.404        26.423        .93706E-07    .44169E-05
  19  Normalizat    .93245        .17884       -.14037E-05   -.20994E-03
  20  Prefactor     .85379        .14690        .45185E-06   -.31829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 90.4665
  Prefactor  = 15.2613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.79019
  norm       = 159.97
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53518
  norm       = 0.927653
  Prefactor  = 10.4478
  Prefactor  = 0.0001
  norm       = 1.10321
  Prefactor  = 43.6776
  Prefactor  = 0.000100747
  norm       = 24.404
  Normalizat = 0.932446
  Prefactor  = 0.853789
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.708     FROM HESSE     STATUS=OK           303 CALLS     2490 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6778        .23139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     90.467        41.738        .42254E-04   -1.3803    
   3  Prefactor     15.261        15.266        .10252E-03   -1.4926    
   4  Prefactor     .10000E-03    25.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.7902        11.750        .12806E-03   -1.5082    
   7  norm          159.97        108.89        .31882E-04   -1.3172    
   8  Prefactor     .10000E-03    20.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5352        64.512        .33658E-03   -1.5460    
  12  norm          .92765        1.1676        .83931E-03   -1.5515    
  13  Prefactor     10.448        7.4182        .12397E-03   -1.5061    
  14  Prefactor     .10000E-03    3.3892        .13591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1032        .73747        .50791E-04   -1.5498    
  16  Prefactor     43.678        16.508        .60660E-04   -1.4385    
  17  Prefactor     .10075E-03    12.313        .69837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.404        26.423        .81070E-04   -1.4720    
  19  Normalizat    .93245        .20806        .24698E-03   -.95329    
  20  Prefactor     .85379        .17157        .21663E-03   -.97775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20616e-09
Minuit parameter uncertainties:
  1  0.000196474
  2  41.7514
  3  15.2698
  4  7.48152e-05
  5  0.000204788
  6  11.7526
  7  109.029
  8  2.4069e-05
  9  1.53775e-05
  10  1.58383e-05
  11  19.9258
  12  1.16763
  13  7.41888
  14  2.65307e-06
  15  0.737472
  16  16.5101
  17  0.00606743
  18  26.436
  19  0.208238
  20  0.171682
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.535e+00  1.993e+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:  8.538e-01  1.717e-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:  9.324e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437693/likelihoodResults_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.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) = 5767.70399074
delta logL = 0.0035152892824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5767.70061265
delta logL = 0.00689337774293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5350       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1310       1.0000          .0000       10.000    
     3 'Normalizat'    .93350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85220       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=   5767.701     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      271 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5535        48.145        .21500E-03   -.13891E-03
   2  Index         2.1305        2.4240        .12309E-01   -.11002E-03
   3  Normalizat    .93342        .19977        .24686E-03   -.18241E-03
   4  Prefactor     .85225        .16941        .21680E-03    .11190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55351
  Index      = 2.13051
  Normalizat = 0.933424
  Prefactor  = 0.852247
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.701     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5535        46.127        .85998E-05   -1.5331    
   2  Index         2.1305        2.3802        .49234E-03   -.61126    
   3  Normalizat    .93342        .19993        .98745E-05   -.95295    
   4  Prefactor     .85225        .16949        .86721E-05   -.97830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71706e-09
Minuit parameter uncertainties:
  1  25.6296
  2  2.53995
  3  0.200092
  4  0.169595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437693': 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) = 5767.70061233
delta logL = 0.00689369735574

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.554e+00  2.563e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.131e+00  2.540e+00  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:  8.522e-01  1.696e-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:  9.334e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 126.108 24.671

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/437693/cmap_HighResolution_516412801_516672001_4FGL_J0824.4+2440_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-29 18:41:52.355639', job_id='437693', GAL2='0.85', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630287712.36', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='6.89e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1069' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 437693: <4FGL_J0824.4+2440_daily_bin1069> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1069> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 18:30:41 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:30:42 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:42 2021
Terminated at Sun Aug 29 18:41:53 2021
Results reported at Sun Aug 29 18:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1069 126.108 24.6709 516412801 516672001 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

