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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin772
RA = 244.516, Dec = 51.6653
tmin = 439430401, tmax = 439689601
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='309658', job_status='RUN', time_executed='2021-09-14 00:50:55.983527', time_epoch_executed='1631605855.98' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309658/ft1_4FGL_J1618.0+5139_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309658/ft2_4FGL_J1618.0+5139_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309658/ft1_4FGL_J1618.0+5139_daily_bin772.fits outfile=/scratch/kocevski/309658/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin772.fits ra=244.516 dec=51.6653 rad=12.0 tmin=439430401.0 tmax=439689601.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.93
user 4.64
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309658/ft1_filtered_4FGL_J1618.0+5139_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/309658/ft2_4FGL_J1618.0+5139_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/309658/ltcube_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.fits outfile=/scratch/kocevski/309658/expmap_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.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/309658/ltcube_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.fits
.....................!
real 192.42
user 185.47
sys 4.83

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/309658/ft1_filtered_4FGL_J1618.0+5139_daily_bin772.fits scfile=/scratch/kocevski/309658/ft2_4FGL_J1618.0+5139_daily_bin772.fits outfile=/scratch/kocevski/309658/cmap_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309658/ft1_filtered_4FGL_J1618.0+5139_daily_bin772.fits scfile=/scratch/kocevski/309658/ft2_4FGL_J1618.0+5139_daily_bin772.fits outfile=/scratch/kocevski/309658/cmap_HighResolution_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3225       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3594       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5932       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7242       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5019       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96029       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0873       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=   6162.106     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     2864 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3492        14.703       -.60867E-06    .98399E-06
   2  Prefactor     .10000E-03    5.8232       -.84986E-08** at limit **
   3  norm          7.9010        3.7141       -.10201E-06   -.11788E-04
   4  Prefactor     .10000E-03    10.411        .13235E-06** at limit **
   5  Prefactor     .10000E-03    4.0880        .67957E-07** at limit **
   6  norm          .10000E-03    40.827       -.61340E-05** at limit **
   7  Prefactor     .10000E-03    170.61       -.47320E-05** at limit **
   8  Prefactor     .10000E-03    34.313        .55879E-05** at limit **
   9  Prefactor     .10000E-03    6.5547       -.39713E-06** at limit **
  10  Prefactor     .10000E-03    72.097        .46554E-05** at limit **
  11  Prefactor     4.0277        6.6004       -.53966E-06   -.10200E-03
  12  Prefactor     5.3223        3.4526       -.61447E-07   -.61759E-04
  13  norm          .10000E-03    20.792       -.39503E-06** at limit **
  14  norm          .10000E-03    8.2859       -.86197E-07** at limit **
  15  Prefactor     1.3285        4.5126       -.12292E-05   -.49637E-04
  16  Prefactor     .10000E-03    1.5251        .20343E-08** at limit **
  17  norm          21.349        34.867       -.88432E-07   -.23559E-05
  18  Prefactor     2.3599        3.6615       -.14221E-06   -.79152E-04
  19  Prefactor     5.0367        3.1481       -.10031E-07   -.37147E-04
  20  Prefactor     7.3327        9.0328       -.10193E-05    .49977E-05
  21  Prefactor     1.5930        10.723       -.12318E-05    .58366E-05
  22  norm          .10000E-03    .50055        .13179E-06** at limit **
  23  Prefactor     .10000E-03    2.9205        .52348E-07** at limit **
  24  Prefactor     9.7245        10.325       -.79144E-06    .59600E-05
  25  Prefactor     2.5019        3.7242       -.83543E-07    .10071E-04
  26  Normalizat    .96017        .18572       -.12692E-05   -.15860E-03
  27  Prefactor     1.0873        .17924        .12612E-05   -.19774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34922
  Prefactor  = 0.0001
  norm       = 7.90099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02768
  Prefactor  = 5.32233
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.32847
  Prefactor  = 0.0001
  norm       = 21.3493
  Prefactor  = 2.35991
  Prefactor  = 5.03668
  Prefactor  = 7.33269
  Prefactor  = 1.59304
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.72453
  Prefactor  = 2.50191
  Normalizat = 0.960168
  Prefactor  = 1.08733
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.106     FROM HESSE     STATUS=OK           490 CALLS     3354 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3492        14.731        .26747E-03   -1.5401    
   2  Prefactor     .10000E-03    5.8725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9010        3.7153        .99805E-04   -1.5146    
   4  Prefactor     .10000E-03    10.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1047        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    40.261        .31491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    172.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0277        6.5959        .20095E-03   -1.5307    
  12  Prefactor     5.3223        3.4487        .11380E-03   -1.5247    
  13  norm          .10000E-03    20.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3285        4.4788        .28469E-03   -1.5477    
  16  Prefactor     .10000E-03    1.5306        .94660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.349        34.857        .86686E-04   -1.4784    
  18  Prefactor     2.3599        3.5621        .16937E-03   -1.5401    
  19  Prefactor     5.0367        3.1453        .10609E-03   -1.5259    
  20  Prefactor     7.3327        9.0314        .74060E-03   -1.5166    
  21  Prefactor     1.5930        10.671        .33610E-03   -1.5456    
  22  norm          .10000E-03    .93028        .10589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9366        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.7245        10.315        .64253E-03   -1.5084    
  25  Prefactor     2.5019        3.7135        .17869E-03   -1.5392    
  26  Normalizat    .96017        .20810        .25342E-03   -.94377    
  27  Prefactor     1.0873        .20338        .23826E-03   -.89873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04872e-11
