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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1347
RA = 244.516, Dec = 51.6653
tmin = 588470401, tmax = 588729601
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='313872', job_status='RUN', time_executed='2021-09-14 01:05:26.942214', time_epoch_executed='1631606726.94' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313872/ft1_4FGL_J1618.0+5139_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313872/ft1_4FGL_J1618.0+5139_daily_bin1347.fits outfile=/scratch/kocevski/313872/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1347.fits ra=244.516 dec=51.6653 rad=12.0 tmin=588470401.0 tmax=588729601.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.95
user 4.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.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/313872/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/313872/ft1_filtered_4FGL_J1618.0+5139_daily_bin1347.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313872/ft1_filtered_4FGL_J1618.0+5139_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/313872/ltcube_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.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/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits
.....................!
real 15.23
user 14.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313872/ft1_filtered_4FGL_J1618.0+5139_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/313872/ltcube_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.fits outfile=/scratch/kocevski/313872/expmap_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.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/313872/ltcube_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.fits
.....................!
real 194.90
user 188.30
sys 5.74

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/313872/ft1_filtered_4FGL_J1618.0+5139_daily_bin1347.fits scfile=/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits outfile=/scratch/kocevski/313872/cmap_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313872/ft1_filtered_4FGL_J1618.0+5139_daily_bin1347.fits scfile=/scratch/kocevski/313872/ft2_4FGL_J1618.0+5139_daily_bin1347.fits outfile=/scratch/kocevski/313872/cmap_HighResolution_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13206E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69698E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .58367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3768       1.0000         .10000E-03   10000.    
    13 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17104E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3625       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4136       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98742       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=   7039.248     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     2885 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7749       -.43603E-06** at limit **
   2  Prefactor     12.070        8.4277        .21891E-06    .13431E-04
   3  norm          4.0880        2.4814        .39868E-07   -.25103E-04
   4  Prefactor     .10000E-03    4.7754       -.41866E-06** at limit **
   5  Prefactor     .10000E-03    2.8497        .78035E-08** at limit **
   6  norm          .10000E-03    2.4895        .17511E-07** at limit **
   7  Prefactor     .10000E-03    13.513       -.76435E-06** at limit **
   8  Prefactor     .10000E-03    240.16       -.34244E-05** at limit **
   9  Prefactor     .10000E-03    4.0949        .10739E-06** at limit **
  10  Prefactor     .10001E-03    13.658        .66482E-06** at limit **
  11  Prefactor     .59008        2.4388        .65538E-07   -.14700E-03
  12  Prefactor     1.3751        2.8127        .26178E-06   -.37053E-03
  13  norm          .10000E-03    5.2518        .40516E-06** at limit **
  14  norm          .10000E-03    5.5108       -.15374E-06** at limit **
  15  Prefactor     .10000E-03    2.3226        .24565E-07** at limit **
  16  Prefactor     .10000E-03    2.5520       -.23727E-06** at limit **
  17  norm          .10000E-03    17.453        .78041E-06** at limit **
  18  Prefactor     8.0112        3.0997       -.17239E-07   -.11977E-03
  19  Prefactor     2.3626        1.8584        .32866E-07   -.95514E-04
  20  Prefactor     3.8630        5.1080        .19391E-05   -.19225E-02
  21  Prefactor     13.876        11.840        .47867E-05    .79108E-03
  22  norm          .10000E-03    .22650        .16788E-07** at limit **
  23  Prefactor     .10000E-03    5.4925       -.51968E-07** at limit **
  24  Prefactor     .10000E-03    4.6789        .66530E-06** at limit **
  25  Prefactor     3.4132        2.3831        .15968E-07    .32197E-04
  26  Normalizat    .85946        .15796       -.84546E-06   -.23984E-04
  27  Prefactor     .98736        .15226       -.26451E-06   -.60986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.0697
  norm       = 4.08797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.590079
  Prefactor  = 1.3751
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.01118
  Prefactor  = 2.3626
  Prefactor  = 3.86298
  Prefactor  = 13.8764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41322
  Normalizat = 0.859458
  Prefactor  = 0.987363
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.248     FROM HESSE     STATUS=OK           490 CALLS     3375 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7792        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.070        8.4524        .11531E-03   -1.5013    
   3  norm          4.0880        2.4804        .99950E-04   -1.5304    
   4  Prefactor     .10000E-03    4.7780        .17908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8733        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5052        .12925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    243.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.806        .29740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    57.194        .54081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .59008        7.6690        .24625E-02   -1.5554    
  12  Prefactor     1.3751        2.8143        .19266E-03   -1.5473    
  13  norm          .10000E-03    5.2618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4010        .24933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.131        .25433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0112        3.0851        .87073E-04   -1.5142    
  19  Prefactor     2.3626        1.8507        .98386E-04   -1.5401    
  20  Prefactor     3.8630        7.7750        .10268E-02   -1.5315    
  21  Prefactor     13.876        12.199        .10758E-03   -1.4963    
  22  norm          .10000E-03    .26719        .77116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.7213        .17715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4132        2.3868        .10542E-03   -1.5338    
  26  Normalizat    .85946        .18373        .24068E-03   -.97900    
  27  Prefactor     .98736        .18165        .22761E-03   -.93152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39354e-08
