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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin948
RA = 126.108, Dec = 24.6709
tmin = 485049601, tmax = 485308801
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='437480', job_status='RUN', time_executed='2021-08-29 18:32:36.834767', time_epoch_executed='1630287156.83' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437480/ft1_4FGL_J0824.4+2440_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437480/ft1_4FGL_J0824.4+2440_daily_bin948.fits outfile=/scratch/kocevski/437480/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin948.fits ra=126.108 dec=24.6709 rad=12.0 tmin=485049601.0 tmax=485308801.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.81
user 3.32
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.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/437480/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin948.fits evtable="EVENTS" outfile="/scratch/kocevski/437480/ft1_filtered_4FGL_J0824.4+2440_daily_bin948.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.85
user 0.33
sys 0.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437480/ft1_filtered_4FGL_J0824.4+2440_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/437480/ltcube_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.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/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits
.....................!
real 12.71
user 12.03
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437480/ft1_filtered_4FGL_J0824.4+2440_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/437480/ltcube_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.fits outfile=/scratch/kocevski/437480/expmap_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.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/437480/ltcube_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.fits
.....................!
real 195.25
user 187.51
sys 5.39

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/437480/ft1_filtered_4FGL_J0824.4+2440_daily_bin948.fits scfile=/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits outfile=/scratch/kocevski/437480/cmap_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.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.67
user 0.36
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437480/ft1_filtered_4FGL_J0824.4+2440_daily_bin948.fits scfile=/scratch/kocevski/437480/ft2_4FGL_J0824.4+2440_daily_bin948.fits outfile=/scratch/kocevski/437480/cmap_HighResolution_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.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.67
user 0.38
sys 0.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.149       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.408       1.0000         .10000E-03   10000.    
     7 'norm      '    255.59       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
    12 'norm      '    .12127       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .34515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.772       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72198       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=   5973.682     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2008 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4162        4.2427        .16823E-05   -.61210E-03
   2  Prefactor     27.148        29.644       -.20446E-05   -.32243E-04
   3  Prefactor     14.707        22.666        .87985E-06   -.80431E-04
   4  Prefactor     49.189        36.421        .24446E-05   -.10525E-04
   5  Prefactor     .10000E-03    9.9178        .29823E-05** at limit **
   6  norm          16.408        11.751       -.22323E-06   -.21620E-04
   7  norm          255.59        126.73       -.10701E-05   -.68764E-05
   8  Prefactor     16.107        15.614       -.87159E-07   -.36529E-05
   9  Prefactor     .10000E-03    5.8884       -.59309E-05** at limit **
  10  Prefactor     .10000E-03    13.881       -.24143E-05** at limit **
  11  Prefactor     10.844        16.978       -.80327E-05   -.29030E-03
  12  norm          .11760        .71890        .96085E-06   -.19910E-02
  13  Prefactor     8.7131        6.7782       -.84117E-06   -.19328E-02
  14  Prefactor     .10000E-03    3.9890       -.41155E-06** at limit **
  15  norm          .34547        .70690       -.56771E-07   -.17187E-02
  16  Prefactor     18.807        13.923        .92326E-06   -.15150E-04
  17  Prefactor     .10000E-03    5.3505        .53396E-05** at limit **
  18  norm          23.759        42.366       -.24761E-04   -.11913E-04
  19  Normalizat    1.1781        .18006        .37962E-06   -.35338E-03
  20  Prefactor     .72205        .14403        .11100E-05   -.27694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41623
  Prefactor  = 27.1478
  Prefactor  = 14.7066
  Prefactor  = 49.1894
  Prefactor  = 0.0001
  norm       = 16.4082
  norm       = 255.588
  Prefactor  = 16.1069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8436
  norm       = 0.117604
  Prefactor  = 8.71314
  Prefactor  = 0.0001
  norm       = 0.345473
  Prefactor  = 18.8072
  Prefactor  = 0.0001
  norm       = 23.7589
  Normalizat = 1.17806
  Prefactor  = 0.722047
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.682     FROM HESSE     STATUS=OK           299 CALLS     2307 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4162        4.1101        .17007E-03   -1.5397    
   2  Prefactor     27.148        29.559        .76886E-04   -1.4665    
   3  Prefactor     14.707        22.286        .10444E-03   -1.4941    
   4  Prefactor     49.189        36.430        .57178E-04   -1.4304    
   5  Prefactor     .10000E-03    9.9134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.408        11.753        .98876E-04   -1.4898    
   7  norm          255.59        126.81        .25346E-04   -1.2497    
   8  Prefactor     16.107        15.620        .99796E-04   -1.4905    
   9  Prefactor     .10000E-03    5.8733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.844        17.292        .12163E-03   -1.5049    
  12  norm          .11760        2.7577        .11186E-02   -1.5639    
  13  Prefactor     8.7131        6.8518        .67890E-03   -1.5118    
  14  Prefactor     .10000E-03    4.0217        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .34547        .68208        .83773E-04   -1.5590    
  16  Prefactor     18.807        13.687        .92356E-04   -1.4840    
  17  Prefactor     .10000E-03    5.3728        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.759        42.204        .82156E-04   -1.4733    
  19  Normalizat    1.1781        .21188        .23002E-03   -.87283    
  20  Prefactor     .72205        .16932        .23650E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66762e-09
