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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin425
RA = 244.516, Dec = 51.6653
tmin = 349488001, tmax = 349747201
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='306826', job_status='RUN', time_executed='2021-09-14 00:42:18.974433', time_epoch_executed='1631605338.97' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306826/ft1_4FGL_J1618.0+5139_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306826/ft1_4FGL_J1618.0+5139_daily_bin425.fits outfile=/scratch/kocevski/306826/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin425.fits ra=244.516 dec=51.6653 rad=12.0 tmin=349488001.0 tmax=349747201.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.44
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306826/ft1_filtered_4FGL_J1618.0+5139_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/306826/ltcube_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.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/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits
.....................!
real 13.57
user 13.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306826/ft1_filtered_4FGL_J1618.0+5139_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/306826/ltcube_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.fits outfile=/scratch/kocevski/306826/expmap_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.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/306826/ltcube_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.fits
.....................!
real 191.94
user 185.89
sys 5.55

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/306826/ft1_filtered_4FGL_J1618.0+5139_daily_bin425.fits scfile=/scratch/kocevski/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits outfile=/scratch/kocevski/306826/cmap_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306826/ft1_filtered_4FGL_J1618.0+5139_daily_bin425.fits scfile=/scratch/kocevski/306826/ft2_4FGL_J1618.0+5139_daily_bin425.fits outfile=/scratch/kocevski/306826/cmap_HighResolution_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9134       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13739E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.2532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.461       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 '    11.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1644       1.0000         .10000E-03   10000.    
    13 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21327E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23272       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0273       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .98344       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7552       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.467       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .78475       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54449       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5720.514     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     2753 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9208        1.0883       -.34935E-06    .15030E-03
   2  Prefactor     .10002E-03    5.5721       -.54081E-05** at limit **
   3  norm          7.2533        3.3310       -.86736E-06   -.29120E-03
   4  Prefactor     .10001E-03    5.8429        .34755E-06** at limit **
   5  Prefactor     .10000E-03    2.8915       -.24864E-08** at limit **
   6  norm          24.490        1.0113       -.92177E-07   -.51283E-05
   7  Prefactor     17.457        1.4595       -.10098E-05    .23601E-02
   8  Prefactor     .10007E-03    12.888        .17960E-04** at limit **
   9  Prefactor     .10000E-03    2.9713        .25739E-06** at limit **
  10  Prefactor     .10000E-03    9.9126        .11912E-04** at limit **
  11  Prefactor     11.136        3.5120       -.40017E-05   -.44359E-02
  12  Prefactor     4.1642        2.8280       -.13183E-06   -.14108E-03
  13  norm          .10002E-03    23.959       -.88803E-05** at limit **
  14  norm          .10003E-03    22.817       -.60280E-05** at limit **
  15  Prefactor     .10000E-03    1.5293       -.15659E-06** at limit **
  16  Prefactor     .21718        1.1183        .58427E-05   -.46612E-03
  17  norm          .10000E-03    9.4741       -.14904E-05** at limit **
  18  Prefactor     1.0275        1.9069        .10664E-06   -.29164E-04
  19  Prefactor     .10000E-03    1.3058       -.22297E-06** at limit **
  20  Prefactor     12.184        1.0241        .83871E-07   -.13307E-03
  21  Prefactor     .10000E-03    10.104       -.17420E-04** at limit **
  22  norm          .98340        .95579       -.97888E-07   -.11488E-02
  23  Prefactor     2.7538        1.0765        .79374E-06    .11156E-03
  24  Prefactor     19.468        1.0069        .96606E-07    .71831E-04
  25  Prefactor     .78491        1.8164       -.49270E-07    .47523E-04
  26  Normalizat    .54460        .18766        .28427E-05    .44085E-04
  27  Prefactor     1.0487        .19194       -.71412E-07    .21303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92076
  Prefactor  = 0.000100024
  norm       = 7.25334
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 24.4904
  Prefactor  = 17.4569
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 11.136
  Prefactor  = 4.1642
  norm       = 0.000100017
  norm       = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 0.21718
  norm       = 0.000100004
  Prefactor  = 1.02751
  Prefactor  = 0.0001
  Prefactor  = 12.1838
  Prefactor  = 0.000100005
  norm       = 0.983402
  Prefactor  = 2.75376
  Prefactor  = 19.4683
  Prefactor  = 0.784908
  Normalizat = 0.544596
  Prefactor  = 1.04874
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.514     FROM HESSE     STATUS=OK           564 CALLS     3317 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9208        10.692        .45363E-02   -1.5264    
   2  Prefactor     .10002E-03    5.6590        .60666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2533        3.3516        .37234E-02   -1.5169    
   4  Prefactor     .10001E-03    18.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.490        9.0680        .20236E-02   -1.4718    
   7  Prefactor     17.457        41.981        .23962E-02   -1.4872    
   8  Prefactor     .10007E-03    21.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.136        6.3007        .30002E-02   -1.5040    
  12  Prefactor     4.1642        2.8399        .49376E-02   -1.5300    
  13  norm          .10002E-03    46.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    8.5830        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21718        3.3204        .80317E-01   -1.5615    
  17  norm          .10000E-03    9.9008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0275        2.3461        .32116E-01   -1.5505    
  19  Prefactor     .10000E-03    1.2799        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.184        10.757        .28685E-02   -1.5010    
  21  Prefactor     .10000E-03    14.780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .98340        1.0809        .13107E-01   -1.5510    
  23  Prefactor     2.7538        8.1057        .61309E-02   -1.5376    
  24  Prefactor     19.468        14.673        .22694E-02   -1.4825    
  25  Prefactor     .78491        2.2149        .36165E-01   -1.5531    
  26  Normalizat    .54460        .17246        .62803E-01   -1.1039    
  27  Prefactor     1.0487        .16574        .39982E-01   -.91122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14627e-08
