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


Performing analysis on: 4FGL_J1954.6-1122_daily_bin1634
RA = 298.669, Dec = -11.3815
tmin = 662860801, tmax = 663120001
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='771618', job_status='RUN', time_executed='2022-01-06 02:11:22.090702', time_epoch_executed='1641463882.09' WHERE source_name='4FGL J1954.6-1122' and cadence='daily' and bin_id='1634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771618/ft1_4FGL_J1954.6-1122_daily_bin1634.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771618/ft1_4FGL_J1954.6-1122_daily_bin1634.fits outfile=/scratch/kocevski/771618/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1634.fits ra=298.669 dec=-11.3815 rad=12.0 tmin=662860801.0 tmax=663120001.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.99
user 2.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits" evtable="EVENTS" scfile=/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits sctable="SC_DATA" outfile=/scratch/kocevski/771618/ltcube_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.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/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits
.....................!
real 15.81
user 15.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits sctable="SC_DATA" expcube=/scratch/kocevski/771618/ltcube_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits outfile=/scratch/kocevski/771618/expmap_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.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/771618/ltcube_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits
.....................!
real 192.59
user 187.04
sys 5.02

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/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits scfile=/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits outfile=/scratch/kocevski/771618/cmap_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits scfile=/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits outfile=/scratch/kocevski/771618/cmap_HighResolution_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/771618/Model_4FGL_J1954.6-1122_daily_bin1634.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/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits.....................!
real 79.03
user 77.53
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits', '/scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits', expMap='/scratch/kocevski/771618/expmap_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits', expCube='/scratch/kocevski/771618/ltcube_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/771618/Model_4FGL_J1954.6-1122_daily_bin1634.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/771618/ft1_filtered_4FGL_J1954.6-1122_daily_bin1634.fits
Spacecraft file(s): /scratch/kocevski/771618/ft2_4FGL_J1954.6-1122_daily_bin1634.fits
Exposure map: /scratch/kocevski/771618/expmap_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits
Exposure cube: /scratch/kocevski/771618/ltcube_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/771618/Model_4FGL_J1954.6-1122_daily_bin1634.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) = 4199.53443622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10511E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14957E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .12089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17111E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    145.68       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46262E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.733       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.631       1.0000         .10000E-03   10000.    
    20 'norm      '    48.720       1.0000         .10000E-03   10000.    
    21 'norm      '    .28063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.0175       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98901       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.

 FCN=   4199.529     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2954 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.158       -.10796E-06** at limit **
   2  norm          .10000E-03    236.82       -.24914E-06** at limit **
   3  Prefactor     .10000E-03    1225.0       -.75363E-06** at limit **
   4  Prefactor     .10000E-03    743.73        .73585E-06** at limit **
   5  norm          .10000E-03    31.704       -.33962E-08** at limit **
   6  Prefactor     .10000E-03    103.83        .98771E-06** at limit **
   7  Prefactor     .10000E-03    1034.5       -.15608E-05** at limit **
   8  Prefactor     58.919        47.779       -.36175E-06   -.16391E-04
   9  Prefactor     .10000E-03    3.8200        .10163E-06** at limit **
  10  Prefactor     145.83        113.71       -.92710E-06    .14168E-04
  11  Prefactor     42.554        84.171        .72545E-05   -.14890E-05
  12  Prefactor     .10000E-03    22.329        .10466E-06** at limit **
  13  Prefactor     2.5924        5.4837        .10147E-05    .21937E-04
  14  Prefactor     .10000E-03    462.17        .11788E-04** at limit **
  15  Prefactor     .10000E-03    13.197       -.23934E-06** at limit **
  16  norm          .10000E-03    10.538       -.93433E-07** at limit **
  17  Prefactor     76.740        70.091        .12087E-06   -.39168E-06
  18  Prefactor     .10000E-03    1020.5        .13465E-06** at limit **
  19  norm          10.634        19.424        .27464E-06    .15920E-04
  20  norm          48.715        48.004        .13381E-06    .14748E-05
  21  norm          .27426E-02    .93647        .48375E-09   -.16431E-03
  22  Prefactor     .10000E-03    11.544       -.98473E-07** at limit **
  23  norm          3.0184        3.5653        .31771E-07   -.11552E-05
  24  Normalizat    1.2496        .45045        .60653E-06   -.13016E-04
  25  Prefactor     .98900        .11798       -.26470E-06    .26652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.9188
  Prefactor  = 0.0001
  Prefactor  = 145.826
  Prefactor  = 42.5543
  Prefactor  = 0.0001
  Prefactor  = 2.59239
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.7402
  Prefactor  = 0.0001
  norm       = 10.6342
  norm       = 48.715
  norm       = 0.00274262
  Prefactor  = 0.0001
  norm       = 3.01843
  Normalizat = 1.24957
  Prefactor  = 0.989003
 **********
 **   18 **HESSE 
 **********

 FCN=   4199.529     FROM HESSE     STATUS=OK           429 CALLS     3383 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    237.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1227.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    745.61        .20473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    31.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    104.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1048.8        .18217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     58.919        47.984        .52260E-04   -1.4171    
   9  Prefactor     .10000E-03    3.8289        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     145.83        113.85        .16692E-03   -1.3287    
  11  Prefactor     42.554        83.335        .61564E-04   -1.4402    
  12  Prefactor     .10000E-03    22.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5924        5.4710        .19950E-03   -1.5386    
  14  Prefactor     .10000E-03    444.81        .19308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     76.740        70.140        .45841E-04   -1.3954    
  18  Prefactor     .10000E-03    1026.3        .21275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.634        19.439        .12288E-03   -1.5056    
  20  norm          48.715        48.033        .57450E-04   -1.4311    
  21  norm          .27426E-02    2.6364        .21107E-01   -1.5698    
  22  Prefactor     .10000E-03    11.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0184        3.5617        .12883E-03   -1.5360    
  24  Normalizat    1.2496        .49327        .54513E-03   -.85085    
  25  Prefactor     .98900        .13140        .15968E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01111e-11
