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


Performing analysis on: 4FGL_J1954.6-1122_daily_bin1211
RA = 298.669, Dec = -11.3815
tmin = 553219201, tmax = 553478401
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='295203', job_status='RUN', time_executed='2021-09-23 17:55:49.367245', time_epoch_executed='1632444949.37' WHERE source_name='4FGL J1954.6-1122' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295203/ft1_4FGL_J1954.6-1122_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295203/ft1_4FGL_J1954.6-1122_daily_bin1211.fits outfile=/scratch/kocevski/295203/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1211.fits ra=298.669 dec=-11.3815 rad=12.0 tmin=553219201.0 tmax=553478401.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.87
user 2.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.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/295203/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.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.55
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/295203/ltcube_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.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/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits
.....................!
real 12.91
user 12.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/295203/ltcube_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits outfile=/scratch/kocevski/295203/expmap_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.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/295203/ltcube_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits
.....................!
real 193.06
user 186.26
sys 6.45

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/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits outfile=/scratch/kocevski/295203/cmap_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits outfile=/scratch/kocevski/295203/cmap_HighResolution_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.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.54
user 0.35
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/295203/Model_4FGL_J1954.6-1122_daily_bin1211.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/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits.......!
real 14.92
user 13.66
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits', '/scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits', expMap='/scratch/kocevski/295203/expmap_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits', expCube='/scratch/kocevski/295203/ltcube_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/295203/Model_4FGL_J1954.6-1122_daily_bin1211.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/295203/ft1_filtered_4FGL_J1954.6-1122_daily_bin1211.fits
Spacecraft file(s): /scratch/kocevski/295203/ft2_4FGL_J1954.6-1122_daily_bin1211.fits
Exposure map: /scratch/kocevski/295203/expmap_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits
Exposure cube: /scratch/kocevski/295203/ltcube_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/295203/Model_4FGL_J1954.6-1122_daily_bin1211.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 95.9141579236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 95.7499525562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0464       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7901       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8261       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9053       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3099       1.0000         .10000E-03   10000.    
    20 'norm      '    8.6862       1.0000         .10000E-03   10000.    
    21 'norm      '    .61618E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40703       1.0000         .10000E-03   10000.    
    23 'norm      '    .11866E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66388       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .50583       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   95.73936     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      192 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0464        1.2431         .0000         .0000    
   2  norm          7.5520        1.0022         .0000         .0000    
   3  Prefactor     8.0175        1.0020         .0000         .0000    
   4  Prefactor     6.7901        1.0027         .0000         .0000    
   5  norm          1.0690        1.2157         .0000         .0000    
   6  Prefactor     1.8261        1.0435         .0000         .0000    
   7  Prefactor     7.2838        1.0024         .0000         .0000    
   8  Prefactor     1.9511        1.0373         .0000         .0000    
   9  Prefactor     2.2463        1.0272         .0000         .0000    
  10  Prefactor     5.9661        1.0036         .0000         .0000    
  11  Prefactor     2.0530        1.0332         .0000         .0000    
  12  Prefactor     9.1626        1.0015         .0000         .0000    
  13  Prefactor     1.0720        1.2126         .0000         .0000    
  14  Prefactor     2.7222        1.0179         .0000         .0000    
  15  Prefactor     1.9053        1.0394         .0000         .0000    
  16  norm          .10904E-03    .77849E-01    .20328E-04** at limit **
  17  Prefactor     20.658        2.1768        .23188E-04    .21732E-02
  18  Prefactor     .18957        .23345       -.39300E-04    .32459E-02
  19  norm          .10370E-02    .58834E-01   -.34251E-06** at limit **
  20  norm          .36566E-03    .28903E-01    .78785E-04** at limit **
  21  norm          .10000E-03    .22325       -.13012E-06** at limit **
  22  Prefactor     .10000E-03    .29621        .20972E-05** at limit **
  23  norm          .10000E-03    .20622       -.33652E-05** at limit **
  24  Normalizat    .64369        .98857        .11869E-03   -.86215E-07
  25  Prefactor     .50462        .84746       -.25813E-04   -.19285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04642
  norm       = 7.55199
  Prefactor  = 8.01752
  Prefactor  = 6.79013
  norm       = 1.06899
  Prefactor  = 1.82615
  Prefactor  = 7.2838
  Prefactor  = 1.9511
  Prefactor  = 2.24634
  Prefactor  = 5.96606
  Prefactor  = 2.05305
  Prefactor  = 9.16265
  Prefactor  = 1.07204
  Prefactor  = 2.72222
  Prefactor  = 1.90534
  norm       = 0.000109039
  Prefactor  = 20.6576
  Prefactor  = 0.189573
  norm       = 0.00103698
  norm       = 0.000365656
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.643688
  Prefactor  = 0.504621
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   95.73936     FROM HESSE     STATUS=FAILED         9 CALLS      201 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     587.26        585.84         .0000       -1.5503    
   2  norm          7.5520        1.0022         .0000       -1.5158    
   3  Prefactor     8.0175        1.0020         .0000       -1.5142    
   4  Prefactor     6.7901        1.0027         .0000       -1.5187    
   5  norm          1.0690        1.2157         .0000       -1.5501    
   6  Prefactor     1.8261        1.0435         .0000       -1.5438    
   7  Prefactor     7.2838        1.0024         .0000       -1.5168    
   8  Prefactor     1.9511        1.0373         .0000       -1.5429    
   9  Prefactor     2.2463        1.0272         .0000       -1.5408    
  10  Prefactor     5.9661        1.0036         .0000       -1.5219    
  11  Prefactor     2.0530        1.0332         .0000       -1.5421    
  12  Prefactor     9.1626        1.0015         .0000       -1.5102    
  13  Prefactor     1.0720        1.2126         .0000       -1.5501    
  14  Prefactor     2.7222        1.0179         .0000       -1.5378    
  15  Prefactor     1.9053        1.0394         .0000       -1.5432    
  16  norm          .10904E-03    .77849E-01    .20328E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.658        2.1768        .23188E-04   -1.4799    
  18  Prefactor     .18957        .23345       -.39300E-04   -1.5621    
  19  norm          .10370E-02    .58834E-01   -.34251E-06   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36566E-03    .28903E-01    .78785E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .22325       -.13012E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .29621        .20972E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20622       -.33652E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64369        .98857        .11869E-03   -1.0616    
  25  Prefactor     .50462        .84746       -.25813E-04   -1.1177    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.28092e-10
