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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin992
RA = 126.108, Dec = 24.6709
tmin = 496454401, tmax = 496713601
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='437550', job_status='RUN', time_executed='2021-08-29 18:31:01.747506', time_epoch_executed='1630287061.75' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437550

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437550/ft1_4FGL_J0824.4+2440_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437550/ft1_4FGL_J0824.4+2440_daily_bin992.fits outfile=/scratch/kocevski/437550/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin992.fits ra=126.108 dec=24.6709 rad=12.0 tmin=496454401.0 tmax=496713601.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.06
user 3.23
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437550/ft1_filtered_4FGL_J0824.4+2440_daily_bin992.fits" evtable="EVENTS" scfile=/scratch/kocevski/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits sctable="SC_DATA" outfile=/scratch/kocevski/437550/ltcube_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.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/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits
.....................!
real 13.15
user 11.47
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437550/ft1_filtered_4FGL_J0824.4+2440_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/437550/ltcube_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.fits outfile=/scratch/kocevski/437550/expmap_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.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/437550/ltcube_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.fits
.....................!
real 197.47
user 186.22
sys 4.45

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/437550/ft1_filtered_4FGL_J0824.4+2440_daily_bin992.fits scfile=/scratch/kocevski/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits outfile=/scratch/kocevski/437550/cmap_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.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 1.06
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437550/ft1_filtered_4FGL_J0824.4+2440_daily_bin992.fits scfile=/scratch/kocevski/437550/ft2_4FGL_J0824.4+2440_daily_bin992.fits outfile=/scratch/kocevski/437550/cmap_HighResolution_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.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 1.00
user 0.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.251       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.302       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    45.906       1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25162E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3881       1.0000         .10000E-03   10000.    
    15 'norm      '    .50854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.234       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5937       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85909       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=   8243.398     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2067 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0784        .45366E-08** at limit **
   2  Prefactor     .10000E-03    13.520       -.35844E-05** at limit **
   3  Prefactor     21.251        16.014       -.14801E-07   -.99329E-05
   4  Prefactor     67.303        47.142        .57059E-06    .39217E-05
   5  Prefactor     .10000E-03    23.254        .11102E-04** at limit **
   6  norm          45.904        15.632        .78597E-07    .15100E-04
   7  norm          .10000E-03    46.370        .43929E-05** at limit **
   8  Prefactor     .10000E-03    7.7152        .17549E-07** at limit **
   9  Prefactor     .10000E-03    10.033       -.26157E-07** at limit **
  10  Prefactor     .10000E-03    25.127       -.12712E-04** at limit **
  11  Prefactor     .10002E-03    8.2711       -.21329E-06** at limit **
  12  norm          .10000E-03    .56237       -.10220E-06** at limit **
  13  Prefactor     2.3600        3.8790        .79607E-06   -.10897E-02
  14  Prefactor     8.3900        7.0497        .19126E-06    .30508E-05
  15  norm          .50860        .45669       -.98701E-08    .37105E-04
  16  Prefactor     14.532        11.982        .13343E-07   -.10495E-03
  17  Prefactor     .10000E-03    12.868        .30624E-05** at limit **
  18  norm          13.236        21.057       -.22567E-06   -.51763E-05
  19  Normalizat    1.5936        .18751       -.27547E-07    .48809E-04
  20  Prefactor     .85919        .14598       -.11998E-06    .46125E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2512
  Prefactor  = 67.3034
  Prefactor  = 0.0001
  norm       = 45.9035
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 2.36005
  Prefactor  = 8.38997
  norm       = 0.508597
  Prefactor  = 14.5322
  Prefactor  = 0.0001
  norm       = 13.236
  Normalizat = 1.59355
  Prefactor  = 0.859185
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.398     FROM HESSE     STATUS=OK           295 CALLS     2362 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0832        .92034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.251        16.021        .86886E-04   -1.4786    
   4  Prefactor     67.303        47.253        .48924E-04   -1.4065    
   5  Prefactor     .10000E-03    23.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          45.904        15.638        .59176E-04   -1.4352    
   7  norm          .10000E-03    46.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    105.24        .49253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0689        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3600        12.162        .13296E-02   -1.5401    
  14  Prefactor     8.3900        7.0786        .13842E-03   -1.5129    
  15  norm          .50860        .48066        .55434E-03   -1.5565    
  16  Prefactor     14.532        11.956        .52536E-03   -1.4945    
  17  Prefactor     .10000E-03    13.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.236        21.053        .11011E-03   -1.4980    
  19  Normalizat    1.5936        .22428        .25566E-03   -.75182    
  20  Prefactor     .85919        .17178        .26503E-03   -.97582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00614e-09
Minuit parameter uncertainties:
  1  6.23792e-08
  2  3.49994e-05
  3  16.0245
  4  47.279
  5  0.000116585
  6  15.6389
  7  7.32953e-05
  8  6.49634e-07
  9  8.8079e-07
  10  9.14185e-05
  11  0.00292494
  12  8.42096e-06
  13  10.7183
  14  7.07934
  15  0.480668
  16  11.958
  17  1.08472e-05
  18  21.0651
  19  0.224421
  20  0.171892
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.925e-03  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.592e-01  1.719e-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.594e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437550/likelihoodResults_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.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) = 8243.39801851
delta logL = -4.39675095549e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8243.3980185
delta logL = -4.3961139454e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96346E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5293       1.0000          .0000       10.000    
     3 'Normalizat'    1.5935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85919       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.

 FCN=   8243.398     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      231 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    .17559        .13638    ** at limit **
   2  Index         2.6030        7.9063        .50000       -.37311E-05
   3  Normalizat    1.5936        .73202E-03    .57818E-01    .55040E-03
   4  Prefactor     .85919        .58287E-03    .44483E-01    .60556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010032
  Index      = 2.60302
  Normalizat = 1.59355
  Prefactor  = 0.859186
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.398     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    153.33        .47724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6030        8.6858        .50000       -.49997    
   3  Normalizat    1.5936        .51716E-02    .25566E-03   -.75182    
   4  Prefactor     .85919        .41176E-02    .26503E-03   -.97582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.39115e-09
Minuit parameter uncertainties:
  1  0.014045
  2  155.895
  3  0.00517156
  4  0.0041176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437550': 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) = 8243.39797446
delta logL = 8.22365109343e-08

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.003e-04  1.404e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.603e+00  1.559e+02  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.592e-01  4.118e-03  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.594e+00  5.172e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.108 24.671

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437550/cmap_HighResolution_496454401_496713601_4FGL_J0824.4+2440_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-08-29 18:42:33.166945', job_id='437550', GAL2='0.86', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630287753.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='992' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 437550: <4FGL_J0824.4+2440_daily_bin992> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin992 126.108 24.6709 496454401 496713601 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

