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 98 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1626.6-7639_daily_bin1674
RA = 246.655, Dec = -76.6502
tmin = 673228801, tmax = 673488001
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='670869', job_status='RUN', time_executed='2022-05-06 02:56:28.309528', time_epoch_executed='1651830988.31' WHERE source_name='4FGL J1626.6-7639' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670869/ft1_4FGL_J1626.6-7639_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670869/ft1_4FGL_J1626.6-7639_daily_bin1674.fits outfile=/scratch/kocevski/670869/ft1_filteredMKT_4FGL_J1626.6-7639_daily_bin1674.fits ra=246.655 dec=-76.6502 rad=12.0 tmin=673228801.0 tmax=673488001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.77
user 2.55
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.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/670869/ft1_filteredMKT_4FGL_J1626.6-7639_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.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.51
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 1351

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670869/ltcube_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.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/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits
.....................!
real 15.01
user 14.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670869/ltcube_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits outfile=/scratch/kocevski/670869/expmap_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.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/670869/ltcube_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits
.....................!
real 191.10
user 185.46
sys 5.28

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 HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Added 279 point sources and 11 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 J1626.6-7639 @ 246.655 -76.6502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits outfile=/scratch/kocevski/670869/cmap_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.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=246.655 yref=-76.6502 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits outfile=/scratch/kocevski/670869/cmap_HighResolution_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.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=246.655 yref=-76.6502 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.63
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670869/Model_4FGL_J1626.6-7639_daily_bin1674.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 J1409.1-6121
adding source FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits.....................!
real 557.67
user 555.30
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits', '/scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits', expMap='/scratch/kocevski/670869/expmap_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits', expCube='/scratch/kocevski/670869/ltcube_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670869/Model_4FGL_J1626.6-7639_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1626.6-7639'

4FGL J1626.6-7639
   Spectrum: PowerLaw
646    Prefactor:  4.042e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
647        Index:  2.040e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
648        Scale:  3.274e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670869/ft1_filtered_4FGL_J1626.6-7639_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670869/ft2_4FGL_J1626.6-7639_daily_bin1674.fits
Exposure map: /scratch/kocevski/670869/expmap_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670869/ltcube_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670869/Model_4FGL_J1626.6-7639_daily_bin1674.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) = 13679.0648952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.579       1.0000         .10000E-03   10000.    
     3 'norm      '    58.265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1112       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .31257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    68.487       1.0000         .10000E-03   10000.    
    12 'norm      '    10.848       1.0000         .10000E-03   10000.    
    13 'norm      '    33.885       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    87.187       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3611       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1010E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13679.06     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1722 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7494        5.6870        .93559E-06   -.86983E-03
   2  Prefactor     16.575        24.198       -.10056E-06   -.65875E-05
   3  norm          58.264        34.335        .17845E-07   -.50736E-05
   4  Prefactor     6.1114        3.3435        .24255E-07   -.11817E-03
   5  norm          .10000E-03    8.9212        .55000E-07** at limit **
   6  Prefactor     .10000E-03    2.8583        .41017E-07** at limit **
   7  norm          .10000E-03    4.0783        .17523E-07** at limit **
   8  norm          .31235        .47013        .39925E-06    .19694E-02
   9  Prefactor     .10000E-03    6.1586       -.16916E-07** at limit **
  10  Prefactor     .10000E-03    25.637       -.16692E-06** at limit **
  11  norm          68.491        11.645       -.86743E-07   -.42740E-04
  12  norm          10.754        96.137       -.13113E-05   -.14671E-04
  13  norm          33.887        22.841        .72937E-07    .59642E-05
  14  norm          4.7221        6.7285        .32252E-06   -.76169E-04
  15  Prefactor     .10000E-03    9.9559        .27429E-07** at limit **
  16  norm          87.180        78.497        .31918E-07   -.18356E-05
  17  Normalizat    1.3610        .27580       -.70392E-06   -.39239E-04
  18  Prefactor     .99765        .71050E-01   -.61025E-07   -.65374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74943
  Prefactor  = 16.5753
  norm       = 58.2645
  Prefactor  = 6.11137
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.31235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 68.4906
  norm       = 10.7537
  norm       = 33.8866
  norm       = 4.72211
  Prefactor  = 0.0001
  norm       = 87.1802
  Normalizat = 1.36098
  Prefactor  = 0.997654  **********
 **   18 **HESSE 
 **********

 FCN=   13679.06     FROM HESSE     STATUS=OK           248 CALLS     1970 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7494        5.3422        .67755E-03   -1.5116    
   2  Prefactor     16.575        24.205        .98366E-04   -1.4893    
   3  norm          58.264        34.347        .52558E-04   -1.4180    
   4  Prefactor     6.1114        3.3417        .15131E-03   -1.5213    
   5  norm          .10000E-03    8.9371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .31235        .43836        .11796E-02   -1.5596    
   9  Prefactor     .10000E-03    6.1597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          68.491        11.672        .48502E-04   -1.4051    
  12  norm          10.754        96.996        .12164E-03   -1.5052    
  13  norm          33.887        22.886        .68840E-04   -1.4543    
  14  norm          4.7221        6.7150        .18518E-03   -1.5273    
  15  Prefactor     .10000E-03    9.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          87.180        78.493        .43027E-04   -1.3838    
  17  Normalizat    1.3610        .32409        .51151E-03   -.81764    
  18  Prefactor     .99765        .84032E-01    .15729E-03   -.92808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57678e-10
