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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1151
RA = 120.246, Dec = 44.0181
tmin = 537667201, tmax = 537926401
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='45969', job_status='RUN', time_executed='2021-08-28 21:30:43.193287', time_epoch_executed='1630211443.19' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45969/ft1_4FGL_J0800.9+4401_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45969/ft1_4FGL_J0800.9+4401_daily_bin1151.fits outfile=/scratch/kocevski/45969/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1151.fits ra=120.246 dec=44.0181 rad=12.0 tmin=537667201.0 tmax=537926401.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 5.59
user 4.67
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.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/45969/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1151.fits evtable="EVENTS" outfile="/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.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.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/45969/ltcube_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.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/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits
.....................!
real 12.92
user 11.86
sys 0.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/45969/ltcube_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits outfile=/scratch/kocevski/45969/expmap_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.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/45969/ltcube_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits
.....................!
real 191.11
user 185.14
sys 5.31

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 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits outfile=/scratch/kocevski/45969/cmap_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.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=120.246 yref=44.0181 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.05
user 0.36
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits outfile=/scratch/kocevski/45969/cmap_HighResolution_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.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=120.246 yref=44.0181 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.08
user 0.35
sys 0.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45969/Model_4FGL_J0800.9+4401_daily_bin1151.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/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits.....................!
real 67.98
user 65.85
sys 1.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits', '/scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits', expMap='/scratch/kocevski/45969/expmap_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits', expCube='/scratch/kocevski/45969/ltcube_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/45969/Model_4FGL_J0800.9+4401_daily_bin1151.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/45969/ft1_filtered_4FGL_J0800.9+4401_daily_bin1151.fits
Spacecraft file(s): /scratch/kocevski/45969/ft2_4FGL_J0800.9+4401_daily_bin1151.fits
Exposure map: /scratch/kocevski/45969/expmap_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits
Exposure cube: /scratch/kocevski/45969/ltcube_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/45969/Model_4FGL_J0800.9+4401_daily_bin1151.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) = 6672.73243975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5623       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1183       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8231       1.0000         .10000E-03   10000.    
     5 'norm      '    23.199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49026E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .70906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.167       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3762       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1528       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5447       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2611       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.968       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.954       1.0000         .10000E-03   10000.    
    24 'norm      '    6.1282       1.0000         .10000E-03   10000.    
    25 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5111       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6672.728     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2934 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5618        5.0992       -.11134E-04   -.50083E-03
   2  norm          2.1165        3.6386       -.12888E-05   -.83715E-03
   3  Prefactor     .10000E-03    8.9660        .26954E-05** at limit **
   4  Prefactor     1.8446        12.913        .47627E-04   -.11796E-02
   5  norm          23.197        3.7846       -.60521E-05   -.38267E-02
   6  Prefactor     .10000E-03    6.7303       -.22305E-05** at limit **
   7  Prefactor     .19055E-03    898.23       -.73025E-04** at limit **
   8  norm          .70932        .60579       -.38518E-06   -.20738E-02
   9  Prefactor     .10000E-03    14.610        .30284E-05** at limit **
  10  Prefactor     18.182        6.1046        .50094E-05   -.32971E-02
  11  norm          4.4267        14.278       -.21747E-04    .94451E-03
  12  norm          .10000E-03    .88858        .51582E-06** at limit **
  13  Prefactor     .10000E-03    3.1485       -.27589E-06** at limit **
  14  Prefactor     41.580        16.625        .30809E-06    .89510E-02
  15  Prefactor     .10000E-03    2.5995        .19006E-06** at limit **
  16  norm          3.1530        3.1153       -.44005E-07   -.63077E-05
  17  norm          2.5449        1.6607        .21009E-07    .91105E-04
  18  norm          2.1597        .75480       -.31092E-06   -.14964E-02
  19  Prefactor     5.1132        4.7441        .15697E-04    .33790E-02
  20  Prefactor     1.2596        2.2144       -.15445E-05   -.74057E-03
  21  Prefactor     35.948        3.1288        .13807E-05   -.36844E-02
  22  Prefactor     .10000E-03    5.8539        .12712E-05** at limit **
  23  Prefactor     16.948        3.7854       -.67738E-05   -.57653E-02
  24  norm          6.1275        1.1897        .12917E-05    .16404E-02
  25  norm          .10000E-03    10.603       -.20266E-05** at limit **
  26  Prefactor     2.5116        3.4867        .20638E-06    .94721E-04
  27  Normalizat    1.1320        .21945       -.18171E-05   -.58605E-04
  28  Prefactor     .83292        .14735        .70137E-06    .18578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56184
  norm       = 2.1165
  Prefactor  = 0.000100003
  Prefactor  = 1.84457
  norm       = 23.1966
  Prefactor  = 0.000100001
  Prefactor  = 0.00019055
  norm       = 0.709325
  Prefactor  = 0.000100003
  Prefactor  = 18.182
  norm       = 4.42673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5801
  Prefactor  = 0.0001
  norm       = 3.15299
  norm       = 2.54488
  norm       = 2.15966
  Prefactor  = 5.11318
  Prefactor  = 1.25958
  Prefactor  = 35.9478
  Prefactor  = 0.0001
  Prefactor  = 16.9481
  norm       = 6.12754
  norm       = 0.000100001
  Prefactor  = 2.51158
  Normalizat = 1.13195
  Prefactor  = 0.832924
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.728     FROM HESSE     STATUS=OK           601 CALLS     3535 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5618        5.1273        .53534E-02   -1.5330    
   2  norm          2.1165        3.6894        .70846E-02   -1.5417    
   3  Prefactor     .10000E-03    8.7547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8446        25.807        .77306E-02   -1.5436    
   5  norm          23.197        10.569        .20791E-02   -1.4744    
   6  Prefactor     .10000E-03    6.6585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19055E-03    33.815        .11986       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70932        .60445        .12097E-01   -1.5540    
   9  Prefactor     .10000E-03    14.061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.182        13.975        .23492E-02   -1.4855    
  11  norm          4.4267        15.379        .48133E-02   -1.5287    
  12  norm          .10000E-03    .88164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.580        51.545        .15563E-02   -1.4417    
  15  Prefactor     .10000E-03    2.5709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1530        3.1172        .57069E-02   -1.5353    
  17  norm          2.5449        1.6595        .63998E-02   -1.5389    
  18  norm          2.1597        .77273        .70071E-02   -1.5414    
  19  Prefactor     5.1132        10.332        .44489E-02   -1.5256    
  20  Prefactor     1.2596        2.3056        .99285E-02   -1.5484    
  21  Prefactor     35.948        36.136        .16706E-02   -1.4508    
  22  Prefactor     .10000E-03    5.8413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.948        9.8810        .24318E-02   -1.4884    
  24  norm          6.1275        6.4557        .40544E-02   -1.5213    
  25  norm          .10000E-03    3.0360        .51244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5116        3.5651        .64461E-02   -1.5391    
  27  Normalizat    1.1320        .20078        .62790E-01   -.88732    
  28  Prefactor     .83292        .12990        .44146E-01   -.98526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09454e-07
