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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin770
RA = 139.19, Dec = 38.9479
tmin = 438912001, tmax = 439171201
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='115239', job_status='RUN', time_executed='2021-08-31 06:10:53.846467', time_epoch_executed='1630415453.85' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115239

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115239/ft1_4FGL_J0916.7+3856_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115239/ft1_4FGL_J0916.7+3856_daily_bin770.fits outfile=/scratch/kocevski/115239/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin770.fits ra=139.19 dec=38.9479 rad=12.0 tmin=438912001.0 tmax=439171201.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.75
user 5.83
sys 1.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/115239/ltcube_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.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/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits
.....................!
real 13.94
user 11.70
sys 2.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/115239/ltcube_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.fits outfile=/scratch/kocevski/115239/expmap_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.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/115239/ltcube_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.fits
.....................!
real 191.94
user 184.87
sys 6.65

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/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits scfile=/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits outfile=/scratch/kocevski/115239/cmap_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.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.20
user 0.39
sys 1.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits scfile=/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits outfile=/scratch/kocevski/115239/cmap_HighResolution_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.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 2.15
user 0.36
sys 1.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/115239/ft2_4FGL_J0916.7+3856_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115239/Model_4FGL_J0916.7+3856_daily_bin770.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/115239/ft1_filtered_4FGL_J0916.7+3856_daily_bin770.fits.....................!
real 39.35
user 34.56
sys 3.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    24.145       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25947E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.261       1.0000         .10000E-03   10000.    
     6 'norm      '    .45569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51720       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .36297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12200E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.135       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.0539       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85515       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96444       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=   3454.078     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3708 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26842        .46860E-07** at limit **
   2  Prefactor     24.156        20.107       -.31930E-06   -.62624E-04
   3  Prefactor     .10000E-03    3.1557        .34527E-06** at limit **
   4  Prefactor     .10000E-03    11.089        .42886E-07** at limit **
   5  Prefactor     12.259        11.084        .11136E-06   -.35703E-04
   6  norm          .46366        9.8104        .19096E-05   -.21071E-03
   7  Prefactor     2.5271        3.6879        .18360E-06   -.10903E-03
   8  Prefactor     62.749        34.229        .24056E-05    .44154E-03
   9  Prefactor     64.122        69.716        .14114E-05    .51243E-04
  10  Prefactor     .10000E-03    1.8361        .44895E-07** at limit **
  11  Prefactor     .10000E-03    24.175       -.17334E-05** at limit **
  12  Prefactor     .51132        3.3861        .74365E-06   -.16744E-03
  13  norm          2.3871        2.2085       -.33550E-06   -.12379E-03
  14  Prefactor     .10000E-03    42.250        .40124E-07** at limit **
  15  norm          .36302        .37832        .14364E-07   -.83004E-04
  16  Prefactor     .10000E-03    1.2327       -.47004E-09** at limit **
  17  norm          10.563        9.7439        .31546E-06   -.51277E-04
  18  Prefactor     .10000E-03    .95701       -.11096E-07** at limit **
  19  Prefactor     5.4088        6.1503        .27919E-05   -.66764E-03
  20  Prefactor     22.295        17.074        .24109E-06    .17214E-04
  21  Prefactor     .10000E-03    27.158        .66127E-07** at limit **
  22  norm          .10000E-03    8.3237       -.12803E-06** at limit **
  23  Prefactor     .10000E-03    16.472        .16158E-06** at limit **
  24  Prefactor     48.117        45.439       -.26956E-05   -.26123E-03
  25  Prefactor     .10000E-03    5.5929       -.83904E-09** at limit **
  26  norm          8.0676        21.816        .31521E-05    .10568E-03
  27  Prefactor     .10000E-03    30.687        .17838E-05** at limit **
  28  Normalizat    .85403        .22024       -.27054E-05   -.10437E-03
  29  Prefactor     .96566        .21911        .91953E-07   -.16393E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.1556
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.2594
  norm       = 0.463656
  Prefactor  = 2.52705
  Prefactor  = 62.7486
  Prefactor  = 64.1222
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.511324
  norm       = 2.38709
  Prefactor  = 0.0001
  norm       = 0.36302
  Prefactor  = 0.0001
  norm       = 10.5631
  Prefactor  = 0.0001
  Prefactor  = 5.40878
  Prefactor  = 22.2945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1172
  Prefactor  = 0.0001
  norm       = 8.06757
  Prefactor  = 0.000100001
  Normalizat = 0.854031
  Prefactor  = 0.965665
 **********
 **   18 **HESSE 
 **********

 FCN=   3454.078     FROM HESSE     STATUS=OK           551 CALLS     4259 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .27938        .59376E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.156        17.560        .81520E-04   -1.4725    
   3  Prefactor     .10000E-03    12.814        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.259        11.083        .11440E-03   -1.5008    
   6  norm          .46366        10.471        .35953E-02   -1.5572    
   7  Prefactor     2.5271        3.6651        .12770E-03   -1.5390    
   8  Prefactor     62.749        35.709        .50665E-04   -1.4122    
   9  Prefactor     64.122        69.806        .25059E-03   -1.4105    
  10  Prefactor     .10000E-03    1.8541        .77760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51132        5.7804        .19878E-02   -1.5565    
  13  norm          2.3871        2.2049        .79904E-04   -1.5399    
  14  Prefactor     .10000E-03    42.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36302        .37455        .35652E-04   -1.5587    
  16  Prefactor     .10000E-03    1.2457        .63621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.563        9.7256        .12338E-03   -1.5058    
  18  Prefactor     .10000E-03    .96741        .56113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4088        6.3788        .73892E-03   -1.5243    
  20  Prefactor     22.295        17.070        .84838E-04   -1.4763    
  21  Prefactor     .10000E-03    27.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3239        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.117        46.645        .57797E-04   -1.4320    
  25  Prefactor     .10000E-03    5.6077        .13574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.0676        21.961        .14128E-03   -1.5140    
  27  Prefactor     .10000E-03    30.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85403        .25003        .23881E-03   -.98095    
  29  Prefactor     .96566        .25099        .24494E-03   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40765e-08
