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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin544
RA = 126.236, Dec = 39.2574
tmin = 380332801, tmax = 380592001
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='456290', job_status='RUN', time_executed='2021-08-29 19:26:32.456559', time_epoch_executed='1630290392.46' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456290/ft1_4FGL_J0824.9+3915_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456290/ft1_4FGL_J0824.9+3915_daily_bin544.fits outfile=/scratch/kocevski/456290/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin544.fits ra=126.236 dec=39.2574 rad=12.0 tmin=380332801.0 tmax=380592001.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 4.19
user 3.22
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.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/456290/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin544.fits evtable="EVENTS" outfile="/scratch/kocevski/456290/ft1_filtered_4FGL_J0824.9+3915_daily_bin544.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.29
user 0.32
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456290/ft1_filtered_4FGL_J0824.9+3915_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/456290/ltcube_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.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/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits
.....................!
real 13.01
user 11.79
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456290/ft1_filtered_4FGL_J0824.9+3915_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/456290/ltcube_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.fits outfile=/scratch/kocevski/456290/expmap_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.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/456290/ltcube_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.fits
.....................!
real 195.65
user 188.27
sys 6.33

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/456290/ft1_filtered_4FGL_J0824.9+3915_daily_bin544.fits scfile=/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits outfile=/scratch/kocevski/456290/cmap_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.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 1.33
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456290/ft1_filtered_4FGL_J0824.9+3915_daily_bin544.fits scfile=/scratch/kocevski/456290/ft2_4FGL_J0824.9+3915_daily_bin544.fits outfile=/scratch/kocevski/456290/cmap_HighResolution_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.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 1.21
user 0.38
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5458       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    75.516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8578       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11689E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1375       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.658       1.0000         .10000E-03   10000.    
    22 'norm      '    .37443E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .72489E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80902       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0529       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=   6439.518     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3228 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0403        8.6894        .50323E-07    .90813E-05
   2  Prefactor     8.5464        11.674        .39105E-06    .12320E-03
   3  norm          .10000E-03    5.3617        .34766E-06** at limit **
   4  norm          2.8189        2.3442        .21260E-07    .45939E-04
   5  Prefactor     .10000E-03    1.8639       -.66194E-08** at limit **
   6  Prefactor     .10000E-03    9.3304       -.29542E-06** at limit **
   7  Prefactor     .10000E-03    .93907        .98161E-08** at limit **
   8  Prefactor     .10000E-03    74.856       -.25478E-06** at limit **
   9  norm          .12114        .31784        .23847E-07    .10192E-03
  10  Prefactor     75.515        54.976        .13127E-06    .70293E-05
  11  Prefactor     .10000E-03    37.910       -.18032E-06** at limit **
  12  Prefactor     .10000E-03    6.7558        .59708E-06** at limit **
  13  Prefactor     3.8580        2.7753        .11872E-07   -.11558E-04
  14  Prefactor     35.872        26.410        .16598E-06    .21960E-04
  15  Prefactor     .10000E-03    6.1063       -.40305E-06** at limit **
  16  norm          5.5145        6.2676        .78457E-06    .43606E-03
  17  Prefactor     .10001E-03    1.8825        .10679E-05** at limit **
  18  Prefactor     .10000E-03    1.8158       -.28663E-07** at limit **
  19  Prefactor     7.1869        63.151       -.12010E-04   -.13706E-03
  20  Prefactor     .10000E-03    1.1585        .55116E-07** at limit **
  21  Prefactor     50.658        25.477        .15782E-05    .27521E-03
  22  norm          .37635E-01    .27993        .19201E-06   -.15350E-03
  23  norm          .10000E-03    4.3188       -.22539E-06** at limit **
  24  Prefactor     .10018E-03    2.2527       -.14318E-05** at limit **
  25  Normalizat    .80898        .17367       -.20312E-06   -.30401E-04
  26  Prefactor     1.0529        .14062       -.25253E-07   -.21363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04035
  Prefactor  = 8.54636
  norm       = 0.0001
  norm       = 2.81886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.121136
  Prefactor  = 75.5153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.858
  Prefactor  = 35.8717
  Prefactor  = 0.0001
  norm       = 5.51454
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 7.18692
  Prefactor  = 0.0001
  Prefactor  = 50.6583
  norm       = 0.0376347
  norm       = 0.0001
  Prefactor  = 0.000100179
  Normalizat = 0.80898
  Prefactor  = 1.05292
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.518     FROM HESSE     STATUS=OK           462 CALLS     3690 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0403        8.6848        .15119E-03   -1.5177    
   2  Prefactor     8.5464        11.681        .68563E-03   -1.5123    
   3  norm          .10000E-03    5.3823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8189        2.3406        .10834E-03   -1.5372    
   5  Prefactor     .10000E-03    1.8675        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .94071        .75924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .12114        .31768        .69692E-04   -1.5638    
  10  Prefactor     75.515        54.869        .46206E-04   -1.3968    
  11  Prefactor     .10000E-03    38.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8580        2.7657        .10723E-03   -1.5315    
  14  Prefactor     35.872        26.266        .66911E-04   -1.4509    
  15  Prefactor     .10000E-03    6.1522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5145        6.3884        .85545E-03   -1.5238    
  17  Prefactor     .10001E-03    5.6500        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3798        .21022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1869        67.073        .15015E-03   -1.5172    
  20  Prefactor     .10000E-03    1.1714        .84242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.658        25.760        .56345E-04   -1.4283    
  22  norm          .37635E-01    .61122        .79914E-03   -1.5669    
  23  norm          .10000E-03    4.3346        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10018E-03    15.666        .16143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80898        .19398        .27343E-03   -.99736    
  26  Prefactor     1.0529        .15989        .20462E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62375e-08