Minuit parameter uncertainties:
  1  5.12792
  2  3.68981
  3  0.00031935
  4  13.8057
  5  10.5698
  6  0.000144741
  7  0.110731
  8  0.604455
  9  0.000400552
  10  13.9777
  11  15.3927
  12  2.646e-05
  13  3.82956e-05
  14  51.6005
  15  1.04789e-05
  16  3.11736
  17  1.65958
  18  0.772738
  19  10.3358
  20  2.30579
  21  36.1583
  22  4.16431e-05
  23  9.88192
  24  6.45641
  25  0.000107399
  26  3.56536
  27  0.200915
  28  0.129946
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.830e-05  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.329e-01  1.299e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.132e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45969/likelihoodResults_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.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) = 6672.72910418
delta logL = -0.00150645989834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6672.72759753
delta logL = 1.83607880899e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1527       1.0000          .0000       10.000    
     3 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   6672.728     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    2.1506        .14351E-01** at limit **
   2  Index         2.0188        8.1919        .50000        .35926E-04
   3  Normalizat    1.1320        .38480E-02    .27774E-03   -.26770E-04
   4  Prefactor     .83292        .26700E-02    .21986E-03   -.49279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103494
  Index      = 2.01881
  Normalizat = 1.13195
  Prefactor  = 0.832923
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.728     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    79.007        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0188        5.1145        .50000       -.63881    
   3  Normalizat    1.1320        .23857E-01    .11109E-04   -.88732    
   4  Prefactor     .83292        .16553E-01    .87943E-05   -.98526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20425e-08
Minuit parameter uncertainties:
  1  0.0332718
  2  537.346
  3  0.0238577
  4  0.0165533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45969': 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): 102
logL (Free Index) = 6672.72759659
delta logL = 1.13129317469e-06

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.035e-04  3.327e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.019e+00  5.373e+02  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.329e-01  1.655e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.132e+00  2.386e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.246 44.018

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/45969/cmap_HighResolution_537667201_537926401_4FGL_J0800.9+4401_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-08-28 21:45:23.085498', job_id='45969', GAL2='0.83', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630212323.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1151' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 45969: <4FGL_J0800.9+4401_daily_bin1151> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1151> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 21:30:23 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 21:30:25 2021
Terminated at Sat Aug 28 21:45:23 2021
Results reported at Sat Aug 28 21:45:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1151 120.246 44.0181 537667201 537926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

