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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin352
RA = 139.19, Dec = 38.9479
tmin = 330566401, tmax = 330825601
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='113524', job_status='RUN', time_executed='2021-08-31 06:03:33.540017', time_epoch_executed='1630415013.54' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113524/ft1_4FGL_J0916.7+3856_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113524/ft1_4FGL_J0916.7+3856_daily_bin352.fits outfile=/scratch/kocevski/113524/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin352.fits ra=139.19 dec=38.9479 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.18
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/113524/ltcube_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.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/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits
.....................!
real 11.79
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/113524/ltcube_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.fits outfile=/scratch/kocevski/113524/expmap_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.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/113524/ltcube_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.fits
.....................!
real 192.04
user 184.88
sys 5.46

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/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits scfile=/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits outfile=/scratch/kocevski/113524/cmap_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits scfile=/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits outfile=/scratch/kocevski/113524/cmap_HighResolution_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.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.59
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/113524/ft2_4FGL_J0916.7+3856_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113524/Model_4FGL_J0916.7+3856_daily_bin352.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/113524/ft1_filtered_4FGL_J0916.7+3856_daily_bin352.fits.....................!
real 50.17
user 48.71
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44810       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20689E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    37.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44140E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35667E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8488       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3891       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17403E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.752       1.0000         .10000E-03   10000.    
    22 'norm      '    .15938E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.374       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4317       1.0000         .10000E-03   10000.    
    26 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.184       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5268       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .48535       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=   5425.822     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3710 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44787        .61555        .39343E-08   -.10390E-04
   2  Prefactor     7.1606        10.528        .10500E-06   -.60684E-05
   3  Prefactor     .10000E-03    .98598        .22519E-08** at limit **
   4  Prefactor     .10000E-03    10.680       -.12312E-07** at limit **
   5  Prefactor     .10000E-03    4.3930       -.46700E-08** at limit **
   6  norm          37.287        10.709       -.26049E-07   -.31730E-04
   7  Prefactor     .10000E-03    .75895       -.14786E-07** at limit **
   8  Prefactor     .10000E-03    17.469        .42166E-06** at limit **
   9  Prefactor     .10000E-03    30.082       -.13357E-06** at limit **
  10  Prefactor     .10000E-03    1.3366        .12365E-07** at limit **
  11  Prefactor     .10000E-03    23.677       -.12701E-05** at limit **
  12  Prefactor     .10000E-03    1.9709       -.19866E-06** at limit **
  13  norm          2.5118        1.9079        .35718E-07   -.72570E-04
  14  Prefactor     6.7767        25.825        .31262E-05   -.45396E-04
  15  norm          .10000E-03    .42783        .17739E-06** at limit **
  16  Prefactor     8.3907        3.6975       -.21683E-06   -.76080E-03
  17  norm          3.7648        12.455       -.22674E-05   -.12328E-04
  18  Prefactor     .10000E-03    1.7668        .28793E-06** at limit **
  19  Prefactor     3.5707        5.6270        .18382E-06    .25508E-04
  20  Prefactor     .10000E-03    14.471        .14323E-05** at limit **
  21  Prefactor     24.652        22.769        .17844E-07   -.85850E-05
  22  norm          .10000E-03    8.9228       -.16075E-06** at limit **
  23  Prefactor     .10000E-03    18.317       -.68055E-06** at limit **
  24  Prefactor     38.582        39.460       -.22010E-06   -.12848E-04
  25  Prefactor     1.4347        19.922        .26262E-05   -.33808E-04
  26  norm          .10000E-03    6.1081        .50274E-07** at limit **
  27  Prefactor     15.064        24.401       -.23061E-06   -.12380E-04
  28  Normalizat    1.5267        .20669       -.11539E-06   -.12572E-03
  29  Prefactor     .48535        .19971       -.93660E-07   -.49062E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.447875
  Prefactor  = 7.16063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51177
  Prefactor  = 6.77672
  norm       = 0.0001
  Prefactor  = 8.39069
  norm       = 3.76477
  Prefactor  = 0.0001
  Prefactor  = 3.57067
  Prefactor  = 0.0001
  Prefactor  = 24.6516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5821
  Prefactor  = 1.43468
  norm       = 0.0001
  Prefactor  = 15.0638
  Normalizat = 1.52669
  Prefactor  = 0.485353
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.822     FROM HESSE     STATUS=OK           553 CALLS     4263 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44787        .57230        .63798E-03   -1.5574    
   2  Prefactor     7.1606        10.437        .75107E-03   -1.5173    
   3  Prefactor     .10000E-03    .99246        .71366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4039        .15077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          37.287        10.702        .65677E-04   -1.4486    
   7  Prefactor     .10000E-03    .76641        .62646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.096        .21218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3412        .83153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.618        .21315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0002        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5118        1.9036        .84814E-04   -1.5391    
  14  Prefactor     6.7767        25.280        .15331E-03   -1.5187    
  15  norm          .10000E-03    .64126        .82564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3907        3.3931        .81526E-04   -1.5129    
  17  norm          3.7648        12.187        .20853E-03   -1.5320    
  18  Prefactor     .10000E-03    3.0260        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5707        5.6145        .20471E-03   -1.5330    
  20  Prefactor     .10000E-03    14.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.652        22.704        .80517E-04   -1.4715    
  22  norm          .10000E-03    8.9292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.582        39.556        .64702E-04   -1.4465    
  25  Prefactor     1.4347        19.812        .18049E-02   -1.5468    
  26  norm          .10000E-03    6.1211        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.064        24.380        .10278E-03   -1.4932    
  28  Normalizat    1.5267        .24043        .21377E-03   -.77031    
  29  Prefactor     .48535        .22893        .35949E-03   -1.1265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79722e-10
