/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 6284
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin533
RA = 139.19, Dec = 38.9479
tmin = 377481601, tmax = 377740801
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='113804', job_status='RUN', time_executed='2021-08-31 06:04:42.792495', time_epoch_executed='1630415082.79' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113804

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113804/ft1_4FGL_J0916.7+3856_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113804/ft1_4FGL_J0916.7+3856_daily_bin533.fits outfile=/scratch/kocevski/113804/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin533.fits ra=139.19 dec=38.9479 rad=12.0 tmin=377481601.0 tmax=377740801.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 7.71
user 2.94
sys 1.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/113804/ltcube_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.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/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits
.....................!
real 12.08
user 9.78
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/113804/ltcube_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.fits outfile=/scratch/kocevski/113804/expmap_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.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/113804/ltcube_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.fits
.....................!
real 193.49
user 184.91
sys 5.94

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/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits scfile=/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits outfile=/scratch/kocevski/113804/cmap_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.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 2.10
user 0.35
sys 1.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits scfile=/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits outfile=/scratch/kocevski/113804/cmap_HighResolution_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.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 1.90
user 0.37
sys 1.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/113804/ft2_4FGL_J0916.7+3856_daily_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113804/Model_4FGL_J0916.7+3856_daily_bin533.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/113804/ft1_filtered_4FGL_J0916.7+3856_daily_bin533.fits.....................!
real 47.92
user 35.95
sys 2.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0357       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11894E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8236       1.0000         .10000E-03   10000.    
    17 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9394       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.199       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14744E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .50557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0804       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=   3898.463     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3764 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21187       -.46566E-08** at limit **
   2  Prefactor     1.2801        16.004       -.45626E-05   -.50428E-03
   3  Prefactor     2.1424        2.2372        .95254E-08    .85543E-04
   4  Prefactor     .10000E-03    23.005        .85366E-05** at limit **
   5  Prefactor     .10000E-03    10.552       -.12729E-05** at limit **
   6  norm          12.604        7.8744       -.32011E-06    .84123E-05
   7  Prefactor     1.0674        2.9672       -.13321E-05   -.90902E-03
   8  Prefactor     1.7148        58.761       -.70033E-05   -.87560E-04
   9  Prefactor     .10000E-03    88.680        .21111E-04** at limit **
  10  Prefactor     1.4341        2.3851       -.20612E-06   -.29349E-03
  11  Prefactor     11.837        32.938       -.44498E-04    .29354E-04
  12  Prefactor     4.0368        3.2726        .12671E-05    .30801E-03
  13  norm          1.6435        1.4533       -.57096E-07    .33932E-04
  14  Prefactor     .10001E-03    16.881        .20056E-05** at limit **
  15  norm          .10000E-03    .22855       -.19563E-07** at limit **
  16  Prefactor     3.8230        2.6069       -.98557E-09    .14427E-03
  17  norm          .10000E-03    6.8319       -.83750E-05** at limit **
  18  Prefactor     .10000E-03    .67566        .64829E-07** at limit **
  19  Prefactor     .10000E-03    3.0196       -.13231E-06** at limit **
  20  Prefactor     4.9378        8.5295       -.79839E-06   -.17314E-03
  21  Prefactor     .10000E-03    6.6860        .71742E-05** at limit **
  22  norm          .10000E-03    7.9109        .30550E-05** at limit **
  23  Prefactor     51.172        29.000       -.66603E-05    .61240E-04
  24  Prefactor     .10000E-03    62.902       -.41001E-05** at limit **
  25  Prefactor     .10000E-03    4.0772       -.71990E-07** at limit **
  26  norm          .10000E-03    5.7181       -.33172E-06** at limit **
  27  Prefactor     .10000E-03    24.578       -.98233E-05** at limit **
  28  Normalizat    .50563        .17468        .57958E-05    .14142E-03
  29  Prefactor     1.0804        .18550       -.14760E-06    .30867E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.28014
  Prefactor  = 2.14239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6041
  Prefactor  = 1.0674
  Prefactor  = 1.71482
  Prefactor  = 0.0001
  Prefactor  = 1.43411
  Prefactor  = 11.8373
  Prefactor  = 4.03681
  norm       = 1.64345
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 3.82302
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93782
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.1717
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.505627
  Prefactor  = 1.0804
 **********
 **   18 **HESSE 
 **********

 FCN=   3898.463     FROM HESSE     STATUS=OK           549 CALLS     4313 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .21191        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2801        16.258        .39159E-03   -1.5482    
   3  Prefactor     2.1424        2.2229        .90501E-04   -1.5415    
   4  Prefactor     .10000E-03    23.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.604        7.8279        .11282E-03   -1.4998    
   7  Prefactor     1.0674        2.9185        .16173E-03   -1.5501    
   8  Prefactor     1.7148        59.493        .32045E-03   -1.5446    
   9  Prefactor     .10000E-03    88.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4341        2.3495        .12085E-03   -1.5468    
  11  Prefactor     11.837        32.768        .11615E-03   -1.5020    
  12  Prefactor     4.0368        3.2628        .95211E-04   -1.5306    
  13  norm          1.6435        1.4470        .68795E-04   -1.5452    
  14  Prefactor     .10001E-03    17.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .25318        .54629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8230        2.4475        .73278E-04   -1.5317    
  17  norm          .10000E-03    6.8991        .15832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .68039        .50074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0698        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9378        8.5231        .18097E-03   -1.5264    
  21  Prefactor     .10000E-03    6.6810        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.9294        .17157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     51.172        29.074        .56048E-04   -1.4276    
  24  Prefactor     .10000E-03    63.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0845        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.7659        .14582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .50563        .19872        .25762E-03   -1.1216    
  29  Prefactor     1.0804        .21308        .20295E-03   -.90096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62435e-09
