/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 9 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin297
RA = 139.19, Dec = 38.9479
tmin = 316310401, tmax = 316569601
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='113456', job_status='RUN', time_executed='2021-08-31 06:01:34.295222', time_epoch_executed='1630414894.3' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113456/ft1_4FGL_J0916.7+3856_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113456/ft1_4FGL_J0916.7+3856_daily_bin297.fits outfile=/scratch/kocevski/113456/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin297.fits ra=139.19 dec=38.9479 rad=12.0 tmin=316310401.0 tmax=316569601.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.22
user 3.25
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.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/113456/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin297.fits evtable="EVENTS" outfile="/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.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.94
user 0.33
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/113456/ltcube_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.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/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits
.....................!
real 12.88
user 12.06
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/113456/ltcube_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits outfile=/scratch/kocevski/113456/expmap_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.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/113456/ltcube_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits
.....................!
real 191.62
user 185.86
sys 4.90

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/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits outfile=/scratch/kocevski/113456/cmap_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.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 0.89
user 0.37
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits outfile=/scratch/kocevski/113456/cmap_HighResolution_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.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.88
user 0.38
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113456/Model_4FGL_J0916.7+3856_daily_bin297.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/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits.....................!
real 49.96
user 47.70
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits', '/scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits', expMap='/scratch/kocevski/113456/expmap_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits', expCube='/scratch/kocevski/113456/ltcube_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113456/Model_4FGL_J0916.7+3856_daily_bin297.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/113456/ft1_filtered_4FGL_J0916.7+3856_daily_bin297.fits
Spacecraft file(s): /scratch/kocevski/113456/ft2_4FGL_J0916.7+3856_daily_bin297.fits
Exposure map: /scratch/kocevski/113456/expmap_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits
Exposure cube: /scratch/kocevski/113456/ltcube_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113456/Model_4FGL_J0916.7+3856_daily_bin297.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) = 5731.66183766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8976       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0109       1.0000         .10000E-03   10000.    
    13 'norm      '    .92256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.842       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4415       1.0000         .10000E-03   10000.    
    17 'norm      '    .11397E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1590       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.203       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0937       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1725       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8833       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    64.018       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80255       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0800       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=   5731.650     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4337 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8013        .78034        .28393E-07    .15502E-04
   2  Prefactor     .10000E-03    35.106        .74193E-06** at limit **
   3  Prefactor     1.8975        3.1372        .29908E-06   -.35595E-04
   4  Prefactor     .10000E-03    10.762       -.48124E-07** at limit **
   5  Prefactor     .10000E-03    3.4783       -.29749E-07** at limit **
   6  norm          .10000E-03    1.2668       -.64454E-08** at limit **
   7  Prefactor     3.9790        2.5214        .16045E-06   -.52089E-03
   8  Prefactor     30.668        30.348        .81916E-06    .10707E-03
   9  Prefactor     .10000E-03    14.540        .40943E-07** at limit **
  10  Prefactor     5.6960        4.3756        .10032E-06   -.60911E-04
  11  Prefactor     .10000E-03    45.743        .19454E-06** at limit **
  12  Prefactor     1.0106        2.5849        .89694E-06    .36053E-03
  13  norm          .92303        2.0505        .10514E-06    .23983E-04
  14  Prefactor     21.812        22.396       -.26795E-05    .99359E-04
  15  norm          .10000E-03    .25745        .34130E-07** at limit **
  16  Prefactor     4.4497        3.0556       -.73281E-07   -.12946E-02
  17  norm          .10026E-03    7.6007        .14398E-05** at limit **
  18  Prefactor     2.1588        1.6861       -.15355E-06   -.67009E-03
  19  Prefactor     .10001E-03    3.1696       -.10083E-06** at limit **
  20  Prefactor     10.201        8.8797       -.23720E-06   -.52483E-04
  21  Prefactor     2.0935        26.977        .56340E-05   -.17402E-03
  22  norm          8.1747        14.939       -.21659E-06   -.73078E-04
  23  Prefactor     2.8717        29.488        .75459E-06    .44904E-04
  24  Prefactor     .10000E-03    9.1933        .70587E-08** at limit **
  25  Prefactor     .10000E-03    4.6420       -.62696E-07** at limit **
  26  norm          .10000E-03    4.2363       -.10314E-07** at limit **
  27  Prefactor     64.033        40.447        .29051E-06   -.55382E-04
  28  Normalizat    .80303        .18183       -.24387E-05   -.36214E-03
  29  Prefactor     1.0795        .18210        .86728E-06   -.36676E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80128
  Prefactor  = 0.000100001
  Prefactor  = 1.89753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.97897
  Prefactor  = 30.6683
  Prefactor  = 0.0001
  Prefactor  = 5.69603
  Prefactor  = 0.000100002
  Prefactor  = 1.01057
  norm       = 0.923027
  Prefactor  = 21.8118
  norm       = 0.0001
  Prefactor  = 4.44973
  norm       = 0.000100259
  Prefactor  = 2.15876
  Prefactor  = 0.000100006
  Prefactor  = 10.2008
  Prefactor  = 2.0935
  norm       = 8.17472
  Prefactor  = 2.87173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.0326
  Normalizat = 0.803028
  Prefactor  = 1.07951
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.650     FROM HESSE     STATUS=OK           567 CALLS     4904 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8013        .77524        .42193E-04   -1.5440    
   2  Prefactor     .10000E-03    35.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8975        3.0968        .16107E-03   -1.5432    
   4  Prefactor     .10000E-03    10.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4887        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2680        .83216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9790        2.5128        .45680E-03   -1.5309    
   8  Prefactor     30.668        29.872        .72339E-04   -1.4600    
   9  Prefactor     .10000E-03    14.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6960        4.3694        .13261E-03   -1.5231    
  11  Prefactor     .10000E-03    46.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0106        2.4358        .18006E-02   -1.5507    
  13  norm          .92303        1.8256        .14701E-02   -1.5516    
  14  Prefactor     21.812        25.559        .85704E-04   -1.4774    
  15  norm          .10000E-03    .41835        .66914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4497        2.8068        .46853E-03   -1.5286    
  17  norm          .10026E-03    11.713        .55159E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1588        1.6844        .82952E-04   -1.5414    
  19  Prefactor     .10001E-03    20.166        .24285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.201        8.8924        .12544E-03   -1.5069    
  21  Prefactor     2.0935        27.353        .14264E-02   -1.5419    
  22  norm          8.1747        14.756        .14024E-03   -1.5136    
  23  Prefactor     2.8717        28.802        .23935E-03   -1.5369    
  24  Prefactor     .10000E-03    9.1977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.6591        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.2422        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     64.033        40.538        .50155E-04   -1.4106    
  28  Normalizat    .80303        .20700        .25881E-03   -.99956    
  29  Prefactor     1.0795        .21088        .24353E-03   -.90124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47436e-09
