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 85 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).
nnumber of points = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J1725.5+5851_daily_bin1704
RA = 261.388, Dec = 58.8578
tmin = 681004801, tmax = 681264001
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='365847', job_status='RUN', time_executed='2022-08-04 02:33:07.465924', time_epoch_executed='1659605587.47' WHERE source_name='4FGL J1725.5+5851' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365847/ft1_4FGL_J1725.5+5851_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365847/ft1_4FGL_J1725.5+5851_daily_bin1704.fits outfile=/scratch/kocevski/365847/ft1_filteredMKT_4FGL_J1725.5+5851_daily_bin1704.fits ra=261.388 dec=58.8578 rad=12.0 tmin=681004801.0 tmax=681264001.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.96
user 2.73
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.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/365847/ft1_filteredMKT_4FGL_J1725.5+5851_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1664

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/365847/ltcube_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.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/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits
.....................!
real 16.49
user 16.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365847/ltcube_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits outfile=/scratch/kocevski/365847/expmap_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.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/365847/ltcube_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits
.....................!
real 192.02
user 186.34
sys 5.05

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
Added 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1725.5+5851 @ 261.388 58.8578

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits outfile=/scratch/kocevski/365847/cmap_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.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=261.388 yref=58.8578 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/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits outfile=/scratch/kocevski/365847/cmap_HighResolution_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.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=261.388 yref=58.8578 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365847/Model_4FGL_J1725.5+5851_daily_bin1704.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 GAL_V02
Working on...
/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits.....................!
real 142.26
user 140.66
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits', '/scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits', expMap='/scratch/kocevski/365847/expmap_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits', expCube='/scratch/kocevski/365847/ltcube_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365847/Model_4FGL_J1725.5+5851_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1725.5+5851'

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  2.242e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365847/ft1_filtered_4FGL_J1725.5+5851_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365847/ft2_4FGL_J1725.5+5851_daily_bin1704.fits
Exposure map: /scratch/kocevski/365847/expmap_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365847/ltcube_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365847/Model_4FGL_J1725.5+5851_daily_bin1704.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) = 17393.150321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58903E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.5527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.253       1.0000         .10000E-03   10000.    
     8 'norm      '    13.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12102E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.306       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .39775E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4658       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18252E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.695       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4112       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0084       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16434       1.0000         .10000E-03   10000.    
    26 'norm      '    .78117       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .79841       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.5394       1.0000         .10000E-03   10000.    
    30 'norm      '    5.1942       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.8113       1.0000         .10000E-03   10000.    
    34 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    8.6712       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .82646       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.1401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17393.12     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     5231 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8331        .15845E-06** at limit **
   2  norm          .10000E-03    2.0395        .74529E-08** at limit **
   3  Prefactor     .10513E-03    17.417       -.10039E-04** at limit **
   4  Prefactor     .10000E-03    1.8148        .47367E-07** at limit **
   5  norm          6.5536        1.0652       -.54745E-07    .27599E-04
   6  Prefactor     3.4887        3.5134        .65416E-05    .66649E-02
   7  Prefactor     22.234        7.4415        .67438E-06    .26190E-03
   8  norm          13.245        1.8833        .12865E-06   -.94157E-04
   9  Prefactor     5.9463        2.3677        .20326E-06    .95789E-05
  10  Prefactor     .10007E-03    9.3462        .11918E-06** at limit **
  11  Prefactor     17.301        1.0724        .13308E-06    .38430E-03
  12  norm          .10000E-03    .24350       -.13710E-07** at limit **
  13  norm          .10000E-03    9.8347       -.10210E-05** at limit **
  14  Prefactor     9.4645        3.5165        .28288E-05   -.31003E-02
  15  Prefactor     .10000E-03    2.8690       -.91134E-07** at limit **
  16  Prefactor     .10000E-03    5.2885        .62130E-07** at limit **
  17  Prefactor     .10000E-03    14.347        .51548E-06** at limit **
  18  Prefactor     .10000E-03    .82339        .16121E-07** at limit **
  19  Prefactor     32.581        6.7530        .29211E-08   -.26862E-02
  20  norm          2.4246        3.2221       -.96724E-07    .21635E-03
  21  Prefactor     51.619        11.868        .17692E-05   -.12023E-01
  22  Prefactor     3.4092        3.0115        .66529E-06    .13273E-03
  23  Prefactor     2.9623        30.763        .43667E-05    .50079E-03
  24  Prefactor     .10017E-03    30.803        .42003E-06** at limit **
  25  Prefactor     .10066E-03    539.86       -.16780E-04** at limit **
  26  norm          .78160        .76208       -.10182E-07   -.16309E-04
  27  Prefactor     .10000E-03    3.6224       -.45907E-07** at limit **
  28  Prefactor     .77154        13.541       -.59229E-05   -.55272E-03
  29  Prefactor     7.5353        1.1279       -.12799E-06   -.12645E-03
  30  norm          5.1939        2.6344       -.28625E-06   -.10339E-03
  31  Prefactor     .10000E-03    3.0323        .16238E-07** at limit **
  32  Prefactor     .10008E-03    10.210        .40050E-06** at limit **
  33  Prefactor     1.8110        1.4732        .17226E-05    .68606E-03
  34  norm          .10000E-03    1.6234       -.63251E-07** at limit **
  35  Prefactor     .10000E-03    4.4995       -.50251E-07** at limit **
  36  Prefactor     8.6716        2.9466        .16997E-05   -.16158E-02
  37  Prefactor     .10023E-03    16.725       -.12480E-05** at limit **
  38  Normalizat    .82637        .15456       -.61289E-05   -.56343E-04
  39  Prefactor     1.1402        .11624        .16425E-05   -.99351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000105131
  Prefactor  = 0.0001
  norm       = 6.55359
  Prefactor  = 3.48867
  Prefactor  = 22.2339
  norm       = 13.2454
  Prefactor  = 5.94626
  Prefactor  = 0.000100074
  Prefactor  = 17.3015
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 9.46445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 32.5814
  norm       = 2.42463
  Prefactor  = 51.6193
  Prefactor  = 3.40918
  Prefactor  = 2.96229
  Prefactor  = 0.000100173
  Prefactor  = 0.000100657
  norm       = 0.781604
  Prefactor  = 0.0001
  Prefactor  = 0.771539
  Prefactor  = 7.53535
  norm       = 5.19393
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  Prefactor  = 1.811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.67159
  Prefactor  = 0.000100226
  Normalizat = 0.826374
  Prefactor  = 1.14015
  **********
 **   18 **HESSE 
 **********

 FCN=   17393.12     FROM HESSE     STATUS=OK          1058 CALLS     6289 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10513E-03    6.2272        .18400       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5536        10.372        .39193E-02   -1.5196    
   6  Prefactor     3.4887        4.1032        .54118E-02   -1.5334    
   7  Prefactor     22.234        22.681        .21227E-02   -1.4765    
   8  norm          13.245        6.7260        .27514E-02   -1.4980    
   9  Prefactor     5.9463        2.4006        .41169E-02   -1.5220    
  10  Prefactor     .10007E-03    3.2432        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.301        11.737        .24069E-02   -1.4876    
  12  norm          .10000E-03    .17689        .27949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .14696        .26484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4645        6.0537        .32564E-02   -1.5093    
  15  Prefactor     .10000E-03    2.8630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3181        .61870E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1874        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .80921        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.581        47.652        .17519E-02   -1.4566    
  20  norm          2.4246        3.2879        .65735E-02   -1.5397    
  21  Prefactor     51.619        37.309        .13962E-02   -1.4270    
  22  Prefactor     3.4092        3.0616        .54758E-02   -1.5339    
  23  Prefactor     2.9623        44.159        .58502E-02   -1.5364    
  24  Prefactor     .10017E-03    32.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10066E-03    20.454        .16980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .78160        .98780        .23829E-01   -1.5531    
  27  Prefactor     .10000E-03    3.6239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .77154        3.6995        .82000E-01   -1.5532    
  29  Prefactor     7.5353        10.646        .36514E-02   -1.5159    
  30  norm          5.1939        2.9023        .44096E-02   -1.5252    
  31  Prefactor     .10000E-03    3.0327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10008E-03    20.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.8110        4.1066        .77605E-02   -1.5439    
  34  norm          .10000E-03    1.6113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    4.5025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     8.6716        6.6599        .34031E-02   -1.5119    
  37  Prefactor     .10023E-03    18.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .82637        .13981        .74197E-01   -.99098    
  39  Prefactor     1.1402        .10134        .36231E-01   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25398e-07