Minuit parameter uncertainties:
  1  5.34253
  2  24.2194
  3  34.3588
  4  3.34184
  5  4.86071e-07
  6  3.42005e-06
  7  4.77671e-07
  8  0.438368
  9  1.93181e-06
  10  3.13082e-05
  11  11.6723
  12  64.7328
  13  22.892
  14  6.71605
  15  3.1548e-06
  16  78.5861
  17  0.324577
  18  0.0840433DDone.

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

Extracting fit parameters...

4FGL J1626.6-7639
   Spectrum: PowerLaw
646    Prefactor:  1.000e-04  1.932e-06  1.000e-04  1.000e+04 ( 1.000e-14)
647        Index:  2.040e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
648        Scale:  3.274e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
978    Prefactor:  9.977e-01  8.404e-02  0.000e+00  1.000e+01 ( 1.000e+00)
979        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
980        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
969   Normalization:  1.361e+00  3.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 246.655 -76.650
Photon Flux Upper Limit: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670869/likelihoodResults_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.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) = 13679.0626348
delta logL = -0.00077265931759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13679.0618629
delta logL = -7.38182279747e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0052       1.0000          .0000       10.000    
     3 'Normalizat'    1.3610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1010E+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=   13679.06     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10220E-03    43.642        .18142E-02** at limit **
   2  Index         1.9372        5.8889        .50000        .38237E-04
   3  Normalizat    1.3610        .16973E-01    .51150E-03    .18225E-05
   4  Prefactor     .99765        .45931E-02    .15729E-03    .63172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102197
  Index      = 1.93717
  Normalizat = 1.36098
  Prefactor  = 0.997654
 **********
 **   18 **HESSE 
 **********

 FCN=   13679.06     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10220E-03    189.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9372        8.5660        .50000       -.65930    
   3  Normalizat    1.3610        .36235E-01    .20460E-04   -.81764    
   4  Prefactor     .99765        .98053E-02    .62915E-05   -.92808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.55499e-08
Minuit parameter uncertainties:
  1  0.0409081
  2  316.45
  3  0.0362357
  4  0.00980529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670869': 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) = 13679.0618612
delta logL = 9.47475200519e-07

Extracting fit parameters...

4FGL J1626.6-7639
   Spectrum: PowerLaw
646    Prefactor:  1.022e-04  4.091e-02  1.000e-04  1.000e+04 ( 1.000e-14)
647        Index:  1.937e+00  3.164e+02  0.000e+00  1.000e+01 (-1.000e+00)
648        Scale:  3.274e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
978    Prefactor:  9.977e-01  9.805e-03  0.000e+00  1.000e+01 ( 1.000e+00)
979        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
980        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
969   Normalization:  1.361e+00  3.624e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 246.655 -76.650

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670869/cmap_HighResolution_673228801_673488001_4FGL_J1626.6-7639_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2022-05-06 03:25:38.281915', job_id='670869', GAL2='1.00', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1651832738.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='9.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1674' AND source_name='4FGL J1626.6-7639' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:25:38 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 670891: <4FGL_J1626.6-7639_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1626.6-7639_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:08:02 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:55:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:55:02 2022
Terminated at Fri May  6 03:25:01 2022
Results reported at Fri May  6 03:25:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1626.6-7639_daily_bin1674 246.655 -76.6502 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1626.6-7639 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1770.00 sec.
    Max Memory :                                 623 MB
    Average Memory :                             393.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1799 sec.
    Turnaround time :                            11819 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 670869: <4FGL_J1626.6-7639_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1626.6-7639_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:08:01 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:54:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:54:41 2022
Terminated at Fri May  6 03:25:39 2022
Results reported at Fri May  6 03:25:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1626.6-7639_daily_bin1674 246.655 -76.6502 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1626.6-7639 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1751.17 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             408.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1857 sec.
    Turnaround time :                            11858 sec.

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

