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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin142
RA = 139.19, Dec = 38.9479
tmin = 276134401, tmax = 276393601
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='112473', job_status='RUN', time_executed='2021-08-31 06:01:35.999423', time_epoch_executed='1630414896.0' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112473/ft1_4FGL_J0916.7+3856_daily_bin142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112473/ft1_4FGL_J0916.7+3856_daily_bin142.fits outfile=/scratch/kocevski/112473/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin142.fits ra=139.19 dec=38.9479 rad=12.0 tmin=276134401.0 tmax=276393601.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.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.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/112473/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin142.fits evtable="EVENTS" outfile="/scratch/kocevski/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.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.50
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits" evtable="EVENTS" scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits sctable="SC_DATA" outfile=/scratch/kocevski/112473/ltcube_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.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/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits
.....................!
real 9.30
user 8.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits sctable="SC_DATA" expcube=/scratch/kocevski/112473/ltcube_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.fits outfile=/scratch/kocevski/112473/expmap_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.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/112473/ltcube_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.fits
.....................!
real 140.81
user 136.63
sys 3.10

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/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits outfile=/scratch/kocevski/112473/cmap_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.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.78
user 0.50
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits outfile=/scratch/kocevski/112473/cmap_HighResolution_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.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.54
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/112473/ft2_4FGL_J0916.7+3856_daily_bin142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112473/Model_4FGL_J0916.7+3856_daily_bin142.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/112473/ft1_filtered_4FGL_J0916.7+3856_daily_bin142.fits.....................!
real 42.79
user 39.52
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.431       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13718E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9627       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44746E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3248       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.960       1.0000         .10000E-03   10000.    
    22 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13836E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.797       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.447       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73950       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2409       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=   6030.577     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3686 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2241        .83929        .39184E-07   -.15635E-03
   2  Prefactor     .10000E-03    20.010       -.83264E-07** at limit **
   3  Prefactor     2.2561        2.6060        .32955E-06    .12393E-03
   4  Prefactor     21.212        23.641       -.42000E-08   -.84273E-04
   5  Prefactor     .10000E-03    4.2144       -.18892E-06** at limit **
   6  norm          12.432        6.8287       -.13628E-07   -.17697E-03
   7  Prefactor     .10000E-03    1.2840        .48649E-06** at limit **
   8  Prefactor     .10000E-03    9.1615        .22777E-06** at limit **
   9  Prefactor     .10000E-03    22.834        .26425E-06** at limit **
  10  Prefactor     2.2191        4.1022        .85603E-06    .21234E-03
  11  Prefactor     .10000E-03    20.478        .25645E-06** at limit **
  12  Prefactor     .10000E-03    1.0082        .11394E-06** at limit **
  13  norm          .10000E-03    1.1252        .11155E-06** at limit **
  14  Prefactor     .10000E-03    16.580        .18260E-06** at limit **
  15  norm          1.2207        .53715       -.40786E-07   -.14240E-02
  16  Prefactor     .10000E-03    2.0036        .12133E-06** at limit **
  17  norm          8.9449        10.598       -.52368E-06   -.11100E-03
  18  Prefactor     4.9616        2.6306       -.33680E-07   -.22070E-03
  19  Prefactor     .10002E-03    2.9700       -.13183E-05** at limit **
  20  Prefactor     9.3235        9.0966        .57693E-08   -.41368E-04
  21  Prefactor     23.954        21.699       -.21905E-06   -.62498E-04
  22  norm          .10000E-03    8.2202       -.69070E-06** at limit **
  23  Prefactor     .10000E-03    32.400       -.45737E-05** at limit **
  24  Prefactor     32.756        40.885       -.11524E-05   -.13126E-03
  25  Prefactor     .10000E-03    4.6150        .14650E-06** at limit **
  26  norm          11.443        11.700        .14056E-05    .22423E-03
  27  Prefactor     .10000E-03    18.910       -.39289E-06** at limit **
  28  Normalizat    .73995        .18885        .28264E-05   -.18549E-03
  29  Prefactor     1.2406        .20204       -.37131E-05   -.96136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22413
  Prefactor  = 0.0001
  Prefactor  = 2.25614
  Prefactor  = 21.2118
  Prefactor  = 0.0001
  norm       = 12.4321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22068
  Prefactor  = 0.0001
  norm       = 8.94487
  Prefactor  = 4.96156
  Prefactor  = 0.000100015
  Prefactor  = 9.32353
  Prefactor  = 23.9537
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 32.7562
  Prefactor  = 0.0001
  norm       = 11.4433
  Prefactor  = 0.0001
  Normalizat = 0.739945
  Prefactor  = 1.24058
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.577     FROM HESSE     STATUS=OK           553 CALLS     4239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2241        .83830        .41909E-04   -1.5410    
   2  Prefactor     .10000E-03    20.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2561        2.5940        .12905E-03   -1.5408    
   4  Prefactor     21.212        23.640        .86937E-04   -1.4787    
   5  Prefactor     .10000E-03    4.2233        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.432        6.8051        .11361E-03   -1.5003    
   7  Prefactor     .10000E-03    2.1015        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2191        4.1217        .20519E-03   -1.5410    
  11  Prefactor     .10000E-03    20.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0166        .76150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1597        .16071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2207        .49083        .33051E-04   -1.5487    
  16  Prefactor     .10000E-03    3.2148        .19268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9449        10.565        .13397E-03   -1.5110    
  18  Prefactor     4.9616        2.6203        .84512E-04   -1.5262    
  19  Prefactor     .10002E-03    7.9037        .22412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3235        9.0892        .13124E-03   -1.5097    
  21  Prefactor     23.954        21.690        .81833E-04   -1.4729    
  22  norm          .10000E-03    8.2359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.756        41.135        .69970E-04   -1.4563    
  25  Prefactor     .10000E-03    4.6408        .16295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.443        11.881        .59204E-03   -1.5031    
  27  Prefactor     .10000E-03    18.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73995        .20569        .27232E-03   -1.0234    
  29  Prefactor     1.2406        .21880        .24216E-03   -.85091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33349e-09
