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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin696
RA = 139.19, Dec = 38.9479
tmin = 419731201, tmax = 419990401
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='115134', job_status='RUN', time_executed='2021-08-31 06:08:40.852211', time_epoch_executed='1630415320.85' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115134/ft1_4FGL_J0916.7+3856_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115134/ft1_4FGL_J0916.7+3856_daily_bin696.fits outfile=/scratch/kocevski/115134/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin696.fits ra=139.19 dec=38.9479 rad=12.0 tmin=419731201.0 tmax=419990401.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 6.27
user 5.55
sys 0.64

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/115134/ltcube_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.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/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits
.....................!
real 12.51
user 11.55
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/115134/ltcube_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.fits outfile=/scratch/kocevski/115134/expmap_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.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/115134/ltcube_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.fits
.....................!
real 193.49
user 186.70
sys 6.13

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/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits scfile=/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits outfile=/scratch/kocevski/115134/cmap_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.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.91
user 0.37
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits scfile=/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits outfile=/scratch/kocevski/115134/cmap_HighResolution_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.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.91
user 0.39
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/115134/ft2_4FGL_J0916.7+3856_daily_bin696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115134/Model_4FGL_J0916.7+3856_daily_bin696.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/115134/ft1_filtered_4FGL_J0916.7+3856_daily_bin696.fits.....................!
real 48.40
user 46.40
sys 1.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26908E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6971       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13822E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .93120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7726       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79212       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7839       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.9249       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.530       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8420       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90991       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98705       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=   5365.779     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3770 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5872        .73639       -.48342E-07   -.17681E-04
   2  Prefactor     11.058        16.351        .47801E-06    .28879E-03
   3  Prefactor     .24630E-01    1.5365       -.58712E-07    .19633E-03
   4  Prefactor     2.6158        46.156        .37059E-05    .46678E-04
   5  Prefactor     .10000E-03    3.7494        .65319E-07** at limit **
   6  norm          3.5993        3.5596       -.32989E-06   -.18817E-03
   7  Prefactor     .10000E-03    1.4351       -.33815E-07** at limit **
   8  Prefactor     .10000E-03    23.570       -.13229E-05** at limit **
   9  Prefactor     .10004E-03    107.83       -.13925E-04** at limit **
  10  Prefactor     1.4225        3.9916        .11589E-05   -.10556E-03
  11  Prefactor     .10000E-03    16.435        .12097E-05** at limit **
  12  Prefactor     .10549E-03    1.5600        .30888E-06** at limit **
  13  norm          .93125        1.5954        .21152E-06    .10027E-03
  14  Prefactor     12.091        20.626       -.30413E-06   -.72683E-04
  15  norm          .10000E-03    .20242       -.35547E-06** at limit **
  16  Prefactor     4.7736        2.6119        .81855E-06   -.10769E-03
  17  norm          1.8698        18.109        .15002E-05   -.17158E-03
  18  Prefactor     .79542        2.8708        .39450E-06   -.61066E-03
  19  Prefactor     .10000E-03    2.2484       -.72697E-08** at limit **
  20  Prefactor     5.7848        8.1856        .18530E-05   -.52858E-03
  21  Prefactor     .10000E-03    7.2994       -.13368E-06** at limit **
  22  norm          7.9272        14.491        .71069E-07   -.19877E-04
  23  Prefactor     .10000E-03    11.485        .14087E-06** at limit **
  24  Prefactor     .10000E-03    13.084       -.99416E-06** at limit **
  25  Prefactor     24.531        12.508        .25591E-06    .30624E-04
  26  norm          .10000E-03    3.0449       -.34278E-07** at limit **
  27  Prefactor     9.8464        28.319        .29253E-06   -.13401E-04
  28  Normalizat    .90965        .17511       -.12781E-05    .69978E-04
  29  Prefactor     .98732        .18392       -.50476E-06    .24780E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58724
  Prefactor  = 11.0575
  Prefactor  = 0.0246299
  Prefactor  = 2.61583
  Prefactor  = 0.0001
  norm       = 3.59933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 1.42252
  Prefactor  = 0.0001
  Prefactor  = 0.000105493
  norm       = 0.931248
  Prefactor  = 12.0907
  norm       = 0.0001
  Prefactor  = 4.77361
  norm       = 1.86976
  Prefactor  = 0.795421
  Prefactor  = 0.0001
  Prefactor  = 5.78482
  Prefactor  = 0.0001
  norm       = 7.92718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.531
  norm       = 0.0001
  Prefactor  = 9.84637
  Normalizat = 0.909649
  Prefactor  = 0.987324
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.779     FROM HESSE     STATUS=OK           579 CALLS     4349 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5872        .73812        .39437E-04   -1.5456    
   2  Prefactor     11.058        17.567        .12029E-03   -1.5043    
   3  Prefactor     .24630E-01    5.1915        .27673E-01   -1.5677    
   4  Prefactor     2.6158        45.581        .24806E-03   -1.5384    
   5  Prefactor     .10000E-03    3.7588        .13846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5993        3.5665        .13391E-03   -1.5329    
   7  Prefactor     .10000E-03    1.4705        .17113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    115.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4225        3.9513        .23031E-03   -1.5469    
  11  Prefactor     .10000E-03    16.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10549E-03    5.0268        .27750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .93125        1.3728        .11735E-02   -1.5515    
  14  Prefactor     12.091        19.826        .11528E-03   -1.5012    
  15  norm          .10000E-03    .32122        .60633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7736        2.6120        .40471E-03   -1.5271    
  17  norm          1.8698        15.742        .30458E-03   -1.5434    
  18  Prefactor     .79542        2.7640        .18948E-03   -1.5530    
  19  Prefactor     .10000E-03    2.3356        .21436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7848        8.2591        .83501E-03   -1.5227    
  21  Prefactor     .10000E-03    7.3045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.9272        14.476        .14243E-03   -1.5145    
  23  Prefactor     .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.531        12.516        .80880E-04   -1.4717    
  26  norm          .10000E-03    3.0463        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.8464        28.379        .12773E-03   -1.5080    
  28  Normalizat    .90965        .20613        .22925E-03   -.96122    
  29  Prefactor     .98732        .21678        .24396E-03   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71998e-09
