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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin926
RA = 126.236, Dec = 39.2574
tmin = 479347201, tmax = 479606401
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='459054', job_status='RUN', time_executed='2021-08-29 19:36:11.881215', time_epoch_executed='1630290971.88' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459054

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459054/ft1_4FGL_J0824.9+3915_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459054/ft1_4FGL_J0824.9+3915_daily_bin926.fits outfile=/scratch/kocevski/459054/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin926.fits ra=126.236 dec=39.2574 rad=12.0 tmin=479347201.0 tmax=479606401.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.31
user 3.23
sys 1.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.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/459054/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin926.fits evtable="EVENTS" outfile="/scratch/kocevski/459054/ft1_filtered_4FGL_J0824.9+3915_daily_bin926.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.36
user 0.30
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459054/ft1_filtered_4FGL_J0824.9+3915_daily_bin926.fits" evtable="EVENTS" scfile=/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits sctable="SC_DATA" outfile=/scratch/kocevski/459054/ltcube_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.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/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits
.....................!
real 12.93
user 11.58
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459054/ft1_filtered_4FGL_J0824.9+3915_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/459054/ltcube_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.fits outfile=/scratch/kocevski/459054/expmap_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.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/459054/ltcube_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.fits
.....................!
real 192.48
user 184.69
sys 5.62

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/459054/ft1_filtered_4FGL_J0824.9+3915_daily_bin926.fits scfile=/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits outfile=/scratch/kocevski/459054/cmap_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.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.37
user 0.34
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459054/ft1_filtered_4FGL_J0824.9+3915_daily_bin926.fits scfile=/scratch/kocevski/459054/ft2_4FGL_J0824.9+3915_daily_bin926.fits outfile=/scratch/kocevski/459054/cmap_HighResolution_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.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.38
user 0.36
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
     3 'norm      '    18.106       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.935       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32117E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0966       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16247E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8654       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2525       1.0000         .10000E-03   10000.    
    22 'norm      '    .69890       1.0000         .10000E-03   10000.    
    23 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3036       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94552       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98335       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=   7114.972     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3222 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.363        12.705       -.13065E-05    .72223E-05
   2  Prefactor     14.287        13.231        .55781E-05   -.40933E-03
   3  norm          18.104        10.955       -.11672E-05    .13037E-03
   4  norm          4.3776        2.7270       -.99492E-07   -.11893E-03
   5  Prefactor     .10000E-03    2.3080        .21707E-07** at limit **
   6  Prefactor     35.896        38.156       -.63312E-05    .11339E-03
   7  Prefactor     .60595E-01    1.8869       -.20164E-06   -.77618E-04
   8  Prefactor     .10000E-03    10.597        .36098E-07** at limit **
   9  norm          1.4829        .55048        .34227E-07    .46264E-03
  10  Prefactor     .10000E-03    17.613        .10787E-05** at limit **
  11  Prefactor     .10000E-03    15.954       -.10695E-05** at limit **
  12  Prefactor     .10000E-03    4.7454        .94398E-08** at limit **
  13  Prefactor     .10000E-03    .93661       -.50687E-08** at limit **
  14  Prefactor     7.0921        19.101       -.41579E-05   -.70193E-03
  15  Prefactor     .10000E-03    6.7072        .70523E-07** at limit **
  16  norm          .10000E-03    1.7462       -.13307E-07** at limit **
  17  Prefactor     .10087E-03    1.0717       -.11455E-06** at limit **
  18  Prefactor     1.8654        1.7868        .39310E-07    .29973E-03
  19  Prefactor     3.5902        125.50       -.45877E-04    .92846E-04
  20  Prefactor     4.4374        3.0922        .38640E-06   -.17170E-04
  21  Prefactor     7.2721        22.287        .26187E-05    .32803E-03
  22  norm          .69920        .59346       -.72721E-07   -.88549E-03
  23  norm          .10000E-03    5.0256        .13231E-06** at limit **
  24  Prefactor     1.3032        1.9240       -.88299E-07   -.41539E-03
  25  Normalizat    .94564        .16743        .21406E-05    .71693E-04
  26  Prefactor     .98327        .13403       -.19368E-06    .21134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3625
  Prefactor  = 14.2866
  norm       = 18.1039
  norm       = 4.37764
  Prefactor  = 0.0001
  Prefactor  = 35.8965
  Prefactor  = 0.0605947
  Prefactor  = 0.0001
  norm       = 1.48294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.09214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100865
  Prefactor  = 1.86542
  Prefactor  = 3.59019
  Prefactor  = 4.43737
  Prefactor  = 7.27211
  norm       = 0.699199
  norm       = 0.0001
  Prefactor  = 1.30319
  Normalizat = 0.945637
  Prefactor  = 0.983274
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.972     FROM HESSE     STATUS=OK           470 CALLS     3692 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.363        12.730        .12447E-03   -1.5064    
   2  Prefactor     14.287        13.055        .10598E-03   -1.4952    
   3  norm          18.104        10.966        .94127E-04   -1.4857    
   4  norm          4.3776        2.7273        .10598E-03   -1.5289    
   5  Prefactor     .10000E-03    2.3108        .12508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.896        38.010        .66854E-04   -1.4509    
   7  Prefactor     .60595E-01    46.200        .21692E-02   -1.5659    
   8  Prefactor     .10000E-03    10.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4829        .55581        .36104E-04   -1.5464    
  10  Prefactor     .10000E-03    17.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7697        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .95599        .79642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0921        19.984        .75292E-03   -1.5175    
  15  Prefactor     .10000E-03    6.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7510        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10087E-03    3.6380        .28312E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8654        1.8039        .10760E-03   -1.5435    
  19  Prefactor     3.5902        118.06        .21203E-03   -1.5329    
  20  Prefactor     4.4374        3.0718        .11367E-03   -1.5287    
  21  Prefactor     7.2721        21.372        .14894E-03   -1.5169    
  22  norm          .69920        .56278        .56796E-03   -1.5541    
  23  norm          .10000E-03    5.0644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3032        1.8775        .13326E-03   -1.5480    
  25  Normalizat    .94564        .19407        .25960E-03   -.94875    
  26  Prefactor     .98327        .15439        .21504E-03   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24609e-08
