aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 57 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1618.0+5139_monthly_bin168
RA = 244.516, Dec = 51.6653
tmin = 672451201, tmax = 675043201
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='638514', job_status='RUN', time_executed='2022-05-24 03:30:15.942801', time_epoch_executed='1653388215.94' WHERE source_name='4FGL J1618.0+5139' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638514

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638514/ft1_4FGL_J1618.0+5139_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638514/ft1_4FGL_J1618.0+5139_monthly_bin168.fits outfile=/scratch/kocevski/638514/ft1_filteredMKT_4FGL_J1618.0+5139_monthly_bin168.fits ra=244.516 dec=51.6653 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.72
user 27.95
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.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/638514/ft1_filteredMKT_4FGL_J1618.0+5139_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/638514/ft1_filtered_4FGL_J1618.0+5139_monthly_bin168.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.86
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 9093

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638514/ft1_filtered_4FGL_J1618.0+5139_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/638514/ltcube_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.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/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits
.....................!
real 169.94
user 169.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638514/ft1_filtered_4FGL_J1618.0+5139_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/638514/ltcube_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.fits outfile=/scratch/kocevski/638514/expmap_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.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/638514/ltcube_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.fits
.....................!
real 192.56
user 186.70
sys 5.48

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/638514/ft1_filtered_4FGL_J1618.0+5139_monthly_bin168.fits scfile=/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits outfile=/scratch/kocevski/638514/cmap_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.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.78
user 0.60
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638514/ft1_filtered_4FGL_J1618.0+5139_monthly_bin168.fits scfile=/scratch/kocevski/638514/ft2_4FGL_J1618.0+5139_monthly_bin168.fits outfile=/scratch/kocevski/638514/cmap_HighResolution_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.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.80
user 0.61
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12276E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.377       1.0000         .10000E-03   10000.    
     3 'norm      '    .99653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2666       1.0000         .10000E-03   10000.    
     6 'norm      '    .70377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65579       1.0000         .10000E-03   10000.    
    13 'norm      '    28.404       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84719       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7034       1.0000         .10000E-03   10000.    
    17 'norm      '    13.408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79094E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .24431       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35811       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .83449       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94693       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0691       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98452.45     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2912 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7414         .0000    ** at limit **
   2  Prefactor     10.374        2.0767         .0000        .20480E-02
   3  norm          .99647        .39091         .0000        .31123E-02
   4  Prefactor     .10000E-03    .71070         .0000    ** at limit **
   5  Prefactor     2.2656        1.4465         .0000        .51712E-02
   6  norm          .70601        1.4753         .0000        .22551E-01
   7  Prefactor     .10000E-03    4.5677         .0000    ** at limit **
   8  Prefactor     .38122        2.4150         .0000        .12123E-02
   9  Prefactor     .10000E-03    .26139         .0000    ** at limit **
  10  Prefactor     3.9919        4.4112         .0000        .21098E-02
  11  Prefactor     .77755        1.2412         .0000        .21705E-01
  12  Prefactor     .65499        .55408         .0000        .12444E-01
  13  norm          28.411        5.1611         .0000        .36626E-02
  14  norm          1.3729        1.4796         .0000        .67916E-01
  15  Prefactor     .84723        .66701         .0000        .96540E-02
  16  Prefactor     2.7013        1.4551         .0000        .23116    
  17  norm          13.389        8.7260         .0000       -.56971E-02
  18  Prefactor     1.0112        .58727         .0000        .88150E-02
  19  Prefactor     .80131E-01    .17086         .0000        .44382E-02
  20  Prefactor     .10000E-03    .50621         .0000    ** at limit **
  21  Prefactor     .10000E-03    .59710         .0000    ** at limit **
  22  norm          .24431        .16936         .0000        .24196E-01
  23  Prefactor     .35421        .55458         .0000        .44853E-02
  24  Prefactor     .10000E-03    .71943         .0000    ** at limit **
  25  Prefactor     .83454        .62232         .0000        .67315E-02
  26  Normalizat    .94697        .46451E-01     .0000        .38911E-03
  27  Prefactor     1.0691        .43949E-01     .0000        .27272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3737
  norm       = 0.99647
  Prefactor  = 0.0001
  Prefactor  = 2.26561
  norm       = 0.706014
  Prefactor  = 0.0001
  Prefactor  = 0.381219
  Prefactor  = 0.0001
  Prefactor  = 3.99191
  Prefactor  = 0.777551
  Prefactor  = 0.654995
  norm       = 28.4115
  norm       = 1.37287
  Prefactor  = 0.847226
  Prefactor  = 2.70131
  norm       = 13.3886
  Prefactor  = 1.01125
  Prefactor  = 0.0801314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.24431
  Prefactor  = 0.354211
  Prefactor  = 0.0001
  Prefactor  = 0.834544
  Normalizat = 0.946972
  Prefactor  = 1.0691
 **********
 **   18 **HESSE 
 **********

 FCN=   98452.45     FROM HESSE     STATUS=OK           518 CALLS     3430 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8088        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.374        2.0763        .12438E-03   -1.5064    
   3  norm          .99647        .38620        .11951E-03   -1.5508    
   4  Prefactor     .10000E-03    .71300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2656        1.3830        .26334E-03   -1.5407    
   6  norm          .70601        1.4228        .47161E-03   -1.5540    
   7  Prefactor     .10000E-03    4.6874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38122        2.4528        .17054       -1.5584    
   9  Prefactor     .10000E-03    .26354        .15598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9919        4.3723        .20163E-03   -1.5308    
  11  Prefactor     .77755        1.2326        .39989E-03   -1.5532    
  12  Prefactor     .65499        .53993        .20633E-03   -1.5546    
  13  norm          28.411        5.1185        .75172E-04   -1.4641    
  14  norm          1.3729        1.4668        .18607E-02   -1.5474    
  15  Prefactor     .84723        .56592        .21058E-02   -1.5524    
  16  Prefactor     2.7013        1.4491        .12387E-02   -1.5379    
  17  norm          13.389        8.7420        .10939E-03   -1.4976    
  18  Prefactor     1.0112        .56986        .16856E-03   -1.5507    
  19  Prefactor     .80131E-01    1.2085        .17930E-02   -1.5651    
  20  Prefactor     .10000E-03    .51353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1873        .46703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .24431        .15196        .95735E-03   -1.5609    
  23  Prefactor     .35421        1.2971        .27086E-02   -1.5589    
  24  Prefactor     .10000E-03    .73455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .83454        .48158        .20709E-02   -1.5525    
  26  Normalizat    .94697        .53999E-01    .24533E-03   -.94829    
  27  Prefactor     1.0691        .51883E-01    .23326E-03   -.90460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09901e-07
