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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin581
RA = 139.19, Dec = 38.9479
tmin = 389923201, tmax = 390182401
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='113873', job_status='RUN', time_executed='2021-08-31 06:02:00.410157', time_epoch_executed='1630414920.41' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113873/ft1_4FGL_J0916.7+3856_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113873/ft1_4FGL_J0916.7+3856_daily_bin581.fits outfile=/scratch/kocevski/113873/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin581.fits ra=139.19 dec=38.9479 rad=12.0 tmin=389923201.0 tmax=390182401.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 3.82
user 3.31
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/113873/ltcube_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.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/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits
.....................!
real 12.17
user 11.46
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/113873/ltcube_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.fits outfile=/scratch/kocevski/113873/expmap_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.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/113873/ltcube_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.fits
.....................!
real 191.55
user 185.98
sys 4.91

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/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits scfile=/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits outfile=/scratch/kocevski/113873/cmap_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.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.81
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits scfile=/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits outfile=/scratch/kocevski/113873/cmap_HighResolution_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.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.80
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/113873/ft2_4FGL_J0916.7+3856_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113873/Model_4FGL_J0916.7+3856_daily_bin581.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/113873/ft1_filtered_4FGL_J0916.7+3856_daily_bin581.fits.....................!
real 52.29
user 50.11
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55342       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4713       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1526       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8646       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8922       1.0000         .10000E-03   10000.    
    15 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24524E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0526       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12198E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.218       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.146       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4059       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64837       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=   5486.224     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3796 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55392        .75032        .10321E-06    .38417E-03
   2  Prefactor     .10000E-03    6.3181       -.66224E-07** at limit **
   3  Prefactor     .27531        2.4276       -.84104E-06    .44028E-03
   4  Prefactor     85.629        43.378       -.12965E-06    .83993E-04
   5  Prefactor     .10000E-03    12.925       -.72158E-07** at limit **
   6  norm          6.4702        5.8347        .28806E-07   -.19733E-04
   7  Prefactor     3.2683        3.3198        .29873E-06   -.11050E-04
   8  Prefactor     7.8967        21.229        .12889E-05    .14733E-03
   9  Prefactor     .10000E-03    24.105        .45235E-07** at limit **
  10  Prefactor     .10000E-03    4.0764       -.65558E-08** at limit **
  11  Prefactor     .10000E-03    37.891        .59814E-06** at limit **
  12  Prefactor     7.1505        4.0246        .76673E-07   -.22770E-03
  13  norm          1.8639        1.5681        .31695E-08   -.18190E-03
  14  Prefactor     3.8881        21.847       -.41320E-05   -.72382E-04
  15  norm          .10000E-03    .18297       -.21934E-07** at limit **
  16  Prefactor     .10000E-03    1.5455       -.34519E-07** at limit **
  17  norm          1.0573        10.012        .60335E-05    .11322E-04
  18  Prefactor     .10000E-03    .59311       -.37212E-07** at limit **
  19  Prefactor     .10002E-03    2.6727        .56445E-06** at limit **
  20  Prefactor     .10000E-03    5.6122       -.58208E-08** at limit **
  21  Prefactor     .10000E-03    10.368       -.10112E-06** at limit **
  22  norm          .10000E-03    4.1365       -.15154E-07** at limit **
  23  Prefactor     .10000E-03    11.849        .93949E-07** at limit **
  24  Prefactor     .10000E-03    11.020        .15498E-06** at limit **
  25  Prefactor     .10000E-03    3.3901       -.24116E-07** at limit **
  26  norm          12.199        15.787        .73955E-06    .19632E-03
  27  Prefactor     23.273        45.111        .13346E-05    .39153E-04
  28  Normalizat    1.4058        .19922       -.21421E-05   -.19357E-04
  29  Prefactor     .64816        .19161        .16680E-05   -.13494E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.55392
  Prefactor  = 0.0001
  Prefactor  = 0.275308
  Prefactor  = 85.6293
  Prefactor  = 0.0001
  norm       = 6.47019
  Prefactor  = 3.26829
  Prefactor  = 7.89668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.15049
  norm       = 1.86391
  Prefactor  = 3.88809
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.05731
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1987
  Prefactor  = 23.2733
  Normalizat = 1.40581
  Prefactor  = 0.648156
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.224     FROM HESSE     STATUS=OK           557 CALLS     4353 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55392        .71070        .69504E-03   -1.5559    
   2  Prefactor     .10000E-03    6.3240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27531        4.5055        .20718E-02   -1.5603    
   4  Prefactor     85.629        42.734        .43418E-04   -1.3855    
   5  Prefactor     .10000E-03    12.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4702        5.8287        .15777E-03   -1.5199    
   7  Prefactor     3.2683        3.2786        .12618E-03   -1.5346    
   8  Prefactor     7.8967        21.136        .14262E-03   -1.5146    
   9  Prefactor     .10000E-03    24.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2671        .29177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1505        3.9976        .10392E-03   -1.5173    
  13  norm          1.8639        1.5665        .82206E-04   -1.5435    
  14  Prefactor     3.8881        22.025        .20452E-03   -1.5314    
  15  norm          .10000E-03    .25490        .59560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3926        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0573        10.374        .42123E-03   -1.5502    
  18  Prefactor     .10000E-03    .59412        .55666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    20.446        .22583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6743        .17136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1374        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3941        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.199        15.788        .11460E-03   -1.5009    
  27  Prefactor     23.273        45.289        .83257E-04   -1.4743    
  28  Normalizat    1.4058        .22383        .21589E-03   -.80461    
  29  Prefactor     .64816        .21765        .31273E-03   -1.0560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32924e-09