Minuit parameter uncertainties:
  1  0.572303
  2  10.4392
  3  1.41428e-07
  4  3.47675e-07
  5  1.12989e-09
  6  10.7027
  7  4.99413e-07
  8  1.11076e-05
  9  1.00109e-05
  10  5.4729e-07
  11  8.08303e-05
  12  5.69151e-06
  13  1.90368
  14  25.3197
  15  4.06137e-06
  16  3.39322
  17  12.1949
  18  2.41401e-05
  19  5.61531
  20  0.0001486
  21  22.7118
  22  1.39915e-05
  23  4.09823e-05
  24  39.5829
  25  10.6667
  26  1.91388e-06
  27  24.3957
  28  0.240613
  29  0.229365
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  6.777e+00  2.532e+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:  4.854e-01  2.294e-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.527e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113524/likelihoodResults_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.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) = 5425.79895997
delta logL = 0.0231746073441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5425.79641076
delta logL = 0.0257238124541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7308       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7893       1.0000          .0000       10.000    
     3 'Normalizat'    1.5194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49014       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=   5425.796     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7311        19.797        .16778E-03    .22191E-03
   2  Index         2.7836        1.6149        .12275E-01    .75939E-04
   3  Normalizat    1.5203        .22799        .21413E-03    .31350E-03
   4  Prefactor     .48927        .22546        .35814E-03    .13713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.73112
  Index      = 2.78363
  Normalizat = 1.52029
  Prefactor  = 0.489273
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.796     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7311        17.731        .67114E-05   -1.5229    
   2  Index         2.7836        1.4516        .49102E-03   -.45925    
   3  Normalizat    1.5203        .22822        .42826E-04   -.77210    
   4  Prefactor     .48927        .22552        .14326E-04   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63641e-10
Minuit parameter uncertainties:
  1  17.7472
  2  1.47824
  3  0.22838
  4  0.225933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113524': 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) = 5425.79639405
delta logL = 0.0257405273578

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.731e+00  1.775e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.784e+00  1.478e+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:  4.893e-01  2.259e-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.520e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/113524/cmap_HighResolution_330566401_330825601_4FGL_J0916.7+3856_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-31 06:17:01.412072', job_id='113524', GAL2='0.49', fit_tolerance='1e-08', EG2='1.52', EG='1.53', time_epoch_completed='1630415821.41', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='2.57e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='352' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 113524: <4FGL_J0916.7+3856_daily_bin352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin352 139.19 38.9479 330566401 330825601 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 :                                   801.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

