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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin117
RA = 244.516, Dec = 51.6653
tmin = 269654401, tmax = 269913601
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='305362', job_status='RUN', time_executed='2021-09-14 00:36:43.658265', time_epoch_executed='1631605003.66' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305362/ft1_4FGL_J1618.0+5139_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305362/ft1_4FGL_J1618.0+5139_daily_bin117.fits outfile=/scratch/kocevski/305362/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin117.fits ra=244.516 dec=51.6653 rad=12.0 tmin=269654401.0 tmax=269913601.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 2.85
user 2.65
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.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/305362/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin117.fits evtable="EVENTS" outfile="/scratch/kocevski/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.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.43
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/305362/ltcube_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.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/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits
.....................!
real 10.69
user 10.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/305362/ltcube_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits outfile=/scratch/kocevski/305362/expmap_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.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/305362/ltcube_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits
.....................!
real 155.09
user 151.02
sys 3.80

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/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits scfile=/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits outfile=/scratch/kocevski/305362/cmap_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits scfile=/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits outfile=/scratch/kocevski/305362/cmap_HighResolution_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.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.47
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits', '/scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits', expMap='/scratch/kocevski/305362/expmap_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits', expCube='/scratch/kocevski/305362/ltcube_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/305362/Model_4FGL_J1618.0+5139_daily_bin117.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/305362/ft1_filtered_4FGL_J1618.0+5139_daily_bin117.fits
Spacecraft file(s): /scratch/kocevski/305362/ft2_4FGL_J1618.0+5139_daily_bin117.fits
Exposure map: /scratch/kocevski/305362/expmap_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits
Exposure cube: /scratch/kocevski/305362/ltcube_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/305362/Model_4FGL_J1618.0+5139_daily_bin117.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) = 8148.29932837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69327E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1710       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4169       1.0000         .10000E-03   10000.    
    17 'norm      '    21.884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.836       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7570       1.0000         .10000E-03   10000.    
    22 'norm      '    .19386       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7001       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8148.124     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2393 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9523        .12016E-05** at limit **
   2  Prefactor     .10000E-03    4.9244        .24991E-06** at limit **
   3  norm          11.909        3.8381        .20884E-07   -.20375E-05
   4  Prefactor     .10012E-03    8002.1        .14961E-03** at limit **
   5  Prefactor     4.1709        4.6241       -.30216E-05   -.23793E-02
   6  norm          7.8406        6.6908        .21867E-05   -.21311E-02
   7  Prefactor     .10000E-03    36.785       -.14236E-05** at limit **
   8  Prefactor     .10000E-03    33.833        .22237E-05** at limit **
   9  Prefactor     6.3292        4.8706        .11416E-05   -.24158E-02
  10  Prefactor     .10000E-03    64.026        .49133E-05** at limit **
  11  Prefactor     .46276        9.5959        .75909E-07   -.10005E-03
  12  Prefactor     .10000E-03    1.3515       -.45933E-07** at limit **
  13  norm          .10000E-03    9.6229       -.69560E-06** at limit **
  14  norm          3.9728        1.1108        .33319E-06   -.34661E-03
  15  Prefactor     .10000E-03    3.2025        .89548E-06** at limit **
  16  Prefactor     2.4173        4.3767       -.44561E-06    .17883E-03
  17  norm          21.886        1.2362       -.21638E-06    .11825E-02
  18  Prefactor     13.151        1.3903       -.21975E-06   -.17309E-02
  19  Prefactor     .10000E-03    .94995        .22079E-06** at limit **
  20  Prefactor     21.835        1.2196        .20011E-06   -.11846E-02
  21  Prefactor     2.7533        1.4900       -.92133E-07    .30903E-03
  22  norm          .19367        .80236       -.21612E-06    .58837E-05
  23  Prefactor     .10000E-03    4.3106        .69519E-06** at limit **
  24  Prefactor     .10000E-03    14.325       -.18172E-06** at limit **
  25  Prefactor     1.7002        4.2210       -.14173E-05   -.50620E-05
  26  Normalizat    1.1334        .20485       -.51165E-06    .41391E-04
  27  Prefactor     1.1121        .20347        .20159E-05    .52688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9085
  Prefactor  = 0.00010012
  Prefactor  = 4.17085
  norm       = 7.84065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32918
  Prefactor  = 0.0001
  Prefactor  = 0.462762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.97284
  Prefactor  = 0.0001
  Prefactor  = 2.41733
  norm       = 21.8857
  Prefactor  = 13.1514
  Prefactor  = 0.0001
  Prefactor  = 21.8347
  Prefactor  = 2.75325
  norm       = 0.193672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70017
  Normalizat = 1.13337
  Prefactor  = 1.11213
 **********
 **   18 **HESSE 
 **********

 FCN=   8148.124     FROM HESSE     STATUS=OK           570 CALLS     2963 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.909        3.8494        .29021E-02   -1.5018    
   4  Prefactor     .10012E-03    15.045        .12695       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1709        5.3688        .49336E-02   -1.5299    
   6  norm          7.8406        7.6538        .35789E-02   -1.5148    
   7  Prefactor     .10000E-03    36.752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3292        6.1800        .39892E-02   -1.5205    
  10  Prefactor     .10000E-03    63.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .46276        2.5466        .75279E-01   -1.5572    
  12  Prefactor     .10000E-03    1.3311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.6141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9728        12.419        .50587E-02   -1.5309    
  15  Prefactor     .10000E-03    1.6983        .43539E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4173        4.4375        .65824E-02   -1.5397    
  17  norm          21.886        30.038        .21406E-02   -1.4772    
  18  Prefactor     13.151        4.7248        .27613E-02   -1.4983    
  19  Prefactor     .10000E-03    .94152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.835        14.068        .21429E-02   -1.4773    
  21  Prefactor     2.7533        13.208        .61287E-02   -1.5376    
  22  norm          .19367        .66794        .23358E-01   -1.5620    
  23  Prefactor     .10000E-03    4.2635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7002        4.2632        .80657E-02   -1.5447    
  26  Normalizat    1.1334        .17365        .60156E-01   -.88687    
  27  Prefactor     1.1121        .16971        .59874E-01   -.89080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02068e-08
