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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin922
RA = 139.19, Dec = 38.9479
tmin = 478310401, tmax = 478569601
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='116622', job_status='RUN', time_executed='2021-08-31 06:12:48.089469', time_epoch_executed='1630415568.09' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116622/ft1_4FGL_J0916.7+3856_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116622/ft1_4FGL_J0916.7+3856_daily_bin922.fits outfile=/scratch/kocevski/116622/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin922.fits ra=139.19 dec=38.9479 rad=12.0 tmin=478310401.0 tmax=478569601.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.04
user 3.28
sys 0.64

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.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/116622/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin922.fits evtable="EVENTS" outfile="/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.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 0.90
user 0.31
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/116622/ltcube_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.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/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits
.....................!
real 12.51
user 11.64
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/116622/ltcube_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits outfile=/scratch/kocevski/116622/expmap_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.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/116622/ltcube_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits
.....................!
real 192.31
user 186.24
sys 5.66

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

Setting source of interest to:
4FGL J0916.7+3856 @ 139.19 38.9479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits outfile=/scratch/kocevski/116622/cmap_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.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=139.19 yref=38.9479 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.04
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits outfile=/scratch/kocevski/116622/cmap_HighResolution_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.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=139.19 yref=38.9479 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.99
user 0.38
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116622/Model_4FGL_J0916.7+3856_daily_bin922.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/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits.....................!
real 51.47
user 49.09
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits', '/scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits', expMap='/scratch/kocevski/116622/expmap_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits', expCube='/scratch/kocevski/116622/ltcube_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/116622/Model_4FGL_J0916.7+3856_daily_bin922.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0916.7+3856'

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  7.215e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/116622/ft1_filtered_4FGL_J0916.7+3856_daily_bin922.fits
Spacecraft file(s): /scratch/kocevski/116622/ft2_4FGL_J0916.7+3856_daily_bin922.fits
Exposure map: /scratch/kocevski/116622/expmap_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits
Exposure cube: /scratch/kocevski/116622/ltcube_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/116622/Model_4FGL_J0916.7+3856_daily_bin922.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) = 5810.71570875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7322       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2564       1.0000         .10000E-03   10000.    
     6 'norm      '    9.5729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7129       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4600       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .79038E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1838       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16382E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.338       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82723       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5810.713     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3682 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7322        .68587       -.24307E-08   -.17449E-04
   2  Prefactor     .10000E-03    11.690        .32165E-06** at limit **
   3  Prefactor     1.0958        2.8230        .34014E-06   -.29131E-03
   4  Prefactor     21.191        19.748        .26400E-06    .41860E-04
   5  Prefactor     3.2563        6.4704        .13069E-06   -.60935E-04
   6  norm          9.5733        5.2213        .19284E-07    .11867E-03
   7  Prefactor     .10000E-03    .93602        .24835E-07** at limit **
   8  Prefactor     2.7150        16.422        .60581E-05   -.49288E-03
   9  Prefactor     39.510        45.831       -.73905E-06   -.35161E-04
  10  Prefactor     4.4603        3.4195        .24232E-07    .49928E-04
  11  Prefactor     10.586        41.110        .16737E-04    .29569E-03
  12  Prefactor     .72378E-01    1.6524       -.10697E-05    .96181E-03
  13  norm          3.1842        2.0400       -.30061E-07   -.76071E-04
  14  Prefactor     .10000E-03    26.446        .93402E-08** at limit **
  15  norm          .82304        .39090        .13062E-07    .82046E-03
  16  Prefactor     .10000E-03    1.7329        .44059E-07** at limit **
  17  norm          .10000E-03    5.9358        .14849E-06** at limit **
  18  Prefactor     4.6904        2.7245       -.69504E-07    .10080E-02
  19  Prefactor     .10000E-03    1.2438       -.24564E-07** at limit **
  20  Prefactor     .10000E-03    3.9970        .87152E-07** at limit **
  21  Prefactor     .10000E-03    9.2805       -.22732E-06** at limit **
  22  norm          .10000E-03    3.6641       -.28749E-07** at limit **
  23  Prefactor     .10000E-03    4.9589       -.83558E-07** at limit **
  24  Prefactor     .10000E-03    57.632        .57998E-06** at limit **
  25  Prefactor     .10000E-03    2.9425        .20352E-07** at limit **
  26  norm          1.2948        16.649        .10942E-05   -.12510E-03
  27  Prefactor     12.330        25.396       -.32337E-05   -.15260E-03
  28  Normalizat    .82719        .16424       -.55982E-06    .24016E-03
  29  Prefactor     1.0141        .17705       -.54494E-06    .16891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73223
  Prefactor  = 0.0001
  Prefactor  = 1.09581
  Prefactor  = 21.191
  Prefactor  = 3.25627
  norm       = 9.57327
  Prefactor  = 0.0001
  Prefactor  = 2.71503
  Prefactor  = 39.5104
  Prefactor  = 4.46034
  Prefactor  = 10.5859
  Prefactor  = 0.0723781
  norm       = 3.18422
  Prefactor  = 0.000100001
  norm       = 0.823038
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.69043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29481
  Prefactor  = 12.3304
  Normalizat = 0.827186
  Prefactor  = 1.01409
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.713     FROM HESSE     STATUS=OK           555 CALLS     4237 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7322        .68702        .38321E-04   -1.5445    
   2  Prefactor     .10000E-03    11.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0958        2.8269        .19439E-03   -1.5499    
   4  Prefactor     21.191        19.712        .87015E-04   -1.4787    
   5  Prefactor     3.2563        6.4538        .22443E-03   -1.5347    
   6  norm          9.5733        5.2211        .62512E-03   -1.5089    
   7  Prefactor     .10000E-03    .95612        .71967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7150        31.273        .12364E-02   -1.5378    
   9  Prefactor     39.510        45.865        .63766E-04   -1.4450    
  10  Prefactor     4.4603        3.4195        .11905E-03   -1.5286    
  11  Prefactor     10.586        43.281        .12323E-03   -1.5057    
  12  Prefactor     .72378E-01    19.160        .16975E-02   -1.5654    
  13  norm          3.1842        2.0380        .84092E-04   -1.5351    
  14  Prefactor     .10000E-03    26.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82304        .38571        .31269E-04   -1.5527    
  16  Prefactor     .10000E-03    1.7845        .19401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9882        .18115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6904        2.7150        .86846E-04   -1.5275    
  19  Prefactor     .10000E-03    1.2488        .82998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0231        .14883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.6650        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9608        .16578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    58.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.9520        .12770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2948        17.321        .38880E-03   -1.5480    
  27  Prefactor     12.330        25.621        .11404E-03   -1.5006    
  28  Normalizat    .82719        .19046        .23974E-03   -.99068    
  29  Prefactor     1.0141        .20539        .24134E-03   -.92261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07098e-08
