/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1124
RA = 126.236, Dec = 39.2574
tmin = 530668801, tmax = 530928001
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='460736', job_status='RUN', time_executed='2021-08-29 19:41:30.110730', time_epoch_executed='1630291290.11' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460736/ft1_4FGL_J0824.9+3915_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460736/ft1_4FGL_J0824.9+3915_daily_bin1124.fits outfile=/scratch/kocevski/460736/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1124.fits ra=126.236 dec=39.2574 rad=12.0 tmin=530668801.0 tmax=530928001.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 3.87
user 3.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.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/460736/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/460736/ft1_filtered_4FGL_J0824.9+3915_daily_bin1124.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.01
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460736/ft1_filtered_4FGL_J0824.9+3915_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/460736/ltcube_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.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/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits
.....................!
real 12.08
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460736/ft1_filtered_4FGL_J0824.9+3915_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/460736/ltcube_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.fits outfile=/scratch/kocevski/460736/expmap_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.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/460736/ltcube_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.fits
.....................!
real 192.28
user 185.96
sys 4.59

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/460736/ft1_filtered_4FGL_J0824.9+3915_daily_bin1124.fits scfile=/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits outfile=/scratch/kocevski/460736/cmap_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460736/ft1_filtered_4FGL_J0824.9+3915_daily_bin1124.fits scfile=/scratch/kocevski/460736/ft2_4FGL_J0824.9+3915_daily_bin1124.fits outfile=/scratch/kocevski/460736/cmap_HighResolution_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    114.37       1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20341E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10211E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48388E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2660       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48376E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15250E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1400       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12255E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4360       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34526E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4963       1.0000         .10000E-03   10000.    
    23 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0622       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82719       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1128       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=   6722.125     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2635 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0675        .74559E-06** at limit **
   2  Prefactor     .10000E-03    9.4380       -.19034E-05** at limit **
   3  norm          114.46        20.803       -.47078E-05    .36179E-04
   4  norm          .10000E-03    1.1161       -.10058E-07** at limit **
   5  Prefactor     .10000E-03    4.0283        .10457E-06** at limit **
   6  Prefactor     .10000E-03    63.319       -.15675E-04** at limit **
   7  Prefactor     3.3791        5.3022        .21426E-05   -.49072E-03
   8  Prefactor     .10000E-03    20.905        .82155E-05** at limit **
   9  norm          .82828        .55876       -.17822E-06   -.35289E-03
  10  Prefactor     3.1818        59.088       -.47224E-04   -.33395E-04
  11  Prefactor     .10000E-03    25.526       -.43438E-05** at limit **
  12  Prefactor     .10000E-03    11.083        .29705E-07** at limit **
  13  Prefactor     1.1389        2.2804       -.98226E-06   -.12506E-02
  14  Prefactor     .10000E-03    9.0431        .16873E-05** at limit **
  15  Prefactor     .10000E-03    2.8229       -.10685E-05** at limit **
  16  norm          .10000E-03    1.6848       -.48290E-07** at limit **
  17  Prefactor     2.1878        2.7870       -.52296E-06   -.66904E-03
  18  Prefactor     3.4331        2.4759       -.43623E-07    .74213E-04
  19  Prefactor     .10000E-03    12.238        .42349E-06** at limit **
  20  Prefactor     .10000E-03    2.6902        .60873E-06** at limit **
  21  Prefactor     .10000E-03    3.2147       -.53536E-06** at limit **
  22  norm          1.4967        .64396       -.17813E-07    .12836E-03
  23  norm          .10000E-03    2.2174       -.21335E-07** at limit **
  24  Prefactor     1.0618        2.1239       -.68253E-06   -.12419E-02
  25  Normalizat    .82732        .17436        .28239E-05    .13167E-03
  26  Prefactor     1.1127        .14421        .42594E-06    .27076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 114.458
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37913
  Prefactor  = 0.000100002
  norm       = 0.828282
  Prefactor  = 3.18176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.13889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.18784
  Prefactor  = 3.43311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4967
  norm       = 0.0001
  Prefactor  = 1.06177
  Normalizat = 0.827317
  Prefactor  = 1.11266
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.125     FROM HESSE     STATUS=OK           450 CALLS     3085 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0727        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          114.46        20.758        .18810E-03   -1.3564    
   4  norm          .10000E-03    1.1286        .84573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0541        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.884        .20749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3791        5.2072        .21266E-03   -1.5340    
   8  Prefactor     .10000E-03    21.097        .21174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82828        .55148        .46679E-04   -1.5526    
  10  Prefactor     3.1818        59.923        .22408E-03   -1.5351    
  11  Prefactor     .10000E-03    25.604        .21174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1389        2.2596        .16630E-03   -1.5495    
  14  Prefactor     .10000E-03    9.0516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8267        .13453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6881        .10392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1878        2.7858        .14548E-03   -1.5412    
  18  Prefactor     3.4331        2.4761        .10684E-03   -1.5337    
  19  Prefactor     .10000E-03    12.250        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7827        .26106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2151        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4967        .64263        .41148E-04   -1.5463    
  23  norm          .10000E-03    2.2279        .11923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0618        2.0890        .16231E-03   -1.5502    
  25  Normalizat    .82732        .19846        .28518E-03   -.99063    
  26  Prefactor     1.1127        .16484        .21382E-03   -.89063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04363e-09
Minuit parameter uncertainties:
  1  4.45758e-07
  2  2.03718e-05
  3  20.7596
  4  3.78715e-06
  5  1.49507e-05
  6  0.00026374
  7  5.20786
  8  0.000389778
  9  0.551481
  10  27.6476
  11  0.00012717
  12  1.57517e-06
  13  2.25981
  14  1.00393e-05
  15  4.02986e-06
  16  1.63641e-06
  17  2.78596
  18  2.47616
  19  9.88364e-06
  20  8.89744e-06
  21  1.18119e-06
  22  0.642632
  23  1.41525e-06
  24  2.08911
  25  0.198636
  26  0.16492
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.139e+00  2.260e+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.113e+00  1.649e-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.273e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/460736/likelihoodResults_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.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) = 6722.08761051
delta logL = 0.0376539539739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6722.07369983
delta logL = 0.0515646316817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8950       1.0000          .0000       10.000    
     3 'Normalizat'    .82000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1165       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=   6722.074     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76893        28.330        .12326E-01    .11919E-02
   2  Index         2.8958        3.7296        .22359        .61421E-04
   3  Normalizat    .82004        .33213E-01    .64725E-01   -.61776E-04
   4  Prefactor     1.1165        .28512E-01    .36992E-01    .12454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.76893
  Index      = 2.89575
  Normalizat = 0.820036
  Prefactor  = 1.11647
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.074     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76893        2.8085        .11925E-03   -1.5533    
   2  Index         2.8958        2.0457        .10808E-01   -.43438    
   3  Normalizat    .82004        .19215        .28632E-03   -.99330    
   4  Prefactor     1.1165        .16421        .21349E-03   -.88942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97665e-08
Minuit parameter uncertainties:
  1  2.80899
  2  2.12227
  3  0.192307
  4  0.164287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460736': 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) = 6722.07369965
delta logL = 0.0515648096598

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  7.689e-01  2.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.896e+00  2.122e+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.116e+00  1.643e-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.200e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 126.236 39.257

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/460736/cmap_HighResolution_530668801_530928001_4FGL_J0824.9+3915_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-08-29 19:54:39.398755', job_id='460736', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1630292079.4', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.16e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1124' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 460736: <4FGL_J0824.9+3915_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1124 126.236 39.2574 530668801 530928001 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 :                                   778.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             342.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

