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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin762
RA = 126.236, Dec = 39.2574
tmin = 436838401, tmax = 437097601
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='457466', job_status='RUN', time_executed='2021-08-29 19:32:03.269387', time_epoch_executed='1630290723.27' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457466/ft1_4FGL_J0824.9+3915_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457466/ft1_4FGL_J0824.9+3915_daily_bin762.fits outfile=/scratch/kocevski/457466/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin762.fits ra=126.236 dec=39.2574 rad=12.0 tmin=436838401.0 tmax=437097601.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.79
user 4.72
sys 2.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.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/457466/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/457466/ft1_filtered_4FGL_J0824.9+3915_daily_bin762.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 3.43
user 0.34
sys 2.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457466/ft1_filtered_4FGL_J0824.9+3915_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/457466/ltcube_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.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/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits
.....................!
real 15.80
user 12.02
sys 3.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457466/ft1_filtered_4FGL_J0824.9+3915_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/457466/ltcube_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.fits outfile=/scratch/kocevski/457466/expmap_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.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/457466/ltcube_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.fits
.....................!
real 198.45
user 186.95
sys 8.80

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/457466/ft1_filtered_4FGL_J0824.9+3915_daily_bin762.fits scfile=/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits outfile=/scratch/kocevski/457466/cmap_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.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 3.47
user 0.37
sys 3.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457466/ft1_filtered_4FGL_J0824.9+3915_daily_bin762.fits scfile=/scratch/kocevski/457466/ft2_4FGL_J0824.9+3915_daily_bin762.fits outfile=/scratch/kocevski/457466/cmap_HighResolution_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.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 3.00
user 0.38
sys 2.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.882       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20554E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .54165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0730       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.765       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98244       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0751       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=   6786.197     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3091 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7486        17.739       -.41235E-05   -.59881E-04
   2  Prefactor     18.865        20.194       -.14089E-04   -.38931E-03
   3  norm          .10000E-03    5.9495       -.99378E-06** at limit **
   4  norm          1.5636        1.5319        .14767E-06    .22377E-03
   5  Prefactor     .10006E-03    4.9166        .43935E-05** at limit **
   6  Prefactor     .10000E-03    15.131        .74952E-07** at limit **
   7  Prefactor     4.4186        6.3724        .23148E-06   -.84795E-03
   8  Prefactor     .10000E-03    9.0376        .62489E-05** at limit **
   9  norm          .54165        .47175       -.85240E-07   -.10058E-02
  10  Prefactor     .10000E-03    27.963       -.37344E-05** at limit **
  11  Prefactor     42.149        31.940        .17925E-05   -.26606E-05
  12  Prefactor     9.7289        14.978       -.15029E-07   -.11358E-03
  13  Prefactor     2.9776        4.0986        .16782E-05   -.67459E-03
  14  Prefactor     .10000E-03    11.443       -.11438E-04** at limit **
  15  Prefactor     .10000E-03    3.2580       -.60172E-06** at limit **
  16  norm          7.3261        6.2036       -.40141E-06   -.16394E-03
  17  Prefactor     .10000E-03    1.3430        .33089E-08** at limit **
  18  Prefactor     2.0730        2.1366        .21558E-07    .15603E-03
  19  Prefactor     .10000E-03    27.492        .52059E-06** at limit **
  20  Prefactor     .10000E-03    2.2785        .30221E-07** at limit **
  21  Prefactor     21.763        17.395       -.12392E-05   -.17643E-04
  22  norm          .10000E-03    .15445       -.18749E-07** at limit **
  23  norm          23.275        11.193        .53494E-08   -.37079E-04
  24  Prefactor     .10000E-03    1.3802        .21137E-06** at limit **
  25  Normalizat    .98244        .19116        .43270E-06   -.29811E-03
  26  Prefactor     1.0750        .15167        .10950E-05   -.48869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.74856
  Prefactor  = 18.8654
  norm       = 0.0001
  norm       = 1.56361
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 4.41862
  Prefactor  = 0.0001
  norm       = 0.541652
  Prefactor  = 0.0001
  Prefactor  = 42.1494
  Prefactor  = 9.72892
  Prefactor  = 2.97758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32611
  Prefactor  = 0.0001
  Prefactor  = 2.07301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7625
  norm       = 0.0001
  norm       = 23.2747
  Prefactor  = 0.000100001
  Normalizat = 0.982441
  Prefactor  = 1.07502
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.197     FROM HESSE     STATUS=OK           460 CALLS     3551 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7486        17.736        .15443E-03   -1.5188    
   2  Prefactor     18.865        20.370        .92173E-04   -1.4839    
   3  norm          .10000E-03    5.9693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5636        1.5480        .98311E-04   -1.5458    
   5  Prefactor     .10006E-03    16.383        .34305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4186        6.2800        .19152E-03   -1.5288    
   8  Prefactor     .10000E-03    9.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .54165        .47452        .49210E-04   -1.5561    
  10  Prefactor     .10000E-03    28.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.149        31.939        .61748E-04   -1.4409    
  12  Prefactor     9.7289        14.790        .12847E-03   -1.5084    
  13  Prefactor     2.9776        4.0155        .16194E-03   -1.5363    
  14  Prefactor     .10000E-03    11.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2722        .14521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3261        6.2057        .14819E-03   -1.5167    
  17  Prefactor     .10000E-03    1.3672        .93142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0730        2.1431        .11917E-03   -1.5420    
  19  Prefactor     .10000E-03    27.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3763        .24240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.763        17.395        .85856E-04   -1.4775    
  22  norm          .10000E-03    .18024        .63096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.275        11.183        .83029E-04   -1.4743    
  24  Prefactor     .10000E-03    3.4443        .18758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98244        .21671        .28157E-03   -.93621    
  26  Prefactor     1.0750        .17249        .22094E-03   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43198e-09
