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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin196
RA = 244.516, Dec = 51.6653
tmin = 290131201, tmax = 290390401
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='305487', job_status='RUN', time_executed='2021-09-14 00:38:18.009423', time_epoch_executed='1631605098.01' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305487/ft1_4FGL_J1618.0+5139_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305487/ft1_4FGL_J1618.0+5139_daily_bin196.fits outfile=/scratch/kocevski/305487/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin196.fits ra=244.516 dec=51.6653 rad=12.0 tmin=290131201.0 tmax=290390401.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.47
user 3.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305487/ft1_filtered_4FGL_J1618.0+5139_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/305487/ltcube_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits outfile=/scratch/kocevski/305487/expmap_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.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/305487/ltcube_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits
.....................!
real 191.99
user 186.22
sys 5.16

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/305487/ft1_filtered_4FGL_J1618.0+5139_daily_bin196.fits scfile=/scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits outfile=/scratch/kocevski/305487/cmap_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305487/ft1_filtered_4FGL_J1618.0+5139_daily_bin196.fits scfile=/scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits outfile=/scratch/kocevski/305487/cmap_HighResolution_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/305487/ft1_filtered_4FGL_J1618.0+5139_daily_bin196.fits', '/scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits', expMap='/scratch/kocevski/305487/expmap_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits', expCube='/scratch/kocevski/305487/ltcube_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/305487/Model_4FGL_J1618.0+5139_daily_bin196.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/305487/ft1_filtered_4FGL_J1618.0+5139_daily_bin196.fits
Spacecraft file(s): /scratch/kocevski/305487/ft2_4FGL_J1618.0+5139_daily_bin196.fits
Exposure map: /scratch/kocevski/305487/expmap_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits
Exposure cube: /scratch/kocevski/305487/ltcube_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/305487/Model_4FGL_J1618.0+5139_daily_bin196.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6031.71389782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.337       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.522       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54288E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2523       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6914       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7138       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.391       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .58549       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2207       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=   6031.689     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     2823 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6466        21.725       -.17332E-05   -.26189E-04
   2  Prefactor     22.342        15.668        .21148E-05    .66698E-03
   3  norm          8.0079        3.7950        .40667E-07    .64820E-04
   4  Prefactor     .10000E-03    6.0197       -.15405E-06** at limit **
   5  Prefactor     14.523        12.113       -.29492E-07   -.50593E-04
   6  norm          8.4438        9.6995       -.43607E-08   -.29957E-04
   7  Prefactor     .10000E-03    14.219       -.26707E-05** at limit **
   8  Prefactor     .10000E-03    19.606        .48824E-06** at limit **
   9  Prefactor     .10000E-03    1.5827        .69833E-10** at limit **
  10  Prefactor     .10000E-03    4.6645        .17678E-07** at limit **
  11  Prefactor     .63718        3.1827        .30321E-06   -.17715E-03
  12  Prefactor     .59927E-01    1.4551       -.41307E-06    .83469E-03
  13  norm          .10000E-03    9.4367       -.21191E-06** at limit **
  14  norm          .10000E-03    7.3321        .11998E-05** at limit **
  15  Prefactor     13.181        5.0130        .61256E-07    .76951E-04
  16  Prefactor     9.2538        7.6496        .15041E-05   -.96367E-03
  17  norm          .10000E-03    11.603        .26326E-05** at limit **
  18  Prefactor     5.5646        3.6102        .11600E-06    .42980E-04
  19  Prefactor     1.6914        2.0253        .11110E-06    .27780E-05
  20  Prefactor     3.1127        9.5535        .18772E-06   -.59513E-04
  21  Prefactor     .10000E-03    8.1645       -.15982E-05** at limit **
  22  norm          1.7138        .93328       -.67161E-07   -.22841E-03
  23  Prefactor     8.6751        6.6995        .13845E-05   -.11004E-02
  24  Prefactor     20.392        13.952       -.67895E-07   -.46883E-04
  25  Prefactor     .10000E-03    1.7133       -.15308E-07** at limit **
  26  Normalizat    .58517        .19903       -.29356E-05    .83149E-04
  27  Prefactor     1.2209        .18236        .72903E-06   -.24530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64661
  Prefactor  = 22.3417
  norm       = 8.00787
  Prefactor  = 0.0001
  Prefactor  = 14.5225
  norm       = 8.44377
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.637185
  Prefactor  = 0.0599269
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.181
  Prefactor  = 9.25379
  norm       = 0.000100003
  Prefactor  = 5.56461
  Prefactor  = 1.69141
  Prefactor  = 3.11267
  Prefactor  = 0.000100001
  norm       = 1.71377
  Prefactor  = 8.67506
  Prefactor  = 20.3919
  Prefactor  = 0.0001
  Normalizat = 0.585174
  Prefactor  = 1.22095
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.689     FROM HESSE     STATUS=OK           496 CALLS     3319 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6466        21.951        .12877E-03   -1.5087    
   2  Prefactor     22.342        16.195        .84751E-04   -1.4762    
   3  norm          8.0079        3.7967        .10080E-03   -1.5142    
   4  Prefactor     .10000E-03    6.0227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.523        12.122        .10510E-03   -1.4946    
   6  norm          8.4438        9.6951        .13796E-03   -1.5127    
   7  Prefactor     .10000E-03    14.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5877        .95412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6671        .16382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .63718        12.026        .25829E-02   -1.5548    
  12  Prefactor     .59927E-01    24.879        .17749E-02   -1.5659    
  13  norm          .10000E-03    9.4601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.4344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.181        5.0084        .10149E-03   -1.4982    
  16  Prefactor     9.2538        8.0724        .65879E-03   -1.5099    
  17  norm          .10000E-03    12.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5646        3.5970        .11029E-03   -1.5236    
  19  Prefactor     1.6914        2.0051        .11697E-03   -1.5448    
  20  Prefactor     3.1127        9.5335        .22977E-03   -1.5355    
  21  Prefactor     .10000E-03    8.3397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7138        .92610        .51837E-04   -1.5446    
  23  Prefactor     8.6751        7.1122        .68050E-03   -1.5119    
  24  Prefactor     20.392        13.957        .88698E-04   -1.4805    
  25  Prefactor     .10000E-03    1.7283        .99260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .58517        .22974        .31144E-03   -1.0862    
  27  Prefactor     1.2209        .21505        .22359E-03   -.85689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01084e-08