Minuit parameter uncertainties:
  1  1.10306e-06
  2  0.000312163
  3  0.00291711
  4  0.00155031
  5  2.0763e-07
  6  8.75466e-06
  7  0.000846953
  8  48.0152
  9  3.45058e-06
  10  114.021
  11  83.5641
  12  4.24695e-06
  13  5.47207
  14  0.00193571
  15  2.34001e-05
  16  1.31514e-05
  17  70.2161
  18  7.61767e-05
  19  19.4509
  20  48.0712
  21  0.166944
  22  5.26981e-06
  23  3.56192
  24  0.495131
  25  0.131439
Done.

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

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  1.000e-04  3.451e-06  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:  9.890e-01  1.314e-01  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.250e+00  4.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771618/likelihoodResults_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.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) = 4199.53054123
delta logL = -0.0012414696339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4199.5292996
delta logL = 1.64889570442e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4215       1.0000          .0000       10.000    
     3 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98901       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=   4199.529     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.205        .12598E-01** at limit **
   2  Index         1.8681        6.2582        .50000       -.37494E-07
   3  Normalizat    1.2496        .30325E-01    .54513E-03   -.94661E-04
   4  Prefactor     .98900        .80835E-02    .15968E-03   -.31926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86809
  Normalizat = 1.24957
  Prefactor  = 0.989002
 **********
 **   18 **HESSE 
 **********

 FCN=   4199.529     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    249.19        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8681        5.2915        .50000       -.67690    
   3  Normalizat    1.2496        .93151E-01    .21805E-04   -.85085    
   4  Prefactor     .98900        .24833E-01    .31936E-04   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.49961e-11
Minuit parameter uncertainties:
  1  6.66302e-06
  2  814.486
  3  0.0931635
  4  0.0248333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771618': 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) = 4199.52929641
delta logL = 3.34769538313e-06

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  1.000e-04  6.663e-06  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  1.868e+00  8.145e+02  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:  9.890e-01  2.483e-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.250e+00  9.316e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 298.669 -11.382

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/771618/cmap_HighResolution_662860801_663120001_4FGL_J1954.6-1122_daily_bin1634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-02', job_status='DONE', photon_flux_upper_limit='2.45e-07', time_completed='2022-01-06 02:24:49.359302', job_id='771618', GAL2='0.99', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1641464689.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1634' AND source_name='4FGL J1954.6-1122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan  6 02:24:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 771618: <4FGL_J1954.6-1122_daily_bin1634> in cluster <slac> Done

Job <4FGL_J1954.6-1122_daily_bin1634> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan  6 02:10:14 2022
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan  6 02:10:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan  6 02:10:18 2022
Terminated at Thu Jan  6 02:24:50 2022
Results reported at Thu Jan  6 02:24:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1954.6-1122_daily_bin1634 298.669 -11.3815 662860801 663120001 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 :                                   809.17 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             360.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            876 sec.

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

