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 191 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 = 7654
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1842.4-5840_daily_bin1685
RA = 280.611, Dec = -58.6802
tmin = 676080001, tmax = 676339201
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='383390', job_status='RUN', time_executed='2022-06-08 01:08:55.783459', time_epoch_executed='1654675735.78' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383390/ft1_4FGL_J1842.4-5840_daily_bin1685.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383390/ft1_4FGL_J1842.4-5840_daily_bin1685.fits outfile=/scratch/kocevski/383390/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1685.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=676080001.0 tmax=676339201.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.63
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.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/383390/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1685.fits evtable="EVENTS" outfile="/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.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.33
sys 0.16

Number of photons that the gtmktime cut: 457

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/383390/ltcube_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.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/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits
.....................!
real 13.93
user 13.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/383390/ltcube_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits outfile=/scratch/kocevski/383390/expmap_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.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/383390/ltcube_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits
.....................!
real 191.87
user 185.39
sys 6.03

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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 290 point sources and 8 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1842.4-5840 @ 280.611 -58.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits outfile=/scratch/kocevski/383390/cmap_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.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=280.611 yref=-58.6802 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits outfile=/scratch/kocevski/383390/cmap_HighResolution_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.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=280.611 yref=-58.6802 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383390/Model_4FGL_J1842.4-5840_daily_bin1685.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
Working on...
/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits.....................!
real 51.41
user 49.89
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits', '/scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits', expMap='/scratch/kocevski/383390/expmap_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits', expCube='/scratch/kocevski/383390/ltcube_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383390/Model_4FGL_J1842.4-5840_daily_bin1685.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1842.4-5840'

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  5.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
710        Scale:  7.602e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/383390/ft1_filtered_4FGL_J1842.4-5840_daily_bin1685.fits
Spacecraft file(s): /scratch/kocevski/383390/ft2_4FGL_J1842.4-5840_daily_bin1685.fits
Exposure map: /scratch/kocevski/383390/expmap_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits
Exposure cube: /scratch/kocevski/383390/ltcube_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383390/Model_4FGL_J1842.4-5840_daily_bin1685.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) = 4651.95512822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2585       1.0000         .10000E-03   10000.    
     3 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.215       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2004       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31275E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35470E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88708       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1043E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4651.948     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2196 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.067        .20878E-06** at limit **
   2  Prefactor     2.2512        106.55        .30558E-05    .38264E-05
   3  norm          .10000E-03    18.618        .89371E-07** at limit **
   4  Prefactor     32.223        24.066        .61774E-06   -.45163E-05
   5  Prefactor     .10000E-03    31.629        .86038E-07** at limit **
   6  norm          4.2509        10.567        .74359E-06    .50056E-05
   7  Prefactor     .10000E-03    38.902        .17233E-06** at limit **
   8  Prefactor     20.182        25.041       -.12626E-06   -.17682E-04
   9  Prefactor     .10000E-03    31.678        .16702E-06** at limit **
  10  norm          .10000E-03    2.6014        .35858E-07** at limit **
  11  norm          8.2023        7.4436        .40938E-06    .65430E-05
  12  norm          .10000E-03    .54433       -.59015E-06** at limit **
  13  Prefactor     .10000E-03    83.383       -.33947E-05** at limit **
  14  Prefactor     .10000E-03    55.157       -.21821E-06** at limit **
  15  Prefactor     .10000E-03    141.68       -.12131E-05** at limit **
  16  Prefactor     .10001E-03    2256.1       -.10429E-03** at limit **
  17  norm          7.8497        15.448        .11036E-05   -.10896E-04
  18  Prefactor     .10000E-03    14.511        .89299E-07** at limit **
  19  norm          .10000E-03    1.2787        .41587E-06** at limit **
  20  Normalizat    1.1776        .38319       -.42140E-05   -.44937E-04
  21  Prefactor     .88709        .11465       -.99070E-06   -.11707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.25118
  norm       = 0.0001
  Prefactor  = 32.2235
  Prefactor  = 0.0001
  norm       = 4.25085
  Prefactor  = 0.0001
  Prefactor  = 20.182
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.20233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 7.8497
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.17761
  Prefactor  = 0.887093
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.948     FROM HESSE     STATUS=OK           311 CALLS     2507 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2512        107.40        .27336E-03   -1.5408    
   3  norm          .10000E-03    18.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.223        24.115        .70597E-04   -1.4572    
   5  Prefactor     .10000E-03    31.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2509        10.580        .19535E-03   -1.5296    
   7  Prefactor     .10000E-03    38.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.182        25.060        .89136E-04   -1.4809    
   9  Prefactor     .10000E-03    31.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6094        .10743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2023        7.4457        .14000E-03   -1.5135    
  12  norm          .10000E-03    .55159        .97286E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    83.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    142.58        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    2244.9        .18398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8497        15.489        .14304E-03   -1.5148    
  18  Prefactor     .10000E-03    14.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.9132        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1776        .44946        .42379E-03   -.87297    
  21  Prefactor     .88709        .13611        .14566E-03   -.96594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75352e-11