Minuit parameter uncertainties:
  1  10.6959
  2  0.000734167
  3  3.35165
  4  0.000974432
  5  2.71899e-05
  6  9.06854
  7  42.0518
  8  0.00238418
  9  1.96424e-05
  10  0.000469153
  11  6.30104
  12  2.84003
  13  0.0017536
  14  0.00102027
  15  7.65742e-06
  16  1.6981
  17  0.00038053
  18  2.34634
  19  5.84053e-07
  20  10.7583
  21  0.000522657
  22  1.0809
  23  8.10896
  24  14.6758
  25  2.21517
  26  0.172634
  27  0.165818
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.114e+01  6.301e+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.049e+00  1.658e-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.446e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 244.516 51.665
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 9.41e-06

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) = 5720.17626381
delta logL = 0.337674588553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.15251228
delta logL = 0.361426120594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1689       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2096       1.0000          .0000       10.000    
     3 'Normalizat'    .52094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0662       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=   5720.153     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1680        7.2698        .99123E-04    .12019E-02
   2  Index         3.2097        .76722        .54115E-02    .22709E-03
   3  Normalizat    .52094        .19113        .28371E-03   -.34730E-03
   4  Prefactor     1.0662        .19316        .20760E-03   -.49409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16795
  Index      = 3.2097
  Normalizat = 0.520944
  Prefactor  = 1.06624
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.153     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1680        6.5484        .39649E-05   -1.5172    
   2  Index         3.2097        .69121        .21646E-03   -.36619    
   3  Normalizat    .52094        .19124        .11348E-04   -1.1145    
   4  Prefactor     1.0662        .19318        .41519E-04   -.90553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55073e-10
Minuit parameter uncertainties:
  1  6.54904
  2  0.693764
  3  0.191482
  4  0.193311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306826': 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) = 5720.15251226
delta logL = 0.36142614164

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  7.168e+00  6.549e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  3.210e+00  6.938e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.066e+00  1.933e-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.209e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 244.516 51.665
Photon Index (Free Index): 3.21 +/- 0.69
Photon Flux (Free Index): 8.34e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.52e-05 +/- 8.14e-06

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/306826/cmap_HighResolution_349488001_349747201_4FGL_J1618.0+5139_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='1.52e-05', photon_flux_error='3.83e-08', dlogl='3.61e-01', energy_flux='1.66e-05', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-14 00:53:42.318991', photon_index_error2='0.69', photon_index2='3.21', ts='5.22', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='8.14e-06', EG='0.54', time_epoch_completed='1631606022.32', return_code='0', job_id='306826', GAL2='1.07', EG2='0.52', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='4.48e-08', ts2='6.00', photon_index='2.67' WHERE bin_id='425' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 306826: <4FGL_J1618.0+5139_daily_bin425> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin425> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:40:25 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:42:10 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:42:10 2021
Terminated at Tue Sep 14 00:53:43 2021
Results reported at Tue Sep 14 00:53:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin425 244.516 51.6653 349488001 349747201 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 :                                   679.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            798 sec.

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

