/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7458
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1842.4-5840_daily_bin1633
RA = 280.611, Dec = -58.6802
tmin = 662601601, tmax = 662860801
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='686851', job_status='RUN', time_executed='2022-01-03 00:10:03.567152', time_epoch_executed='1641197403.57' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686851/ft1_4FGL_J1842.4-5840_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686851/ft1_4FGL_J1842.4-5840_daily_bin1633.fits outfile=/scratch/kocevski/686851/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1633.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=662601601.0 tmax=662860801.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 4.07
user 2.71
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/686851/ltcube_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.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/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits
.....................!
real 12.89
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/686851/ltcube_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.fits outfile=/scratch/kocevski/686851/expmap_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.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/686851/ltcube_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.fits
.....................!
real 192.67
user 187.35
sys 4.74

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/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits scfile=/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits outfile=/scratch/kocevski/686851/cmap_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits scfile=/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits outfile=/scratch/kocevski/686851/cmap_HighResolution_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/686851/ft2_4FGL_J1842.4-5840_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/686851/Model_4FGL_J1842.4-5840_daily_bin1633.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/686851/ft1_filtered_4FGL_J1842.4-5840_daily_bin1633.fits.....................!
real 46.76
user 45.52
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.267       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1936       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10856E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.411       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    136.33       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21704E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2341       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3775       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3797       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82591       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=   4062.202     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2221 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9625        9.3799       -.11127E-05   -.82529E-04
   2  Prefactor     .10000E-03    14.122        .28932E-07** at limit **
   3  norm          .10000E-03    38.242       -.28381E-06** at limit **
   4  Prefactor     .10000E-03    21.278        .11858E-06** at limit **
   5  Prefactor     .10000E-03    197.46        .58102E-06** at limit **
   6  norm          13.333        18.307       -.27242E-06   -.16841E-04
   7  Prefactor     10.268        25.280        .41037E-05   -.17069E-04
   8  Prefactor     .10000E-03    6.1129       -.80831E-07** at limit **
   9  Prefactor     53.253        96.609       -.10224E-04   -.39625E-04
  10  norm          3.1897        17.288        .10107E-04   -.89921E-04
  11  norm          .10000E-03    2.9831        .78018E-08** at limit **
  12  norm          .10000E-03    .70066        .32642E-06** at limit **
  13  Prefactor     72.373        119.69       -.30649E-04   -.15779E-04
  14  Prefactor     .10000E-03    77.423        .17278E-05** at limit **
  15  Prefactor     136.35        105.97        .10570E-04   -.10552E-04
  16  Prefactor     .10000E-03    87.389       -.10015E-05** at limit **
  17  norm          .10000E-03    7.7838        .23423E-06** at limit **
  18  Prefactor     5.2301        11.849       -.21220E-05   -.10258E-03
  19  norm          2.3788        4.0955       -.27303E-06   -.46024E-03
  20  Normalizat    1.3790        .44383        .24093E-07   -.40591E-04
  21  Prefactor     .82606        .11537        .26020E-06   -.12594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3327
  Prefactor  = 10.2685
  Prefactor  = 0.0001
  Prefactor  = 53.2529
  norm       = 3.18966
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 72.3728
  Prefactor  = 0.0001
  Prefactor  = 136.352
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 5.23015
  norm       = 2.37882
  Normalizat = 1.37898
  Prefactor  = 0.826061
 **********
 **   18 **HESSE 
 **********

 FCN=   4062.202     FROM HESSE     STATUS=OK           321 CALLS     2542 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9625        9.3909        .16442E-03   -1.5220    
   2  Prefactor     .10000E-03    14.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    38.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    197.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.333        18.320        .10967E-03   -1.4978    
   7  Prefactor     10.268        25.611        .12507E-03   -1.5067    
   8  Prefactor     .10000E-03    6.1188        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.253        94.804        .54955E-04   -1.4247    
  10  norm          3.1897        16.316        .22674E-03   -1.5351    
  11  norm          .10000E-03    2.9851        .10750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .71886        .52131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.373        120.11        .47179E-04   -1.4004    
  14  Prefactor     .10000E-03    77.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     136.35        105.73        .17247E-03   -1.3367    
  16  Prefactor     .10000E-03    87.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.600        .53205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2301        11.896        .17570E-03   -1.5251    
  19  norm          2.3788        4.1717        .15365E-03   -1.5399    
  20  Normalizat    1.3790        .54318        .42138E-03   -.81239    
  21  Prefactor     .82606        .14177        .14998E-03   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07323e-10
Minuit parameter uncertainties:
  1  9.39321
  2  1.50671e-06
  3  1.30423e-05
  4  9.09242e-06
  5  0.000117465
  6  18.3282
  7  25.6388
  8  1.45272e-05
  9  95.0738
  10  14.434
  11  6.29379e-06
  12  2.74186e-05
  13  120.514
  14  0.000154108
  15  105.873
  16  0.000336419
  17  0.000444417
  18  11.9018
  19  4.17224
  20  0.545472
  21  0.141835
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  3.364e-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:  8.261e-01  1.418e-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.379e+00  5.455e-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: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/686851/likelihoodResults_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.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) = 4062.20176487
delta logL = -5.39530578862e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4062.20171167
delta logL = -7.50399067329e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20846E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7563       1.0000          .0000       10.000    
     3 'Normalizat'    1.3790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82606       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=   4062.202     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    28.638        .90712E-02** at limit **
   2  Index         1.7184        7.9847        .50000        .32089E-05
   3  Normalizat    1.3790        .60967E-02    .95129E-01    .31694E-04
   4  Prefactor     .82606        .17389E-02    .44055E-01    .58154E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 1.71841
  Normalizat = 1.37898
  Prefactor  = 0.826061
 **********
 **   18 **HESSE 
 **********

 FCN=   4062.202     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    188.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7184        9.1147        .50000       -.71593    
   3  Normalizat    1.3790        .15652E-01    .42138E-03   -.81239    
   4  Prefactor     .82606        .44731E-02    .14998E-03   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9272e-09
Minuit parameter uncertainties:
  1  0.00380912
  2  109.342
  3  0.0156519
  4  0.00447313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686851': 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) = 4062.20171094
delta logL = -2.93321136269e-08

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  3.809e-03  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.718e+00  1.093e+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:  8.261e-01  4.473e-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.379e+00  1.565e-02  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/686851/cmap_HighResolution_662601601_662860801_4FGL_J1842.4-5840_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2022-01-03 00:21:38.373498', job_id='686851', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1641198098.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1633' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:21:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 686851: <4FGL_J1842.4-5840_daily_bin1633> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin1633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan  3 00:07:56 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:07:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:07:59 2022
Terminated at Mon Jan  3 00:21:39 2022
Results reported at Mon Jan  3 00:21:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin1633 280.611 -58.6802 662601601 662860801 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 :                                   694.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             330.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            823 sec.

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

