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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin950
RA = 244.516, Dec = 51.6653
tmin = 485568001, tmax = 485827201
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='311110', job_status='RUN', time_executed='2021-09-14 00:55:52.681640', time_epoch_executed='1631606152.68' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311110/ft1_4FGL_J1618.0+5139_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311110/ft1_4FGL_J1618.0+5139_daily_bin950.fits outfile=/scratch/kocevski/311110/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin950.fits ra=244.516 dec=51.6653 rad=12.0 tmin=485568001.0 tmax=485827201.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.97
user 3.75
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.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/311110/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/311110/ft1_filtered_4FGL_J1618.0+5139_daily_bin950.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/311110/ft1_filtered_4FGL_J1618.0+5139_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/311110/ltcube_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.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/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits
.....................!
real 13.69
user 13.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311110/ft1_filtered_4FGL_J1618.0+5139_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/311110/ltcube_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.fits outfile=/scratch/kocevski/311110/expmap_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.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/311110/ltcube_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.fits
.....................!
real 192.53
user 186.85
sys 5.33

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/311110/ft1_filtered_4FGL_J1618.0+5139_daily_bin950.fits scfile=/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits outfile=/scratch/kocevski/311110/cmap_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311110/ft1_filtered_4FGL_J1618.0+5139_daily_bin950.fits scfile=/scratch/kocevski/311110/ft2_4FGL_J1618.0+5139_daily_bin950.fits outfile=/scratch/kocevski/311110/cmap_HighResolution_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.796       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14414E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14620E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4945       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0884       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9892       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7164       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.465       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0727       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1892       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90539       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=   7037.111     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     2856 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.796        11.442       -.40627E-07   -.61304E-05
   2  Prefactor     .10000E-03    2.2626       -.21731E-07** at limit **
   3  norm          5.1951        2.9474       -.84248E-08   -.13107E-04
   4  Prefactor     .10000E-03    26.896       -.57182E-05** at limit **
   5  Prefactor     .10000E-03    8.2026       -.21476E-06** at limit **
   6  norm          17.666        7.5423        .47873E-06    .18517E-03
   7  Prefactor     .10000E-03    50.149        .11271E-05** at limit **
   8  Prefactor     .10001E-03    134.41        .20824E-04** at limit **
   9  Prefactor     .10000E-03    9.9084       -.24980E-05** at limit **
  10  Prefactor     .10000E-03    23.667        .71918E-05** at limit **
  11  Prefactor     .10001E-03    4.7419       -.70682E-06** at limit **
  12  Prefactor     .10000E-03    .90196        .21720E-07** at limit **
  13  norm          .10000E-03    6.6779        .12494E-06** at limit **
  14  norm          3.4945        7.8254        .64439E-06   -.80889E-03
  15  Prefactor     .10000E-03    3.6472       -.19734E-07** at limit **
  16  Prefactor     5.0880        4.6275        .40376E-06   -.18072E-02
  17  norm          .10000E-03    10.197        .27539E-05** at limit **
  18  Prefactor     1.1003        4.7606        .63931E-06    .15857E-04
  19  Prefactor     6.0008        3.0072       -.21862E-07   -.31408E-04
  20  Prefactor     .10184E-03    10.804       -.20213E-05** at limit **
  21  Prefactor     .10000E-03    6.1983       -.98842E-07** at limit **
  22  norm          1.9896        1.2083       -.33110E-07   -.19668E-03
  23  Prefactor     4.7166        5.6593       -.25909E-07   -.49004E-04
  24  Prefactor     20.465        13.621        .24467E-07   -.47679E-04
  25  Prefactor     2.0731        3.6882        .35307E-07   -.15915E-03
  26  Normalizat    1.1892        .18001       -.61850E-07    .33872E-03
  27  Prefactor     .90529        .17023       -.12142E-06    .29522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7963
  Prefactor  = 0.0001
  norm       = 5.19514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6659
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.49453
  Prefactor  = 0.0001
  Prefactor  = 5.08798
  norm       = 0.0001
  Prefactor  = 1.1003
  Prefactor  = 6.0008
  Prefactor  = 0.000101841
  Prefactor  = 0.0001
  norm       = 1.98959
  Prefactor  = 4.71664
  Prefactor  = 20.4654
  Prefactor  = 2.07311
  Normalizat = 1.18922
  Prefactor  = 0.905286
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.111     FROM HESSE     STATUS=OK           496 CALLS     3352 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.796        11.450        .12194E-03   -1.5051    
   2  Prefactor     .10000E-03    2.2664        .12321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1951        2.9482        .10503E-03   -1.5252    
   4  Prefactor     .10000E-03    27.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.666        7.5528        .95296E-04   -1.4867    
   7  Prefactor     .10000E-03    51.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    135.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    20.783        .34273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .90751        .77796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4945        8.9263        .10814E-02   -1.5334    
  15  Prefactor     .10000E-03    3.7275        .31221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0880        6.4954        .89121E-03   -1.5257    
  17  norm          .10000E-03    10.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1003        4.5041        .29538E-03   -1.5498    
  19  Prefactor     6.0008        3.0058        .99848E-04   -1.5218    
  20  Prefactor     .10184E-03    14.876        .70938E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9896        1.1644        .14689E-03   -1.5426    
  23  Prefactor     4.7166        5.6518        .18529E-03   -1.5274    
  24  Prefactor     20.465        13.621        .44269E-03   -1.4803    
  25  Prefactor     2.0731        3.6873        .20769E-03   -1.5420    
  26  Normalizat    1.1892        .21427        .24308E-03   -.86936    
  27  Prefactor     .90529        .20302        .26608E-03   -.95957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48471e-09
