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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin786
RA = 244.516, Dec = 51.6653
tmin = 443059201, tmax = 443318401
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='309679', job_status='RUN', time_executed='2021-09-14 00:50:53.972820', time_epoch_executed='1631605853.97' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309679/ft1_4FGL_J1618.0+5139_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309679/ft1_4FGL_J1618.0+5139_daily_bin786.fits outfile=/scratch/kocevski/309679/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin786.fits ra=244.516 dec=51.6653 rad=12.0 tmin=443059201.0 tmax=443318401.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.83
user 3.58
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.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/309679/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/309679/ltcube_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.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/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits
.....................!
real 14.37
user 14.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/309679/ltcube_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits outfile=/scratch/kocevski/309679/expmap_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.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/309679/ltcube_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits
.....................!
real 192.86
user 187.16
sys 4.88

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 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1618.0+5139 @ 244.516 51.6653

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits outfile=/scratch/kocevski/309679/cmap_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.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=244.516 yref=51.6653 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits outfile=/scratch/kocevski/309679/cmap_HighResolution_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.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=244.516 yref=51.6653 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309679/Model_4FGL_J1618.0+5139_daily_bin786.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/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits.....................!
real 58.25
user 56.75
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits', '/scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits', expMap='/scratch/kocevski/309679/expmap_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits', expCube='/scratch/kocevski/309679/ltcube_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309679/Model_4FGL_J1618.0+5139_daily_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1618.0+5139'

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.224e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/309679/ft1_filtered_4FGL_J1618.0+5139_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/309679/ft2_4FGL_J1618.0+5139_daily_bin786.fits
Exposure map: /scratch/kocevski/309679/expmap_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits
Exposure cube: /scratch/kocevski/309679/ltcube_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309679/Model_4FGL_J1618.0+5139_daily_bin786.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) = 6725.24560409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    139.37       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97645       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8994       1.0000         .10000E-03   10000.    
    17 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5802       1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.461       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2488       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.925       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0793       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6725.237     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3315 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.963        .87711E-06** at limit **
   2  Prefactor     .10000E-03    11.534       -.56318E-06** at limit **
   3  norm          7.1746        3.1268        .12420E-07   -.82172E-04
   4  Prefactor     .10000E-03    7.0584        .10307E-06** at limit **
   5  Prefactor     .10000E-03    3.5002       -.18344E-06** at limit **
   6  norm          .11755        36.541        .47538E-05   -.21025E-03
   7  Prefactor     2.4415        36.287        .56906E-05   -.76670E-06
   8  Prefactor     139.37        69.580       -.34994E-06   -.11341E-04
   9  Prefactor     .10000E-03    1.9002       -.18603E-07** at limit **
  10  Prefactor     .10000E-03    12.089        .78298E-06** at limit **
  11  Prefactor     .10000E-03    4.0193       -.73399E-06** at limit **
  12  Prefactor     .97583        1.7233        .59839E-07    .21744E-03
  13  norm          .10000E-03    11.789       -.63978E-06** at limit **
  14  norm          2.5712        7.4355        .21282E-06    .24325E-03
  15  Prefactor     .10000E-03    2.7784        .74752E-08** at limit **
  16  Prefactor     1.9000        4.2401        .70711E-06    .79040E-03
  17  norm          .10000E-03    45.706       -.46836E-05** at limit **
  18  Prefactor     .10000E-03    1.0533       -.46842E-08** at limit **
  19  Prefactor     .10000E-03    .98845       -.29444E-07** at limit **
  20  Prefactor     9.5801        7.0788        .57665E-07   -.14616E-04
  21  Prefactor     49.457        23.556        .58263E-06   -.14794E-04
  22  norm          1.2487        .78305        .12482E-06    .75334E-04
  23  Prefactor     .10000E-03    3.7489        .69066E-06** at limit **
  24  Prefactor     31.924        18.127        .38251E-07   -.21174E-04
  25  Prefactor     1.0795        2.9089        .27337E-06    .19973E-03
  26  Normalizat    1.0692        .17487       -.22594E-05   -.15204E-03
  27  Prefactor     .83575        .16613        .21021E-06   -.22968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.17462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.117548
  Prefactor  = 2.44155
  Prefactor  = 139.372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.975832
  norm       = 0.0001
  norm       = 2.57117
  Prefactor  = 0.0001
  Prefactor  = 1.89997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58015
  Prefactor  = 49.4569
  norm       = 1.24873
  Prefactor  = 0.0001
  Prefactor  = 31.9239
  Prefactor  = 1.07954
  Normalizat = 1.06916
  Prefactor  = 0.83575
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.237     FROM HESSE     STATUS=OK           498 CALLS     3813 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1746        3.1276        .92874E-04   -1.5172    
   4  Prefactor     .10000E-03    7.0644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5185        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11755        5.4869        .52756E-01   -1.5639    
   7  Prefactor     2.4415        36.754        .25986E-03   -1.5395    
   8  Prefactor     139.37        69.551        .34121E-04   -1.3341    
   9  Prefactor     .10000E-03    1.9099        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0432        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .97583        1.3625        .13915E-02   -1.5510    
  13  norm          .10000E-03    11.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5712        7.6069        .12727E-02   -1.5387    
  15  Prefactor     .10000E-03    2.8469        .26668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9000        5.8250        .15090E-02   -1.5432    
  17  norm          .10000E-03    45.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0662        .82128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .99698        .79582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5801        7.0797        .12947E-03   -1.5089    
  21  Prefactor     49.457        23.607        .57020E-04   -1.4300    
  22  norm          1.2487        .77822        .55221E-04   -1.5484    
  23  Prefactor     .10000E-03    3.8168        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.924        18.124        .70916E-04   -1.4577    
  25  Prefactor     1.0795        2.6437        .22285E-02   -1.5500    
  26  Normalizat    1.0692        .19922        .23252E-03   -.90748    
  27  Prefactor     .83575        .19273        .25665E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75009e-09