Minuit parameter uncertainties:
  1  17.7501
  2  20.377
  3  4.00079e-06
  4  1.548
  5  0.00191659
  6  2.07875e-05
  7  6.2809
  8  4.13269e-06
  9  0.474525
  10  3.43406e-05
  11  31.9523
  12  14.7951
  13  4.01587
  14  1.35259e-05
  15  2.4557e-06
  16  6.2062
  17  2.52061e-06
  18  2.14313
  19  1.80942e-05
  20  6.09714e-06
  21  17.399
  22  5.71328e-07
  23  11.1836
  24  8.33159e-05
  25  0.216903
  26  0.172577
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.978e+00  4.016e+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.075e+00  1.726e-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.824e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/457466/likelihoodResults_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.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) = 6785.79994426
delta logL = 0.397283246539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6785.79894525
delta logL = 0.398282249872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7282       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1697       1.0000          .0000       10.000    
     3 'Normalizat'    .94649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0922       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=   6785.799     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7277        30.895        .79848E-02    .84766E-03
   2  Index         3.1699        3.5311        .13085        .14307E-03
   3  Normalizat    .94655        .55621E-01    .45493E-01    .79128E-05
   4  Prefactor     1.0922        .45117E-01    .37890E-01   -.76254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72774
  Index      = 3.16989
  Normalizat = 0.946549
  Prefactor  = 1.09224
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.799     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7277        3.8020        .88375E-04   -1.5445    
   2  Index         3.1699        1.2569        .68414E-02   -.37473    
   3  Normalizat    .94655        .21511        .28608E-03   -.94843    
   4  Prefactor     1.0922        .17306        .21934E-03   -.89715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58554e-11
Minuit parameter uncertainties:
  1  3.80257
  2  1.27267
  3  0.21531
  4  0.173146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457466': 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) = 6785.79894489
delta logL = 0.398282617634

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.728e+00  3.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  3.170e+00  1.273e+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:  1.092e+00  1.731e-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.465e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 126.236 39.257
Photon Index (Free Index): 3.17 +/- 1.27
Photon Flux (Free Index): 7.08e-08 +/- 6.25e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/457466/cmap_HighResolution_436838401_437097601_4FGL_J0824.9+3915_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='3.98e-01', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-08-29 19:46:33.197016', photon_index_error2='1.27', photon_index2='3.17', ts='0.83', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.25e-05', EG='0.98', time_epoch_completed='1630291593.2', return_code='0', job_id='457466', GAL2='1.09', EG2='0.95', return_code2='0', photon_flux_error2='6.25e-08', ts2='1.68', photon_index='2.43' WHERE bin_id='762' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:46:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 457466: <4FGL_J0824.9+3915_daily_bin762> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin762> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 19:30:31 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:30:32 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:30:32 2021
Terminated at Sun Aug 29 19:46:34 2021
Results reported at Sun Aug 29 19:46:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin762 126.236 39.2574 436838401 437097601 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 :                                   900.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

