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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin983
RA = 139.19, Dec = 38.9479
tmin = 494121601, tmax = 494380801
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='116710', job_status='RUN', time_executed='2021-08-31 06:11:06.099988', time_epoch_executed='1630415466.1' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116710/ft1_4FGL_J0916.7+3856_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116710/ft1_4FGL_J0916.7+3856_daily_bin983.fits outfile=/scratch/kocevski/116710/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin983.fits ra=139.19 dec=38.9479 rad=12.0 tmin=494121601.0 tmax=494380801.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.74
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits" evtable="EVENTS" scfile=/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits sctable="SC_DATA" outfile=/scratch/kocevski/116710/ltcube_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.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/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits
.....................!
real 12.15
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/116710/ltcube_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.fits outfile=/scratch/kocevski/116710/expmap_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.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/116710/ltcube_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.fits
.....................!
real 190.07
user 185.30
sys 4.22

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/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits scfile=/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits outfile=/scratch/kocevski/116710/cmap_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits scfile=/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits outfile=/scratch/kocevski/116710/cmap_HighResolution_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.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.62
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/116710/ft2_4FGL_J0916.7+3856_daily_bin983.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116710/Model_4FGL_J0916.7+3856_daily_bin983.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/116710/ft1_filtered_4FGL_J0916.7+3856_daily_bin983.fits.....................!
real 56.17
user 53.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29046E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8500       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3751       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5080       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4035       1.0000         .10000E-03   10000.    
    13 'norm      '    .49340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21119       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2212       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24549E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9267       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.753       1.0000         .10000E-03   10000.    
    26 'norm      '    23.831       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0494       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=   6403.894     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3761 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30388E-01    .38983        .77889E-07   -.37432E-03
   2  Prefactor     5.8465        12.809        .91307E-06   -.22367E-04
   3  Prefactor     .10000E-03    .97706       -.60612E-07** at limit **
   4  Prefactor     49.414        34.169       -.16837E-05   -.27592E-03
   5  Prefactor     6.3771        9.2789        .38501E-06   -.65173E-05
   6  norm          5.0150        4.8165        .44495E-07   -.81069E-05
   7  Prefactor     2.4861        2.6197        .12057E-06   -.47237E-04
   8  Prefactor     .10000E-03    15.768       -.88773E-06** at limit **
   9  Prefactor     4.5215        179.83        .43061E-05    .19616E-04
  10  Prefactor     .10000E-03    1.9889        .27556E-07** at limit **
  11  Prefactor     .10000E-03    31.444        .39606E-06** at limit **
  12  Prefactor     2.4040        2.5260        .58816E-07   -.18575E-04
  13  norm          .49331        .79035        .28529E-08   -.23116E-04
  14  Prefactor     .10000E-03    9.8787       -.47624E-06** at limit **
  15  norm          .21122        .23112       -.26127E-08   -.17306E-03
  16  Prefactor     .10000E-03    .99498       -.39136E-08** at limit **
  17  norm          .10000E-03    3.0285        .10933E-07** at limit **
  18  Prefactor     2.2218        2.0393        .35994E-07   -.19014E-04
  19  Prefactor     .10000E-03    2.0487        .72667E-07** at limit **
  20  Prefactor     9.6426        8.1160       -.38651E-06   -.11885E-04
  21  Prefactor     4.9276        11.633        .42793E-05   -.57963E-04
  22  norm          .10000E-03    3.7694        .62584E-08** at limit **
  23  Prefactor     .10000E-03    8.2489        .19798E-06** at limit **
  24  Prefactor     .10000E-03    12.917        .11354E-05** at limit **
  25  Prefactor     12.756        9.2018        .36308E-07    .61725E-06
  26  norm          23.831        13.916       -.73009E-07   -.57912E-05
  27  Prefactor     .10000E-03    55.559        .74104E-07** at limit **
  28  Normalizat    1.0698        .16675        .29880E-06   -.57525E-04
  29  Prefactor     1.0494        .18322       -.48701E-06   -.10332E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0303875
  Prefactor  = 5.8465
  Prefactor  = 0.0001
  Prefactor  = 49.4136
  Prefactor  = 6.37712
  norm       = 5.01502
  Prefactor  = 2.48609
  Prefactor  = 0.0001
  Prefactor  = 4.52146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40405
  norm       = 0.493309
  Prefactor  = 0.0001
  norm       = 0.211222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.22179
  Prefactor  = 0.0001
  Prefactor  = 9.64261
  Prefactor  = 4.92764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7559
  norm       = 23.831
  Prefactor  = 0.0001
  Normalizat = 1.06976
  Prefactor  = 1.04935
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.894     FROM HESSE     STATUS=OK           561 CALLS     4322 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30388E-01    3.1544        .90382E-03   -1.5673    
   2  Prefactor     5.8465        12.771        .16604E-03   -1.5224    
   3  Prefactor     .10000E-03    .99204        .77168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.414        35.262        .57032E-04   -1.4301    
   5  Prefactor     6.3771        9.2763        .15897E-03   -1.5203    
   6  norm          5.0150        4.8085        .16610E-03   -1.5260    
   7  Prefactor     2.4861        2.6035        .12437E-03   -1.5393    
   8  Prefactor     .10000E-03    15.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5215        180.59        .18962E-03   -1.5283    
  10  Prefactor     .10000E-03    2.0653        .22033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4040        2.5103        .12322E-03   -1.5398    
  13  norm          .49331        .78963        .44975E-04   -1.5568    
  14  Prefactor     .10000E-03    9.9383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21122        .21663        .38791E-03   -1.5616    
  16  Prefactor     .10000E-03    1.0193        .15521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0440        .13596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2218        2.0264        .10337E-03   -1.5410    
  19  Prefactor     .10000E-03    4.8881        .22190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6426        8.1157        .12904E-03   -1.5087    
  21  Prefactor     4.9276        11.801        .90601E-03   -1.5264    
  22  norm          .10000E-03    3.7701        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.2595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.756        9.2048        .11217E-03   -1.4994    
  26  norm          23.831        13.920        .82054E-04   -1.4731    
  27  Prefactor     .10000E-03    57.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0698        .19563        .23227E-03   -.90729    
  29  Prefactor     1.0494        .21704        .26213E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99778e-10
