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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1085
RA = 126.108, Dec = 24.6709
tmin = 520560001, tmax = 520819201
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='437721', job_status='RUN', time_executed='2021-08-29 18:34:27.062544', time_epoch_executed='1630287267.06' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437721/ft1_4FGL_J0824.4+2440_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437721/ft1_4FGL_J0824.4+2440_daily_bin1085.fits outfile=/scratch/kocevski/437721/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1085.fits ra=126.108 dec=24.6709 rad=12.0 tmin=520560001.0 tmax=520819201.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 7.77
user 4.94
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437721/ft1_filtered_4FGL_J0824.4+2440_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/437721/ltcube_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.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/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits
.....................!
real 13.03
user 11.81
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437721/ft1_filtered_4FGL_J0824.4+2440_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/437721/ltcube_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.fits outfile=/scratch/kocevski/437721/expmap_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.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/437721/ltcube_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.fits
.....................!
real 191.67
user 185.37
sys 5.06

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/437721/ft1_filtered_4FGL_J0824.4+2440_daily_bin1085.fits scfile=/scratch/kocevski/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits outfile=/scratch/kocevski/437721/cmap_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.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.15
user 0.37
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437721/ft1_filtered_4FGL_J0824.4+2440_daily_bin1085.fits scfile=/scratch/kocevski/437721/ft2_4FGL_J0824.4+2440_daily_bin1085.fits outfile=/scratch/kocevski/437721/cmap_HighResolution_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.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.21
user 0.38
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.829       1.0000         .10000E-03   10000.    
     7 'norm      '    .12955E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.215       1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .57108       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50903E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8403       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3189       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78844       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=   6236.055     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1802 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7971        4.0663        .12197E-06   -.14423E-03
   2  Prefactor     .10000E-03    9.8799       -.88938E-06** at limit **
   3  Prefactor     .10000E-03    8.9492        .51380E-06** at limit **
   4  Prefactor     .10000E-03    20.346        .68585E-06** at limit **
   5  Prefactor     .10000E-03    14.975        .32076E-06** at limit **
   6  norm          14.826        10.164        .19257E-06   -.24028E-04
   7  norm          .10002E-03    537.11        .16769E-04** at limit **
   8  Prefactor     .10000E-03    11.205        .16539E-05** at limit **
   9  Prefactor     .10000E-03    12.713       -.90322E-06** at limit **
  10  Prefactor     .10000E-03    31.922       -.24976E-05** at limit **
  11  Prefactor     29.241        20.067       -.11881E-05   -.58956E-03
  12  norm          .10000E-03    1.0137       -.11947E-05** at limit **
  13  Prefactor     .10000E-03    5.6246        .19509E-06** at limit **
  14  Prefactor     .10000E-03    4.1411        .12930E-06** at limit **
  15  norm          .57133        .57254       -.67208E-07   -.41469E-04
  16  Prefactor     .10021E-03    28.061       -.10864E-04** at limit **
  17  Prefactor     5.8413        13.186        .22997E-06   -.33850E-04
  18  norm          .10000E-03    8.1190       -.47190E-07** at limit **
  19  Normalizat    1.3191        .17951       -.11578E-05   -.59095E-03
  20  Prefactor     .78842        .14053       -.11929E-05   -.90222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.79711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8257
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2412
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.571326
  Prefactor  = 0.000100214
  Prefactor  = 5.84135
  norm       = 0.0001
  Normalizat = 1.31915
  Prefactor  = 0.788422
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.055     FROM HESSE     STATUS=OK           285 CALLS     2087 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7971        4.0666        .11014E-03   -1.5149    
   2  Prefactor     .10000E-03    9.8738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.826        10.167        .10401E-03   -1.4938    
   7  norm          .10002E-03    547.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.241        20.377        .74123E-04   -1.4626    
  12  norm          .10000E-03    1.4404        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1935        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .57133        .53499        .57007E-03   -1.5557    
  16  Prefactor     .10021E-03    43.009        .35332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8413        13.232        .16618E-03   -1.5225    
  18  norm          .10000E-03    8.1198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3191        .20568        .22941E-03   -.82997    
  20  Prefactor     .78842        .16460        .23630E-03   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50745e-09
Minuit parameter uncertainties:
  1  4.06669
  2  3.3547e-05
  3  5.07807e-05
  4  0.000103057
  5  3.943e-05
  6  10.1677
  7  0.00729039
  8  0.000113286
  9  3.1825e-05
  10  3.3628e-05
  11  20.3815
  12  0.000162854
  13  3.88168e-05
  14  3.64447e-05
  15  0.534994
  16  0.0060713
  17  13.2391
  18  4.59832e-06
  19  0.205803
  20  0.164698
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.924e+01  2.038e+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.884e-01  1.647e-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.319e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.11e-05

TS (Fixed Index): 3.14
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437721/likelihoodResults_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.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) = 6235.89141667
delta logL = 0.163306045356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.89099118
delta logL = 0.163731537938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.470       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2457       1.0000          .0000       10.000    
     3 'Normalizat'    1.3288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78174       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=   6235.891     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.488        32.415        .63010E-04    .37529E-04
   2  Index         2.2461        .47371        .62432E-02    .26437E-03
   3  Normalizat    1.3288        .20040        .22868E-03    .99429E-06
   4  Prefactor     .78171        .16418        .23714E-03   -.13903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4884
  Index      = 2.2461
  Normalizat = 1.32876
  Prefactor  = 0.781709
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.891     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.488        31.776        .25204E-05   -1.4434    
   2  Index         2.2461        .46430        .12486E-02   -.58330    
   3  Normalizat    1.3288        .20055        .91472E-05   -.82712    
   4  Prefactor     .78171        .16430        .94858E-05   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04391e-12
Minuit parameter uncertainties:
  1  31.7894
  2  0.465268
  3  0.200666
  4  0.164399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437721': 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) = 6235.89099011
delta logL = 0.163732606301

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  4.049e+01  3.179e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.246e+00  4.653e-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.817e-01  1.644e-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.329e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.25 +/- 0.47
Photon Flux (Free Index): 5.09e-08 +/- 3.72e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.80e-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/437721/cmap_HighResolution_520560001_520819201_4FGL_J0824.4+2440_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='2.11e-05', photon_flux_error='3.95e-08', dlogl='1.64e-01', energy_flux='1.59e-05', photon_flux2='5.09e-08', job_status='DONE', time_completed='2021-08-29 18:44:30.705172', photon_index_error2='0.47', photon_index2='2.25', ts='3.14', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.80e-05', EG='1.32', time_epoch_completed='1630287870.71', return_code='0', job_id='437721', GAL2='0.78', EG2='1.33', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.72e-08', ts2='3.46', photon_index='2.53' WHERE bin_id='1085' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:44:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 437721: <4FGL_J0824.4+2440_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1085 126.108 24.6709 520560001 520819201 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

