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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin77
RA = 126.236, Dec = 39.2574
tmin = 259286401, tmax = 259545601
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='452771', job_status='RUN', time_executed='2021-08-29 19:19:54.147560', time_epoch_executed='1630289994.15' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452771/ft1_4FGL_J0824.9+3915_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452771/ft1_4FGL_J0824.9+3915_daily_bin77.fits outfile=/scratch/kocevski/452771/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin77.fits ra=126.236 dec=39.2574 rad=12.0 tmin=259286401.0 tmax=259545601.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.26
user 2.07
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.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/452771/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin77.fits evtable="EVENTS" outfile="/scratch/kocevski/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/452771/ltcube_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.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/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits
.....................!
real 16.12
user 15.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/452771/ltcube_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits outfile=/scratch/kocevski/452771/expmap_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.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/452771/ltcube_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits
.....................!
real 190.91
user 185.56
sys 4.93

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/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits scfile=/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits outfile=/scratch/kocevski/452771/cmap_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.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 0.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits scfile=/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits outfile=/scratch/kocevski/452771/cmap_HighResolution_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.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 0.56
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits', '/scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits', expMap='/scratch/kocevski/452771/expmap_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits', expCube='/scratch/kocevski/452771/ltcube_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452771/Model_4FGL_J0824.9+3915_daily_bin77.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/452771/ft1_filtered_4FGL_J0824.9+3915_daily_bin77.fits
Spacecraft file(s): /scratch/kocevski/452771/ft2_4FGL_J0824.9+3915_daily_bin77.fits
Exposure map: /scratch/kocevski/452771/expmap_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits
Exposure cube: /scratch/kocevski/452771/ltcube_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452771/Model_4FGL_J0824.9+3915_daily_bin77.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) = 5405.47377409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2721       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2096       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.268       1.0000         .10000E-03   10000.    
     9 'norm      '    .55286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4134       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4457       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83652       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5405.448     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3136 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0733        23.575        .84879E-06   -.36213E-04
   2  Prefactor     4.2727        15.219       -.18017E-06   -.87895E-06
   3  norm          4.2093        10.059       -.23979E-06   -.23591E-05
   4  norm          .10000E-03    2.7976        .79131E-08** at limit **
   5  Prefactor     4.7935        5.4332        .12914E-07    .16499E-04
   6  Prefactor     .10000E-03    34.143        .22961E-06** at limit **
   7  Prefactor     2.7308        3.1320       -.14706E-06   -.18823E-03
   8  Prefactor     12.267        20.891       -.12706E-06   -.59431E-05
   9  norm          .55288        .48071        .19448E-08    .31218E-04
  10  Prefactor     .10000E-03    9.6620        .32251E-05** at limit **
  11  Prefactor     .10000E-03    9.4320       -.32161E-05** at limit **
  12  Prefactor     .10000E-03    6.5468        .17883E-06** at limit **
  13  Prefactor     2.8098        2.6674       -.45815E-08    .86009E-05
  14  Prefactor     .10000E-03    82.745       -.44062E-06** at limit **
  15  Prefactor     .10000E-03    5.3895       -.11174E-06** at limit **
  16  norm          18.803        11.493       -.12831E-08    .39970E-04
  17  Prefactor     .62920        2.9961       -.18413E-06    .68158E-04
  18  Prefactor     .10000E-03    1.5348        .37026E-08** at limit **
  19  Prefactor     .10000E-03    15.341       -.27913E-06** at limit **
  20  Prefactor     .10000E-03    2.1698        .10608E-07** at limit **
  21  Prefactor     .10000E-03    4.8399        .41655E-07** at limit **
  22  norm          1.4134        .66450        .47037E-08    .74842E-04
  23  norm          .10000E-03    2.3947        .37555E-08** at limit **
  24  Prefactor     4.4454        3.0321       -.37602E-08    .51174E-05
  25  Normalizat    1.1633        .18905        .64980E-07    .19727E-04
  26  Prefactor     .83654        .15048       -.30754E-07    .17967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0733
  Prefactor  = 4.27272
  norm       = 4.20933
  norm       = 0.0001
  Prefactor  = 4.79354
  Prefactor  = 0.0001
  Prefactor  = 2.73081
  Prefactor  = 12.2671
  norm       = 0.552883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8032
  Prefactor  = 0.629196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41336
  norm       = 0.0001
  Prefactor  = 4.44544
  Normalizat = 1.16332
  Prefactor  = 0.836542
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.448     FROM HESSE     STATUS=OK           464 CALLS     3600 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0733        32.060        .14335E-02   -1.5420    
   2  Prefactor     4.2727        15.197        .19493E-03   -1.5295    
   3  norm          4.2093        10.044        .19641E-03   -1.5298    
   4  norm          .10000E-03    2.8851        .24003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7935        5.4460        .88419E-03   -1.5270    
   6  Prefactor     .10000E-03    34.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7308        6.3015        .12322E-02   -1.5377    
   8  Prefactor     12.267        20.898        .11437E-03   -1.5007    
   9  norm          .55288        .46803        .45701E-03   -1.5559    
  10  Prefactor     .10000E-03    9.6720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8098        2.6739        .11161E-03   -1.5373    
  14  Prefactor     .10000E-03    84.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4032        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.803        11.243        .92365E-04   -1.4840    
  17  Prefactor     .62920        4.9194        .22351E-02   -1.5549    
  18  Prefactor     .10000E-03    2.5861        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2543        .21119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8422        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4134        .66300        .39397E-04   -1.5470    
  23  norm          .10000E-03    2.3967        .11111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4454        3.0307        .10174E-03   -1.5286    
  25  Normalizat    1.1633        .22250        .24360E-03   -.87744    
  26  Prefactor     .83654        .17478        .22967E-03   -.98395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24086e-10
