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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin237
RA = 139.19, Dec = 38.9479
tmin = 300758401, tmax = 301017601
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='112657', job_status='RUN', time_executed='2021-08-31 05:58:04.977535', time_epoch_executed='1630414684.98' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112657/ft1_4FGL_J0916.7+3856_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112657/ft1_4FGL_J0916.7+3856_daily_bin237.fits outfile=/scratch/kocevski/112657/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin237.fits ra=139.19 dec=38.9479 rad=12.0 tmin=300758401.0 tmax=301017601.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.55
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.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/112657/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin237.fits evtable="EVENTS" outfile="/scratch/kocevski/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.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.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/112657/ltcube_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.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/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits
.....................!
real 11.72
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/112657/ltcube_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.fits outfile=/scratch/kocevski/112657/expmap_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.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/112657/ltcube_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.fits
.....................!
real 189.82
user 185.17
sys 4.18

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/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits outfile=/scratch/kocevski/112657/cmap_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits outfile=/scratch/kocevski/112657/cmap_HighResolution_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/112657/ft2_4FGL_J0916.7+3856_daily_bin237.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112657/Model_4FGL_J0916.7+3856_daily_bin237.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/112657/ft1_filtered_4FGL_J0916.7+3856_daily_bin237.fits.....................!
real 45.24
user 43.80
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60501E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0734       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.235       1.0000         .10000E-03   10000.    
    22 'norm      '    .13573E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.735       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9397       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9833       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65676       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2669       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=   5161.928     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3802 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58048        .56815       -.11312E-06   -.32898E-03
   2  Prefactor     .10000E-03    5.7105       -.12227E-05** at limit **
   3  Prefactor     .10062E-03    1.3824       -.81697E-06** at limit **
   4  Prefactor     .10000E-03    42.137        .13054E-04** at limit **
   5  Prefactor     .10000E-03    5.5199        .20437E-05** at limit **
   6  norm          16.489        9.9100        .25271E-05   -.16475E-03
   7  Prefactor     .38892        2.5770        .20709E-05   -.71276E-03
   8  Prefactor     .10000E-03    11.066        .85092E-05** at limit **
   9  Prefactor     47.658        72.952       -.90685E-04   -.25720E-04
  10  Prefactor     .10000E-03    2.3558       -.11430E-06** at limit **
  11  Prefactor     .10000E-03    11.886        .57239E-05** at limit **
  12  Prefactor     1.0734        2.0433       -.25418E-06   -.68916E-03
  13  norm          .10000E-03    .86789       -.17491E-06** at limit **
  14  Prefactor     .10000E-03    13.346       -.10965E-04** at limit **
  15  norm          1.2820        .53836       -.18377E-07   -.13335E-02
  16  Prefactor     .10000E-03    1.4410        .33107E-06** at limit **
  17  norm          2.2814        5.9119       -.13131E-05   -.39694E-03
  18  Prefactor     .10000E-03    .68244       -.59533E-07** at limit **
  19  Prefactor     2.8082        3.9186        .19414E-05   -.51284E-03
  20  Prefactor     .10000E-03    4.4642       -.15576E-05** at limit **
  21  Prefactor     20.233        23.777       -.84926E-06    .24483E-05
  22  norm          .10000E-03    30.898       -.17363E-05** at limit **
  23  Prefactor     29.745        22.806        .94452E-05    .99368E-04
  24  Prefactor     8.9150        26.847       -.36055E-04   -.17362E-04
  25  Prefactor     .10000E-03    4.3035        .13431E-05** at limit **
  26  norm          1.9826        6.3953       -.13311E-05   -.46193E-03
  27  Prefactor     .10000E-03    9.4360       -.55554E-05** at limit **
  28  Normalizat    .65687        .17299        .16622E-05    .11291E-03
  29  Prefactor     1.2669        .18960        .27277E-05   -.16347E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58048
  Prefactor  = 0.0001
  Prefactor  = 0.00010062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4889
  Prefactor  = 0.388924
  Prefactor  = 0.0001
  Prefactor  = 47.6579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07344
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28197
  Prefactor  = 0.0001
  norm       = 2.28144
  Prefactor  = 0.0001
  Prefactor  = 2.80818
  Prefactor  = 0.0001
  Prefactor  = 20.2331
  norm       = 0.000100003
  Prefactor  = 29.7454
  Prefactor  = 8.915
  Prefactor  = 0.0001
  norm       = 1.9826
  Prefactor  = 0.0001
  Normalizat = 0.656873
  Prefactor  = 1.26692
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.928     FROM HESSE     STATUS=OK           561 CALLS     4363 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58048        .53814        .51780E-03   -1.5556    
   2  Prefactor     .10000E-03    5.7237        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10062E-03    3.5060        .29162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5319        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.489        9.8321        .98630E-04   -1.4896    
   7  Prefactor     .38892        2.5037        .21328E-03   -1.5583    
   8  Prefactor     .10000E-03    11.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.658        72.636        .58041E-04   -1.4326    
  10  Prefactor     .10000E-03    2.4160        .21527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0734        1.7269        .13473E-02   -1.5501    
  13  norm          .10000E-03    .88576        .65290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2820        .47919        .29349E-04   -1.5482    
  16  Prefactor     .10000E-03    9.7978        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2814        5.8672        .26811E-03   -1.5406    
  18  Prefactor     .10000E-03    .69371        .57901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8082        3.9024        .15897E-03   -1.5373    
  20  Prefactor     .10000E-03    4.4729        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.233        23.778        .89039E-04   -1.4808    
  22  norm          .10000E-03    31.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.745        22.731        .73474E-04   -1.4617    
  24  Prefactor     8.9150        26.849        .13405E-03   -1.5111    
  25  Prefactor     .10000E-03    4.3240        .14553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9826        6.3638        .29428E-03   -1.5426    
  27  Prefactor     .10000E-03    9.4442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .65687        .19900        .26179E-03   -1.0562    
  29  Prefactor     1.2669        .22199        .22367E-03   -.84296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52202e-09