Minuit parameter uncertainties:
  1  0.687025
  2  2.42326e-05
  3  2.82722
  4  19.7177
  5  6.45518
  6  5.22131
  7  2.34539e-06
  8  18.4408
  9  45.9062
  10  3.41961
  11  42.8631
  12  2.35434
  13  2.03803
  14  0.000382544
  15  0.385711
  16  6.84579e-06
  17  2.26863e-05
  18  2.71509
  19  2.61165e-07
  20  6.06815e-06
  21  1.08864e-05
  22  6.75105e-07
  23  2.0654e-06
  24  0.000196901
  25  2.11554e-06
  26  9.47463
  27  25.6439
  28  0.190613
  29  0.205545
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.825e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.014e+00  2.055e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  8.272e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116622/likelihoodResults_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.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) = 5810.71334483
delta logL = -0.00017860272601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5810.71316668
delta logL = -4.61090166937e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3754       1.0000          .0000       10.000    
     3 'Normalizat'    .82719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+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=   5810.713     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2115.4        .18142E-02** at limit **
   2  Index         2.4301        8.0583        .50000       -.24375E-04
   3  Normalizat    .82718        .43098E-01    .23974E-03    .34617E-05
   4  Prefactor     1.0141        .47836E-01    .24134E-03   -.40982E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.43014
  Normalizat = 0.827185
  Prefactor  = 1.01409
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.713     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    122.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4301        5.4195        .50000       -.53981    
   3  Normalizat    .82718        .18075        .95898E-05   -.99068    
   4  Prefactor     1.0141        .20066        .96537E-05   -.92261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98998e-10
Minuit parameter uncertainties:
  1  0.0025264
  2  9.64293
  3  0.180882
  4  0.200812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116622': 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) = 5810.71316638
delta logL = -1.55894667841e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.526e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.430e+00  9.643e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.014e+00  2.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  8.272e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 139.190 38.948

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/116622/cmap_HighResolution_478310401_478569601_4FGL_J0916.7+3856_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-08-31 06:26:59.452714', job_id='116622', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630416419.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='922' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 116622: <4FGL_J0916.7+3856_daily_bin922> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin922> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 06:10:42 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:10:43 2021
Terminated at Tue Aug 31 06:27:00 2021
Results reported at Tue Aug 31 06:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin922 139.19 38.9479 478310401 478569601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0916.7+3856 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