Minuit parameter uncertainties:
  1  0.71071
  2  1.0843e-05
  3  2.22726
  4  42.7493
  5  4.5611e-05
  6  5.82922
  7  3.27874
  8  21.1564
  9  3.52309e-05
  10  7.5944e-06
  11  3.7831e-05
  12  3.99772
  13  1.56649
  14  18.518
  15  1.64993e-06
  16  0.000118834
  17  6.62508
  18  8.46899e-07
  19  0.00133343
  20  5.82284e-06
  21  3.2937e-05
  22  1.55585e-06
  23  3.62656e-05
  24  5.16701e-05
  25  2.28106e-06
  26  15.7936
  27  45.3562
  28  0.223983
  29  0.217933
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.888e+00  1.852e+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:  6.482e-01  2.179e-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:  1.406e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/113873/likelihoodResults_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.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) = 5486.17075408
delta logL = 0.0528413944003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5486.16784373
delta logL = 0.05575174359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0772       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0919       1.0000          .0000       10.000    
     3 'Normalizat'    1.3952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65437       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5486.168     FROM MIGRAD    STATUS=FAILED       101 CALLS      267 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0675        41.151        .11561E-02    .29498E-03
   2  Index         3.0976        3.3627        .11793E-01    .22828E-03
   3  Normalizat    1.3955        .21243        .21653E-03   -.20120E-04
   4  Prefactor     .65409        .21539        .31140E-03   -.17853E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5486.168     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      344 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0675        41.151        .28940E-03   -1.5358    
   2  Index         3.0976        3.3627        .12863E-02   -.39031    
   3  Normalizat    1.3955        .21243        .16931E-03   -.80758    
   4  Prefactor     .65409        .21539        .35799E-03   -1.0535    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5486.168     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      378 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0675        13.130        .23122E-03   -.18782E-04
   2  Index         3.0976        2.0528        .23587E-02   -.40343E-05
   3  Normalizat    1.3955        .21272        .43306E-04   -.20109E-04
   4  Prefactor     .65409        .21527        .12456E-04   -.17889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06753
  Index      = 3.09761
  Normalizat = 1.39554
  Prefactor  = 0.65409
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.168     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0675        11.906        .92489E-05   -1.5358    
   2  Index         3.0976        1.9341        .94346E-04   -.39031    
   3  Normalizat    1.3955        .21260        .86612E-05   -.80758    
   4  Prefactor     .65409        .21507        .24912E-05   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99833e-12
Minuit parameter uncertainties:
  1  11.9151
  2  1.99549
  3  0.212735
  4  0.21534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113873': 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) = 5486.16783545
delta logL = 0.0557600231032

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.068e+00  1.192e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.098e+00  1.995e+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:  6.541e-01  2.153e-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:  1.396e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/113873/cmap_HighResolution_389923201_390182401_4FGL_J0916.7+3856_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-08-31 06:15:59.436939', job_id='113873', GAL2='0.65', fit_tolerance='1e-08', EG2='1.40', EG='1.41', time_epoch_completed='1630415759.44', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.58e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='581' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 113873: <4FGL_J0916.7+3856_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin581 139.19 38.9479 389923201 390182401 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 :                                   832.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

