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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin904
RA = 139.19, Dec = 38.9479
tmin = 473644801, tmax = 473904001
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='116593', job_status='RUN', time_executed='2021-08-31 06:14:19.303566', time_epoch_executed='1630415659.3' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116593/ft1_4FGL_J0916.7+3856_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116593/ft1_4FGL_J0916.7+3856_daily_bin904.fits outfile=/scratch/kocevski/116593/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin904.fits ra=139.19 dec=38.9479 rad=12.0 tmin=473644801.0 tmax=473904001.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.04
user 3.54
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116593/ft1_filtered_4FGL_J0916.7+3856_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/116593/ltcube_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.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/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits
.....................!
real 12.93
user 12.12
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116593/ft1_filtered_4FGL_J0916.7+3856_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/116593/ltcube_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.fits outfile=/scratch/kocevski/116593/expmap_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.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/116593/ltcube_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.fits
.....................!
real 193.98
user 185.69
sys 5.44

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/116593/ft1_filtered_4FGL_J0916.7+3856_daily_bin904.fits scfile=/scratch/kocevski/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits outfile=/scratch/kocevski/116593/cmap_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.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.29
user 0.36
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116593/ft1_filtered_4FGL_J0916.7+3856_daily_bin904.fits scfile=/scratch/kocevski/116593/ft2_4FGL_J0916.7+3856_daily_bin904.fits outfile=/scratch/kocevski/116593/cmap_HighResolution_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.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.42
user 0.37
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.437       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1726       1.0000         .10000E-03   10000.    
    17 'norm      '    .15541E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9625       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.614       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9539       1.0000         .10000E-03   10000.    
    26 'norm      '    24.284       1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.918       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .55242       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3233       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=   5973.243     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3711 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7165        .78814       -.71948E-07   -.18770E-04
   2  Prefactor     .10000E-03    6.9183        .27461E-06** at limit **
   3  Prefactor     1.5633        2.7758        .31182E-05    .35466E-05
   4  Prefactor     .10000E-03    9.6547        .93754E-07** at limit **
   5  Prefactor     .10000E-03    7.6764       -.84052E-07** at limit **
   6  norm          .10000E-03    3.1834        .23570E-07** at limit **
   7  Prefactor     3.4190        2.3231        .13937E-09    .14415E-03
   8  Prefactor     8.2896        28.640       -.19003E-06    .27027E-04
   9  Prefactor     .10000E-03    34.835        .44133E-06** at limit **
  10  Prefactor     2.2058        2.6504        .20866E-07    .21479E-03
  11  Prefactor     .10000E-03    19.012       -.99827E-06** at limit **
  12  Prefactor     11.155        4.5383        .27935E-06    .24888E-02
  13  norm          1.2694        1.4573        .33777E-06    .42099E-04
  14  Prefactor     32.391        21.781        .25551E-05    .52651E-03
  15  norm          .10000E-03    .23196        .42699E-07** at limit **
  16  Prefactor     8.1721        3.4908       -.29954E-07    .93500E-03
  17  norm          .10003E-03    8.4613       -.70071E-05** at limit **
  18  Prefactor     .10000E-03    1.7878       -.37374E-06** at limit **
  19  Prefactor     3.9628        4.3998        .24110E-08    .17019E-03
  20  Prefactor     14.785        9.5912        .20443E-07    .28194E-04
  21  Prefactor     .10000E-03    10.008        .88081E-07** at limit **
  22  norm          .10000E-03    4.1354       -.14975E-07** at limit **
  23  Prefactor     .10000E-03    7.7340       -.12409E-06** at limit **
  24  Prefactor     20.611        36.540        .82123E-06    .18427E-03
  25  Prefactor     7.9554        7.5379       -.38246E-08    .81772E-04
  26  norm          24.287        13.302       -.38457E-07    .18572E-04
  27  Prefactor     44.929        40.193        .15545E-06    .31573E-03
  28  Normalizat    .55205        .18436        .21903E-05    .92984E-03
  29  Prefactor     1.3236        .18759       -.15994E-05    .99491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7165
  Prefactor  = 0.0001
  Prefactor  = 1.56331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41905
  Prefactor  = 8.2896
  Prefactor  = 0.000100003
  Prefactor  = 2.2058
  Prefactor  = 0.000100001
  Prefactor  = 11.1551
  norm       = 1.2694
  Prefactor  = 32.3912
  norm       = 0.0001
  Prefactor  = 8.17214
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 3.96283
  Prefactor  = 14.7845
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6113
  Prefactor  = 7.95544
  norm       = 24.2865
  Prefactor  = 44.929
  Normalizat = 0.552045
  Prefactor  = 1.3236
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.243     FROM HESSE     STATUS=OK           549 CALLS     4260 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7165        .78460        .44744E-04   -1.5446    
   2  Prefactor     .10000E-03    6.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5633        2.8801        .84501E-03   -1.5458    
   4  Prefactor     .10000E-03    9.6678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2064        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4190        2.3190        .93076E-04   -1.5338    
   8  Prefactor     8.2896        28.622        .13925E-03   -1.5132    
   9  Prefactor     .10000E-03    34.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2058        2.6428        .13353E-03   -1.5411    
  11  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.155        4.5463        .95153E-04   -1.5040    
  13  norm          1.2694        1.4287        .48065E-03   -1.5483    
  14  Prefactor     32.391        22.277        .70355E-04   -1.4569    
  15  norm          .10000E-03    .27961        .66542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1721        3.2412        .80355E-04   -1.5136    
  17  norm          .10003E-03    19.288        .35467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8574        .20125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9628        4.3778        .16055E-03   -1.5310    
  20  Prefactor     14.785        9.5891        .10417E-03   -1.4939    
  21  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1363        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.7404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.611        36.772        .88218E-04   -1.4800    
  25  Prefactor     7.9554        7.5451        .14217E-03   -1.5144    
  26  norm          24.287        13.309        .81287E-04   -1.4722    
  27  Prefactor     44.929        40.304        .59821E-04   -1.4366    
  28  Normalizat    .55205        .21162        .31214E-03   -1.1006    
  29  Prefactor     1.3236        .21567        .23196E-03   -.82608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.833e-09