Minuit parameter uncertainties:
  1  0.538147
  2  5.19747e-06
  3  0.00294869
  4  0.000233486
  5  1.70814e-05
  6  9.83305
  7  1.97346
  8  5.6319e-05
  9  72.7716
  10  2.0509e-05
  11  1.20377e-06
  12  1.72698
  13  1.28122e-05
  14  3.90659e-05
  15  0.47919
  16  5.60872e-05
  17  5.86866
  18  3.62779e-07
  19  3.90279
  20  4.28585e-05
  21  23.7894
  22  0.000623439
  23  22.7375
  24  26.8849
  25  1.19541e-05
  26  6.36593
  27  9.50416e-08
  28  0.199215
  29  0.222152
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.907e-05  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.267e+00  2.222e-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:  6.569e-01  1.992e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112657/likelihoodResults_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.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) = 5161.92788657
delta logL = -0.00035536175892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5161.92753167
delta logL = -4.66666278953e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4619       1.0000          .0000       10.000    
     3 'Normalizat'    .65674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2671       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=   5161.928     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.357        .90712E-02** at limit **
   2  Index         2.4668        6.2318        .50000       -.33080E-05
   3  Normalizat    .65687        .16208        .41710E-01    .23013E-04
   4  Prefactor     1.2669        .18742        .50595E-01    .36758E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46682
  Normalizat = 0.656871
  Prefactor  = 1.26693
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.928     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6399.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4668        6.4502        .50000       -.53128    
   3  Normalizat    .65687        .13079        .26179E-03   -1.0562    
   4  Prefactor     1.2669        .15113        .22367E-03   -.84296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4843e-09
Minuit parameter uncertainties:
  1  0.000321473
  2  65.7406
  3  0.130854
  4  0.151179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112657': 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) = 5161.9275312
delta logL = 7.35326466383e-09

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.215e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.467e+00  6.574e+01  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.267e+00  1.512e-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:  6.569e-01  1.309e-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/112657/cmap_HighResolution_300758401_301017601_4FGL_J0916.7+3856_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-08-31 06:11:04.578848', job_id='112657', GAL2='1.27', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630415464.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='7.35e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='237' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 112657: <4FGL_J0916.7+3856_daily_bin237> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin237> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:46 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:57:47 2021
Terminated at Tue Aug 31 06:11:05 2021
Results reported at Tue Aug 31 06:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin237 139.19 38.9479 300758401 301017601 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 :                                   773.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

