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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin633
RA = 126.236, Dec = 39.2574
tmin = 403401601, tmax = 403660801
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='456417', job_status='RUN', time_executed='2021-08-29 19:26:48.520010', time_epoch_executed='1630290408.52' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456417/ft1_4FGL_J0824.9+3915_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456417/ft1_4FGL_J0824.9+3915_daily_bin633.fits outfile=/scratch/kocevski/456417/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin633.fits ra=126.236 dec=39.2574 rad=12.0 tmin=403401601.0 tmax=403660801.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 5.49
user 3.75
sys 1.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.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/456417/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin633.fits evtable="EVENTS" outfile="/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.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.03
user 0.31
sys 1.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/456417/ltcube_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.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/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits
.....................!
real 13.51
user 11.48
sys 1.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/456417/ltcube_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits outfile=/scratch/kocevski/456417/expmap_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.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/456417/ltcube_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits
.....................!
real 191.78
user 185.54
sys 5.83

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits outfile=/scratch/kocevski/456417/cmap_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.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.236 yref=39.2574 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 2.36
user 0.38
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits outfile=/scratch/kocevski/456417/cmap_HighResolution_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.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.236 yref=39.2574 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 2.11
user 0.36
sys 1.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456417/Model_4FGL_J0824.9+3915_daily_bin633.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/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits.....................!
real 66.81
user 62.94
sys 3.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits', '/scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits', expMap='/scratch/kocevski/456417/expmap_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits', expCube='/scratch/kocevski/456417/ltcube_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456417/Model_4FGL_J0824.9+3915_daily_bin633.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456417/ft1_filtered_4FGL_J0824.9+3915_daily_bin633.fits
Spacecraft file(s): /scratch/kocevski/456417/ft2_4FGL_J0824.9+3915_daily_bin633.fits
Exposure map: /scratch/kocevski/456417/expmap_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits
Exposure cube: /scratch/kocevski/456417/ltcube_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456417/Model_4FGL_J0824.9+3915_daily_bin633.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) = 7198.509359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6567       1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .67165       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .99048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6730       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19809E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1355       1.0000         .10000E-03   10000.    
    16 'norm      '    16.502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0138       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9981       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18750E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4798       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90904       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7198.363     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2190 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.650        11.907       -.87410E-05   -.69156E-02
   2  Prefactor     6.6575        1.8705        .24606E-05    .32671E-03
   3  norm          .10000E-03    3.6218       -.15499E-06** at limit **
   4  norm          .67182        2.2180        .65006E-07   -.11506E-04
   5  Prefactor     12.982        6.6980        .78732E-05    .23360E-02
   6  Prefactor     .10000E-03    15.101        .61919E-05** at limit **
   7  Prefactor     .10000E-03    3.2431        .59619E-06** at limit **
   8  Prefactor     .10000E-03    8.6494       -.62147E-06** at limit **
   9  norm          .99056        .47183       -.23062E-06   -.70684E-03
  10  Prefactor     1.4681        47.964        .29776E-04    .16995E-03
  11  Prefactor     .10001E-03    18.577        .79314E-05** at limit **
  12  Prefactor     .10000E-03    3.7124       -.73252E-07** at limit **
  13  Prefactor     2.6734        2.2277       -.63592E-06   -.17415E-03
  14  Prefactor     .16121E-03    943.11       -.98489E-04** at limit **
  15  Prefactor     4.1349        4.2264        .58329E-06   -.91034E-04
  16  norm          16.498        2.7620       -.20677E-05    .12614E-02
  17  Prefactor     2.0149        2.9315        .26374E-07   -.59294E-04
  18  Prefactor     1.9259        3.4582        .63210E-06    .15657E-04
  19  Prefactor     5.1182        12.407       -.11030E-04    .50965E-02
  20  Prefactor     .10000E-03    1.1422        .11223E-06** at limit **
  21  Prefactor     8.9638        10.992        .40558E-06    .55205E-03
  22  norm          .10000E-03    .12741        .22620E-06** at limit **
  23  norm          .10003E-03    16.668       -.10699E-04** at limit **
  24  Prefactor     2.4789        2.2866       -.20057E-06    .35444E-05
  25  Normalizat    .90905        .19047       -.47856E-06   -.18731E-03
  26  Prefactor     1.0210        .15482       -.29736E-05   -.23264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6495
  Prefactor  = 6.65746
  norm       = 0.0001
  norm       = 0.671822
  Prefactor  = 12.9824
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.990555
  Prefactor  = 1.46808
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 2.67339
  Prefactor  = 0.000161214
  Prefactor  = 4.13486
  norm       = 16.4984
  Prefactor  = 2.01486
  Prefactor  = 1.9259
  Prefactor  = 5.11822
  Prefactor  = 0.0001
  Prefactor  = 8.96376
  norm       = 0.0001
  norm       = 0.000100026
  Prefactor  = 2.47893
  Normalizat = 0.909046
  Prefactor  = 1.02102
 **********
 **   18 **HESSE 
 **********

 FCN=   7198.363     FROM HESSE     STATUS=OK           518 CALLS     2708 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.650        12.819        .22580E-02   -1.4821    
   2  Prefactor     6.6575        8.4999        .38883E-02   -1.5192    
   3  norm          .10000E-03    3.6155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67182        2.2130        .11953E-01   -1.5544    
   5  Prefactor     12.982        7.3771        .27795E-02   -1.4987    
   6  Prefactor     .10000E-03    15.139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .99056        .46802        .88026E-02   -1.5509    
  10  Prefactor     1.4681        65.647        .87505E-02   -1.5466    
  11  Prefactor     .10001E-03    18.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6734        2.2320        .62315E-02   -1.5381    
  14  Prefactor     .16121E-03    8.9561        .14243       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1349        4.2279        .49554E-02   -1.5301    
  16  norm          16.498        7.7265        .24649E-02   -1.4895    
  17  Prefactor     2.0149        2.9921        .72925E-02   -1.5424    
  18  Prefactor     1.9259        3.4808        .74805E-02   -1.5430    
  19  Prefactor     5.1182        50.032        .44592E-02   -1.5255    
  20  Prefactor     .10000E-03    1.1302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9638        19.622        .33404E-02   -1.5109    
  22  norm          .10000E-03    .12519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    16.323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4789        2.3213        .64905E-02   -1.5393    
  25  Normalizat    .90905        .16936        .45017E-01   -.96143    
  26  Prefactor     1.0210        .13650        .42039E-01   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49729e-07