Minuit parameter uncertainties:
  1  4.44488e-08
  2  9.12679
  3  2.22296
  4  5.21128e-05
  5  4.25709e-05
  6  7.82852
  7  2.91893
  8  20.2223
  9  8.61068e-05
  10  2.3497
  11  32.8181
  12  3.26294
  13  1.44704
  14  0.000626486
  15  4.26267e-07
  16  2.44753
  17  0.000163432
  18  4.91889e-06
  19  1.58533e-05
  20  8.5252
  21  2.99668e-06
  22  6.69067e-05
  23  29.0817
  24  0.000814248
  25  1.1989e-05
  26  7.94936e-06
  27  1.62474e-05
  28  0.199003
  29  0.213249
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.265e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.080e+00  2.132e-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:  5.056e-01  1.990e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113804/likelihoodResults_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.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) = 3898.46279616
delta logL = -0.000279908628272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3898.46251672
delta logL = -4.65328866994e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3898.463     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      275 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    92.423        .18142E-02** at limit **
   2  Index         2.7389        8.3637        .50000        .11293E-04
   3  Normalizat    .50563        .10143E-01    .25761E-03    .34665E-04
   4  Prefactor     1.0804        .11453E-01    .20295E-03    .30221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100801
  Index      = 2.73892
  Normalizat = 0.505628
  Prefactor  = 1.08039
 **********
 **   18 **HESSE 
 **********

 FCN=   3898.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    414.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7389        5.6109        .50000       -.46925    
   3  Normalizat    .50563        .22094E-01    .10305E-04   -1.1216    
   4  Prefactor     1.0804        .24948E-01    .40590E-04   -.90096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24594e-08
Minuit parameter uncertainties:
  1  0.0366956
  2  512.843
  3  0.0220941
  4  0.0249479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113804': 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) = 3898.46251663
delta logL = -3.69548160961e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.008e-04  3.670e-02  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.739e+00  5.128e+02  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.080e+00  2.495e-02  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:  5.056e-01  2.209e-02  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/113804/cmap_HighResolution_377481601_377740801_4FGL_J0916.7+3856_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-08-31 06:16:31.647291', job_id='113804', GAL2='1.08', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630415791.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-3.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='533' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 113804: <4FGL_J0916.7+3856_daily_bin533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin533 139.19 38.9479 377481601 377740801 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            912 sec.

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

