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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1478
RA = 126.236, Dec = 39.2574
tmin = 622425601, tmax = 622684801
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='462496', job_status='RUN', time_executed='2021-08-29 19:46:36.561692', time_epoch_executed='1630291596.56' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462496/ft1_4FGL_J0824.9+3915_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462496/ft1_4FGL_J0824.9+3915_daily_bin1478.fits outfile=/scratch/kocevski/462496/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1478.fits ra=126.236 dec=39.2574 rad=12.0 tmin=622425601.0 tmax=622684801.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.56
user 4.02
sys 3.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.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/462496/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/462496/ft1_filtered_4FGL_J0824.9+3915_daily_bin1478.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.68
user 0.33
sys 3.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462496/ft1_filtered_4FGL_J0824.9+3915_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/462496/ltcube_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.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/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits
.....................!
real 15.45
user 11.38
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462496/ft1_filtered_4FGL_J0824.9+3915_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/462496/ltcube_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.fits outfile=/scratch/kocevski/462496/expmap_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.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/462496/ltcube_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.fits
.....................!
real 196.50
user 185.34
sys 8.18

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/462496/ft1_filtered_4FGL_J0824.9+3915_daily_bin1478.fits scfile=/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits outfile=/scratch/kocevski/462496/cmap_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.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.60
user 0.38
sys 3.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462496/ft1_filtered_4FGL_J0824.9+3915_daily_bin1478.fits scfile=/scratch/kocevski/462496/ft2_4FGL_J0824.9+3915_daily_bin1478.fits outfile=/scratch/kocevski/462496/cmap_HighResolution_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.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.51
user 0.37
sys 3.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33997E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8798       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74273       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.3611       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0560       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61506       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2740       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=   6778.027     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2659 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2198        .91917E-01** at limit **
   2  Prefactor     .10000E-03    6.9455        .90712E-02** at limit **
   3  norm          8.8779        8.5608        .33627E-02   -.66632E-03
   4  norm          .10000E-03    .96541        .90712E-02** at limit **
   5  Prefactor     9.3727        7.9406        .32743E-02    .40332E-03
   6  Prefactor     .10000E-03    264.53        .90712E-02** at limit **
   7  Prefactor     1.6071        5.0735        .83549E-02    .10882E-02
   8  Prefactor     .10000E-03    9.1694        .90712E-02** at limit **
   9  norm          .74284        .44139        .91152E-02    .12620E-03
  10  Prefactor     .10000E-03    9.5202        .90712E-02** at limit **
  11  Prefactor     .10000E-03    12.745        .90712E-02** at limit **
  12  Prefactor     .10000E-03    5.7453        .90712E-02** at limit **
  13  Prefactor     1.5780        1.7535        .84530E-02    .15280E-03
  14  Prefactor     .10000E-03    32.823        .90712E-02** at limit **
  15  Prefactor     11.075        7.8851        .30098E-02    .13509E-02
  16  norm          5.3995        4.3212        .43231E-02    .49072E-03
  17  Prefactor     3.2356        2.7805        .56290E-02    .49858E-03
  18  Prefactor     .10000E-03    .93515        .90712E-02** at limit **
  19  Prefactor     .10000E-03    9.4587        .90712E-02** at limit **
  20  Prefactor     1.2982        2.5583        .96963E-02    .90930E-03
  21  Prefactor     .10000E-03    6.6076        .90712E-02** at limit **
  22  norm          .10000E-03    .20757        .19326E-01** at limit **
  23  norm          6.3628        6.1727        .39786E-02   -.26205E-03
  24  Prefactor     4.0567        2.3973        .50052E-02    .44793E-04
  25  Normalizat    .61513        .17498        .70214E-01    .35062E-04
  26  Prefactor     1.2741        .14524        .33079E-01    .95574E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.87795
  norm       = 0.0001
  Prefactor  = 9.37274
  Prefactor  = 0.000100002
  Prefactor  = 1.6071
  Prefactor  = 0.0001
  norm       = 0.742842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57801
  Prefactor  = 0.0001
  Prefactor  = 11.0751
  norm       = 5.39951
  Prefactor  = 3.2356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29821
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.3628
  Prefactor  = 4.05668
  Normalizat = 0.615126
  Prefactor  = 1.27406
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.027     FROM HESSE     STATUS=OK           466 CALLS     3125 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.507        .71388E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8779        8.5609        .13451E-03   -1.5112    
   4  norm          .10000E-03    1.0001        .15796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3727        7.9141        .13097E-03   -1.5096    
   6  Prefactor     .10000E-03    269.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6071        4.9927        .29435E-03   -1.5454    
   8  Prefactor     .10000E-03    9.1734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74284        .44198        .39869E-04   -1.5536    
  10  Prefactor     .10000E-03    9.5232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5780        1.7413        .11010E-03   -1.5457    
  14  Prefactor     .10000E-03    33.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.075        7.8813        .12039E-03   -1.5042    
  16  norm          5.3995        4.3187        .74211E-03   -1.5243    
  17  Prefactor     3.2356        2.7695        .11998E-03   -1.5348    
  18  Prefactor     .10000E-03    .93706        .77747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2982        2.5046        .17247E-03   -1.5480    
  21  Prefactor     .10000E-03    6.6175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .33703        .72328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.3628        6.1689        .15914E-03   -1.5203    
  24  Prefactor     4.0567        2.3845        .93136E-04   -1.5305    
  25  Normalizat    .61513        .19395        .31077E-03   -1.0735    
  26  Prefactor     1.2741        .16334        .19461E-03   -.84082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62022e-09