Minuit parameter uncertainties:
  1  12.8212
  2  8.50143
  3  7.485e-06
  4  2.21328
  5  7.37766
  6  0.000426205
  7  3.67293e-06
  8  5.19989e-06
  9  0.46802
  10  19.6564
  11  0.000991934
  12  8.81789e-06
  13  2.23205
  14  0.046836
  15  4.22816
  16  7.72701
  17  2.99229
  18  3.48119
  19  32.0394
  20  3.74746e-07
  21  19.6356
  22  3.02616e-08
  23  0.00129634
  24  2.32142
  25  0.16946
  26  0.136547
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.673e+00  2.232e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.021e+00  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.090e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 8.97e-06

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) = 7197.70871283
delta logL = 0.65463300565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7197.7034073
delta logL = 0.659938532113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8562       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7161       1.0000          .0000       10.000    
     3 'Normalizat'    .92754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7197.703     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8551        2.9390        .60140E-02   -.81583E-04
   2  Index         1.7173        .50267        .26396       -.42905E-04
   3  Normalizat    .92748        .16039        .45253E-01    .17478E-04
   4  Prefactor     1.0142        .13378        .42756E-01    .52359E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85509
  Index      = 1.71726
  Normalizat = 0.927475
  Prefactor  = 1.01424
 **********
 **   18 **HESSE 
 **********

 FCN=   7197.703     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8551        2.7602        .12142E-03   -1.5370    
   2  Index         1.7173        .58907        .92922E-02   -.71623    
   3  Normalizat    .92748        .18203        .26791E-03   -.95501    
   4  Prefactor     1.0142        .15218        .21418E-03   -.92256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23211e-12
Minuit parameter uncertainties:
  1  2.7603
  2  0.591487
  3  0.182148
  4  0.152246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456417': 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) = 7197.70340271
delta logL = 0.659943120507

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.855e+00  2.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.717e+00  5.915e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.014e+00  1.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.275e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.72 +/- 0.59
Photon Flux (Free Index): 1.56e-08 +/- 1.95e-08
Energy Flux (Free Index): 2.42e-05 +/- 3.18e-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/456417/cmap_HighResolution_403401601_403660801_4FGL_J0824.9+3915_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='2.42e-05', photon_flux_error='2.85e-08', dlogl='6.60e-01', energy_flux='1.07e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-08-29 19:38:22.443620', photon_index_error2='0.59', photon_index2='1.72', ts='4.64', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='0.91', time_epoch_completed='1630291102.44', return_code='0', job_id='456417', GAL2='1.01', EG2='0.93', return_code2='0', energy_flux_error='8.97e-06', photon_flux_error2='1.95e-08', ts2='5.96', photon_index='2.43' WHERE bin_id='633' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:38:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 456417: <4FGL_J0824.9+3915_daily_bin633> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin633> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:26:10 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:26:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:26:12 2021
Terminated at Sun Aug 29 19:38:23 2021
Results reported at Sun Aug 29 19:38:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin633 126.236 39.2574 403401601 403660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

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