Minuit parameter uncertainties:
  1  9.00843e-05
  2  6.81338e-05
  3  3.12765
  4  5.59782e-06
  5  7.70219e-07
  6  1.60567
  7  18.9595
  8  69.5918
  9  4.55136e-06
  10  4.09183e-05
  11  1.93609e-05
  12  1.36251
  13  1.04089e-05
  14  7.60974
  15  1.37461e-05
  16  5.82678
  17  7.49979e-05
  18  3.11442e-06
  19  2.70694e-06
  20  7.08037
  21  23.6117
  22  0.77823
  23  1.30442e-05
  24  18.1268
  25  2.64398
  26  0.199355
  27  0.192886
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  1.936e-05  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.357e-01  1.929e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.069e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 244.516 51.665
Photon Flux Upper Limit: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309679/likelihoodResults_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.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) = 6725.23866203
delta logL = -0.00117890644469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6725.23748326
delta logL = -1.37528331834e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6744       1.0000          .0000       10.000    
     3 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6725.237     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.952        .90712E-02** at limit **
   2  Index         2.6743        5.6771        .50000        .16132E-06
   3  Normalizat    1.0692        .69582E-02    .39425E-01    .48073E-04
   4  Prefactor     .83575        .69109E-02    .44182E-01    .49533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6743
  Normalizat = 1.06916
  Prefactor  = 0.835751
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.41        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6743        5.8194        .50000       -.48379    
   3  Normalizat    1.0692        .21813E-01    .23252E-03   -.90748    
   4  Prefactor     .83575        .21659E-01    .25665E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.84855e-11
Minuit parameter uncertainties:
  1  0.000123416
  2  675.165
  3  0.0218131
  4  0.0216597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309679': 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): 102
logL (Free Index) = 6725.23748313
delta logL = 4.09272615798e-11

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  1.234e-04  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.674e+00  6.752e+02  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.358e-01  2.166e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.069e+00  2.181e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 244.516 51.665

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/309679/cmap_HighResolution_443059201_443318401_4FGL_J1618.0+5139_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-14 01:06:24.916868', job_id='309679', GAL2='0.84', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631606784.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='786' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 01:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 309679: <4FGL_J1618.0+5139_daily_bin786> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin786> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:50:22 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:50:44 2021
Terminated at Tue Sep 14 01:06:25 2021
Results reported at Tue Sep 14 01:06:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin786 244.516 51.6653 443059201 443318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1618.0+5139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   923.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            963 sec.

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