Minuit parameter uncertainties:
  1  8.68632
  2  11.6838
  3  2.5269e-05
  4  2.34068
  5  3.06068e-07
  6  3.10368e-05
  7  1.4e-07
  8  8.28819e-05
  9  0.317688
  10  54.9055
  11  4.88587e-05
  12  5.04749e-05
  13  2.76577
  14  26.2749
  15  3.55251e-05
  16  6.38922
  17  0.000347007
  18  4.06553e-06
  19  43.9761
  20  5.35142e-06
  21  25.7657
  22  0.302936
  23  2.73517e-05
  24  0.00334906
  25  0.194149
  26  0.159967
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  3.858e+00  2.766e+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.053e+00  1.600e-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:  8.090e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.35
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.11e-05

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) = 6439.50856714
delta logL = 0.00972344299498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.50659747
delta logL = 0.0116931137081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0350       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3313       1.0000          .0000       10.000    
     3 'Normalizat'    .81404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0508       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=   6439.507     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0362        82.127        .50186E-02    .11715E-03
   2  Index         2.3312        5.9067        .16109        .70621E-04
   3  Normalizat    .81405        .11333        .43793E-01    .19462E-04
   4  Prefactor     1.0508        .63412E-01    .39865E-01    .25267E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0362
  Index      = 2.33119
  Normalizat = 0.814049
  Prefactor  = 1.05076
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.507     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0362        3.1488        .11277E-03   -1.5306    
   2  Index         2.3312        .66961        .90199E-02   -.56304    
   3  Normalizat    .81405        .18974        .27268E-03   -.99550    
   4  Prefactor     1.0508        .15802        .20482E-03   -.91056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03785e-09
Minuit parameter uncertainties:
  1  3.14894
  2  0.672443
  3  0.189894
  4  0.15809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456290': 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) = 6439.50659739
delta logL = 0.0116931924358

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.036e+00  3.149e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.331e+00  6.724e-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.051e+00  1.581e-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:  8.140e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.33 +/- 0.67
Photon Flux (Free Index): 4.47e-08 +/- 4.40e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.30e-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/456290/cmap_HighResolution_380332801_380592001_4FGL_J0824.9+3915_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.61e-05', photon_flux_error='3.53e-08', dlogl='1.17e-02', energy_flux='1.55e-05', photon_flux2='4.47e-08', job_status='DONE', time_completed='2021-08-29 19:38:52.845373', photon_index_error2='0.67', photon_index2='2.33', ts='5.35', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.81', time_epoch_completed='1630291132.85', return_code='0', job_id='456290', GAL2='1.05', EG2='0.81', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.40e-08', ts2='5.37', photon_index='2.43' WHERE bin_id='544' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 456290: <4FGL_J0824.9+3915_daily_bin544> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin544> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:26:02 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:26:04 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:04 2021
Terminated at Sun Aug 29 19:38:56 2021
Results reported at Sun Aug 29 19:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin544 126.236 39.2574 380332801 380592001 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            774 sec.

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

