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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin23
RA = 126.236, Dec = 39.2574
tmin = 245289601, tmax = 245548801
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='452680', job_status='RUN', time_executed='2021-08-29 19:18:20.709050', time_epoch_executed='1630289900.71' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452680/ft1_4FGL_J0824.9+3915_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452680/ft1_4FGL_J0824.9+3915_daily_bin23.fits outfile=/scratch/kocevski/452680/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin23.fits ra=126.236 dec=39.2574 rad=12.0 tmin=245289601.0 tmax=245548801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.94
user 1.27
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.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/452680/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/452680/ft1_filtered_4FGL_J0824.9+3915_daily_bin23.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 2.01
user 0.31
sys 1.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452680/ft1_filtered_4FGL_J0824.9+3915_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/452680/ltcube_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.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/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits
.....................!
real 14.50
user 12.50
sys 1.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452680/ft1_filtered_4FGL_J0824.9+3915_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/452680/ltcube_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.fits outfile=/scratch/kocevski/452680/expmap_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.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/452680/ltcube_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.fits
.....................!
real 191.60
user 185.03
sys 5.84

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/452680/ft1_filtered_4FGL_J0824.9+3915_daily_bin23.fits scfile=/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits outfile=/scratch/kocevski/452680/cmap_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.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.89
user 0.37
sys 1.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452680/ft1_filtered_4FGL_J0824.9+3915_daily_bin23.fits scfile=/scratch/kocevski/452680/ft2_4FGL_J0824.9+3915_daily_bin23.fits outfile=/scratch/kocevski/452680/cmap_HighResolution_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.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.91
user 0.36
sys 1.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.090       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.324       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3440       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8313       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4768       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14549E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1788       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90082       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=   5099.004     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3063 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5685        12.665        .34560E-06   -.17751E-04
   2  Prefactor     .10000E-03    10.553        .26828E-06** at limit **
   3  norm          10.088        11.177        .98088E-06   -.14894E-03
   4  norm          .10000E-03    2.2781        .15658E-06** at limit **
   5  Prefactor     .10000E-03    5.5684        .36292E-06** at limit **
   6  Prefactor     25.364        57.795        .41092E-06    .79367E-05
   7  Prefactor     .10000E-03    1.5120        .79354E-07** at limit **
   8  Prefactor     32.314        33.657        .11164E-06   -.49896E-04
   9  norm          1.3439        .76961        .22164E-07   -.29676E-03
  10  Prefactor     .10000E-03    31.255       -.23119E-06** at limit **
  11  Prefactor     .10000E-03    11.303        .39337E-07** at limit **
  12  Prefactor     8.8402        17.337       -.52421E-06   -.81797E-04
  13  Prefactor     .10000E-03    2.4403        .51831E-06** at limit **
  14  Prefactor     .10000E-03    9.4116        .34882E-07** at limit **
  15  Prefactor     .10000E-03    5.0203        .70350E-07** at limit **
  16  norm          .10000E-03    9.1640        .10241E-06** at limit **
  17  Prefactor     .10000E-03    1.2757        .42372E-07** at limit **
  18  Prefactor     2.4768        4.2669        .29175E-06   -.75816E-04
  19  Prefactor     1.8926        125.80       -.59685E-06   -.10219E-05
  20  Prefactor     .94621        1.8689       -.12095E-05   -.85808E-03
  21  Prefactor     .10000E-03    22.333       -.60157E-05** at limit **
  22  norm          1.1788        .64976        .26260E-07    .30615E-03
  23  norm          6.9362        8.8544        .36093E-07    .18062E-03
  24  Prefactor     .10000E-03    1.2219       -.13342E-07** at limit **
  25  Normalizat    1.0966        .19815       -.29429E-06    .39934E-04
  26  Prefactor     .90079        .15656       -.23996E-06   -.42146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56855
  Prefactor  = 0.0001
  norm       = 10.0884
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3645
  Prefactor  = 0.0001
  Prefactor  = 32.3138
  norm       = 1.34395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.84021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47681
  Prefactor  = 1.89261
  Prefactor  = 0.946207
  Prefactor  = 0.000100003
  norm       = 1.17878
  norm       = 6.93624
  Prefactor  = 0.0001
  Normalizat = 1.0966
  Prefactor  = 0.900787
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.004     FROM HESSE     STATUS=OK           458 CALLS     3521 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5685        12.649        .18838E-03   -1.5280    
   2  Prefactor     .10000E-03    10.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.088        11.094        .63072E-03   -1.5073    
   4  norm          .10000E-03    2.3513        .21036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5770        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.364        57.774        .79554E-04   -1.4700    
   7  Prefactor     .10000E-03    1.5144        .85708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.314        33.674        .70478E-04   -1.4570    
   9  norm          1.3439        .76591        .42438E-04   -1.5476    
  10  Prefactor     .10000E-03    31.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8402        16.563        .13488E-03   -1.5113    
  13  Prefactor     .10000E-03    4.0941        .20297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0312        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.3168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2895        .78742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4768        4.2510        .18653E-03   -1.5393    
  19  Prefactor     1.8926        127.38        .29802E-03   -1.5433    
  20  Prefactor     .94621        1.7355        .15302E-02   -1.5513    
  21  Prefactor     .10000E-03    20.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1788        .64483        .41500E-04   -1.5491    
  23  norm          6.9362        8.8434        .15234E-03   -1.5181    
  24  Prefactor     .10000E-03    1.2416        .77022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0966        .23106        .25037E-03   -.89861    
  26  Prefactor     .90079        .18309        .22374E-03   -.96114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20542e-10