Minuit parameter uncertainties:
  1  0.838309
  2  7.91601e-06
  3  2.59414
  4  23.6507
  5  8.37053e-06
  6  6.80552
  7  1.73613e-05
  8  4.22869e-05
  9  8.98266e-05
  10  4.1222
  11  5.52024e-05
  12  3.79722e-06
  13  9.64314e-06
  14  7.85867e-06
  15  0.490835
  16  1.72413e-05
  17  10.5672
  18  2.62033
  19  0.000692261
  20  9.09055
  21  21.6973
  22  4.41314e-05
  23  0.000547042
  24  41.171
  25  1.2307e-05
  26  11.8838
  27  4.82461e-05
  28  0.20591
  29  0.218962
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.859e-06  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.241e+00  2.190e-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.399e-01  2.059e-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: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112473/likelihoodResults_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.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) = 6030.5774775
delta logL = -0.000286333923214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6030.48010785
delta logL = 0.0970833146093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84565       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9377       1.0000          .0000       10.000    
     3 'Normalizat'    .71425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2569       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=   6030.480     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      269 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84331        37.002        .12609E-01    .11765E-02
   2  Index         3.9391        3.1202        .20635        .59107E-04
   3  Normalizat    .71418        .25983E-01    .62547E-01    .67253E-05
   4  Prefactor     1.2570        .29310E-01    .54450E-01   -.90838E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84331
  Index      = 3.93906
  Normalizat = 0.714178
  Prefactor  = 1.257
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.480     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84331        67.568        .15428E-03   -1.5524    
   2  Index         3.9391        6.8299        .87779E-02   -.21381    
   3  Normalizat    .71418        .19765        .27669E-03   -1.0334    
   4  Prefactor     1.2570        .21468        .24075E-03   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25549e-07
Minuit parameter uncertainties:
  1  15.1139
  2  8.27095
  3  0.197845
  4  0.214827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112473': 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) = 6030.48010752
delta logL = 0.0970836468423

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  8.433e-01  1.511e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.939e+00  8.271e+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.257e+00  2.148e-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.142e-01  1.978e-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/112473/cmap_HighResolution_276134401_276393601_4FGL_J0916.7+3856_daily_bin142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-08-31 06:12:20.117741', job_id='112473', GAL2='1.26', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1630415540.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='9.71e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='142' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 112473: <4FGL_J0916.7+3856_daily_bin142> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:33 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:36 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:36 2021
Terminated at Tue Aug 31 06:12:20 2021
Results reported at Tue Aug 31 06:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin142 139.19 38.9479 276134401 276393601 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 :                                   640.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