Minuit parameter uncertainties:
  1  8.4346e-07
  2  17.5634
  3  0.000411485
  4  8.2304e-06
  5  11.0849
  6  4.40712
  7  3.66541
  8  35.7207
  9  69.8954
  10  7.17474e-07
  11  0.0002532
  12  3.43848
  13  2.20496
  14  2.2405e-05
  15  0.374555
  16  2.51934e-06
  17  9.72707
  18  1.58486e-06
  19  6.37959
  20  17.0741
  21  2.76594e-06
  22  9.26254e-06
  23  0.000108147
  24  46.6807
  25  8.37062e-06
  26  21.9834
  27  0.000349221
  28  0.250369
  29  0.251298
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.657e-01  2.513e-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.540e-01  2.504e-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.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115239/likelihoodResults_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.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) = 3454.07815551
delta logL = -0.000111901704258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3454.07804394
delta logL = -3.27504494635e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3921       1.0000          .0000       10.000    
     3 'Normalizat'    .85403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96567       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=   3454.078     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      275 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6877.7        .18142E-02** at limit **
   2  Index         2.4696        8.3792        .50000       -.23544E-04
   3  Normalizat    .85403        .58244E-01    .23882E-03    .55221E-05
   4  Prefactor     .96567        .63490E-01    .24494E-03   -.34346E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.46959
  Normalizat = 0.85403
  Prefactor  = 0.965666
 **********
 **   18 **HESSE 
 **********

 FCN=   3454.078     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    154.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4696        5.4218        .50000       -.53064    
   3  Normalizat    .85403        .22397        .95526E-05   -.98095    
   4  Prefactor     .96567        .24422        .97978E-05   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05445e-10
Minuit parameter uncertainties:
  1  0.00400777
  2  8.0654
  3  0.224215
  4  0.244498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115239': 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) = 3454.07804354
delta logL = 6.64863364364e-08

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.008e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.470e+00  8.065e+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:  9.657e-01  2.445e-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.540e-01  2.242e-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/115239/cmap_HighResolution_438912001_439171201_4FGL_J0916.7+3856_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-31 06:22:17.755252', job_id='115239', GAL2='0.97', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630416137.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='770' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 115239: <4FGL_J0916.7+3856_daily_bin770> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin770> 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) <bullet0116>, 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:22:18 2021
Results reported at Tue Aug 31 06:22:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin770 139.19 38.9479 438912001 439171201 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 :                                   700.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             230.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

