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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin393
RA = 139.19, Dec = 38.9479
tmin = 341193601, tmax = 341452801
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='113565', job_status='RUN', time_executed='2021-08-31 06:03:53.809451', time_epoch_executed='1630415033.81' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113565/ft1_4FGL_J0916.7+3856_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113565/ft1_4FGL_J0916.7+3856_daily_bin393.fits outfile=/scratch/kocevski/113565/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin393.fits ra=139.19 dec=38.9479 rad=12.0 tmin=341193601.0 tmax=341452801.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.87
user 3.19
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/113565/ltcube_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.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/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits
.....................!
real 12.51
user 11.52
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/113565/ltcube_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.fits outfile=/scratch/kocevski/113565/expmap_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.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/113565/ltcube_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.fits
.....................!
real 192.25
user 185.61
sys 4.58

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/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits scfile=/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits outfile=/scratch/kocevski/113565/cmap_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.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 1.14
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits scfile=/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits outfile=/scratch/kocevski/113565/cmap_HighResolution_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.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.13
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/113565/ft2_4FGL_J0916.7+3856_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113565/Model_4FGL_J0916.7+3856_daily_bin393.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/113565/ft1_filtered_4FGL_J0916.7+3856_daily_bin393.fits.....................!
real 55.53
user 52.90
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8748       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.2691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82797       1.0000         .10000E-03   10000.    
    13 'norm      '    .77019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.052       1.0000         .10000E-03   10000.    
    15 'norm      '    .12857E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4335       1.0000         .10000E-03   10000.    
    17 'norm      '    .16570E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84463       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7152       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.088       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.356       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78678       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=   6375.027     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3739 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8749        .69975        .10903E-07   -.19713E-03
   2  Prefactor     .10000E-03    6.9826        .10412E-05** at limit **
   3  Prefactor     .10000E-03    1.0061        .91823E-07** at limit **
   4  Prefactor     .10000E-03    6.7362       -.18503E-05** at limit **
   5  Prefactor     .10000E-03    5.5181        .12361E-05** at limit **
   6  norm          8.2698        5.0264       -.74383E-07    .16162E-04
   7  Prefactor     1.0515        2.1020       -.61787E-06   -.11614E-02
   8  Prefactor     .10000E-03    27.252        .51035E-05** at limit **
   9  Prefactor     64.766        47.951        .96046E-05    .61764E-05
  10  Prefactor     5.5185        3.0429        .46853E-07    .16393E-03
  11  Prefactor     .10000E-03    38.709        .18530E-04** at limit **
  12  Prefactor     .82749        2.1458       -.40793E-06   -.86351E-03
  13  norm          .76987        1.4448       -.14090E-06   -.83174E-03
  14  Prefactor     19.048        15.552        .10349E-05    .60187E-03
  15  norm          .10000E-03    .46551        .63254E-07** at limit **
  16  Prefactor     3.4306        2.8404       -.66425E-08   -.15078E-03
  17  norm          .10019E-03    6.0012       -.29058E-05** at limit **
  18  Prefactor     .84438        1.8798       -.34612E-06   -.48289E-03
  19  Prefactor     4.7170        4.7873        .39239E-06   -.41904E-03
  20  Prefactor     13.116        9.0894        .20909E-06   -.13553E-04
  21  Prefactor     .10000E-03    10.411        .53259E-06** at limit **
  22  norm          .10000E-03    26.676        .28686E-05** at limit **
  23  Prefactor     .10001E-03    43.244       -.18015E-04** at limit **
  24  Prefactor     27.103        29.053        .16468E-04    .18825E-03
  25  Prefactor     .10000E-03    3.8017        .77233E-08** at limit **
  26  norm          .10000E-03    5.2183       -.86165E-06** at limit **
  27  Prefactor     41.343        28.917       -.10181E-04    .20749E-04
  28  Normalizat    1.0678        .16916       -.64311E-06    .49784E-03
  29  Prefactor     .78690        .17320       -.48394E-06    .21985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.26981
  Prefactor  = 1.05153
  Prefactor  = 0.0001
  Prefactor  = 64.7658
  Prefactor  = 5.51849
  Prefactor  = 0.0001
  Prefactor  = 0.827491
  norm       = 0.769872
  Prefactor  = 19.0481
  norm       = 0.0001
  Prefactor  = 3.43061
  norm       = 0.000100191
  Prefactor  = 0.84438
  Prefactor  = 4.71699
  Prefactor  = 13.1158
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100006
  Prefactor  = 27.1035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.3433
  Normalizat = 1.06782
  Prefactor  = 0.786898
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.027     FROM HESSE     STATUS=OK           557 CALLS     4296 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8749        .69826        .39421E-04   -1.5434    
   2  Prefactor     .10000E-03    7.0395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2756        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.2698        5.0188        .13491E-03   -1.5133    
   7  Prefactor     1.0515        2.0677        .15408E-03   -1.5503    
   8  Prefactor     .10000E-03    27.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.766        47.863        .24935E-03   -1.4097    
  10  Prefactor     5.5185        3.0442        .10022E-03   -1.5238    
  11  Prefactor     .10000E-03    38.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .82749        2.0426        .17322E-03   -1.5526    
  13  norm          .76987        1.1244        .12331E-02   -1.5532    
  14  Prefactor     19.048        14.841        .91761E-04   -1.4835    
  15  norm          .10000E-03    1.4664        .83508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4306        2.2759        .91059E-04   -1.5338    
  17  norm          .10019E-03    25.148        .34843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .84438        1.7687        .14661E-03   -1.5524    
  19  Prefactor     4.7170        4.6796        .16089E-03   -1.5274    
  20  Prefactor     13.116        9.0857        .11061E-03   -1.4983    
  21  Prefactor     .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    27.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    44.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.103        29.112        .76972E-04   -1.4666    
  25  Prefactor     .10000E-03    3.8227        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.2370        .17812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     41.343        28.919        .62334E-04   -1.4421    
  28  Normalizat    1.0678        .19620        .21945E-03   -.90792    
  29  Prefactor     .78690        .20099        .27199E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7058e-09