Minuit parameter uncertainties:
  1  21.969
  2  16.1984
  3  3.79678
  4  1.45345e-05
  5  12.1243
  6  9.69691
  7  0.000415397
  8  9.15993e-05
  9  7.79324e-07
  10  3.26078e-06
  11  5.53725
  12  2.44103
  13  2.45766e-05
  14  0.000134116
  15  5.00861
  16  8.07332
  17  0.000375099
  18  3.59716
  19  2.00522
  20  9.5382
  21  0.000180021
  22  0.926108
  23  7.11291
  24  13.959
  25  2.31128e-07
  26  0.230117
  27  0.215202
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  6.372e-01  5.537e+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.221e+00  2.152e-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:  5.852e-01  2.301e-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: 8.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305487/likelihoodResults_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.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) = 6031.68693246
delta logL = 0.00176245241255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6031.68653432
delta logL = 0.00216058814021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4673       1.0000          .0000       10.000    
     3 'Normalizat'    .58590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2201       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=   6031.687     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      241 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80182        34.226        .76754E-01    .46874E-03
   2  Index         2.4740        3.1612        .50000        .63181E-07
   3  Normalizat    .58574        .13695E-01    .70331E-01    .35062E-04
   4  Prefactor     1.2202        .13839E-01    .50590E-01    .23058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.801824
  Index      = 2.474
  Normalizat = 0.585737
  Prefactor  = 1.22022
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.687     FROM HESSE     STATUS=OK            35 CALLS      276 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80182        13.052        .27982E-02   -1.5529    
   2  Index         2.4740        2.7152        .19649E-01   -.52961    
   3  Normalizat    .58574        .20787        .31130E-03   -1.0859    
   4  Prefactor     1.2202        .20957        .22365E-03   -.85711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14105e-11
Minuit parameter uncertainties:
  1  6.47137
  2  2.93666
  3  0.208143
  4  0.209713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305487': 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) = 6031.68653116
delta logL = 0.00216375269792

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  8.018e-01  6.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.474e+00  2.937e+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.220e+00  2.097e-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:  5.857e-01  2.081e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/305487/cmap_HighResolution_290131201_290390401_4FGL_J1618.0+5139_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-14 00:51:53.523755', job_id='305487', GAL2='1.22', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631605913.52', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.16e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='196' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 305487: <4FGL_J1618.0+5139_daily_bin196> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin196> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 00:35:41 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:38:03 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:38:03 2021
Terminated at Tue Sep 14 00:51:54 2021
Results reported at Tue Sep 14 00:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin196 244.516 51.6653 290131201 290390401 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 :                                   810.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            973 sec.

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

