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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin757
RA = 139.19, Dec = 38.9479
tmin = 435542401, tmax = 435801601
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='115223', job_status='RUN', time_executed='2021-08-31 06:08:47.161991', time_epoch_executed='1630415327.16' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115223/ft1_4FGL_J0916.7+3856_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115223/ft1_4FGL_J0916.7+3856_daily_bin757.fits outfile=/scratch/kocevski/115223/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin757.fits ra=139.19 dec=38.9479 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.79
user 5.16
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/115223/ltcube_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.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/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits
.....................!
real 12.29
user 11.60
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/115223/ltcube_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.fits outfile=/scratch/kocevski/115223/expmap_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.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/115223/ltcube_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.fits
.....................!
real 192.82
user 186.68
sys 5.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/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits scfile=/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits outfile=/scratch/kocevski/115223/cmap_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.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.79
user 0.38
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits scfile=/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits outfile=/scratch/kocevski/115223/cmap_HighResolution_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.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.79
user 0.36
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/115223/ft2_4FGL_J0916.7+3856_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115223/Model_4FGL_J0916.7+3856_daily_bin757.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/115223/ft1_filtered_4FGL_J0916.7+3856_daily_bin757.fits.....................!
real 47.94
user 46.09
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.524       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31818       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7126       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9539       1.0000         .10000E-03   10000.    
    13 'norm      '    .86359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18718E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2394       1.0000         .10000E-03   10000.    
    17 'norm      '    18.768       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.722       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.975       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4380       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87499       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94766       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=   5104.698     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3809 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4521        .76679        .84377E-07   -.47635E-03
   2  Prefactor     23.536        19.936       -.92389E-06   -.85312E-03
   3  Prefactor     .37069        3.5570        .13701E-05   -.11373E-02
   4  Prefactor     .31503        21.076       -.11309E-05    .29973E-04
   5  Prefactor     .10000E-03    12.328       -.95697E-06** at limit **
   6  norm          2.7835        7.3420        .51668E-06    .67314E-05
   7  Prefactor     5.7128        3.4799       -.10178E-06    .10230E-03
   8  Prefactor     41.125        28.615       -.36659E-06   -.41516E-04
   9  Prefactor     .10005E-03    216.85       -.11807E-04** at limit **
  10  Prefactor     4.9726        4.2727        .10581E-05   -.75786E-04
  11  Prefactor     .10000E-03    42.092       -.88587E-07** at limit **
  12  Prefactor     6.9542        4.7728        .40076E-06    .10563E-03
  13  norm          .86367        1.2405       -.31412E-07   -.11858E-03
  14  Prefactor     .10210E-03    25.830        .16728E-05** at limit **
  15  norm          .10000E-03    .37060       -.30187E-06** at limit **
  16  Prefactor     1.2385        2.8658        .75323E-06    .63263E-03
  17  norm          18.770        11.715        .26313E-06   -.56492E-03
  18  Prefactor     .10000E-03    1.8530       -.16128E-06** at limit **
  19  Prefactor     .10000E-03    3.3292        .47404E-08** at limit **
  20  Prefactor     22.721        14.149       -.59075E-07   -.56030E-05
  21  Prefactor     .10000E-03    13.103        .16754E-05** at limit **
  22  norm          .10000E-03    13.866       -.65848E-06** at limit **
  23  Prefactor     27.971        36.595       -.94576E-06   -.29172E-04
  24  Prefactor     20.547        35.793        .52202E-06    .16072E-04
  25  Prefactor     5.4383        5.7864       -.81653E-07   -.30434E-04
  26  norm          .10000E-03    5.0416        .18609E-07** at limit **
  27  Prefactor     .10000E-03    13.843       -.19237E-06** at limit **
  28  Normalizat    .87476        .19971        .70258E-06   -.77989E-04
  29  Prefactor     .94790        .19451       -.48153E-06   -.29226E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45205
  Prefactor  = 23.5363
  Prefactor  = 0.370692
  Prefactor  = 0.315026
  Prefactor  = 0.0001
  norm       = 2.78353
  Prefactor  = 5.71277
  Prefactor  = 41.1254
  Prefactor  = 0.000100046
  Prefactor  = 4.97257
  Prefactor  = 0.0001
  Prefactor  = 6.95416
  norm       = 0.863674
  Prefactor  = 0.000102104
  norm       = 0.0001
  Prefactor  = 1.23854
  norm       = 18.7698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7207
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 27.9714
  Prefactor  = 20.5472
  Prefactor  = 5.43828
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.87476
  Prefactor  = 0.947897
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.698     FROM HESSE     STATUS=OK           575 CALLS     4384 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4521        .76125        .42572E-04   -1.5467    
   2  Prefactor     23.536        21.533        .82588E-04   -1.4737    
   3  Prefactor     .37069        13.365        .18380E-02   -1.5586    
   4  Prefactor     .31503        22.913        .97272E-01   -1.5596    
   5  Prefactor     .10000E-03    12.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7835        7.3093        .24388E-03   -1.5374    
   7  Prefactor     5.7128        3.4659        .96205E-04   -1.5230    
   8  Prefactor     41.125        28.536        .62511E-04   -1.4425    
   9  Prefactor     .10005E-03    221.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9726        4.2609        .65326E-03   -1.5262    
  11  Prefactor     .10000E-03    42.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9542        4.7005        .11556E-03   -1.5180    
  13  norm          .86367        1.0831        .92371E-03   -1.5522    
  14  Prefactor     .10210E-03    200.68        .59491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59006        .75640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2385        2.5897        .15439E-03   -1.5485    
  17  norm          18.770        10.764        .92451E-04   -1.4841    
  18  Prefactor     .10000E-03    1.8938        .18953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0529        .24903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.721        14.146        .84031E-04   -1.4754    
  21  Prefactor     .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.971        36.724        .75745E-04   -1.4650    
  24  Prefactor     20.547        35.715        .88371E-04   -1.4801    
  25  Prefactor     5.4383        5.7883        .17231E-03   -1.5242    
  26  norm          .10000E-03    5.0457        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87476        .22962        .24848E-03   -.97353    
  29  Prefactor     .94790        .22444        .25639E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46853e-08
