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


Performing analysis on: 4FGL_J1842.4-5840_daily_bin1385
RA = 280.611, Dec = -58.6802
tmin = 598320001, tmax = 598579201
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='305886', job_status='RUN', time_executed='2021-09-21 10:51:05.452487', time_epoch_executed='1632246665.45' WHERE source_name='4FGL J1842.4-5840' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305886

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305886/ft1_4FGL_J1842.4-5840_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305886/ft1_4FGL_J1842.4-5840_daily_bin1385.fits outfile=/scratch/kocevski/305886/ft1_filteredMKT_4FGL_J1842.4-5840_daily_bin1385.fits ra=280.611 dec=-58.6802 rad=12.0 tmin=598320001.0 tmax=598579201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.33
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/305886/ltcube_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.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/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits
.....................!
real 12.14
user 11.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/305886/ltcube_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.fits outfile=/scratch/kocevski/305886/expmap_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.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/305886/ltcube_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.fits
.....................!
real 193.03
user 188.81
sys 3.89

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/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits scfile=/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits outfile=/scratch/kocevski/305886/cmap_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.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/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits scfile=/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits outfile=/scratch/kocevski/305886/cmap_HighResolution_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/305886/ft2_4FGL_J1842.4-5840_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305886/Model_4FGL_J1842.4-5840_daily_bin1385.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/305886/ft1_filtered_4FGL_J1842.4-5840_daily_bin1385.fits.....................!
real 44.50
user 43.25
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    49.355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.434       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20920E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.763       1.0000         .10000E-03   10000.    
    17 'norm      '    14.946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7802       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4625       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74294       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3833.152     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     2492 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.709        .18142E-02** at limit **
   2  Prefactor     .10000E-03    22.041        .18142E-02** at limit **
   3  norm          49.368        44.335        .57081E-04    .37941E-04
   4  Prefactor     .10000E-03    6.9964        .15987E-02** at limit **
   5  Prefactor     .10000E-03    93.339        .18142E-02** at limit **
   6  norm          12.440        22.130        .11360E-03    .97924E-04
   7  Prefactor     12.944        31.145        .11131E-03    .56789E-04
   8  Prefactor     .10000E-03    18.550        .18142E-02** at limit **
   9  Prefactor     .10000E-03    58.024        .13495    ** at limit **
  10  norm          .10000E-03    2.6566        .98529E-03** at limit **
  11  norm          .10000E-03    2.7289        .99824E-03** at limit **
  12  norm          2.1524        1.4986        .60940E-04    .41462E-03
  13  Prefactor     .10000E-03    59.420        .18142E-02** at limit **
  14  Prefactor     .10000E-03    84.774        .18142E-02** at limit **
  15  Prefactor     29.030        62.962        .74280E-04    .22376E-04
  16  Prefactor     75.754        105.06        .23065E-03    .83298E-05
  17  norm          14.949        13.984        .10360E-03    .25239E-04
  18  Prefactor     .10000E-03    23.098        .18142E-02** at limit **
  19  norm          4.7791        3.5610        .93913E-04   -.80078E-04
  20  Normalizat    1.4632        .48737        .39237E-03    .23209E-03
  21  Prefactor     .74274        .13834        .15356E-03    .12141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.3684
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 12.4402
  Prefactor  = 12.9443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.15242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0304
  Prefactor  = 75.7535
  norm       = 14.9493
  Prefactor  = 0.0001
  norm       = 4.7791
  Normalizat = 1.46315
  Prefactor  = 0.742739
 **********
 **   18 **HESSE 
 **********

 FCN=   3833.152     FROM HESSE     STATUS=OK           305 CALLS     2797 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          49.368        44.335        .11416E-04   -1.4302    
   4  Prefactor     .10000E-03    6.9966        .31975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.440        22.130        .45440E-05   -1.5002    
   7  Prefactor     12.944        31.142        .44523E-05   -1.4988    
   8  Prefactor     .10000E-03    18.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    57.149        .13651       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6566        .19706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7289        .19965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1524        1.4986        .24376E-05   -1.5415    
  13  Prefactor     .10000E-03    59.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    84.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.030        62.961        .14856E-04   -1.4630    
  16  Prefactor     75.754        105.06        .92262E-05   -1.3965    
  17  norm          14.949        13.984        .41441E-05   -1.4934    
  18  Prefactor     .10000E-03    23.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7791        3.5611        .37565E-05   -1.5271    
  20  Normalizat    1.4632        .48774        .78475E-04   -.78819    
  21  Prefactor     .74274        .13845        .30713E-04   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29096e-10