Minuit parameter uncertainties:
  1  0.698267
  2  3.2219e-06
  3  1.17916e-05
  4  2.66678e-06
  5  4.97834e-06
  6  5.01903
  7  2.06781
  8  4.02111e-06
  9  47.8918
  10  3.04433
  11  1.42934e-05
  12  2.04278
  13  1.12441
  14  14.8439
  15  7.85588e-06
  16  2.27592
  17  0.00438666
  18  1.76884
  19  4.68
  20  9.08666
  21  4.35127e-06
  22  0.000565757
  23  0.00106235
  24  29.1273
  25  1.13876e-06
  26  2.76688e-06
  27  28.9287
  28  0.196333
  29  0.201176
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.905e+01  1.484e+01  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:  7.869e-01  2.012e-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.068e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 8.17e-06

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): 0
logL (Free Index) = 6374.80947459
delta logL = 0.217340784125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6374.80910682
delta logL = 0.217708553874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.742       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0765       1.0000          .0000       10.000    
     3 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77847       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=   6374.809     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.766        752.02        .20133E-02    .42084E-04
   2  Index         2.0773        5.5258        .17428        .42346E-04
   3  Normalizat    1.0798        .12002        .38887E-01    .31421E-05
   4  Prefactor     .77851        .10450        .43436E-01    .18085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.766
  Index      = 2.07731
  Normalizat = 1.07976
  Prefactor  = 0.778511
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.809     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.766        20.412        .40266E-03   -1.4712    
   2  Index         2.0773        .56336        .88444E-02   -.62431    
   3  Normalizat    1.0798        .18407        .21840E-03   -.90404    
   4  Prefactor     .77851        .19843        .27330E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76117e-10
Minuit parameter uncertainties:
  1  20.4176
  2  0.565182
  3  0.184176
  4  0.198608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113565': 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) = 6374.80910468
delta logL = 0.217710691981

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.477e+01  2.042e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.077e+00  5.652e-01  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:  7.785e-01  1.986e-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.080e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.08 +/- 0.57
Photon Flux (Free Index): 2.55e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.55e-05

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/113565/cmap_HighResolution_341193601_341452801_4FGL_J0916.7+3856_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.47e-05', photon_flux_error='2.68e-08', dlogl='2.18e-01', energy_flux='1.05e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-08-31 06:17:24.403523', photon_index_error2='0.57', photon_index2='2.08', ts='4.36', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.07', time_epoch_completed='1630415844.4', return_code='0', job_id='113565', GAL2='0.78', EG2='1.08', return_code2='0', energy_flux_error='8.17e-06', photon_flux_error2='2.54e-08', ts2='4.79', photon_index='2.46' WHERE bin_id='393' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 113565: <4FGL_J0916.7+3856_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin393 139.19 38.9479 341193601 341452801 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 :                                   805.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

