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


Performing analysis on: 4FGL_J1842.4-5840_daily_bin1441
RA = 280.611, Dec = -58.6802
tmin = 612835201, tmax = 613094401
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='305967', job_status='RUN', time_executed='2021-09-21 10:51:48.551802', time_epoch_executed='1632246708.55' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305967/ft1_4FGL_J1842.4-5840_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305967/ft1_4FGL_J1842.4-5840_daily_bin1441.fits outfile=/scratch/kocevski/305967/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1441.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.87
user 2.69
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.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/305967/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.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.54
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/305967/ltcube_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.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/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits
.....................!
real 12.20
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/305967/ltcube_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits outfile=/scratch/kocevski/305967/expmap_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.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/305967/ltcube_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits
.....................!
real 191.18
user 185.62
sys 5.25

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/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits outfile=/scratch/kocevski/305967/cmap_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits outfile=/scratch/kocevski/305967/cmap_HighResolution_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305967/Model_4FGL_J1842.4-5840_daily_bin1441.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/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits......................!
real 41.37
user 40.05
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits', '/scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits', expMap='/scratch/kocevski/305967/expmap_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits', expCube='/scratch/kocevski/305967/ltcube_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/305967/Model_4FGL_J1842.4-5840_daily_bin1441.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/305967/ft1_filtered_4FGL_J1842.4-5840_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/305967/ft2_4FGL_J1842.4-5840_daily_bin1441.fits
Exposure map: /scratch/kocevski/305967/expmap_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits
Exposure cube: /scratch/kocevski/305967/ltcube_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/305967/Model_4FGL_J1842.4-5840_daily_bin1441.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) = 3838.23205662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14609E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9991.0       1.0000         .10000E-03   10000.    
     3 'norm      '    9988.1       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9996.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9998.6       1.0000         .10000E-03   10000.    
     6 'norm      '    9996.5       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34803E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.426       1.0000         .10000E-03   10000.    
    10 'norm      '    .36493E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .37043E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .34306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47484E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14214E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42400E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20505E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    49.394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15295E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1043E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3837.994     FROM MIGRAD    STATUS=CONVERGED    265 CALLS     2151 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.362       -.14238E-06** at limit **
   2  Prefactor    10000.0        633.04       -.41412E-05** at limit **
   3  norm         10000.0        1267.2       -.64485E-05** at limit **
   4  Prefactor    10000.0        248.81        .27630E-05** at limit **
   5  Prefactor    10000.0        1433.4        .96966E-05** at limit **
   6  norm         10000.0        714.41        .50625E-05** at limit **
   7  Prefactor     .10000E-03    8.4961       -.42047E-06** at limit **
   8  Prefactor     23.368        43.326       -.28152E-06   -.89957E-05
   9  Prefactor     .10000E-03    1261.3        .89361E-05** at limit **
  10  norm          .10000E-03    47.227       -.11942E-05** at limit **
  11  norm          .10000E-03    19.422       -.57879E-06** at limit **
  12  norm          .37888        13.971       -.50658E-06   -.43804E-05
  13  Prefactor     .10000E-03    128.00        .13070E-05** at limit **
  14  Prefactor     .10000E-03    290.85       -.36344E-05** at limit **
  15  Prefactor     .10000E-03    52.798        .19573E-05** at limit **
  16  Prefactor     .10000E-03    173.43       -.16215E-06** at limit **
  17  norm          49.262        12.376        .48817E-07    .12265E-04
  18  Prefactor     .10000E-03    5.6713       -.26235E-06** at limit **
  19  norm          .10000E-03    1.9817        .27033E-07** at limit **
  20  Normalizat    .10000E-01    .73964        .80739E-04** at limit **
  21  Prefactor     1.1167        .79449E-01    .13656E-05   -.24679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 23.3684
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.378875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.2618
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.11668
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.994     FROM HESSE     STATUS=OK           355 CALLS     2506 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.449        .90959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        633.14        .33433E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        1268.4        .28992E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        247.40        .57169E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1432.6        .91414E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        713.29        .53740E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5031        .10663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.368        43.110        .19991E-02   -1.4741    
   9  Prefactor     .10000E-03    1263.6        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    47.575        .92040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.528        .97940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .37888        5.6288        .47469E-01   -1.5585    
  13  Prefactor     .10000E-03    127.59        .96364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    289.50        .90939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.847        .97106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    173.29        .91251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          49.262        12.401        .14265E-02   -1.4303    
  18  Prefactor     .10000E-03    5.6406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0960        .22901E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .27429        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1167        .11208        .37017E-01   -.88935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67389e-10
Minuit parameter uncertainties:
  1  2.03356e-05
  2  0.00105516
  3  0.000814835
  4  0.00020547
  5  0.00265612
  6  0.00101936
  7  2.02708e-05
  8  43.1674
  9  0.00180652
  10  8.82483e-05
  11  4.09255e-05
  12  2.92063
  13  3.5044e-05
  14  0.000478039
  15  7.69919e-05
  16  0.000105633
  17  12.4015
  18  1.2974e-06
  19  1.29631e-07
  20  2.44395e-06
  21  0.112101
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  1.056e-04  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:  1.117e+00  1.121e-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.000e-02  2.444e-06  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.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305967/likelihoodResults_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.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) = 3837.99446411
delta logL = -3.35387217092e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3837.99446401
delta logL = -3.34386504619e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6816       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1167       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=   3837.994     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      205 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    97.672        .90713E-02** at limit **
   2  Index         1.6458        5.2055        .50000        .13689E-05
   3  Normalizat    .10000E-01    .13657E-03    .32097    ** at limit **
   4  Prefactor     1.1167        .24879E-02    .36985E-01   -.52391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100188
  Index      = 1.64576
  Normalizat = 0.01
  Prefactor  = 1.11668
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.994     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    494.77        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6458        5.2759        .50000       -.73535    
   3  Normalizat    .10000E-01    .41436E-02    .13679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1167        .56503E-02    .14611E-03   -.88935    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.0898e-10
Minuit parameter uncertainties:
  1  0.0194645
  2  210.279
  3  1.12002e-06
  4  0.00565027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305967': 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) = 3837.99443056
delta logL = 1.32076820591e-08

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.002e-04  1.946e-02  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.646e+00  2.103e+02  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:  1.117e+00  5.650e-03  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.000e-02  1.120e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.611 -58.680

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/305967/cmap_HighResolution_612835201_613094401_4FGL_J1842.4-5840_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-09-21 11:03:03.672788', job_id='305967', GAL2='1.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632247383.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1441' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 11:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 305967: <4FGL_J1842.4-5840_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin1441> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 21 10:50:36 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 10:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 10:50:38 2021
Terminated at Tue Sep 21 11:03:04 2021
Results reported at Tue Sep 21 11:03:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin1441 280.611 -58.6802 612835201 613094401 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 :                                   655.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             311.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