Minuit parameter uncertainties:
  1  0.761251
  2  21.54
  3  4.45207
  4  5.37456
  5  0.00011593
  6  7.31166
  7  3.46605
  8  28.5459
  9  0.0064378
  10  4.26115
  11  0.000126059
  12  4.70077
  13  1.0831
  14  0.0412347
  15  1.46926e-05
  16  2.5899
  17  10.7649
  18  1.5007e-05
  19  4.46316e-05
  20  14.1482
  21  0.000229086
  22  8.13888e-05
  23  36.7539
  24  35.7517
  25  5.78892
  26  1.57473e-07
  27  3.08467e-05
  28  0.229873
  29  0.224656
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.021e-04  4.123e-02  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.479e-01  2.247e-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.748e-01  2.299e-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: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115223/likelihoodResults_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.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) = 5104.69799904
delta logL = -2.3114396754e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5104.69799904
delta logL = -2.31108069784e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4571       1.0000          .0000       10.000    
     3 'Normalizat'    .87475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94791       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5104.695     FROM MIGRAD    STATUS=CONVERGED    218 CALLS      384 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0097        54.609        .18143E-02    .20742E-03
   2  Index         2.8783        3.1628        .89128E-02    .22258E-05
   3  Normalizat    .87148        .20703        .24886E-03   -.17451E-04
   4  Prefactor     .94939        .21891        .25618E-03   -.45842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00965
  Index      = 2.87828
  Normalizat = 0.871481
  Prefactor  = 0.949395
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.695     FROM HESSE     STATUS=OK            27 CALLS      411 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0097        44.491        .36285E-03   -1.5507    
   2  Index         2.8783        2.9145        .35651E-03   -.43824    
   3  Normalizat    .87148        .20695        .99545E-05   -.97470    
   4  Prefactor     .94939        .21911        .10247E-04   -.94436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52509e-12
Minuit parameter uncertainties:
  1  13.4144
  2  3.1664
  3  0.207134
  4  0.219312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115223': 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) = 5104.69468935
delta logL = 0.00328658457966

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.494e-01  2.193e-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.715e-01  2.071e-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/115223/cmap_HighResolution_435542401_435801601_4FGL_J0916.7+3856_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-08-31 06:22:34.702533', job_id='115223', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630416154.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.29e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='757' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 115223: <4FGL_J0916.7+3856_daily_bin757> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin757 139.19 38.9479 435542401 435801601 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 :                                   827.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

