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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin444
RA = 139.19, Dec = 38.9479
tmin = 354412801, tmax = 354672001
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='113676', job_status='RUN', time_executed='2021-08-31 06:01:48.853677', time_epoch_executed='1630414908.85' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113676

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113676/ft1_4FGL_J0916.7+3856_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113676/ft1_4FGL_J0916.7+3856_daily_bin444.fits outfile=/scratch/kocevski/113676/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin444.fits ra=139.19 dec=38.9479 rad=12.0 tmin=354412801.0 tmax=354672001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.68
user 3.21
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.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/113676/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin444.fits evtable="EVENTS" outfile="/scratch/kocevski/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.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.63
user 0.35
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/113676/ltcube_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.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/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits
.....................!
real 12.93
user 12.48
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/113676/ltcube_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.fits outfile=/scratch/kocevski/113676/expmap_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.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/113676/ltcube_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.fits
.....................!
real 193.06
user 188.05
sys 4.50

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/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits outfile=/scratch/kocevski/113676/cmap_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.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.70
user 0.38
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits outfile=/scratch/kocevski/113676/cmap_HighResolution_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.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.68
user 0.39
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/113676/ft2_4FGL_J0916.7+3856_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113676/Model_4FGL_J0916.7+3856_daily_bin444.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/113676/ft1_filtered_4FGL_J0916.7+3856_daily_bin444.fits.....................!
real 52.70
user 50.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0046       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38574E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8613       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.305       1.0000         .10000E-03   10000.    
    15 'norm      '    .41909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85504       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7217       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9395       1.0000         .10000E-03   10000.    
    22 'norm      '    7.7856       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7531       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85399       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1108       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=   6072.539     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3723 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0045        .71531        .11293E-07   -.26779E-04
   2  Prefactor     .10000E-03    8.0392       -.15353E-06** at limit **
   3  Prefactor     .10002E-03    1.5019        .52973E-06** at limit **
   4  Prefactor     .10000E-03    9.4340        .28316E-06** at limit **
   5  Prefactor     .10000E-03    6.3231       -.11863E-06** at limit **
   6  norm          1.7374        4.7457        .56379E-06    .55390E-04
   7  Prefactor     4.3701        2.6845        .69042E-07    .29933E-04
   8  Prefactor     16.281        16.905       -.40917E-07    .50841E-05
   9  Prefactor     13.029        48.389       -.79833E-05   -.58626E-05
  10  Prefactor     5.0013        3.2865       -.14512E-06    .57055E-05
  11  Prefactor     .10000E-03    106.28        .66989E-06** at limit **
  12  Prefactor     2.8614        2.8127        .50934E-07   -.94266E-05
  13  norm          1.9089        1.2899       -.28171E-08    .11267E-04
  14  Prefactor     23.306        19.757       -.30204E-06   -.65533E-05
  15  norm          .41901        .70202       -.12163E-06    .12099E-03
  16  Prefactor     .85587        5.8853        .83561E-06   -.10562E-04
  17  norm          .10000E-03    4.9467        .13008E-06** at limit **
  18  Prefactor     2.4900        2.1759       -.10541E-07   -.24224E-04
  19  Prefactor     .10000E-03    2.9642       -.97872E-07** at limit **
  20  Prefactor     8.7217        7.8254        .36676E-08    .58038E-05
  21  Prefactor     8.9407        15.492        .86808E-07    .18817E-05
  22  norm          7.7858        10.425        .10071E-06    .42028E-05
  23  Prefactor     .10000E-03    9.9033       -.18960E-06** at limit **
  24  Prefactor     12.918        27.217       -.89245E-07    .22965E-05
  25  Prefactor     .10000E-03    3.6614       -.71246E-07** at limit **
  26  norm          2.7536        10.016        .53303E-05    .34705E-04
  27  Prefactor     17.974        25.722       -.12635E-06    .22791E-05
  28  Normalizat    .85379        .17666       -.90922E-06   -.59456E-05
  29  Prefactor     1.1110        .18196        .86168E-06    .18954E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00451
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73744
  Prefactor  = 4.37013
  Prefactor  = 16.2807
  Prefactor  = 13.0294
  Prefactor  = 5.00131
  Prefactor  = 0.0001
  Prefactor  = 2.86143
  norm       = 1.90891
  Prefactor  = 23.3064
  norm       = 0.41901
  Prefactor  = 0.855873
  norm       = 0.0001
  Prefactor  = 2.48997
  Prefactor  = 0.0001
  Prefactor  = 8.72172
  Prefactor  = 8.94069
  norm       = 7.7858
  Prefactor  = 0.0001
  Prefactor  = 12.9178
  Prefactor  = 0.0001
  norm       = 2.75363
  Prefactor  = 17.9737
  Normalizat = 0.853789
  Prefactor  = 1.11095
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.539     FROM HESSE     STATUS=OK           567 CALLS     4290 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0045        .71537        .38138E-04   -1.5425    
   2  Prefactor     .10000E-03    8.0993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    15.075        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7374        4.7194        .26968E-03   -1.5444    
   7  Prefactor     4.3701        2.6701        .93993E-04   -1.5290    
   8  Prefactor     16.281        16.900        .99261E-04   -1.4901    
   9  Prefactor     13.029        48.381        .11111E-03   -1.4986    
  10  Prefactor     5.0013        3.2859        .11089E-03   -1.5261    
  11  Prefactor     .10000E-03    106.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8614        2.7896        .12029E-03   -1.5370    
  13  norm          1.9089        1.3003        .70866E-04   -1.5432    
  14  Prefactor     23.306        19.678        .82974E-04   -1.4742    
  15  norm          .41901        .58944        .44146E-03   -1.5579    
  16  Prefactor     .85587        4.6152        .18908E-03   -1.5523    
  17  norm          .10000E-03    4.9796        .16899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4900        2.1519        .10017E-03   -1.5392    
  19  Prefactor     .10000E-03    3.0880        .26178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7217        7.8188        .13573E-03   -1.5117    
  21  Prefactor     8.9407        15.482        .13406E-03   -1.5110    
  22  norm          7.7858        10.417        .14371E-03   -1.5150    
  23  Prefactor     .10000E-03    9.9272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.918        27.211        .11146E-03   -1.4989    
  25  Prefactor     .10000E-03    3.6828        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7536        9.9944        .12267E-02   -1.5376    
  27  Prefactor     17.974        25.766        .94483E-04   -1.4860    
  28  Normalizat    .85379        .20515        .25245E-03   -.98103    
  29  Prefactor     1.1110        .21435        .24691E-03   -.89117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48893e-09
