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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin769
RA = 139.19, Dec = 38.9479
tmin = 438652801, tmax = 438912001
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='115238', job_status='RUN', time_executed='2021-08-31 06:08:28.909031', time_epoch_executed='1630415308.91' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115238

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115238/ft1_4FGL_J0916.7+3856_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115238/ft1_4FGL_J0916.7+3856_daily_bin769.fits outfile=/scratch/kocevski/115238/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin769.fits ra=139.19 dec=38.9479 rad=12.0 tmin=438652801.0 tmax=438912001.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.07
user 6.12
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/115238/ltcube_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.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/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits
.....................!
real 12.37
user 11.66
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/115238/ltcube_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.fits outfile=/scratch/kocevski/115238/expmap_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.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/115238/ltcube_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.fits
.....................!
real 192.02
user 184.50
sys 4.79

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/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits scfile=/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits outfile=/scratch/kocevski/115238/cmap_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.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.70
user 0.38
sys 0.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits scfile=/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits outfile=/scratch/kocevski/115238/cmap_HighResolution_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.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.73
user 0.38
sys 0.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/115238/ft2_4FGL_J0916.7+3856_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115238/Model_4FGL_J0916.7+3856_daily_bin769.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/115238/ft1_filtered_4FGL_J0916.7+3856_daily_bin769.fits.....................!
real 36.58
user 35.03
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4070       1.0000         .10000E-03   10000.    
     6 'norm      '    12.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.630       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .98316       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5027       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.021       1.0000         .10000E-03   10000.    
    22 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.927       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9736       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8285       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1195       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7978       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68031       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97832       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=   3603.199     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3770 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16260        .40263        .83101E-07    .92036E-04
   2  Prefactor     9.8777        10.644       -.64223E-07   -.31054E-04
   3  Prefactor     .10000E-03    1.3480        .12775E-07** at limit **
   4  Prefactor     .10000E-03    14.680       -.21226E-06** at limit **
   5  Prefactor     3.4078        6.6699       -.11066E-05   -.20203E-03
   6  norm          12.997        7.6406       -.42969E-06   -.16150E-03
   7  Prefactor     1.6169        1.5988       -.65375E-08    .40202E-04
   8  Prefactor     .10000E-03    30.279       -.18360E-06** at limit **
   9  Prefactor     .10000E-03    37.643        .27304E-06** at limit **
  10  Prefactor     .10000E-03    1.6404        .24871E-07** at limit **
  11  Prefactor     43.624        49.781       -.13703E-05   -.12968E-04
  12  Prefactor     .10000E-03    1.7458        .45674E-07** at limit **
  13  norm          .98321        1.0854       -.11726E-07    .13501E-04
  14  Prefactor     .10001E-03    34.462        .22057E-05** at limit **
  15  norm          .10000E-03    .37924       -.23704E-07** at limit **
  16  Prefactor     1.5022        2.9985        .18596E-06   -.38464E-04
  17  norm          5.1925        8.8618       -.67539E-06   -.80723E-04
  18  Prefactor     3.5522        3.1726       -.12912E-06   -.14453E-03
  19  Prefactor     17.856        6.3227        .20559E-06    .14636E-03
  20  Prefactor     8.2491        11.681        .75886E-06   -.16443E-03
  21  Prefactor     16.023        23.242       -.75538E-06   -.25056E-04
  22  norm          .10000E-03    16.297       -.69485E-07** at limit **
  23  Prefactor     24.935        30.913       -.18713E-05   -.11900E-03
  24  Prefactor     9.9789        38.297       -.21937E-05   -.50034E-04
  25  Prefactor     6.8291        10.778        .13392E-06   -.11128E-04
  26  norm          5.1197        10.186        .18784E-05   -.35887E-03
  27  Prefactor     1.8389        219.89        .38961E-05   -.25513E-08
  28  Normalizat    .68013        .20278       -.26530E-07   -.51943E-04
  29  Prefactor     .97845        .20989       -.12887E-06   -.29373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.162595
  Prefactor  = 9.87768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40782
  norm       = 12.9969
  Prefactor  = 1.6169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6242
  Prefactor  = 0.0001
  norm       = 0.98321
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 1.50217
  norm       = 5.19253
  Prefactor  = 3.5522
  Prefactor  = 17.856
  Prefactor  = 8.24909
  Prefactor  = 16.0235
  norm       = 0.0001
  Prefactor  = 24.9349
  Prefactor  = 9.97888
  Prefactor  = 6.82907
  norm       = 5.11971
  Prefactor  = 1.83889
  Normalizat = 0.680134
  Prefactor  = 0.978446
 **********
 **   18 **HESSE 
 **********

 FCN=   3603.199     FROM HESSE     STATUS=OK           569 CALLS     4339 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16260        .35039        .57685E-03   -1.5627    
   2  Prefactor     9.8777        10.576        .12750E-03   -1.5079    
   3  Prefactor     .10000E-03    1.3725        .67941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4078        6.8003        .21445E-03   -1.5339    
   6  norm          12.997        7.6733        .11111E-03   -1.4987    
   7  Prefactor     1.6169        1.6103        .73090E-04   -1.5454    
   8  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6504        .75065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.624        46.788        .60694E-04   -1.4386    
  12  Prefactor     .10000E-03    1.7642        .77330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .98321        1.0868        .64047E-04   -1.5510    
  14  Prefactor     .10001E-03    284.34        .55106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59744        .62573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5022        2.6160        .11997E-03   -1.5463    
  17  norm          5.1925        8.4219        .17627E-03   -1.5252    
  18  Prefactor     3.5522        3.1411        .91501E-04   -1.5331    
  19  Prefactor     17.856        6.3366        .86267E-04   -1.4863    
  20  Prefactor     8.2491        11.703        .69793E-03   -1.5133    
  21  Prefactor     16.023        23.211        .10006E-03   -1.4907    
  22  norm          .10000E-03    16.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.935        31.021        .80234E-04   -1.4709    
  24  Prefactor     9.9789        38.313        .12688E-03   -1.5076    
  25  Prefactor     6.8291        10.773        .15354E-03   -1.5185    
  26  norm          5.1197        10.416        .88845E-03   -1.5255    
  27  Prefactor     1.8389        221.97        .31183E-03   -1.5437    
  28  Normalizat    .68013        .23791        .24540E-03   -1.0468    
  29  Prefactor     .97845        .24710        .22615E-03   -.93451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86534e-10