Minuit parameter uncertainties:
  1  12.7329
  2  13.0578
  3  10.9668
  4  2.72737
  5  2.77666e-06
  6  38.0357
  7  3.34614
  8  7.10898e-06
  9  0.55581
  10  5.65333e-05
  11  1.96157e-05
  12  4.57575e-06
  13  3.06401e-07
  14  20.0024
  15  1.78351e-05
  16  1.73912e-06
  17  0.00354845
  18  1.80392
  19  41.264
  20  3.07191
  21  21.3948
  22  0.562779
  23  2.89256e-05
  24  1.87763
  25  0.194216
  26  0.154461
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.456e-01  1.942e-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: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/459054/likelihoodResults_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.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) = 7114.97653363
delta logL = -0.00497034130785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7114.97156316
delta logL = 1.33092726173e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4238       1.0000          .0000       10.000    
     3 'Normalizat'    .94564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98327       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7114.972     FROM MIGRAD    STATUS=FAILED        84 CALLS      236 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    37.798        .79879E-03** at limit **
   2  Index         2.3733        5.4354        .50000        .57673E-04
   3  Normalizat    .94564        .26675E-01    .25960E-03   -.65689E-06
   4  Prefactor     .98327        .22606E-01    .21504E-03    .29077E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7114.972     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      364 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    37.798        .15881E-03** at limit **
   2  Index         2.3733        5.4354        .23720E-03    .57673E-04
   3  Normalizat    .94564        .26675E-01    .50974E-05   -.65689E-06
   4  Prefactor     .98327        .22606E-01    .36476E-05    .29077E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7114.972     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      405 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    202.49        .15976E-03** at limit **
   2  Index         2.1530        8.4664        .50000       -.27649E-07
   3  Normalizat    .94564        .93970E-01    .10384E-04   -.32845E-05
   4  Prefactor     .98327        .79443E-01    .86017E-05    .15067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.153
  Normalizat = 0.945638
  Prefactor  = 0.983273
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.972     FROM HESSE     STATUS=OK            29 CALLS      434 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0948        .31952E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1530        7.4855        .50000       -.60578    
   3  Normalizat    .94564        .17904        .20768E-05   -.94875    
   4  Prefactor     .98327        .15181        .17203E-05   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08491e-12
Minuit parameter uncertainties:
  1  2.86493e-07
  2  63.878
  3  0.179154
  4  0.151877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459054': 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) = 7114.97156091
delta logL = 2.37888980337e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.865e-07  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.153e+00  6.388e+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:  9.833e-01  1.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.456e-01  1.792e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/459054/cmap_HighResolution_479347201_479606401_4FGL_J0824.9+3915_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-08-29 19:51:18.753788', job_id='459054', GAL2='0.98', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630291878.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='926' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 459054: <4FGL_J0824.9+3915_daily_bin926> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin926> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:35:39 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:35:40 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:35:40 2021
Terminated at Sun Aug 29 19:51:19 2021
Results reported at Sun Aug 29 19:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin926 126.236 39.2574 479347201 479606401 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 :                                   912.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

