aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 19 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 = 74011
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1840.6-5545_monthly_bin170
RA = 280.175, Dec = -55.7518
tmin = 677635201, tmax = 680227201
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='114290', job_status='RUN', time_executed='2022-07-23 02:31:04.253269', time_epoch_executed='1658568664.25' WHERE source_name='4FGL J1840.6-5545' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114290

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114290/ft1_4FGL_J1840.6-5545_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114290/ft1_4FGL_J1840.6-5545_monthly_bin170.fits outfile=/scratch/kocevski/114290/ft1_filteredMKT_4FGL_J1840.6-5545_monthly_bin170.fits ra=280.175 dec=-55.7518 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.47
user 31.70
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.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/114290/ft1_filteredMKT_4FGL_J1840.6-5545_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.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.85
user 0.66
sys 0.16

Number of photons that the gtmktime cut: 9166

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/114290/ltcube_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.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/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits
.....................!
real 111.31
user 110.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/114290/ltcube_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits outfile=/scratch/kocevski/114290/expmap_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.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/114290/ltcube_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits
.....................!
real 191.08
user 186.29
sys 4.40

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 HESS J1616-508 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 RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 319 point sources and 10 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 J1840.6-5545 @ 280.175 -55.7518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits outfile=/scratch/kocevski/114290/cmap_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.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.175 yref=-55.7518 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.79
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits outfile=/scratch/kocevski/114290/cmap_HighResolution_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.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.175 yref=-55.7518 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.79
user 0.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114290/Model_4FGL_J1840.6-5545_monthly_bin170.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
adding source HESS J1616-508
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits.....................!
real 1796.47
user 1791.64
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits', '/scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits', expMap='/scratch/kocevski/114290/expmap_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits', expCube='/scratch/kocevski/114290/ltcube_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114290/Model_4FGL_J1840.6-5545_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1840.6-5545'

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  6.297e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
823        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/114290/ft1_filtered_4FGL_J1840.6-5545_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/114290/ft2_4FGL_J1840.6-5545_monthly_bin170.fits
Exposure map: /scratch/kocevski/114290/expmap_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits
Exposure cube: /scratch/kocevski/114290/ltcube_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114290/Model_4FGL_J1840.6-5545_monthly_bin170.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) = 93402.3056474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3567       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18420E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21798E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
    12 'norm      '    .71592       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4210       1.0000         .10000E-03   10000.    
    14 'norm      '    .79201       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15263       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1222       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1164E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   93402.15     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2226 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0168        .46949        .65016E-07   -.18800E-02
   2  Prefactor     .10000E-03    .68877       -.42271E-07** at limit **
   3  Prefactor     2.3566        3.5178       -.13591E-06   -.51192E-04
   4  norm          2.6252        8.9975       -.40502E-05   -.39241E-03
   5  Prefactor     6.4666        4.5787        .64521E-06   -.49157E-03
   6  Prefactor     .10017E-03    8.9474        .15774E-05** at limit **
   7  norm          .10000E-03    .63339       -.17685E-06** at limit **
   8  Prefactor     .10000E-03    1.7888       -.14496E-06** at limit **
   9  Prefactor     .10001E-03    1.5988       -.29470E-06** at limit **
  10  Prefactor     .17446        1.2363        .10181E-05   -.19631E-02
  11  Prefactor     10.785        10.152        .38364E-05    .70185E-04
  12  norm          .71406        1.1633       -.55103E-06   -.10207E-02
  13  norm          1.4210        1.0522       -.28429E-07   -.26412E-03
  14  norm          .79194        .30493        .10416E-06    .47803E-03
  15  norm          5.3950        4.6885        .23069E-05   -.13500E-05
  16  Prefactor     32.455        19.812       -.27294E-05   -.73122E-04
  17  Prefactor     .10000E-03    6.4416       -.15094E-06** at limit **
  18  Prefactor     .10000E-03    4.5743        .78398E-07** at limit **
  19  Prefactor     .10000E-03    11.880       -.54361E-06** at limit **
  20  norm          .15263        .21166        .51972E-07   -.27443E-03
  21  Normalizat    1.1222        .90510E-01   -.26565E-06   -.86118E-03
  22  Prefactor     .98326        .25936E-01   -.16071E-06   -.20323E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01676
  Prefactor  = 0.0001
  Prefactor  = 2.3566
  norm       = 2.62522
  Prefactor  = 6.46662
  Prefactor  = 0.000100174
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.17446
  Prefactor  = 10.7849
  norm       = 0.714057
  norm       = 1.42105
  norm       = 0.791944
  norm       = 5.39505
  Prefactor  = 32.4554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.152634
  Normalizat = 1.12219
  Prefactor  = 0.983264
 **********
 **   18 **HESSE 
 **********

 FCN=   93402.15     FROM HESSE     STATUS=OK           384 CALLS     2610 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0168        2.0393        .14572E-02   -1.5424    
   2  Prefactor     .10000E-03    .69649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3566        3.5014        .26698E-03   -1.5401    
   4  norm          2.6252        8.9852        .25121E-03   -1.5384    
   5  Prefactor     6.4666        4.5358        .15781E-03   -1.5199    
   6  Prefactor     .10017E-03    6.6808        .19485       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .71759        .80800E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    1.8817        .10574       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17446        1.4284        .87537E-01   -1.5624    
  11  Prefactor     10.785        9.9944        .12203E-03   -1.5051    
  12  norm          .71406        1.1601        .39988E-03   -1.5539    
  13  norm          1.4210        1.0433        .26070E-03   -1.5470    
  14  norm          .79194        .29495        .94828E-04   -1.5530    
  15  norm          5.3950        4.6443        .17301E-03   -1.5243    
  16  Prefactor     32.455        19.578        .70340E-04   -1.4568    
  17  Prefactor     .10000E-03    6.4458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .15263        .25239        .15807E-02   -1.5630    
  21  Normalizat    1.1222        .10243        .47201E-03   -.89043    
  22  Prefactor     .98326        .30166E-01    .14289E-03   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08962e-07