Minuit parameter uncertainties:
  1  12.6561
  2  6.25554e-06
  3  11.0967
  4  3.10632e-06
  5  1.27841e-05
  6  57.9014
  7  1.15348e-06
  8  33.6938
  9  0.765919
  10  0.00014806
  11  1.15307e-05
  12  16.5712
  13  5.98552e-05
  14  5.95223e-06
  15  7.95084e-07
  16  7.15042e-06
  17  1.02452e-06
  18  4.25156
  19  31.122
  20  1.73556
  21  0.000487537
  22  0.644829
  23  8.84502
  24  7.06617e-06
  25  0.231274
  26  0.183215
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.986e-05  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:  9.008e-01  1.832e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.097e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/452680/likelihoodResults_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.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): 102
logL (Free Index) = 5099.00547206
delta logL = -0.00116468846682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5099.00430742
delta logL = -4.84660631628e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    1.0966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90084       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5099.003     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      325 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-01    .36237        .14216E-01   -.14539E-02
   2  Index         4.3060        1.5577        .50000        .25153E-05
   3  Normalizat    1.0931        .97569E-02    .25037E-03    .44045E-05
   4  Prefactor     .90235        .80274E-02    .22374E-03    .54876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0103119
  Index      = 4.30603
  Normalizat = 1.09311
  Prefactor  = 0.902354
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.003     FROM HESSE     STATUS=OK            31 CALLS      356 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10312E-01    1.0923        .43067E-03   -1.5728    
   2  Index         4.3060        7.0140        .11448E-01   -.13924    
   3  Normalizat    1.0931        .22927        .10015E-04   -.89973    
   4  Prefactor     .90235        .18385        .89497E-05   -.96059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55245e-10
Minuit parameter uncertainties:
  1  0.211237
  2  8.74757
  3  0.229479
  4  0.183972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452680': 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) = 5099.0027449
delta logL = 0.00156246823735

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.031e-02  2.112e-01  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  4.306e+00  8.748e+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:  9.024e-01  1.840e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.093e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

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/452680/cmap_HighResolution_245289601_245548801_4FGL_J0824.9+3915_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-08-29 19:30:11.628536', job_id='452680', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630290611.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.56e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='23' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:30:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 452680: <4FGL_J0824.9+3915_daily_bin23> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin23> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:43 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:15:44 2021
Terminated at Sun Aug 29 19:30:12 2021
Results reported at Sun Aug 29 19:30:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin23 126.236 39.2574 245289601 245548801 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 :                                   729.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

