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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1010
RA = 244.516, Dec = 51.6653
tmin = 501120001, tmax = 501379201
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='311217', job_status='RUN', time_executed='2021-09-14 00:58:33.009481', time_epoch_executed='1631606313.01' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311217/ft1_4FGL_J1618.0+5139_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311217/ft2_4FGL_J1618.0+5139_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311217/ft1_4FGL_J1618.0+5139_daily_bin1010.fits outfile=/scratch/kocevski/311217/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1010.fits ra=244.516 dec=51.6653 rad=12.0 tmin=501120001.0 tmax=501379201.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.55
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311217/ft1_filtered_4FGL_J1618.0+5139_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/311217/ft2_4FGL_J1618.0+5139_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/311217/ltcube_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.fits outfile=/scratch/kocevski/311217/expmap_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.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/311217/ltcube_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.fits
.....................!
real 192.67
user 186.33
sys 5.15

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/311217/ft1_filtered_4FGL_J1618.0+5139_daily_bin1010.fits scfile=/scratch/kocevski/311217/ft2_4FGL_J1618.0+5139_daily_bin1010.fits outfile=/scratch/kocevski/311217/cmap_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.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.64
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311217/ft1_filtered_4FGL_J1618.0+5139_daily_bin1010.fits scfile=/scratch/kocevski/311217/ft2_4FGL_J1618.0+5139_daily_bin1010.fits outfile=/scratch/kocevski/311217/cmap_HighResolution_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1955       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12575E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.8322       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2718       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1405       1.0000         .10000E-03   10000.    
    14 'norm      '    .53422E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82399       1.0000         .10000E-03   10000.    
    17 'norm      '    10.319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5183       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7923       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0641       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0240       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=   5895.781     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     2804 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8978        15.156        .83256E-06    .66163E-05
   2  Prefactor     4.1943        7.2990       -.24808E-05    .76070E-04
   3  norm          7.0214        3.2760       -.19556E-07   -.27247E-04
   4  Prefactor     16.330        16.644       -.14926E-06    .17665E-04
   5  Prefactor     .10000E-03    6.3567        .27628E-06** at limit **
   6  norm          7.8408        8.7346       -.39310E-06   -.17071E-03
   7  Prefactor     .10000E-03    16.380        .93372E-08** at limit **
   8  Prefactor     .10000E-03    29.601        .66224E-07** at limit **
   9  Prefactor     .10000E-03    2.9055        .13378E-06** at limit **
  10  Prefactor     .10000E-03    16.877       -.14354E-06** at limit **
  11  Prefactor     .10000E-03    4.2237        .17241E-07** at limit **
  12  Prefactor     3.2717        3.6690       -.84464E-07    .13470E-03
  13  norm          3.1435        10.451       -.41345E-05    .23189E-04
  14  norm          .10001E-03    96.828        .39900E-04** at limit **
  15  Prefactor     .10000E-03    3.6021        .49811E-05** at limit **
  16  Prefactor     .81949        4.2128        .69175E-06    .57111E-04
  17  norm          10.387        37.036        .78628E-05    .28194E-04
  18  Prefactor     2.5182        2.9967       -.93202E-07   -.48158E-04
  19  Prefactor     3.7917        2.4792       -.10534E-07    .17291E-03
  20  Prefactor     .10000E-03    4.7248        .33099E-06** at limit **
  21  Prefactor     .10000E-03    10.429       -.25992E-07** at limit **
  22  norm          1.0635        .94153       -.73045E-07   -.30938E-03
  23  Prefactor     .10000E-03    4.1135        .25684E-06** at limit **
  24  Prefactor     10.633        9.5159       -.66932E-07   -.10089E-04
  25  Prefactor     .10000E-03    5.2583        .37703E-06** at limit **
  26  Normalizat    1.0361        .19433       -.58567E-06    .11754E-03
  27  Prefactor     1.0235        .18555        .15561E-05    .21483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89783
  Prefactor  = 4.19427
  norm       = 7.02137
  Prefactor  = 16.3296
  Prefactor  = 0.0001
  norm       = 7.84078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27169
  norm       = 3.14355
  norm       = 0.000100007
  Prefactor  = 0.000100005
  Prefactor  = 0.819493
  norm       = 10.3868
  Prefactor  = 2.51824
  Prefactor  = 3.79174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06354
  Prefactor  = 0.0001
  Prefactor  = 10.6332
  Prefactor  = 0.0001
  Normalizat = 1.03605
  Prefactor  = 1.02352
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.781     FROM HESSE     STATUS=OK           490 CALLS     3294 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8978        14.943        .30175E-03   -1.5432    
   2  Prefactor     4.1943        7.2962        .98376E-03   -1.5298    
   3  norm          7.0214        3.2756        .92215E-04   -1.5178    
   4  Prefactor     16.330        16.644        .49562E-03   -1.4900    
   5  Prefactor     .10000E-03    6.3838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.8408        8.7100        .14328E-03   -1.5148    
   7  Prefactor     .10000E-03    16.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9259        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2781        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2717        3.6562        .14835E-03   -1.5346    
  13  norm          3.1435        10.416        .11437E-02   -1.5353    
  14  norm          .10001E-03    102.26        .50941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.006        .22225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81949        18.415        .29069E-02   -1.5527    
  17  norm          10.387        37.078        .12473E-03   -1.5063    
  18  Prefactor     2.5182        2.9546        .13641E-03   -1.5391    
  19  Prefactor     3.7917        2.4755        .94452E-04   -1.5318    
  20  Prefactor     .10000E-03    4.7376        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0635        .91139        .65759E-04   -1.5502    
  23  Prefactor     .10000E-03    4.1506        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.633        9.5155        .12286E-03   -1.5056    
  25  Prefactor     .10000E-03    5.4917        .34360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0361        .22497        .24668E-03   -.91832    
  27  Prefactor     1.0235        .21582        .24737E-03   -.91950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6274e-10