Minuit parameter uncertainties:
  1  1.67642e-05
  2  8.45323
  3  2.48049
  4  1.53043e-05
  5  2.52363e-06
  6  2.34753e-06
  7  4.61845e-05
  8  0.000573384
  9  7.7144e-05
  10  0.00121157
  11  4.25486
  12  2.81461
  13  1.77587e-05
  14  5.70218e-06
  15  3.68926e-06
  16  0.000468154
  17  5.90478e-05
  18  3.08515
  19  1.85079
  20  7.77705
  21  12.2013
  22  1.03605e-06
  23  9.20251e-06
  24  1.41489e-05
  25  2.38683
  26  0.183868
  27  0.181762
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  5.901e-01  4.255e+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:  9.874e-01  1.818e-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:  8.595e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/313872/likelihoodResults_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.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) = 7039.19410693
delta logL = 0.0537193007785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7039.10761353
delta logL = 0.140212696109

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7039.108     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      258 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6195        5.2074        .25239E-03    .12162E-04
   2  Index         1.9883        .87005        .14363E-01   -.13867E-03
   3  Normalizat    .86420        .17756        .24007E-03    .37410E-05
   4  Prefactor     .97797        .18026        .22855E-03    .10446E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61955
  Index      = 1.98831
  Normalizat = 0.864197
  Prefactor  = 0.977972
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.108     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6195        5.2118        .10095E-04   -1.5384    
   2  Index         1.9883        .87129        .28725E-02   -.64643    
   3  Normalizat    .86420        .17774        .96030E-05   -.97730    
   4  Prefactor     .97797        .18043        .91419E-05   -.93467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02664e-13
Minuit parameter uncertainties:
  1  5.21266
  2  0.878364
  3  0.177855
  4  0.18054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313872': 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) = 7039.10761197
delta logL = 0.140214252592

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.620e+00  5.213e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  1.988e+00  8.784e-01  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:  9.780e-01  1.805e-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:  8.642e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/313872/cmap_HighResolution_588470401_588729601_4FGL_J1618.0+5139_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-14 01:20:47.111038', job_id='313872', GAL2='0.98', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631607647.11', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.40e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1347' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 01:20:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 313872: <4FGL_J1618.0+5139_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1347> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 14 01:05:12 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 01:05:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 01:05:14 2021
Terminated at Tue Sep 14 01:20:47 2021
Results reported at Tue Sep 14 01:20:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1347 244.516 51.6653 588470401 588729601 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 :                                   910.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

