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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin735
RA = 139.19, Dec = 38.9479
tmin = 429840001, tmax = 430099201
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='115192', job_status='RUN', time_executed='2021-08-31 06:10:44.001774', time_epoch_executed='1630415444.0' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115192/ft1_4FGL_J0916.7+3856_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115192/ft1_4FGL_J0916.7+3856_daily_bin735.fits outfile=/scratch/kocevski/115192/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin735.fits ra=139.19 dec=38.9479 rad=12.0 tmin=429840001.0 tmax=430099201.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 9.91
user 5.73
sys 4.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/115192/ltcube_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.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/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits
.....................!
real 16.69
user 12.06
sys 4.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/115192/ltcube_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.fits outfile=/scratch/kocevski/115192/expmap_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.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/115192/ltcube_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.fits
.....................!
real 195.01
user 185.18
sys 9.41

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/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits scfile=/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits outfile=/scratch/kocevski/115192/cmap_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.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 4.27
user 0.37
sys 3.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits scfile=/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits outfile=/scratch/kocevski/115192/cmap_HighResolution_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.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 4.53
user 0.40
sys 3.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/115192/ft2_4FGL_J0916.7+3856_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115192/Model_4FGL_J0916.7+3856_daily_bin735.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/115192/ft1_filtered_4FGL_J0916.7+3856_daily_bin735.fits.....................!
real 42.25
user 33.85
sys 6.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .87142E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8195       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4363       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.353       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.719       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34870E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.942       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.739       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87522       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0561       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=   3584.956     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3707 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7631        .83471       -.14739E-07    .35704E-03
   2  Prefactor     .10000E-03    4.7073       -.12656E-07** at limit **
   3  Prefactor     .10042E-03    1.5289        .13190E-06** at limit **
   4  Prefactor     .10000E-03    34.079       -.14639E-04** at limit **
   5  Prefactor     1.8144        22.127       -.31720E-05   -.13855E-03
   6  norm          4.4350        6.8576       -.39991E-06   -.16928E-03
   7  Prefactor     .10000E-03    1.6325       -.72799E-07** at limit **
   8  Prefactor     .10000E-03    9.4352        .84763E-07** at limit **
   9  Prefactor     .10000E-03    65.475        .30264E-04** at limit **
  10  Prefactor     .10000E-03    1.3674       -.71304E-07** at limit **
  11  Prefactor     21.341        60.422       -.19641E-04    .42355E-05
  12  Prefactor     .10000E-03    3.0375        .21328E-06** at limit **
  13  norm          3.0234        2.0590        .39291E-07    .47728E-03
  14  Prefactor     25.717        38.391       -.76776E-06    .31843E-04
  15  norm          .10000E-03    .24530       -.12369E-07** at limit **
  16  Prefactor     .10000E-03    2.4493        .51429E-06** at limit **
  17  norm          34.724        18.527        .91475E-06    .94507E-04
  18  Prefactor     1.1373        4.3174       -.13132E-05   -.79670E-03
  19  Prefactor     .12763E-01    2.2216       -.16237E-05    .14118E-02
  20  Prefactor     .10001E-03    27.391        .12672E-04** at limit **
  21  Prefactor     14.915        31.558       -.25250E-04   -.11018E-03
  22  norm          .10000E-03    9.2910        .24946E-05** at limit **
  23  Prefactor     .10000E-03    31.317       -.75610E-05** at limit **
  24  Prefactor     .10000E-03    14.715       -.11720E-04** at limit **
  25  Prefactor     .10000E-03    15.291        .11582E-04** at limit **
  26  norm          .10000E-03    8.9996       -.17107E-05** at limit **
  27  Prefactor     54.733        46.079       -.64530E-05    .58265E-05
  28  Normalizat    .87518        .21567        .37135E-05   -.45544E-05
  29  Prefactor     1.0563        .22772        .75599E-06    .85421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76315
  Prefactor  = 0.0001
  Prefactor  = 0.000100416
  Prefactor  = 0.0001
  Prefactor  = 1.81445
  norm       = 4.43496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3409
  Prefactor  = 0.0001
  norm       = 3.02343
  Prefactor  = 25.7171
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 34.7241
  Prefactor  = 1.13726
  Prefactor  = 0.012763
  Prefactor  = 0.000100007
  Prefactor  = 14.9145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.7327
  Normalizat = 0.875184
  Prefactor  = 1.05627
 **********
 **   18 **HESSE 
 **********

 FCN=   3584.956     FROM HESSE     STATUS=OK           567 CALLS     4274 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7631        .83547        .36274E-04   -1.5442    
   2  Prefactor     .10000E-03    4.7111        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10042E-03    3.2927        .26706E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8144        22.137        .30959E-03   -1.5439    
   6  norm          4.4350        6.8531        .18882E-03   -1.5287    
   7  Prefactor     .10000E-03    1.6598        .74652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.4555        .17964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3714        .68372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.341        60.353        .86680E-04   -1.4784    
  12  Prefactor     .10000E-03    3.0725        .10128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0234        2.0611        .68625E-04   -1.5360    
  14  Prefactor     25.717        38.299        .78990E-04   -1.4693    
  15  norm          .10000E-03    .26637        .57235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6701        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.724        18.292        .68009E-04   -1.4529    
  18  Prefactor     1.1373        4.0882        .19809E-03   -1.5495    
  19  Prefactor     .12763E-01    4.0747        .31949E-01   -1.5685    
  20  Prefactor     .10001E-03    28.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.915        31.771        .10362E-03   -1.4935    
  22  norm          .10000E-03    9.2954        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    9.0083        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.733        46.075        .54215E-04   -1.4227    
  28  Normalizat    .87518        .24631        .23929E-03   -.97338    
  29  Prefactor     1.0563        .26290        .24217E-03   -.90877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40883e-09
