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


Performing analysis on: 4FGL_J1842.4-5840_daily_bin1460
RA = 280.611, Dec = -58.6802
tmin = 617760001, tmax = 618019201
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='307240', job_status='RUN', time_executed='2021-09-21 10:56:52.319682', time_epoch_executed='1632247012.32' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307240/ft1_4FGL_J1842.4-5840_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307240/ft1_4FGL_J1842.4-5840_daily_bin1460.fits outfile=/scratch/kocevski/307240/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1460.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=617760001.0 tmax=618019201.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.67
user 2.47
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.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/307240/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.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.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/307240/ltcube_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.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/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits
.....................!
real 12.58
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/307240/ltcube_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.fits outfile=/scratch/kocevski/307240/expmap_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.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/307240/ltcube_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.fits
.....................!
real 191.24
user 185.80
sys 5.13

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/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits outfile=/scratch/kocevski/307240/cmap_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits outfile=/scratch/kocevski/307240/cmap_HighResolution_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/307240/ft2_4FGL_J1842.4-5840_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307240/Model_4FGL_J1842.4-5840_daily_bin1460.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/307240/ft1_filtered_4FGL_J1842.4-5840_daily_bin1460.fits......................!
real 23.24
user 21.94
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    261.55       1.0000         .10000E-03   10000.    
     3 'norm      '    202.22       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    103.68       1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.49       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1776       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.1384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11821E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    167.37       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    49.310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7156       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .28520       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=   1169.725     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2234 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.355        56.329        .82795E-05    .11335E-04
   2  Prefactor     261.54        236.03       -.45533E-05    .10287E-04
   3  norm          202.22        128.32       -.91773E-06    .13695E-03
   4  Prefactor     .10000E-03    41.383       -.63912E-06** at limit **
   5  Prefactor     .10000E-03    142.42        .77876E-04** at limit **
   6  norm          .10000E-03    124.13       -.82167E-04** at limit **
   7  Prefactor     103.70        298.84        .26646E-04    .23522E-04
   8  Prefactor     104.42        237.80       -.58080E-04    .34349E-04
   9  Prefactor     .10000E-03    54.047        .40630E-05** at limit **
  10  norm          5.1775        13.452       -.92720E-06   -.65724E-05
  11  norm          .10000E-03    8.8725       -.80262E-06** at limit **
  12  norm          6.1425        6.9470        .26761E-05    .35954E-03
  13  Prefactor     .10000E-03    464.46       -.86989E-04** at limit **
  14  Prefactor     .10000E-03    966.53       -.83151E-03** at limit **
  15  Prefactor     167.32        260.68       -.41901E-04    .20506E-04
  16  Prefactor     .10000E-03    339.25        .19825E-03** at limit **
  17  norm          49.309        34.351        .59644E-06    .48340E-04
  18  Prefactor     .10000E-03    20.115       -.90180E-06** at limit **
  19  norm          .10000E-03    6.1142        .18634E-06** at limit **
  20  Normalizat    1.7156        .63169        .11539E-04    .69492E-04
  21  Prefactor     .28522        .14373       -.77631E-06    .34965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3554
  Prefactor  = 261.538
  norm       = 202.219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 103.704
  Prefactor  = 104.423
  Prefactor  = 0.0001
  norm       = 5.17747
  norm       = 0.0001
  norm       = 6.14247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 167.318
  Prefactor  = 0.0001
  norm       = 49.3094
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.71557
  Prefactor  = 0.285221
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.725     FROM HESSE     STATUS=OK           301 CALLS     2535 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.355        56.320        .63905E-04   -1.4452    
   2  Prefactor     261.54        236.44        .25064E-04   -1.2459    
   3  norm          202.22        128.36        .14209E-03   -1.2854    
   4  Prefactor     .10000E-03    41.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    142.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    125.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     103.70        298.57        .39489E-04   -1.3668    
   8  Prefactor     104.42        237.82        .19669E-03   -1.3661    
   9  Prefactor     .10000E-03    54.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1775        13.462        .17667E-03   -1.5253    
  11  norm          .10000E-03    8.8742        .99515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.1425        6.9650        .85626E-04   -1.5212    
  13  Prefactor     .10000E-03    464.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    966.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     167.32        261.21        .15590E-03   -1.3114    
  16  Prefactor     .10000E-03    339.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          49.309        34.642        .57107E-04   -1.4302    
  18  Prefactor     .10000E-03    20.132        .14986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1785        .82487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7156        .70827        .33827E-03   -.71888    
  21  Prefactor     .28522        .15971        .17952E-03   -1.2314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73936e-10
Minuit parameter uncertainties:
  1  56.3962
  2  237.309
  3  128.541
  4  2.96797e-05
  5  6.43283e-05
  6  0.000720984
  7  303.076
  8  240.047
  9  5.81391e-05
  10  13.4702
  11  2.80331e-05
  12  6.9659
  13  0.000397901
  14  0.00121142
  15  263.052
  16  6.5572e-05
  17  34.6561
  18  1.46421e-05
  19  3.25158e-05
  20  0.712526
  21  0.159956
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  6.557e-05  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:  2.852e-01  1.600e-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.716e+00  7.125e-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: 4.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307240/likelihoodResults_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.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) = 1169.72526616
delta logL = -1.38929810873e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1169.72525228
delta logL = -1.87139903574e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7020       1.0000          .0000       10.000    
     3 'Normalizat'    1.7156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28522       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=   1169.725     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      241 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9319.9        .90712E-02** at limit **
   2  Index         1.6593        8.4554        .50000        .84782E-06
   3  Normalizat    1.7156        .22124        .76458E-01   -.43339E-05
   4  Prefactor     .28522        .52207E-01    .36568E-01   -.84776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65931
  Normalizat = 1.71558
  Prefactor  = 0.285217
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.725     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    311.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6593        5.7950        .50000       -.73170    
   3  Normalizat    1.7156        .62891        .33826E-03   -.71888    
   4  Prefactor     .28522        .14885        .17952E-03   -1.2314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7409e-12
Minuit parameter uncertainties:
  1  0.000450455
  2  3.74134
  3  0.631886
  4  0.149047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307240': 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) = 1169.72525226
delta logL = 5.46242517885e-09

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  4.505e-04  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.659e+00  3.741e+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:  2.852e-01  1.490e-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.716e+00  6.319e-01  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/307240/cmap_HighResolution_617760001_618019201_4FGL_J1842.4-5840_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-02', job_status='DONE', photon_flux_upper_limit='4.02e-07', time_completed='2021-09-21 11:04:22.471238', job_id='307240', GAL2='0.29', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1632247462.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='5.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1460' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 11:04:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 307240: <4FGL_J1842.4-5840_daily_bin1460> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin1460> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 21 10:55:24 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 10:55:26 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:55:26 2021
Terminated at Tue Sep 21 11:04:23 2021
Results reported at Tue Sep 21 11:04:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin1460 280.611 -58.6802 617760001 618019201 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 :                                   442.35 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             303.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            539 sec.

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