Minuit parameter uncertainties:
  1  1.24309
  2  1.00221
  3  1.00196
  4  1.00274
  5  1.21571
  6  1.0435
  7  1.00237
  8  1.03732
  9  1.02721
  10  1.00355
  11  1.03325
  12  1.0015
  13  1.21259
  14  1.01795
  15  1.03941
  16  0.0016777
  17  2.17684
  18  0.233447
  19  0.0148495
  20  0.0055419
  21  2.15002e-06
  22  3.72994e-07
  23  6.1619e-06
  24  1.01796
  25  0.870198
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 95.7393640554

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  2.246e+00  1.027e+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

GAL_V02
   Spectrum: PowerLaw
1001    Prefactor:  5.046e-01  8.702e-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:  6.437e-01  1.018e+00  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 298.669 -11.382
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.75e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/295203/likelihoodResults_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.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): 101
logL (Free Index) = 95.7394091734
delta logL = -4.51179638929e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 95.7394091734
delta logL = -4.51179638929e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.4430       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   95.73941     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.4430        1.0105        .23741         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.44295
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   95.73941     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .67081        1.8439        .23741       -.53682    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295203': 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): 101
logL (Free Index) = 95.7394091734
delta logL = -4.51179638929e-05

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  2.246e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
684        Index:  2.443e+00  1.020e+00  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:  5.050e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  6.411e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/295203/cmap_HighResolution_553219201_553478401_4FGL_J1954.6-1122_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.75e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-23 18:01:49.278205', job_id='295203', GAL2='0.51', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632445309.28', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.50', dlogl='-4.51e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1211' AND source_name='4FGL J1954.6-1122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 18:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 295203: <4FGL_J1954.6-1122_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1954.6-1122_daily_bin1211> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 17:53:18 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 17:53:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 17:53:20 2021
Terminated at Thu Sep 23 18:01:50 2021
Results reported at Thu Sep 23 18:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1954.6-1122_daily_bin1211 298.669 -11.3815 553219201 553478401 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 :                                   349.27 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             361.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            512 sec.

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