Minuit parameter uncertainties:
  1  0.835479
  2  4.6953e-06
  3  0.00234005
  4  6.97884e-05
  5  12.6808
  6  6.85431
  7  1.65705e-06
  8  1.22462e-05
  9  1.29567e-05
  10  2.67321e-06
  11  60.5268
  12  3.17439e-05
  13  2.06116
  14  38.3361
  15  8.28721e-07
  16  8.62334e-05
  17  18.2945
  18  4.08919
  19  0.454334
  20  0.000882737
  21  31.8073
  22  8.4503e-07
  23  2.2685e-05
  24  1.88688e-06
  25  0.000116465
  26  2.70464e-05
  27  46.1052
  28  0.246626
  29  0.263225
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.572e+01  3.834e+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.056e+00  2.632e-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.752e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115192/likelihoodResults_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.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) = 3584.53229174
delta logL = 0.423278984545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3584.53110857
delta logL = 0.424462158189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.424       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8266       1.0000          .0000       10.000    
     3 'Normalizat'    .89832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0332       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=   3584.531     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      258 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.424        2141.1        .14557E-02   -.10656E-03
   2  Index         1.8266        5.1035        .19125        .20531E-04
   3  Normalizat    .89831        .29409        .44880E-01    .54907E-05
   4  Prefactor     1.0332        .30900        .41014E-01    .59482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4241
  Index      = 1.82656
  Normalizat = 0.898313
  Prefactor  = 1.03319
 **********
 **   18 **HESSE 
 **********

 FCN=   3584.531     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.424        45.382        .58226E-04   -1.4330    
   2  Index         1.8266        .56221        .71610E-02   -.68761    
   3  Normalizat    .89831        .23279        .23654E-03   -.96519    
   4  Prefactor     1.0332        .25638        .24419E-03   -.91631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45468e-11
Minuit parameter uncertainties:
  1  45.4149
  2  0.564218
  3  0.233055
  4  0.256688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115192': 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) = 3584.53110857
delta logL = 0.42446215874

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  4.742e+01  4.541e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  1.827e+00  5.642e-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.033e+00  2.567e-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.983e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 139.190 38.948
Photon Index (Free Index): 1.83 +/- 0.56
Photon Flux (Free Index): 3.60e-08 +/- 4.11e-08
Energy Flux (Free Index): 3.98e-05 +/- 5.61e-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/115192/cmap_HighResolution_429840001_430099201_4FGL_J0916.7+3856_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='3.98e-05', dlogl='4.24e-01', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-08-31 06:22:39.581861', photon_index_error2='0.56', photon_index2='1.83', ts='0.89', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='5.61e-05', EG='0.88', time_epoch_completed='1630416159.58', return_code='0', job_id='115192', GAL2='1.03', EG2='0.90', return_code2='0', photon_flux_error2='4.11e-08', ts2='1.77', photon_index='2.46' WHERE bin_id='735' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 115192: <4FGL_J0916.7+3856_daily_bin735> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin735> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 06:06:17 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:06:18 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:06:18 2021
Terminated at Tue Aug 31 06:22:41 2021
Results reported at Tue Aug 31 06:22:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin735 139.19 38.9479 429840001 430099201 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

