/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 = 7670
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.4+2440_daily_bin101
RA = 126.108, Dec = 24.6709
tmin = 265507201, tmax = 265766401
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='432426', job_status='RUN', time_executed='2021-08-29 18:15:50.948726', time_epoch_executed='1630286150.95' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432426

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432426/ft1_4FGL_J0824.4+2440_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432426/ft1_4FGL_J0824.4+2440_daily_bin101.fits outfile=/scratch/kocevski/432426/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin101.fits ra=126.108 dec=24.6709 rad=12.0 tmin=265507201.0 tmax=265766401.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 2.06
user 1.34
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432426/ft1_filtered_4FGL_J0824.4+2440_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/432426/ltcube_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.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/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits
.....................!
real 13.16
user 12.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432426/ft1_filtered_4FGL_J0824.4+2440_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/432426/ltcube_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.fits outfile=/scratch/kocevski/432426/expmap_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.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/432426/ltcube_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.fits
.....................!
real 189.63
user 184.96
sys 4.19

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/432426/ft1_filtered_4FGL_J0824.4+2440_daily_bin101.fits scfile=/scratch/kocevski/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits outfile=/scratch/kocevski/432426/cmap_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432426/ft1_filtered_4FGL_J0824.4+2440_daily_bin101.fits scfile=/scratch/kocevski/432426/ft2_4FGL_J0824.4+2440_daily_bin101.fits outfile=/scratch/kocevski/432426/cmap_HighResolution_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
    12 'norm      '    .36211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .29431       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    48.197       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0170       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0108       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=   9335.924     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2011 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5133        3.3555        .47365E-02    .60471E-03
   2  Prefactor     .10001E-03    7.3559        .90712E-02** at limit **
   3  Prefactor     .10000E-03    19.674        .90712E-02** at limit **
   4  Prefactor     43.008        39.889        .15282E-02    .15196E-02
   5  Prefactor     .10001E-03    7.4130        .90712E-02** at limit **
   6  norm          .10000E-03    2.0712        .90712E-02** at limit **
   7  norm          .10000E-03    26.314        .90712E-02** at limit **
   8  Prefactor     .10000E-03    13.808        .90712E-02** at limit **
   9  Prefactor     .10002E-03    21.730        .90712E-02** at limit **
  10  Prefactor     38.472        25.975        .16155E-02    .31833E-03
  11  Prefactor     20.622        16.705        .22049E-02    .55482E-03
  12  norm          .36215        .98754        .10694E-01    .26235E-02
  13  Prefactor     17.844        8.7670        .23705E-02    .11674E-02
  14  Prefactor     .10000E-03    2.4053        .90712E-02** at limit **
  15  norm          .29411        .52330        .18502E-01    .27215E-02
  16  Prefactor     20.152        13.268        .22307E-02   -.55561E-04
  17  Prefactor     .10000E-03    5.3721        .90712E-02** at limit **
  18  norm          48.198        34.071        .14440E-02   -.46359E-03
  19  Normalizat    1.0169        .15568        .43838E-01    .14936E-03
  20  Prefactor     1.0108        .12415        .43218E-01    .30065E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51331
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  Prefactor  = 43.0081
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 38.4715
  Prefactor  = 20.622
  norm       = 0.362148
  Prefactor  = 17.8436
  Prefactor  = 0.0001
  norm       = 0.294112
  Prefactor  = 20.1518
  Prefactor  = 0.0001
  norm       = 48.1975
  Normalizat = 1.01694
  Prefactor  = 1.01076
 **********
 **   18 **HESSE 
 **********

 FCN=   9335.924     FROM HESSE     STATUS=OK           285 CALLS     2296 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5133        3.3462        .14521E-03   -1.5283    
   2  Prefactor     .10001E-03    7.3587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.008        39.899        .61129E-04   -1.4395    
   5  Prefactor     .10001E-03    7.4140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0728        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    26.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.472        25.988        .64619E-04   -1.4467    
  11  Prefactor     20.622        16.212        .88197E-04   -1.4799    
  12  norm          .36215        .93726        .13317E-03   -1.5588    
  13  Prefactor     17.844        8.6464        .47409E-03   -1.4863    
  14  Prefactor     .10000E-03    2.4253        .14628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .29411        .47154        .83000E-03   -1.5600    
  16  Prefactor     20.152        12.888        .89229E-04   -1.4810    
  17  Prefactor     .10000E-03    5.4075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          48.198        34.072        .57759E-04   -1.4318    
  19  Normalizat    1.0169        .17843        .26666E-03   -.92465    
  20  Prefactor     1.0108        .14282        .22112E-03   -.92372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32901e-08
Minuit parameter uncertainties:
  1  3.34632
  2  0.000557659
  3  0.000591803
  4  39.9238
  5  0.000564552
  6  2.50321e-05
  7  0.000527013
  8  1.68016e-05
  9  0.00138881
  10  25.9958
  11  16.2159
  12  0.937295
  13  8.64697
  14  1.39994e-05
  15  0.471545
  16  12.8896
  17  1.14076e-05
  18  34.0862
  19  0.178531
  20  0.142877
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.011e+00  1.429e-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.017e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 8.84e-06

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

Saving results to:
/scratch/kocevski/432426/likelihoodResults_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.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) = 9335.54461229
delta logL = 0.379331543081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9335.54435881
delta logL = 0.379585027538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.802       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0221       1.0000          .0000       10.000    
     3 'Normalizat'    1.0351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99990       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=   9335.544     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      274 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.857        744.65        .18348E-02    .15979E-03
   2  Index         2.0236        5.6266        .19618        .27239E-04
   3  Normalizat    1.0350        .14670        .59876E-01    .14426E-04
   4  Prefactor     .99987        .88282E-01    .46266E-01   -.45050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8571
  Index      = 2.02357
  Normalizat = 1.03503
  Prefactor  = 0.99987
 **********
 **   18 **HESSE 
 **********

 FCN=   9335.544     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.857        21.915        .73392E-04   -1.4615    
   2  Index         2.0236        .51878        .99221E-02   -.63762    
   3  Normalizat    1.0350        .17167        .26479E-03   -.91866    
   4  Prefactor     .99987        .14210        .22214E-03   -.92734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62304e-11
Minuit parameter uncertainties:
  1  21.9205
  2  0.520235
  3  0.171765
  4  0.142149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432426': 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) = 9335.54435025
delta logL = 0.379593591068

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.986e+01  2.192e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.024e+00  5.202e-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:  9.999e-01  1.421e-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.035e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.02 +/- 0.52
Photon Flux (Free Index): 2.77e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.82e-05

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/432426/cmap_HighResolution_265507201_265766401_4FGL_J0824.4+2440_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.81e-05', photon_flux_error='3.14e-08', dlogl='3.80e-01', energy_flux='1.12e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-08-29 18:27:31.556051', photon_index_error2='0.52', photon_index2='2.02', ts='3.21', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.82e-05', EG='1.02', time_epoch_completed='1630286851.56', return_code='0', job_id='432426', GAL2='1.00', EG2='1.04', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='2.50e-08', ts2='3.97', photon_index='2.53' WHERE bin_id='101' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 432426: <4FGL_J0824.4+2440_daily_bin101> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin101> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 18:15:33 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:15:35 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:15:35 2021
Terminated at Sun Aug 29 18:27:32 2021
Results reported at Sun Aug 29 18:27:32 2021

Your job looked like:

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

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