Minuit parameter uncertainties:
  1  0.715378
  2  1.381e-05
  3  0.00116606
  4  7.81992e-06
  5  1.08043e-05
  6  4.72043
  7  2.67014
  8  16.9049
  9  48.5275
  10  3.28599
  11  0.000352749
  12  2.78969
  13  1.30033
  14  19.6835
  15  0.589452
  16  3.9752
  17  9.63663e-06
  18  2.15193
  19  5.97967e-06
  20  7.81968
  21  15.489
  22  10.4196
  23  6.99865e-06
  24  27.2374
  25  3.88888e-06
  26  10.0004
  27  25.7824
  28  0.20534
  29  0.214516
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.331e+01  1.968e+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.111e+00  2.145e-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.538e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/113676/likelihoodResults_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.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) = 6072.32075565
delta logL = 0.218185560065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.31168561
delta logL = 0.227255600469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.527       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9936       1.0000          .0000       10.000    
     3 'Normalizat'    .82906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1295       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=   6072.312     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      291 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.507        26.022        .54454E-03   -.10276E-03
   2  Index         2.9943        1.1719        .60546E-02   -.20358E-04
   3  Normalizat    .82893        .19829        .25575E-03   -.46461E-03
   4  Prefactor     1.1297        .21471        .24514E-03   -.13349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.507
  Index      = 2.99432
  Normalizat = 0.82893
  Prefactor  = 1.12965
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.312     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.507        19.409        .21782E-04   -1.4973    
   2  Index         2.9943        .87691        .24218E-03   -.41276    
   3  Normalizat    .82893        .19735        .51150E-04   -.99004    
   4  Prefactor     1.1297        .21378        .49029E-04   -.88524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33259e-10
Minuit parameter uncertainties:
  1  19.4177
  2  0.882355
  3  0.197524
  4  0.21394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113676': 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) = 6072.31168482
delta logL = 0.227256384209

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.351e+01  1.942e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.994e+00  8.824e-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.130e+00  2.139e-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.289e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.99 +/- 0.88
Photon Flux (Free Index): 6.03e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.04e-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/113676/cmap_HighResolution_354412801_354672001_4FGL_J0916.7+3856_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.21e-05', photon_flux_error='3.55e-08', dlogl='2.27e-01', energy_flux='1.28e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-08-31 06:16:30.731990', photon_index_error2='0.88', photon_index2='2.99', ts='2.11', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='9.04e-06', EG='0.85', time_epoch_completed='1630415790.73', return_code='0', job_id='113676', GAL2='1.13', EG2='0.83', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.88e-08', ts2='2.61', photon_index='2.46' WHERE bin_id='444' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 113676: <4FGL_J0916.7+3856_daily_bin444> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin444> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:01:15 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:01:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:01:16 2021
Terminated at Tue Aug 31 06:16:31 2021
Results reported at Tue Aug 31 06:16:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin444 139.19 38.9479 354412801 354672001 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