Minuit parameter uncertainties:
  1  0.784605
  2  4.9357e-05
  3  2.8804
  4  5.72346e-05
  5  7.56588e-05
  6  1.09594e-06
  7  2.31911
  8  28.6691
  9  0.000698119
  10  2.64289
  11  0.000337334
  12  4.54645
  13  1.42878
  14  22.2823
  15  6.1979e-08
  16  3.24129
  17  0.00142962
  18  1.87107e-05
  19  4.37812
  20  9.59012
  21  6.30724e-05
  22  2.60924e-06
  23  7.62643e-05
  24  36.8123
  25  7.54602
  26  13.3111
  27  40.3289
  28  0.211928
  29  0.215817
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.239e+01  2.228e+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:  1.324e+00  2.158e-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:  5.520e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.23e-05

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) = 5973.21122822
delta logL = 0.0314127602323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5973.20959378
delta logL = 0.0330471911529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.566       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6443       1.0000          .0000       10.000    
     3 'Normalizat'    .54020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3325       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=   5973.210     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      302 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.567        30.029        .76304E-04    .53786E-04
   2  Index         2.6441        .82165        .65609E-02    .43714E-03
   3  Normalizat    .54044        .19557        .31524E-03    .83270E-04
   4  Prefactor     1.3322        .21206        .23132E-03    .15858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5669
  Index      = 2.64413
  Normalizat = 0.540441
  Prefactor  = 1.33223
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.210     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.567        27.555        .30522E-05   -1.4657    
   2  Index         2.6441        .75345        .13122E-02   -.49062    
   3  Normalizat    .54044        .19484        .12610E-04   -1.1058    
   4  Prefactor     1.3322        .21161        .46265E-04   -.82354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96568e-11
Minuit parameter uncertainties:
  1  27.5673
  2  0.757164
  3  0.195091
  4  0.211746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116593': 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) = 5973.209593
delta logL = 0.0330479712993

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.757e+01  2.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.644e+00  7.572e-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:  1.332e+00  2.117e-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:  5.404e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.64 +/- 0.76
Photon Flux (Free Index): 6.74e-08 +/- 5.46e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.13e-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/116593/cmap_HighResolution_473644801_473904001_4FGL_J0916.7+3856_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='1.70e-05', photon_flux_error='4.02e-08', dlogl='3.30e-02', energy_flux='1.78e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-08-31 06:27:07.284156', photon_index_error2='0.76', photon_index2='2.64', ts='4.15', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.55', time_epoch_completed='1630416427.28', return_code='0', job_id='116593', GAL2='1.33', EG2='0.54', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.46e-08', ts2='4.26', photon_index='2.46' WHERE bin_id='904' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 116593: <4FGL_J0916.7+3856_daily_bin904> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin904> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 06:10:40 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:10:43 2021
Terminated at Tue Aug 31 06:27:08 2021
Results reported at Tue Aug 31 06:27:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin904 139.19 38.9479 473644801 473904001 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            988 sec.

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