Minuit parameter uncertainties:
  1  10.6542
  2  7.29779
  3  3.27572
  4  16.6486
  5  1.46704e-05
  6  8.71142
  7  2.81689e-05
  8  5.34905e-05
  9  1.16457e-05
  10  0.000109828
  11  6.57379e-05
  12  3.65642
  13  10.4225
  14  0.00166056
  15  0.000541208
  16  7.7716
  17  37.1603
  18  2.95478
  19  2.47556
  20  9.53729e-06
  21  3.08566e-05
  22  0.911404
  23  6.26713e-06
  24  9.51688
  25  8.5319e-05
  26  0.225173
  27  0.216005
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  6.574e-05  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.024e+00  2.160e-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.036e+00  2.252e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311217/likelihoodResults_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.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) = 5895.7824654
delta logL = -0.00111450412805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5895.78135172
delta logL = -8.28120391816e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6863       1.0000          .0000       10.000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0237       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5895.781     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      257 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11823        .48580E-01** at limit **
   2  Index         3.4835        6.0810        .50000        .17474E-06
   3  Normalizat    1.0360        .13013E-02    .24668E-03   -.55211E-03
   4  Prefactor     1.0235        .13043E-02    .24737E-03   -.62091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.48353
  Normalizat = 1.03605
  Prefactor  = 1.02351
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.781     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.275        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4835        6.0965        .50000       -.30815    
   3  Normalizat    1.0360        .14684E-01    .49336E-04   -.91832    
   4  Prefactor     1.0235        .14718E-01    .49474E-04   -.91950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.09081e-10
Minuit parameter uncertainties:
  1  7.03252e-06
  2  361.748
  3  0.0146842
  4  0.0147181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311217': 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) = 5895.78134842
delta logL = 2.47181742452e-06

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  7.033e-06  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  3.484e+00  3.617e+02  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.024e+00  1.472e-02  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.036e+00  1.468e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/311217/cmap_HighResolution_501120001_501379201_4FGL_J1618.0+5139_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-14 01:12:05.192568', job_id='311217', GAL2='1.02', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631607125.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1010' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 01:12:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 311217: <4FGL_J1618.0+5139_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1010 244.516 51.6653 501120001 501379201 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 :                                   806.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             295.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            990 sec.

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