Minuit parameter uncertainties:
  1  11.4522
  2  4.03136e-07
  3  2.94825
  4  0.000193611
  5  3.22907e-05
  6  7.55319
  7  1.52977e-06
  8  0.00175356
  9  4.61825e-05
  10  0.000258116
  11  0.00101687
  12  8.01126e-08
  13  6.32714e-06
  14  8.92969
  15  1.51254e-06
  16  6.49627
  17  6.37708e-05
  18  4.45273
  19  3.00592
  20  0.0104685
  21  1.40424e-06
  22  1.16442
  23  5.65244
  24  13.6231
  25  3.68767
  26  0.214431
  27  0.203186
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  1.017e-03  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.053e-01  2.032e-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.189e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/311110/likelihoodResults_485568001_485827201_4FGL_J1618.0+5139_daily_bin950.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) = 7037.11137126
delta logL = -0.000227153469496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7037.11113512
delta logL = 8.98783946468e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12749E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8122       1.0000          .0000       10.000    
     3 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90509       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=   7036.966     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      288 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0020        123.47        .10297E-01    .15754E-02
   2  Index         3.8196        5.0521        .22574E-01    .78076E-04
   3  Normalizat    1.1552        .83215E-01    .55687E-01    .24222E-03
   4  Prefactor     .92327        .71662E-01    .45070E-01    .15720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00198
  Index      = 3.81959
  Normalizat = 1.15519
  Prefactor  = 0.923274
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.966     FROM HESSE     STATUS=OK            29 CALLS      317 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0020        3.0058        .14936E-03   -1.5508    
   2  Index         3.8196        1.6945        .90294E-03   -.23833    
   3  Normalizat    1.1552        .21340        .24625E-03   -.87999    
   4  Prefactor     .92327        .20176        .26379E-03   -.95333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02379e-10
Minuit parameter uncertainties:
  1  3.00627
  2  1.73091
  3  0.213562
  4  0.20192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311110': 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) = 7036.96624334
delta logL = 0.144900765213

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.002e+00  3.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  3.820e+00  1.731e+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:  9.233e-01  2.019e-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.155e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-14 01:11:02.633953', job_id='311110', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.19', time_epoch_completed='1631607062.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.45e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='950' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 01:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 311110: <4FGL_J1618.0+5139_daily_bin950> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin950> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 14 00:55:28 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:55:41 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:55:41 2021
Terminated at Tue Sep 14 01:11:03 2021
Results reported at Tue Sep 14 01:11:03 2021

Your job looked like:

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

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

