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


Performing analysis on: 4FGL_J1842.4-5840_daily_bin735
RA = 280.611, Dec = -58.6802
tmin = 429840001, tmax = 430099201
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='301569', job_status='RUN', time_executed='2021-09-21 10:37:54.952293', time_epoch_executed='1632245874.95' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301569/ft1_4FGL_J1842.4-5840_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301569/ft1_4FGL_J1842.4-5840_daily_bin735.fits outfile=/scratch/kocevski/301569/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin735.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.89
user 5.62
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301569/ft1_filtered_4FGL_J1842.4-5840_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/301569/ltcube_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.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/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits
.....................!
real 12.25
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301569/ft1_filtered_4FGL_J1842.4-5840_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/301569/ltcube_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.fits outfile=/scratch/kocevski/301569/expmap_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.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/301569/ltcube_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.fits
.....................!
real 190.43
user 184.98
sys 5.12

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/301569/ft1_filtered_4FGL_J1842.4-5840_daily_bin735.fits scfile=/scratch/kocevski/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits outfile=/scratch/kocevski/301569/cmap_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301569/ft1_filtered_4FGL_J1842.4-5840_daily_bin735.fits scfile=/scratch/kocevski/301569/ft2_4FGL_J1842.4-5840_daily_bin735.fits outfile=/scratch/kocevski/301569/cmap_HighResolution_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.261       1.0000         .10000E-03   10000.    
     3 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.712       1.0000         .10000E-03   10000.    
     6 'norm      '    12.740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    322.60       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12722E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .98397       1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.1080       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .53315       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=   4201.660     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2615 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.839        .19521E-06** at limit **
   2  Prefactor     29.269        76.232        .32391E-05    .77867E-05
   3  norm          .10000E-03    45.750        .17265E-05** at limit **
   4  Prefactor     .10000E-03    136.16        .33563E-05** at limit **
   5  Prefactor     26.710        98.930       -.73850E-06   -.12051E-04
   6  norm          12.739        23.460        .33978E-06   -.80363E-05
   7  Prefactor     54.762        37.435       -.60564E-06   -.33989E-04
   8  Prefactor     .10000E-03    15.441        .12225E-06** at limit **
   9  Prefactor     .10000E-03    37.327       -.59052E-06** at limit **
  10  norm          .10000E-03    3.3092        .73257E-07** at limit **
  11  norm          .10000E-03    6.9331       -.16468E-06** at limit **
  12  norm          5.0960        7.8119        .28459E-05   -.67690E-03
  13  Prefactor     322.90        593.71       -.51981E-05    .33302E-04
  14  Prefactor     .10002E-03    231.33       -.30708E-04** at limit **
  15  Prefactor     .10000E-03    82.240       -.50456E-05** at limit **
  16  Prefactor     .10002E-03    171.67        .27154E-04** at limit **
  17  norm          .10000E-03    2.6318       -.58210E-07** at limit **
  18  Prefactor     .10000E-03    10.226       -.77066E-07** at limit **
  19  norm          .98384        1.9481        .29767E-06   -.30829E-04
  20  Normalizat    2.1080        .36992       -.13305E-05   -.10496E-04
  21  Prefactor     .53317        .10676       -.19528E-06   -.79975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.2694
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7102
  norm       = 12.7387
  Prefactor  = 54.7623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.09598
  Prefactor  = 322.898
  Prefactor  = 0.000100024
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.983842
  Normalizat = 2.10798
  Prefactor  = 0.53317
 **********
 **   18 **HESSE 
 **********

 FCN=   4201.660     FROM HESSE     STATUS=OK           307 CALLS     2922 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.269        76.666        .74066E-04   -1.4625    
   3  norm          .10000E-03    45.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    140.70        .42636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.710        98.987        .77512E-04   -1.4674    
   6  norm          12.739        23.777        .11222E-03   -1.4994    
   7  Prefactor     54.762        37.492        .54198E-04   -1.4227    
   8  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.3187        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9858        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0960        9.6393        .72433E-03   -1.5256    
  13  Prefactor     322.90        704.24        .11319E-03   -1.2094    
  14  Prefactor     .10002E-03    236.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    82.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    174.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6346        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .98384        1.9114        .11963E-03   -1.5510    
  20  Normalizat    2.1080        .43907        .33415E-03   -.61871    
  21  Prefactor     .53317        .12782        .17201E-03   -1.1048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85928e-09
Minuit parameter uncertainties:
  1  8.56196e-06
  2  76.9261
  3  0.000118717
  4  0.0002409
  5  99.6045
  6  23.795
  7  37.5078
  8  1.73082e-05
  9  3.15184e-05
  10  2.23953e-06
  11  3.73844e-06
  12  9.64221
  13  724.341
  14  0.00480858
  15  0.000513056
  16  0.00337071
  17  1.60982e-07
  18  6.17224e-06
  19  1.91147
  20  0.439925
  21  0.127887
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  3.371e-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:  5.332e-01  1.279e-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:  2.108e+00  4.399e-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: 2.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301569/likelihoodResults_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.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) = 4201.66024137
delta logL = -2.7065319955e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4201.6602143
delta logL = 7.76799424784e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6532       1.0000          .0000       10.000    
     3 'Normalizat'    2.1080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53317       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=   4201.660     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6735.5        .90712E-02** at limit **
   2  Index         1.6267        8.3990        .50000        .10012E-05
   3  Normalizat    2.1080        .47015E-01    .75538E-01    .33601E-05
   4  Prefactor     .53317        .13376E-01    .40135E-01    .19867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.62673
  Normalizat = 2.10798
  Prefactor  = 0.53317
 **********
 **   18 **HESSE 
 **********

 FCN=   4201.660     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9090.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6267        6.4473        .50000       -.74050    
   3  Normalizat    2.1080        .90017E-01    .33415E-03   -.61871    
   4  Prefactor     .53317        .25616E-01    .17201E-03   -1.1048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37756e-09
Minuit parameter uncertainties:
  1  0.0184251
  2  31.6969
  3  0.0900244
  4  0.0256161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301569': 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) = 4201.66021429
delta logL = 1.56405803864e-08

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.000e-04  1.843e-02  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.627e+00  3.170e+01  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:  5.332e-01  2.562e-02  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:  2.108e+00  9.002e-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/301569/cmap_HighResolution_429840001_430099201_4FGL_J1842.4-5840_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='2.02e-07', time_completed='2021-09-21 10:50:29.924967', job_id='301569', GAL2='0.53', fit_tolerance='1e-08', EG2='2.11', EG='2.11', time_epoch_completed='1632246629.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='735' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 10:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 301569: <4FGL_J1842.4-5840_daily_bin735> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin735> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 21 10:35:26 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 10:35:28 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:35:28 2021
Terminated at Tue Sep 21 10:50:30 2021
Results reported at Tue Sep 21 10:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin735 280.611 -58.6802 429840001 430099201 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 :                                   754.23 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             263.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