Minuit parameter uncertainties:
  1  11.7695
  2  8.08824e-06
  3  3.71539
  4  1.85784e-06
  5  3.35723e-06
  6  6.89207e-05
  7  0.000728563
  8  2.12897e-06
  9  3.21122e-06
  10  0.000100854
  11  6.59709
  12  3.44883
  13  2.11292e-05
  14  8.41596e-07
  15  4.4799
  16  1.21876e-06
  17  34.8905
  18  3.56237
  19  3.14535
  20  9.03307
  21  8.24781
  22  7.17176e-06
  23  2.0058e-06
  24  10.3173
  25  3.71381
  26  0.208273
  27  0.203522
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  4.028e+00  6.597e+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.087e+00  2.035e-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:  9.602e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 244.516 51.665
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309658/likelihoodResults_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.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) = 6161.91655079
delta logL = 0.189135195222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6161.91026731
delta logL = 0.195418668757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43533       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7186       1.0000          .0000       10.000    
     3 'Normalizat'    .92854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1136       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=   6161.910     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      301 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43424        8.4797        .11004E-01    .14337E-02
   2  Index         4.7205        3.6617        .20170        .92822E-04
   3  Normalizat    .92850        .33802E-01    .45265E-01    .18493E-05
   4  Prefactor     1.1137        .33796E-01    .53355E-01   -.81235E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.434239
  Index      = 4.72046
  Normalizat = 0.9285
  Prefactor  = 1.11366
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.910     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      336 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43424        29.776        .60983E-03   -1.5576    
   2  Index         4.7205        6.7913        .86212E-02   -.55937E-01
   3  Normalizat    .92850        .14327        .25722E-03   -.95466    
   4  Prefactor     1.1137        .14149        .23590E-03   -.89031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79114e-08
Minuit parameter uncertainties:
  1  7.19457
  2  10.9979
  3  0.143326
  4  0.141533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309658': 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) = 6161.91026714
delta logL = 0.195418839633

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  4.342e-01  7.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  4.720e+00  1.100e+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:  1.114e+00  1.415e-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:  9.285e-01  1.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 244.516 51.665

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/309658/cmap_HighResolution_439430401_439689601_4FGL_J1618.0+5139_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-14 01:04:50.000207', job_id='309658', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.96', time_epoch_completed='1631606690.0', return_code2='102', ts='0.47', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.95e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='772' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 01:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 309658: <4FGL_J1618.0+5139_daily_bin772> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:50:20 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:50:40 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:40 2021
Terminated at Tue Sep 14 01:04:50 2021
Results reported at Tue Sep 14 01:04:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin772 244.516 51.6653 439430401 439689601 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 :                                   823.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            870 sec.

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