Minuit parameter uncertainties:
  1  3.35017e-05
  2  31.1573
  3  1.38636e-05
  4  24.122
  5  2.34093e-05
  6  10.5845
  7  0.000139
  8  25.0734
  9  6.75533e-05
  10  5.37122e-06
  11  7.44657
  12  6.57423e-06
  13  0.000219118
  14  2.65783e-05
  15  0.00073525
  16  0.00723853
  17  15.4967
  18  1.65869e-05
  19  2.04009e-05
  20  0.450941
  21  0.136166
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  7.239e-03  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
710        Scale:  7.602e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1036    Prefactor:  8.871e-01  1.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1037        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1038        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1012   Normalization:  1.178e+00  4.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.611 -58.680
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383390/likelihoodResults_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.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) = 4651.94812372
delta logL = -1.95731536223e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4651.94812372
delta logL = -1.95726261154e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6816       1.0000          .0000       10.000    
     3 'Normalizat'    1.1776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1043E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4650.969     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      316 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44284E-01    1.5918        .26003E-02   -.10665E-02
   2  Index         4.2042        2.3461        .59155E-01    .17236E-03
   3  Normalizat    1.0352        .31551        .10101        .40372E-04
   4  Prefactor     .90969        .79870E-01    .32559E-01    .11594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0442839
  Index      = 4.20421
  Normalizat = 1.03522
  Prefactor  = 0.909692
 **********
 **   18 **HESSE 
 **********

 FCN=   4650.969     FROM HESSE     STATUS=OK            33 CALLS      349 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44284E-01    3.9509        .11848E-03   -1.5750    
   2  Index         4.2042        4.0080        .22991E-02   -.15984    
   3  Normalizat    1.0352        .44234        .44766E-03   -.91860    
   4  Prefactor     .90969        .13386        .14386E-03   -.95803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55554e-07
Minuit parameter uncertainties:
  1  0.835675
  2  4.67704
  3  0.443924
  4  0.133906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383390': 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) = 4650.96943785
delta logL = 0.978683909481

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  4.428e-02  8.357e-01  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  4.204e+00  4.677e+00  0.000e+00  1.000e+01 (-1.000e+00)
710        Scale:  7.602e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1036    Prefactor:  9.097e-01  1.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1037        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1038        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1012   Normalization:  1.035e+00  4.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 280.611 -58.680
Photon Index (Free Index): 4.20 +/- 4.68
Photon Flux (Free Index): 1.12e-07 +/- 4.21e-06
Energy Flux (Free Index): 1.63e-05 +/- 6.01e-04

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/383390/cmap_HighResolution_676080001_676339201_4FGL_J1842.4-5840_daily_bin1685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='9.79e-01', photon_flux2='1.12e-07', job_status='DONE', time_completed='2022-06-08 01:21:43.525545', photon_index_error2='4.68', photon_index2='4.20', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='6.01e-04', EG='1.18', time_epoch_completed='1654676503.53', return_code='0', job_id='383390', GAL2='0.91', EG2='1.04', return_code2='0', photon_flux_error2='4.21e-06', ts2='2.06', photon_index='1.68' WHERE bin_id='1685' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 01:21:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 383390: <4FGL_J1842.4-5840_daily_bin1685> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin1685> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun  8 01:05:21 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 01:05:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 01:05:35 2022
Terminated at Wed Jun  8 01:21:44 2022
Results reported at Wed Jun  8 01:21:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin1685 280.611 -58.6802 676080001 676339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1842.4-5840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.47 sec.
    Max Memory :                                 1158 MB
    Average Memory :                             306.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            983 sec.

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