Minuit parameter uncertainties:
  1  2.03939
  2  6.73267e-07
  3  3.50169
  4  8.98982
  5  4.53603
  6  0.00215646
  7  2.52349e-06
  8  6.72605e-06
  9  0.000297885
  10  0.998132
  11  9.99593
  12  1.16013
  13  1.04331
  14  0.29495
  15  4.64461
  16  19.582
  17  5.10474e-06
  18  4.32924e-06
  19  2.1657e-05
  20  0.252394
  21  0.102445
  22  0.0301667
Done.

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

Extracting fit parameters...

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  1.000e-04  4.329e-06  1.000e-04  1.000e+04 ( 1.000e-13)
823        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1150    Prefactor:  9.833e-01  3.017e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1151        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1152        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1126   Normalization:  1.122e+00  1.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.175 -55.752
Photon Flux Upper Limit: 2.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114290/likelihoodResults_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.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) = 93402.1483712
delta logL = -0.00103896387736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 93402.1473322
delta logL = -6.78119249642e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6632       1.0000          .0000       10.000    
     3 'Normalizat'    1.1222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1164E+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=   93402.15     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    108.24        .18142E-02** at limit **
   2  Index         2.6755        8.6249        .50000       -.27059E-05
   3  Normalizat    1.1222        .11037E-01    .47201E-03    .77074E-05
   4  Prefactor     .98326        .31762E-02    .14289E-03    .16548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Index      = 2.67552
  Normalizat = 1.12219
  Prefactor  = 0.983264
 **********
 **   18 **HESSE 
 **********

 FCN=   93402.15     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    460.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6755        6.0264        .50000       -.48352    
   3  Normalizat    1.1222        .25648E-01    .18880E-04   -.89042    
   4  Prefactor     .98326        .73806E-02    .57158E-05   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69168e-09
Minuit parameter uncertainties:
  1  0.00743259
  2  1309.87
  3  0.0256486
  4  0.00738063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114290': 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) = 93402.1473322
delta logL = 6.81029632688e-09

Extracting fit parameters...

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  1.000e-04  7.433e-03  1.000e-04  1.000e+04 ( 1.000e-13)
823        Index:  2.676e+00  1.310e+03  0.000e+00  1.000e+01 (-1.000e+00)
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1150    Prefactor:  9.833e-01  7.381e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1151        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1152        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1126   Normalization:  1.122e+00  2.565e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.175 -55.752

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/114290/cmap_HighResolution_677635201_680227201_4FGL_J1840.6-5545_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-03', job_status='DONE', photon_flux_upper_limit='2.15e-08', time_completed='2022-07-23 05:44:21.160496', job_id='114290', GAL2='0.98', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1658580261.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.81e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='170' AND source_name='4FGL J1840.6-5545' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:44:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 114290: <4FGL_J1840.6-5545_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1840.6-5545_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:30:33 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:30:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:30:35 2022
Terminated at Sat Jul 23 05:44:23 2022
Results reported at Sat Jul 23 05:44:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1840.6-5545_monthly_bin170 280.175 -55.7518 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1840.6-5545 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11572.00 sec.
    Max Memory :                                 655 MB
    Average Memory :                             563.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11627 sec.
    Turnaround time :                            11630 sec.

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