Minuit parameter uncertainties:
  1  0.000156022
  2  5.28826e-05
  3  44.3642
  4  2.11049e-05
  5  0.000824186
  6  22.1444
  7  31.1812
  8  0.000102775
  9  0.000193347
  10  2.10605e-06
  11  8.45057e-06
  12  1.49864
  13  5.31743e-05
  14  8.93146e-05
  15  63.106
  16  105.319
  17  13.987
  18  7.5145e-05
  19  3.56125
  20  0.48931
  21  0.13851
Done.

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

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  7.575e+01  1.053e+02  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:  7.427e-01  1.385e-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.463e+00  4.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 280.611 -58.680
Photon Index (Fixed Index): 1.68 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 3.86e-05

TS (Fixed Index): 1.10
Ra Dec: 280.611 -58.680
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305886/likelihoodResults_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.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) = 3832.85010462
delta logL = 0.301864746287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3832.84965165
delta logL = 0.302317715979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    176.17       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1457       1.0000          .0000       10.000    
     3 'Normalizat'    1.4690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74141       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3832.850     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     176.18        229.81        .15203E-03   -.27197E-04
   2  Index         1.1456        .64625        .98504E-02    .15199E-03
   3  Normalizat    1.4691        .45595        .39167E-03   -.23148E-04
   4  Prefactor     .74140        .13335        .15365E-03   -.76973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 176.181
  Index      = 1.14564
  Normalizat = 1.46909
  Prefactor  = 0.741402
 **********
 **   18 **HESSE 
 **********

 FCN=   3832.850     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     176.18        227.45        .30406E-04   -1.3045    
   2  Index         1.1456        .63990        .19701E-02   -.88021    
   3  Normalizat    1.4691        .45631        .15667E-04   -.78651    
   4  Prefactor     .74140        .13346        .30730E-04   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39788e-11
Minuit parameter uncertainties:
  1  228.598
  2  0.644282
  3  0.457587
  4  0.133517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305886': 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) = 3832.84965163
delta logL = 0.302317732881

Extracting fit parameters...

4FGL J1842.4-5840
   Spectrum: PowerLaw
708    Prefactor:  1.762e+02  2.286e+02  1.000e-04  1.000e+04 ( 1.000e-15)
709        Index:  1.146e+00  6.443e-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:  7.414e-01  1.335e-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.469e+00  4.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 280.611 -58.680
Photon Index (Free Index): 1.15 +/- 0.64
Photon Flux (Free Index): 1.10e-08 +/- 1.47e-08
Energy Flux (Free Index): 1.07e-04 +/- 1.94e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/305886/cmap_HighResolution_598320001_598579201_4FGL_J1842.4-5840_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='1.07e-04', photon_flux_error='2.23e-08', dlogl='3.02e-01', energy_flux='2.78e-05', photon_flux2='1.10e-08', job_status='DONE', time_completed='2021-09-21 11:03:00.036214', photon_index_error2='0.64', photon_index2='1.15', ts='1.10', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='9.85e-08', energy_flux_error2='1.94e-04', EG='1.46', time_epoch_completed='1632247380.04', return_code='0', job_id='305886', GAL2='0.74', EG2='1.47', return_code2='0', energy_flux_error='3.86e-05', photon_flux_error2='1.47e-08', ts2='1.70', photon_index='1.68' WHERE bin_id='1385' AND source_name='4FGL J1842.4-5840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 11:03:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 305886: <4FGL_J1842.4-5840_daily_bin1385> in cluster <slac> Done

Job <4FGL_J1842.4-5840_daily_bin1385> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 21 10:50:30 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 10:50:31 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:31 2021
Terminated at Tue Sep 21 11:03:00 2021
Results reported at Tue Sep 21 11:03:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.4-5840_daily_bin1385 280.611 -58.6802 598320001 598579201 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 :                                   699.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