Minuit parameter uncertainties:
  1  2.58716e-05
  2  9.05688e-06
  3  3.84949
  4  0.0026843
  5  5.36944
  6  7.65471
  7  0.000125942
  8  0.000143613
  9  6.18063
  10  0.000188766
  11  2.17106
  12  6.00414e-07
  13  1.19811e-05
  14  12.4271
  15  1.09992e-05
  16  4.43809
  17  30.0584
  18  4.72496
  19  2.03036e-06
  20  14.0702
  21  12.065
  22  0.667968
  23  6.94417e-06
  24  4.91439e-06
  25  4.26398
  26  0.173738
  27  0.169789
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  4.628e-01  2.171e+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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.112e+00  1.698e-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.133e+00  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/305362/likelihoodResults_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.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) = 8148.12338856
delta logL = 0.000544809338862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8148.12338686
delta logL = 0.00054650518814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46275       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7674       1.0000          .0000       10.000    
     3 'Normalizat'    1.1331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1123       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=   8148.123     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45446        15.048        .73353E-01    .65754E-03
   2  Index         2.7652        2.9909        .50000        .10952E-04
   3  Normalizat    1.1331        .11188E-01    .60162E-01    .22561E-04
   4  Prefactor     1.1123        .11094E-01    .59871E-01    .81598E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.454458
  Index      = 2.76522
  Normalizat = 1.13311
  Prefactor  = 1.11226
 **********
 **   18 **HESSE 
 **********

 FCN=   8148.123     FROM HESSE     STATUS=OK            35 CALLS      276 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45446        13.023        .26211E-02   -1.5573    
   2  Index         2.7652        2.9892        .24738E-01   -.46336    
   3  Normalizat    1.1331        .20416        .26608E-03   -.88696    
   4  Prefactor     1.1123        .20124        .26478E-03   -.89076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86303e-08
Minuit parameter uncertainties:
  1  4.86624
  2  3.2738
  3  0.204299
  4  0.201382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305362': 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) = 8148.12338402
delta logL = 0.000549346559637

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  4.545e-01  4.866e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.765e+00  3.274e+00  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:  1.112e+00  2.014e-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.133e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/305362/cmap_HighResolution_269654401_269913601_4FGL_J1618.0+5139_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-14 00:50:02.096374', job_id='305362', GAL2='1.11', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631605802.1', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.49e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='117' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:50:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 305362: <4FGL_J1618.0+5139_daily_bin117> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin117> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 00:35:30 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:36:35 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:36:35 2021
Terminated at Tue Sep 14 00:50:02 2021
Results reported at Tue Sep 14 00:50:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin117 244.516 51.6653 269654401 269913601 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 :                                   770.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            872 sec.

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