Minuit parameter uncertainties:
  1  0.350391
  2  10.5782
  3  7.65245e-07
  4  1.10132e-05
  5  6.80188
  6  7.67391
  7  1.61039
  8  4.35342e-05
  9  3.19995e-05
  10  5.76209e-07
  11  46.8276
  12  2.17515e-06
  13  1.08684
  14  0.00275079
  15  1.05129e-06
  16  2.61621
  17  8.42387
  18  3.1412
  19  6.33679
  20  11.7066
  21  23.2238
  22  0.000115746
  23  31.0412
  24  38.408
  25  10.7762
  26  10.42
  27  40.561
  28  0.238275
  29  0.247386
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.751e-03  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:  9.784e-01  2.474e-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.801e-01  2.383e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115238/likelihoodResults_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.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) = 3603.19853665
delta logL = -1.64473940458e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3603.19853665
delta logL = -1.64455941558e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4571       1.0000          .0000       10.000    
     3 'Normalizat'    .68012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97845       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=   3603.199     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      229 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    .30442        .10052    ** at limit **
   2  Index         2.4955        5.1482        .50000       -.77912E-06
   3  Normalizat    .68014        .56401E-03    .42025E-01    .61733E-03
   4  Prefactor     .97844        .61794E-03    .45997E-01    .41293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100055
  Index      = 2.49551
  Normalizat = 0.68014
  Prefactor  = 0.978442
 **********
 **   18 **HESSE 
 **********

 FCN=   3603.199     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    247.92        .53620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4955        5.4773        .50000       -.52464    
   3  Normalizat    .68014        .43210E-02    .24539E-03   -1.0468    
   4  Prefactor     .97844        .47352E-02    .22616E-03   -.93452    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8961e-09
Minuit parameter uncertainties:
  1  0.00738343
  2  279.926
  3  0.004321
  4  0.00473523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115238': 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) = 3603.1985202
delta logL = 8.27913027024e-09

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.001e-04  7.383e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.496e+00  2.799e+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:  9.784e-01  4.735e-03  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.801e-01  4.321e-03  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/115238/cmap_HighResolution_438652801_438912001_4FGL_J0916.7+3856_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-31 06:19:51.905940', job_id='115238', GAL2='0.98', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630415991.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='769' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:19:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 115238: <4FGL_J0916.7+3856_daily_bin769> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 06:06:20 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:06:21 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:21 2021
Terminated at Tue Aug 31 06:19:52 2021
Results reported at Tue Aug 31 06:19:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin769 139.19 38.9479 438652801 438912001 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 :                                   679.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