Minuit parameter uncertainties:
  1  1.60743e-05
  2  2.09574e-06
  3  0.0113068
  4  2.04803e-06
  5  10.3748
  6  4.10354
  7  22.6898
  8  6.72635
  9  2.40063
  10  0.000977771
  11  11.739
  12  3.91316e-08
  13  4.94907e-05
  14  6.05413
  15  2.67304e-05
  16  3.78306e-06
  17  0.000168735
  18  4.94974e-07
  19  47.7078
  20  3.28809
  21  37.3256
  22  3.06173
  23  22.8946
  24  0.00471899
  25  0.00733287
  26  0.987816
  27  3.45778e-06
  28  3.37904
  29  10.6482
  30  2.90236
  31  1.39273e-06
  32  0.00263557
  33  4.10722
  34  1.47395e-06
  35  1.05817e-06
  36  6.6605
  37  0.00409157
  38  0.139868
  39  0.101354DDone.

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

Extracting fit parameters...

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.687e-04  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.140e+00  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.264e-01  1.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 261.388 58.858
Photon Flux Upper Limit: 4.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365808/likelihoodResults_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.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) = 17393.1208652
delta logL = -0.000332528114086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17393.1205339
delta logL = -1.20172626339e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2841       1.0000          .0000       10.000    
     3 'Normalizat'    .82658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17393.12     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      237 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    .22766E-01    .69105E-01** at limit **
   2  Index         2.3984        5.4632        .50000       -.45074E-04
   3  Normalizat    .82637        .33708E-03    .74197E-01   -.85603E-03
   4  Prefactor     1.1402        .26779E-03    .36233E-01   -.12460E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100109
  Index      = 2.39839
  Normalizat = 0.826373
  Prefactor  = 1.14015
 **********
 **   18 **HESSE 
 **********

 FCN=   17393.12     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      278 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    .32263E-01    .57676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3984        5.2721        .50000       -.54723    
   3  Normalizat    .82637        .35542E-03    .32838E-03   -.99098    
   4  Prefactor     1.1402        .28289E-03    .22462E-03   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.19769e-09