Minuit parameter uncertainties:
  1  8.49632e-06
  2  2.07629
  3  0.386197
  4  1.81501e-05
  5  1.38303
  6  1.42285
  7  4.97963e-06
  8  1.93384
  9  1.62532e-06
  10  4.37265
  11  1.23266
  12  0.539936
  13  5.11854
  14  1.46682
  15  0.565922
  16  1.44917
  17  8.74284
  18  0.569864
  19  0.622004
  20  1.78578e-06
  21  1.8374e-05
  22  0.151956
  23  1.29716
  24  1.2064e-06
  25  0.481584
  26  0.0540016
  27  0.0518859
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  7.776e-01  1.233e+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.069e+00  5.189e-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:  9.470e-01  5.400e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/638514/likelihoodResults_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.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) = 98452.2628679
delta logL = 0.187256453719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 98452.2618384
delta logL = 0.188285946017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54740       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4586       1.0000          .0000       10.000    
     3 'Normalizat'    .94054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0734       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   98452.26     FROM MIGRAD    STATUS=FAILED       103 CALLS      292 TOTAL
                     EDM=   .42E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54520        31.206        .19176E-02    .67893E-01
   2  Index         3.4608        5.2122        .11073E-01    .45362E-03
   3  Normalizat    .94056        .30392E-01    .24609E-03   -.28532E-03
   4  Prefactor     1.0734        .32138E-01    .23285E-03   -.24139E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   98452.26     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      380 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54520        31.206        .65218E-04    .67893E-01
   2  Index         3.4608        5.2122        .18584E-02    .45362E-03
   3  Normalizat    .94056        .30392E-01    .27648E-04   -.28532E-03
   4  Prefactor     1.0734        .32138E-01    .92384E-05   -.24139E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98452.26     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      415 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54520        1.5947        .38352E-03   -.12000E-03
   2  Index         3.4608        2.1633        .22147E-02   -.16262E-04
   3  Normalizat    .94056        .52846E-01    .98435E-05   -.28458E-03
   4  Prefactor     1.0734        .52269E-01    .93140E-05   -.24217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.545201
  Index      = 3.46077
  Normalizat = 0.940559
  Prefactor  = 1.07339
 **********
 **   18 **HESSE 
 **********

 FCN=   98452.26     FROM HESSE     STATUS=OK            25 CALLS      440 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54520        1.1582        .15341E-04   -1.5560    
   2  Index         3.4608        1.5996        .88588E-04   -.31293    
   3  Normalizat    .94056        .52665E-01    .19687E-05   -.95049    
   4  Prefactor     1.0734        .51991E-01    .18628E-05   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37746e-11
Minuit parameter uncertainties:
  1  1.15825
  2  1.63143
  3  0.0526674
  4  0.0519931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638514': 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) = 98452.2618363
delta logL = 0.188288029545

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  5.452e-01  1.158e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  3.461e+00  1.631e+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.073e+00  5.199e-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:  9.406e-01  5.267e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/638514/cmap_HighResolution_672451201_675043201_4FGL_J1618.0+5139_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-03', job_status='DONE', photon_flux_upper_limit='1.91e-08', time_completed='2022-05-24 06:07:42.483951', job_id='638514', GAL2='1.07', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1653397662.48', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.88e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='168' AND source_name='4FGL J1618.0+5139' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:07:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 638514: <4FGL_J1618.0+5139_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1618.0+5139_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:20:34 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:29:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:29:07 2022
Terminated at Tue May 24 06:07:52 2022
Results reported at Tue May 24 06:07:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_monthly_bin168 244.516 51.6653 672451201 675043201 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 :                                   8987.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             450.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9524 sec.
    Turnaround time :                            10038 sec.

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

