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


Performing analysis on: 4FGL_J1954.6-1122_daily_bin1701
RA = 298.669, Dec = -11.3815
tmin = 680227201, tmax = 680486401
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='190642', job_status='RUN', time_executed='2022-07-26 02:07:35.195299', time_epoch_executed='1658826455.2' WHERE source_name='4FGL J1954.6-1122' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190642/ft1_4FGL_J1954.6-1122_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190642/ft1_4FGL_J1954.6-1122_daily_bin1701.fits outfile=/scratch/kocevski/190642/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1701.fits ra=298.669 dec=-11.3815 rad=12.0 tmin=680227201.0 tmax=680486401.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.86
user 2.64
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.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/190642/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.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.32
sys 0.16

Number of photons that the gtmktime cut: 302

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/190642/ltcube_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.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/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits
.....................!
real 14.47
user 14.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/190642/ltcube_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits outfile=/scratch/kocevski/190642/expmap_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.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/190642/ltcube_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits
.....................!
real 193.09
user 186.37
sys 6.07

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 G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 280 point sources and 9 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 J1954.6-1122 @ 298.669 -11.3815

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits outfile=/scratch/kocevski/190642/cmap_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.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=298.669 yref=-11.3815 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits outfile=/scratch/kocevski/190642/cmap_HighResolution_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.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=298.669 yref=-11.3815 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190642/Model_4FGL_J1954.6-1122_daily_bin1701.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 J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits.....................!
real 78.73
user 77.26
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits', '/scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits', expMap='/scratch/kocevski/190642/expmap_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits', expCube='/scratch/kocevski/190642/ltcube_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190642/Model_4FGL_J1954.6-1122_daily_bin1701.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1954.6-1122'

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  2.246e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/190642/ft1_filtered_4FGL_J1954.6-1122_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/190642/ft2_4FGL_J1954.6-1122_daily_bin1701.fits
Exposure map: /scratch/kocevski/190642/expmap_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits
Exposure cube: /scratch/kocevski/190642/ltcube_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190642/Model_4FGL_J1954.6-1122_daily_bin1701.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) = 3467.86858472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3191       1.0000         .10000E-03   10000.    
     2 'norm      '    87.537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    25.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    188.11       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1972.7       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65559E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3641       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1025E+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=   3467.868     FROM MIGRAD    STATUS=CONVERGED   1058 CALLS     3922 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3193        3.6731        .13494E-03   -.17549E-03
   2  norm          87.539        64.938        .42942E-04   -.21444E-05
   3  Prefactor     .10000E-03    139.53        .18142E-02** at limit **
   4  Prefactor     .10000E-03    37.048        .18142E-02** at limit **
   5  norm          25.741        22.866        .78956E-04   -.25126E-04
   6  Prefactor     .10000E-03    106.74        .18142E-02** at limit **
   7  Prefactor     .10000E-03    432.33        .18142E-02** at limit **
   8  Prefactor     .10000E-03    50.984        .18142E-02** at limit **
   9  Prefactor     18.251        17.974        .93765E-04   -.10112E-03
  10  Prefactor     .10000E-03    92.573        .18142E-02** at limit **
  11  Prefactor     .10973E-03    223.03        .20193    ** at limit **
  12  Prefactor     35.028        325.84        .33632E-03    .10631E-04
  13  Prefactor     .10000E-03    9.5810        .17804E-02** at limit **
  14  Prefactor     187.85        163.94        .14721E-03   -.87111E-04
  15  Prefactor     .10000E-03    93.594        .18142E-02** at limit **
  16  norm          .10000E-03    79.792        .18142E-02** at limit **
  17  Prefactor     4.1343        330.74        .19770E-03   -.19120E-04
  18  Prefactor     1972.7        1357.6        .50259E-04   -.14861E-04
  19  norm          .10000E-03    20.818        .18142E-02** at limit **
  20  norm          .10000E-03    89.584        .18142E-02** at limit **
  21  norm          .10011E-03    59.193        .18933E-02** at limit **
  22  Prefactor     2.3027        97.884        .26652E-03   -.15314E-03
  23  norm          .10000E-03    21.108        .18142E-02** at limit **
  24  Normalizat    .10000E-01    .27138        .16341E-01** at limit **
  25  Prefactor     1.0091        .73376E-01    .12419E-03   -.10346E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31925
  norm       = 87.5386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.7407
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.251
  Prefactor  = 0.000100001
  Prefactor  = 0.000109734
  Prefactor  = 35.0278
  Prefactor  = 0.0001
  Prefactor  = 187.85
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.13435
  Prefactor  = 1972.75
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000100108
  Prefactor  = 2.30267
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.00907
 **********
 **   18 **HESSE 
 **********

 FCN=   3467.868     FROM HESSE     STATUS=OK           411 CALLS     4333 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3193        3.6729        .53977E-05   -1.5403    
   2  norm          87.539        64.939        .85884E-05   -1.3834    
   3  Prefactor     .10000E-03    139.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          25.741        22.866        .31582E-05   -1.4693    
   6  Prefactor     .10000E-03    106.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    432.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.251        17.971        .37506E-05   -1.4853    
  10  Prefactor     .10000E-03    92.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10973E-03    251.36        .18869       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.028        325.63        .13453E-04   -1.4524    
  13  Prefactor     .10000E-03    9.5810        .35607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     187.85        164.36        .29443E-04   -1.2958    
  15  Prefactor     .10000E-03    93.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    79.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1343        330.59        .79082E-05   -1.5301    
  18  Prefactor     1972.7        1357.3        .10052E-04   -.65033    
  19  norm          .10000E-03    20.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    89.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10011E-03    60.435        .75733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3027        96.809        .10661E-04   -1.5404    
  23  norm          .10000E-03    21.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .27143        .32681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0091        .73358E-01    .24837E-04   -.92428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12812e-09