Minuit parameter uncertainties:
  1  7.76066e-05
  2  1.32665e-05
  3  8.56206
  4  1.13032e-06
  5  7.91501
  6  0.00164146
  7  4.99397
  8  7.15093e-05
  9  0.441978
  10  2.38309e-05
  11  3.30346e-05
  12  5.28104e-06
  13  1.74135
  14  6.39133e-05
  15  7.88199
  16  4.31896
  17  2.76961
  18  1.50455e-06
  19  0.000125249
  20  2.50482
  21  8.02352e-06
  22  4.52524e-07
  23  6.16956
  24  2.38457
  25  0.194169
  26  0.16341
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.578e+00  1.741e+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.274e+00  1.634e-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:  6.151e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 6.34e-06 +/- 6.99e-06

TS (Fixed Index): 1.96
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462496/likelihoodResults_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.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) = 6777.34641075
delta logL = 0.680838735349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6777.33541044
delta logL = 0.691839052995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3225       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4622       1.0000          .0000       10.000    
     3 'Normalizat'    .62914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2692       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=   6777.335     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3221        1.4053        .95621E-02   -.29619E-03
   2  Index         1.4621        .46136        .29439       -.56016E-04
   3  Normalizat    .62913        .16333        .69477E-01    .32538E-04
   4  Prefactor     1.2692        .14303        .33170E-01   -.26926E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32208
  Index      = 1.46207
  Normalizat = 0.629131
  Prefactor  = 1.26917
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.335     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3221        1.7639        .98180E-04   -1.5478    
   2  Index         1.4621        .70842        .10510E-01   -.78608    
   3  Normalizat    .62913        .18273        .30750E-03   -1.0676    
   4  Prefactor     1.2692        .16044        .19490E-03   -.84228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05195e-09
Minuit parameter uncertainties:
  1  1.76399
  2  0.713254
  3  0.182903
  4  0.160502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462496': 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) = 6777.33541041
delta logL = 0.691839079264

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.322e+00  1.764e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.462e+00  7.133e-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.269e+00  1.605e-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:  6.291e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.46 +/- 0.71
Photon Flux (Free Index): 6.28e-09 +/- 9.16e-09
Energy Flux (Free Index): 2.26e-05 +/- 3.98e-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/462496/cmap_HighResolution_622425601_622684801_4FGL_J0824.9+3915_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='2.26e-05', photon_flux_error='2.22e-08', dlogl='6.92e-01', energy_flux='6.34e-06', photon_flux2='6.28e-09', job_status='DONE', time_completed='2021-08-29 20:00:35.167660', photon_index_error2='0.71', photon_index2='1.46', ts='1.96', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='3.98e-05', EG='0.62', time_epoch_completed='1630292435.17', return_code='0', job_id='462496', GAL2='1.27', EG2='0.63', return_code2='0', energy_flux_error='6.99e-06', photon_flux_error2='9.16e-09', ts2='3.35', photon_index='2.43' WHERE bin_id='1478' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 20:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 462496: <4FGL_J0824.9+3915_daily_bin1478> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1478> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 19:45:36 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:45:37 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:45:37 2021
Terminated at Sun Aug 29 20:00:50 2021
Results reported at Sun Aug 29 20:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1478 126.236 39.2574 622425601 622684801 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 :                                   873.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            915 sec.

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

