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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1209
RA = 298.777, Dec = -16.0715
tmin = 552700801, tmax = 552960001
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='358029', job_status='RUN', time_executed='2021-09-23 20:56:34.025893', time_epoch_executed='1632455794.03' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358029/ft1_4FGL_J1955.1-1604_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358029/ft1_4FGL_J1955.1-1604_daily_bin1209.fits outfile=/scratch/kocevski/358029/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1209.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=552700801.0 tmax=552960001.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.95
user 2.70
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.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/358029/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/358029/ltcube_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.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/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits
.....................!
real 12.22
user 11.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/358029/ltcube_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits outfile=/scratch/kocevski/358029/expmap_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.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/358029/ltcube_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits
.....................!
real 191.21
user 186.12
sys 4.78

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
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.
Added 247 point sources and 7 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 J1955.1-1604 @ 298.777 -16.0715

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits outfile=/scratch/kocevski/358029/cmap_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.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.777 yref=-16.0715 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits outfile=/scratch/kocevski/358029/cmap_HighResolution_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.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.777 yref=-16.0715 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358029/Model_4FGL_J1955.1-1604_daily_bin1209.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 J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source W 41
Working on...
/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits.............!
real 15.89
user 14.65
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits', '/scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits', expMap='/scratch/kocevski/358029/expmap_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits', expCube='/scratch/kocevski/358029/ltcube_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358029/Model_4FGL_J1955.1-1604_daily_bin1209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.1-1604'

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  5.966e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/358029/ft1_filtered_4FGL_J1955.1-1604_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/358029/ft2_4FGL_J1955.1-1604_daily_bin1209.fits
Exposure map: /scratch/kocevski/358029/expmap_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits
Exposure cube: /scratch/kocevski/358029/ltcube_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358029/Model_4FGL_J1955.1-1604_daily_bin1209.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) = 168.601047081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3648       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3342       1.0000         .10000E-03   10000.    
     3 'norm      '    .72583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4594       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7901       1.0000         .10000E-03   10000.    
     6 'norm      '    .14199       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.607       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73594E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1600.4       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9053       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5441       1.0000         .10000E-03   10000.    
    19 'norm      '    .56645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1670       1.0000         .10000E-03   10000.    
    21 'norm      '    269.81       1.0000         .10000E-03   10000.    
    22 'norm      '    .54745       1.0000         .10000E-03   10000.    
    23 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    41.388       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .13559       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   160.3734     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      389 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3648        1.0909         .0000         .0000    
   2  Prefactor     3.3342        1.0117         .0000         .0000    
   3  norm          .10000E-03    190.09        .11858E-06** at limit **
   4  Prefactor     .25740E-02    1522.4        .18162E-04** at limit **
   5  Prefactor     6.7901        1.0027         .0000         .0000    
   6  norm          .10000E-03    611.31       -.89315E-06** at limit **
   7  norm          4.4007        1.0066         .0000         .0000    
   8  Prefactor     1.8261        1.0435         .0000         .0000    
   9  Prefactor     7.2838        1.0024         .0000         .0000    
  10  Prefactor     83.424        123.01       -.98732E-06    .12130E-01
  11  Prefactor     .10000E-03    115.96       -.89870E-07** at limit **
  12  Prefactor     5.9661        1.0036         .0000         .0000    
  13  Prefactor     1599.9        23.974        .13124E-06    .20286E-01
  14  Prefactor     4.4090        1169.3        .15221E-04    .38486E-02
  15  Prefactor     1.0720        1.2126         .0000         .0000    
  16  Prefactor     .10000E-03    615.16       -.65790E-05** at limit **
  17  Prefactor     1.9053        1.0394         .0000         .0000    
  18  norm          6.5441        1.0029         .0000         .0000    
  19  norm          .10007E-03    1513.8        .13297E-04** at limit **
  20  Prefactor     .27882E-01    1421.3        .15541E-04   -.18904E-02
  21  norm          281.48        434.49       -.59133E-05    .75507E-02
  22  norm          .10000E-03    397.95        .16294E-05** at limit **
  23  norm          .10000E-03    11.140       -.31731E-06** at limit **
  24  norm          41.395        43.444       -.70439E-05    .28700E-05
  25  Prefactor     .10000E-03    31.834        .14270E-06** at limit **
  26  Normalizat    .10000E-01    .72652       -.43238E-05** at limit **
  27  Prefactor     .13448        .12610       -.33972E-05   -.17474E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36483
  Prefactor  = 3.33416
  norm       = 0.0001
  Prefactor  = 0.00257403
  Prefactor  = 6.79013
  norm       = 0.0001
  norm       = 4.40068
  Prefactor  = 1.82615
  Prefactor  = 7.2838
  Prefactor  = 83.4237
  Prefactor  = 0.0001
  Prefactor  = 5.96606
  Prefactor  = 1599.87
  Prefactor  = 4.40899
  Prefactor  = 1.07204
  Prefactor  = 0.0001
  Prefactor  = 1.90534
  norm       = 6.54408
  norm       = 0.000100067
  Prefactor  = 0.0278816
  norm       = 281.479
  norm       = 0.0001
  norm       = 0.0001
  norm       = 41.3951
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.13448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   160.3734     FROM HESSE     STATUS=FAILED         9 CALLS      398 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          580.44        578.86         .0000       -1.5474    
   2  Prefactor     3.3342        1.0117         .0000       -1.5343    
   3  norm          .10000E-03    .36969        .11858E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25740E-02    .56811E-01    .18162E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7901        1.0027         .0000       -1.5187    
   6  norm          .10000E-03    .23569       -.89315E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4007        1.0066         .0000       -1.5288    
   8  Prefactor     1.8261        1.0435         .0000       -1.5438    
   9  Prefactor     7.2838        1.0024         .0000       -1.5168    
  10  Prefactor     83.424        1.0049       -.98732E-06   -1.3879    
  11  Prefactor     .10000E-03    .21664       -.89870E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9661        1.0036         .0000       -1.5219    
  13  Prefactor     1599.9        .99986        .13124E-06   -.74780    
  14  Prefactor     4.4090        .70589        .15221E-04   -1.5288    
  15  Prefactor     1.0720        1.2126         .0000       -1.5501    
  16  Prefactor     .10000E-03    .10887       -.65790E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9053        1.0394         .0000       -1.5432    
  18  norm          6.5441        1.0029         .0000       -1.5196    
  19  norm          .10007E-03    .33288        .13297E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27882E-01    .12229        .15541E-04   -1.5741    
  21  norm          281.48        1.0208       -.59133E-05   -1.2337    
  22  norm          .10000E-03    .32850        .16294E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571       -.31731E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          41.395        1.0002       -.70439E-05   -1.4420    
  25  Prefactor     .10000E-03    .20571        .14270E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25726       -.43238E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .13448        .38709       -.33972E-05   -1.3383    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.55577e-10