Minuit parameter uncertainties:
  1  3.67321
  2  64.9921
  3  8.02638e-05
  4  8.0092e-06
  5  22.874
  6  0.000819997
  7  0.0011463
  8  0.000202722
  9  17.9766
  10  0.000731294
  11  0.0993498
  12  215.162
  13  5.43674e-05
  14  164.768
  15  0.000411207
  16  0.000199716
  17  74.3677
  18  1385.07
  19  8.78153e-06
  20  0.000526163
  21  0.00512447
  22  29.9122
  23  1.50213e-05
  24  1.39388e-05
  25  0.0733652
Done.

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

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  1.825e+01  1.798e+01  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1001    Prefactor:  1.009e+00  7.337e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1002        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1003        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  1.000e-02  1.394e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 298.669 -11.382
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.50e-07 +/- 2.46e-07
Energy Flux (Fixed Index): 7.76e-05 +/- 7.65e-05

TS (Fixed Index): 1.71
Ra Dec: 298.669 -11.382
Photon Flux Upper Limit: 7.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190642/likelihoodResults_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.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) = 3467.56753958
delta logL = 0.300170079101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3467.47743785
delta logL = 0.390271808812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.884       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9246       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1025E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3467.477     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.884        33.510        .19316E-02    .10733E-02
   2  Index         1.9247        .72073        .16963        .26559E-05
   3  Normalizat    .10000E-01    .24930        .32094    ** at limit **
   4  Prefactor     1.0085        .72098E-01    .28086E-01    .65472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8838
  Index      = 1.92468
  Normalizat = 0.01
  Prefactor  = 1.00845
 **********
 **   18 **HESSE 
 **********

 FCN=   3467.477     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.884        21.713        .77264E-04   -1.4671    
   2  Index         1.9247        .51590        .68026E-02   -.66247    
   3  Normalizat    .10000E-01    .28074        .16550E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0085        .65627E-01    .12414E-03   -.92448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04918e-09
Minuit parameter uncertainties:
  1  21.7191
  2  0.517382
  3  9.61104e-08
  4  0.0656326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190642': 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) = 3467.4774378
delta logL = 0.390271858483

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  2.688e+01  2.172e+01  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  1.925e+00  5.174e-01  0.000e+00  1.000e+01 (-1.000e+00)
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1001    Prefactor:  1.008e+00  6.563e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1002        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1003        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  1.000e-02  9.611e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 298.669 -11.382
Photon Index (Free Index): 1.92 +/- 0.52
Photon Flux (Free Index): 1.87e-07 +/- 1.77e-07
Energy Flux (Free Index): 1.57e-04 +/- 1.88e-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/190642/cmap_HighResolution_680227201_680486401_4FGL_J1954.6-1122_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-02', comment='SUCCESS', photon_flux='2.50e-07', energy_flux2='1.57e-04', photon_flux_error='2.46e-07', dlogl='3.90e-01', energy_flux='7.76e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2022-07-26 02:20:51.596270', photon_index_error2='0.52', photon_index2='1.92', ts='1.71', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.85e-07', energy_flux_error2='1.88e-04', EG='0.01', time_epoch_completed='1658827251.6', return_code='0', job_id='190642', GAL2='1.01', EG2='0.01', return_code2='0', energy_flux_error='7.65e-05', photon_flux_error2='1.77e-07', ts2='2.50', photon_index='2.44' WHERE bin_id='1701' AND source_name='4FGL J1954.6-1122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:20:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 190642: <4FGL_J1954.6-1122_daily_bin1701> in cluster <slac> Done

Job <4FGL_J1954.6-1122_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 02:05:22 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:05:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:05:54 2022
Terminated at Tue Jul 26 02:20:52 2022
Results reported at Tue Jul 26 02:20:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1954.6-1122_daily_bin1701 298.669 -11.3815 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1954.6-1122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.57 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             286.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            930 sec.

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