Minuit parameter uncertainties:
  1  0.738129
  2  17.575
  3  0.713778
  4  21.8578
  5  6.77026e-06
  6  3.56674
  7  3.87839e-06
  8  0.000159163
  9  0.00423785
  10  3.95201
  11  0.00013881
  12  0.0105103
  13  1.37289
  14  19.8369
  15  7.53897e-06
  16  2.61203
  17  10.8541
  18  2.76447
  19  2.63005e-06
  20  8.26076
  21  1.09432e-05
  22  14.4825
  23  2.0679e-05
  24  0.000102922
  25  12.5172
  26  1.20724e-06
  27  28.4181
  28  0.20631
  29  0.216969
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.209e+01  1.984e+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:  9.873e-01  2.170e-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:  9.096e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115134/likelihoodResults_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.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): 0
logL (Free Index) = 5365.53597749
delta logL = 0.242700036953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5365.52846661
delta logL = 0.250210916304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0756       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3022       1.0000          .0000       10.000    
     3 'Normalizat'    .88298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0071       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=   5365.528     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      295 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0741        24.157        .16198E-03   -.12761E-02
   2  Index         3.3033        2.3554        .69622E-02   -.22759E-03
   3  Normalizat    .88289        .19766        .23229E-03   -.65427E-03
   4  Prefactor     1.0070        .21448        .24182E-03   -.55627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07411
  Index      = 3.30326
  Normalizat = 0.882891
  Prefactor  = 1.00702
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.528     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0741        11.823        .64791E-05   -1.5257    
   2  Index         3.3033        1.2977        .27849E-03   -.34622    
   3  Normalizat    .88289        .19631        .46457E-04   -.97064    
   4  Prefactor     1.0070        .21295        .48365E-04   -.92496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1051e-09
Minuit parameter uncertainties:
  1  11.8281
  2  1.31473
  3  0.196465
  4  0.213129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115134': 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) = 5365.52846477
delta logL = 0.250212761315

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.074e+00  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.303e+00  1.315e+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.007e+00  2.131e-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.829e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 139.190 38.948
Photon Index (Free Index): 3.30 +/- 1.31
Photon Flux (Free Index): 3.95e-08 +/- 4.34e-08
Energy Flux (Free Index): 6.97e-06 +/- 7.36e-06

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/115134/cmap_HighResolution_419731201_419990401_4FGL_J0916.7+3856_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', comment='SUCCESS', energy_flux2='6.97e-06', dlogl='2.50e-01', photon_flux2='3.95e-08', job_status='DONE', time_completed='2021-08-31 06:22:41.226887', photon_index_error2='1.31', photon_index2='3.30', ts='0.79', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='7.36e-06', EG='0.91', time_epoch_completed='1630416161.23', return_code='0', job_id='115134', GAL2='1.01', EG2='0.88', return_code2='0', photon_flux_error2='4.34e-08', ts2='1.33', photon_index='2.46' WHERE bin_id='696' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 115134: <4FGL_J0916.7+3856_daily_bin696> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin696> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 06:06:14 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:06:15 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:15 2021
Terminated at Tue Aug 31 06:22:41 2021
Results reported at Tue Aug 31 06:22:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin696 139.19 38.9479 419731201 419990401 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 :                                   841.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