Minuit parameter uncertainties:
  1  0.000118505
  2  8.17193
  3  0.00035542
  4  0.000282892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365808': 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) = 17393.1205304
delta logL = 2.26653719437e-06

Extracting fit parameters...

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  1.001e-04  1.185e-04  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.398e+00  8.172e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.140e+00  2.829e-04  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.264e-01  3.554e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.388 58.858

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/365808/cmap_HighResolution_681004801_681264001_4FGL_J1725.5+5851_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2022-08-04 03:22:10.666829', job_id='365808', GAL2='1.14', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1659608530.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1704' AND source_name='4FGL J1725.5+5851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 03:22:10 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 365847: <4FGL_J1725.5+5851_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1725.5+5851_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:37 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:31:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:31:33 2022
Terminated at Thu Aug  4 03:22:06 2022
Results reported at Thu Aug  4 03:22:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.5+5851_daily_bin1704 261.388 58.8578 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1725.5+5851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2921.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3032 sec.
    Turnaround time :                            11669 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 365808: <4FGL_J1725.5+5851_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1725.5+5851_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:35 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:30:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:30:40 2022
Terminated at Thu Aug  4 03:22:11 2022
Results reported at Thu Aug  4 03:22:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.5+5851_daily_bin1704 261.388 58.8578 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1725.5+5851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2941.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3091 sec.
    Turnaround time :                            11676 sec.

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