Minuit parameter uncertainties:
  1  1.09092
  2  1.01171
  3  4.5922e-07
  4  0.0237109
  5  1.00274
  6  1.37949e-05
  7  1.0066
  8  1.0435
  9  1.00237
  10  1.00491
  11  8.65662e-09
  12  1.00355
  13  0.999863
  14  0.705896
  15  1.21259
  16  8.31862e-06
  17  1.03941
  18  1.00295
  19  0.000298065
  20  0.116577
  21  1.02079
  22  5.94004e-06
  23  6.23745e-07
  24  1.00016
  25  3.07832e-07
  26  3.08555e-07
  27  0.394773
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  5.966e+00  1.004e+00  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  1.345e-01  3.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  1.000e-02  3.086e-07  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.777 -16.072
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.52e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358029/likelihoodResults_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.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) = 160.373911207
delta logL = -0.000541190359371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 160.373911207
delta logL = -0.000541190359371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .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=   160.3739     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.0293        1.0193        .25623         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.02935
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   160.3739     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       .44401        1.6823        .25623       -.63618    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.0305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358029': 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) = 160.373911207
delta logL = -0.000541190359371

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  5.966e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
578        Index:  2.029e+00  1.031e+00  0.000e+00  1.000e+01 (-1.000e+00)
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  1.345e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  1.011e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 298.777 -16.072

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/358029/cmap_HighResolution_552700801_552960001_4FGL_J1955.1-1604_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.52e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-23 21:02:11.955783', job_id='358029', GAL2='0.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632456131.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.13', dlogl='-5.41e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1209' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 358029: <4FGL_J1955.1-1604_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1209> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 20:52:32 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 20:52:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 20:52:40 2021
Terminated at Thu Sep 23 21:02:12 2021
Results reported at Thu Sep 23 21:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1209 298.777 -16.0715 552700801 552960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1955.1-1604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   340.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             181.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            580 sec.

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