Minuit parameter uncertainties:
  1  4.11054
  2  29.5752
  3  22.2988
  4  36.4462
  5  1.24645e-05
  6  11.7548
  7  126.947
  8  15.6236
  9  8.68688e-07
  10  7.71246e-06
  11  17.2996
  12  1.13854
  13  6.85237
  14  2.50843e-06
  15  0.682097
  16  13.6888
  17  2.45831e-06
  18  42.2574
  19  0.212037
  20  0.169437
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.084e+01  1.730e+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:  7.220e-01  1.694e-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:  1.178e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437480/likelihoodResults_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.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) = 5973.42675022
delta logL = 0.254979728359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5973.41163506
delta logL = 0.270094890899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.972       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8127       1.0000          .0000       10.000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71363       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=   5973.412     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.973        15.733        .19447E-05   -.63081E-03
   2  Index         1.8126        .61834       -.64271E-05   -.18605E-03
   3  Normalizat    1.1933        .17281        .23097E-06    .13208E-03
   4  Prefactor     .71361        .14291       -.17603E-06    .10150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9725
  Index      = 1.81263
  Normalizat = 1.19331
  Prefactor  = 0.713608
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.412     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.973        19.927        .10351E-03   -1.4934    
   2  Index         1.8126        .86330        .12586E-01   -.69121    
   3  Normalizat    1.1933        .20302        .22874E-03   -.86810    
   4  Prefactor     .71361        .16792        .23768E-03   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68004e-09
Minuit parameter uncertainties:
  1  19.9357
  2  0.870697
  3  0.203153
  4  0.168038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437480': 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) = 5973.41163505
delta logL = 0.27009490346

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.497e+01  1.994e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.813e+00  8.707e-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:  7.136e-01  1.680e-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:  1.193e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 126.108 24.671
Photon Index (Free Index): 1.81 +/- 0.87
Photon Flux (Free Index): 1.08e-08 +/- 1.94e-08
Energy Flux (Free Index): 1.25e-05 +/- 2.33e-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/437480/cmap_HighResolution_485049601_485308801_4FGL_J0824.4+2440_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='2.70e-01', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-08-29 18:42:16.029023', photon_index_error2='0.87', photon_index2='1.81', ts='0.70', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='2.33e-05', EG='1.18', time_epoch_completed='1630287736.03', return_code='0', job_id='437480', GAL2='0.71', EG2='1.19', return_code2='0', photon_flux_error2='1.94e-08', ts2='1.25', photon_index='2.53' WHERE bin_id='948' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 437480: <4FGL_J0824.4+2440_daily_bin948> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin948 126.108 24.6709 485049601 485308801 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 :                                   576.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