Minuit parameter uncertainties:
  1  0.618223
  2  12.7768
  3  5.96728e-08
  4  35.2769
  5  9.27842
  6  4.80884
  7  2.60362
  8  0.000112333
  9  57.3357
  10  5.15525e-08
  11  6.44794e-05
  12  2.51042
  13  0.789649
  14  4.97286e-05
  15  0.216627
  16  1.85725e-06
  17  7.07203e-07
  18  2.02651
  19  1.93404e-05
  20  8.11663
  21  11.8066
  22  1.71269e-07
  23  1.30332e-05
  24  0.000119057
  25  9.20578
  26  13.9221
  27  2.95312e-05
  28  0.195765
  29  0.217223
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.973e-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:  1.049e+00  2.172e-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:  1.070e+00  1.958e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116710/likelihoodResults_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.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) = 6403.89410865
delta logL = -0.000479416360577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.89362941
delta logL = -1.71534338733e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4519       1.0000          .0000       10.000    
     3 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   6403.894     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.895        .90712E-02** at limit **
   2  Index         2.4467        6.1771        .50000        .45401E-05
   3  Normalizat    1.0698        .15938        .39394E-01    .10359E-04
   4  Prefactor     1.0494        .17912        .59277E-01    .11771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44669
  Normalizat = 1.06976
  Prefactor  = 1.04935
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.894     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4467        5.8544        .50000       -.53595    
   3  Normalizat    1.0698        .18575        .23227E-03   -.90729    
   4  Prefactor     1.0494        .20865        .26213E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85178e-11
Minuit parameter uncertainties:
  1  1.14243e-05
  2  6.81407
  3  0.185865
  4  0.208807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116710': 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) = 6403.89362922
delta logL = 1.11676854431e-08

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.142e-05  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.447e+00  6.814e+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.049e+00  2.088e-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:  1.070e+00  1.859e-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/116710/cmap_HighResolution_494121601_494380801_4FGL_J0916.7+3856_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-08-31 06:26:24.722628', job_id='116710', GAL2='1.05', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630416384.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='983' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 116710: <4FGL_J0916.7+3856_daily_bin983> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin983> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 06:10:48 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:10:50 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:10:50 2021
Terminated at Tue Aug 31 06:26:25 2021
Results reported at Tue Aug 31 06:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin983 139.19 38.9479 494121601 494380801 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 :                                   908.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