Minuit parameter uncertainties:
  1  16.3158
  2  15.2106
  3  10.0482
  4  1.55964e-07
  5  5.44659
  6  2.63203e-06
  7  6.30306
  8  20.9107
  9  0.468035
  10  1.78134e-07
  11  4.72449e-07
  12  1.07876e-06
  13  2.67397
  14  1.88414e-05
  15  5.75493e-07
  16  11.244
  17  3.5188
  18  6.4254e-07
  19  5.33121e-09
  20  1.31636e-07
  21  6.92567e-09
  22  0.663007
  23  5.05167e-09
  24  3.03081
  25  0.22268
  26  0.174893
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.810e+00  2.674e+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:  8.365e-01  1.749e-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:  1.163e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.07e-05

TS (Fixed Index): 3.55
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452771/likelihoodResults_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.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) = 5405.4217081
delta logL = 0.0261056659992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.42070722
delta logL = 0.0271065466768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8531       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1792       1.0000          .0000       10.000    
     3 'Normalizat'    1.1745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83211       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=   5405.421     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8531        2.8277        .60174E-02   -.54388E-03
   2  Index         2.1794        1.0450        .24850E-01   -.32399E-05
   3  Normalizat    1.1745        .18484        .54867E-01    .70739E-05
   4  Prefactor     .83214        .14875        .44134E-01    .10480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85311
  Index      = 2.17939
  Normalizat = 1.17447
  Prefactor  = 0.832141
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.421     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8531        2.8541        .11900E-03   -1.5370    
   2  Index         2.1794        1.0580        .99401E-03   -.59937    
   3  Normalizat    1.1745        .21505        .24261E-03   -.87395    
   4  Prefactor     .83214        .17269        .23024E-03   -.98554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14476e-11
Minuit parameter uncertainties:
  1  2.85423
  2  1.06993
  3  0.215211
  4  0.172803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452771': 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) = 5405.4207072
delta logL = 0.0271065719417

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.853e+00  2.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.179e+00  1.070e+00  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:  8.321e-01  1.728e-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:  1.174e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.18 +/- 1.07
Photon Flux (Free Index): 2.57e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.35e-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/452771/cmap_HighResolution_259286401_259545601_4FGL_J0824.9+3915_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='1.20e-05', photon_flux_error='3.41e-08', dlogl='2.71e-02', energy_flux='1.13e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-08-29 19:31:59.621095', photon_index_error2='1.07', photon_index2='2.18', ts='3.55', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.35e-05', EG='1.16', time_epoch_completed='1630290719.62', return_code='0', job_id='452771', GAL2='0.83', EG2='1.17', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.67e-08', ts2='3.60', photon_index='2.43' WHERE bin_id='77' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 452771: <4FGL_J0824.9+3915_daily_bin77> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin77> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:50 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:52 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:15:52 2021
Terminated at Sun Aug 29 19:32:00 2021
Results reported at Sun Aug 29 19:32:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin77 126.236 39.2574 259286401 259545601 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