Minuit parameter uncertainties:
  1  0.775247
  2  0.000421836
  3  3.0971
  4  4.85555e-06
  5  1.76307e-07
  6  7.98235e-08
  7  2.51284
  8  29.8862
  9  1.93902e-05
  10  4.36963
  11  0.00055473
  12  2.43606
  13  1.82569
  14  25.5719
  15  3.63779e-06
  16  2.80685
  17  0.00348364
  18  1.6844
  19  0.000667238
  20  8.89358
  21  15.1427
  22  14.7621
  23  18.2003
  24  7.25045e-06
  25  3.41677e-06
  26  1.83251e-06
  27  40.5559
  28  0.2072
  29  0.211043
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.181e+01  2.557e+01  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.080e+00  2.110e-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.030e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.41e-05

TS (Fixed Index): 1.32
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113456/likelihoodResults_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5731.11418987
delta logL = 0.53561316193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5731.08573271
delta logL = 0.564070324494

Fit tolerance = 1e-08

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

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

 FCN=   5731.086     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3876        61.594        .48012E-02    .34068E-03
   2  Index         3.7037        3.0106        .13201        .12940E-03
   3  Normalizat    .75605        .54026E-01    .43034E-01    .18806E-04
   4  Prefactor     1.1179        .57148E-01    .54247E-01    .36081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38763
  Index      = 3.70369
  Normalizat = 0.756049
  Prefactor  = 1.11785
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.086     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3876        114.57        .11004E-03   -1.5289    
   2  Index         3.7037        6.8202        .47078E-02   -.26226    
   3  Normalizat    .75605        .19214        .26582E-03   -1.0172    
   4  Prefactor     1.1179        .20767        .23985E-03   -.88898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.63574e-10
Minuit parameter uncertainties:
  1  44.9374
  2  5.54973
  3  0.192312
  4  0.207816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113456': 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) = 5731.08573226
delta logL = 0.564070771966

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  4.388e+00  4.494e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.704e+00  5.550e+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.118e+00  2.078e-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:  7.560e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 139.190 38.948
Photon Index (Free Index): 3.70 +/- 5.55
Photon Flux (Free Index): 7.22e-08 +/- 5.75e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.32e-05

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/113456/cmap_HighResolution_316310401_316569601_4FGL_J0916.7+3856_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.14e-05', photon_flux_error='4.61e-08', dlogl='5.64e-01', energy_flux='1.20e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-08-31 06:16:33.073659', photon_index_error2='5.55', photon_index2='3.70', ts='1.32', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.32e-05', EG='0.80', time_epoch_completed='1630415793.07', return_code='0', job_id='113456', GAL2='1.12', EG2='0.76', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='5.75e-08', ts2='2.56', photon_index='2.46' WHERE bin_id='297' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 113456: <4FGL_J0916.7+3856_daily_bin297> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin297> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:00:52 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:00:54 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:00:54 2021
Terminated at Tue Aug 31 06:16:33 2021
Results reported at Tue Aug 31 06:16:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin297 139.19 38.9479 316310401 316569601 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 :                                   897.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

