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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1280
RA = 298.777, Dec = -16.0715
tmin = 571104001, tmax = 571363201
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='358543', job_status='RUN', time_executed='2021-09-23 20:55:25.513682', time_epoch_executed='1632455725.51' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358543/ft1_4FGL_J1955.1-1604_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358543/ft1_4FGL_J1955.1-1604_daily_bin1280.fits outfile=/scratch/kocevski/358543/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1280.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=571104001.0 tmax=571363201.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 3.01
user 2.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/358543/ltcube_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.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/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits
.....................!
real 16.65
user 16.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/358543/ltcube_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits outfile=/scratch/kocevski/358543/expmap_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.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/358543/ltcube_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits
.....................!
real 190.38
user 185.25
sys 4.61

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/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits scfile=/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits outfile=/scratch/kocevski/358543/cmap_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits scfile=/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits outfile=/scratch/kocevski/358543/cmap_HighResolution_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358543/Model_4FGL_J1955.1-1604_daily_bin1280.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/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits.....................!
real 85.50
user 84.07
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits', '/scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits', expMap='/scratch/kocevski/358543/expmap_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits', expCube='/scratch/kocevski/358543/ltcube_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358543/Model_4FGL_J1955.1-1604_daily_bin1280.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/358543/ft1_filtered_4FGL_J1955.1-1604_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/358543/ft2_4FGL_J1955.1-1604_daily_bin1280.fits
Exposure map: /scratch/kocevski/358543/expmap_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits
Exposure cube: /scratch/kocevski/358543/ltcube_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358543/Model_4FGL_J1955.1-1604_daily_bin1280.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) = 5009.98250339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10503E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4734       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    128.60       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8548       1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.133       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.925       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.9999       1.0000         .10000E-03   10000.    
    24 'norm      '    44.805       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90544       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5009.869     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3306 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0601        .35825E-06** at limit **
   2  Prefactor     .10000E-03    15.109        .33734E-06** at limit **
   3  norm          .10000E-03    14.377        .25928E-06** at limit **
   4  Prefactor     .10000E-03    37.274       -.23015E-04** at limit **
   5  Prefactor     10.644        10.778       -.90779E-06   -.99247E-04
   6  norm          4.4732        7.5625       -.54729E-05   -.84018E-04
   7  norm          .10000E-03    4.9689        .17018E-06** at limit **
   8  Prefactor     5.1877        56.007        .23220E-06    .43872E-05
   9  Prefactor     128.65        95.347        .30673E-04    .54321E-05
  10  Prefactor     21.015        30.356        .71777E-06    .58317E-05
  11  Prefactor     .10000E-03    3.6348       -.52842E-07** at limit **
  12  Prefactor     .10000E-03    26.278       -.90436E-05** at limit **
  13  Prefactor     14.734        48.495       -.95556E-06   -.58755E-05
  14  Prefactor     .10000E-03    30.660        .27658E-04** at limit **
  15  Prefactor     1.8545        3.8863       -.17035E-05   -.47793E-03
  16  Prefactor     83.535        83.531        .83259E-05   -.20195E-04
  17  Prefactor     55.143        55.312        .80394E-05    .33142E-04
  18  norm          .10000E-03    26.561       -.23870E-05** at limit **
  19  norm          25.927        28.905       -.14404E-05    .37159E-04
  20  Prefactor     .10000E-03    172.63       -.64919E-04** at limit **
  21  norm          .10000E-03    92.120        .63142E-04** at limit **
  22  norm          .10000E-03    34.682        .21719E-05** at limit **
  23  norm          6.0001        4.5764       -.51412E-07   -.30918E-03
  24  norm          44.808        47.736        .26441E-05    .18503E-04
  25  Prefactor     .10000E-03    70.257       -.21451E-04** at limit **
  26  Normalizat    1.0953        .59479       -.17040E-04   -.36096E-04
  27  Prefactor     .90548        .11081        .17862E-05   -.34848E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6443
  norm       = 4.47317
  norm       = 0.0001
  Prefactor  = 5.18765
  Prefactor  = 128.646
  Prefactor  = 21.0151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7338
  Prefactor  = 0.0001
  Prefactor  = 1.85448
  Prefactor  = 83.535
  Prefactor  = 55.1435
  norm       = 0.0001
  norm       = 25.9269
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 6.00007
  norm       = 44.8079
  Prefactor  = 0.0001
  Normalizat = 1.0953
  Prefactor  = 0.905485
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.869     FROM HESSE     STATUS=OK           482 CALLS     3788 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1987        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.644        10.560        .12276E-03   -1.5055    
   6  norm          4.4732        7.5663        .19037E-03   -1.5285    
   7  norm          .10000E-03    4.9898        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1877        55.271        .17640E-03   -1.5252    
   9  Prefactor     128.65        95.394        .17751E-03   -1.3435    
  10  Prefactor     21.015        30.357        .87376E-04   -1.4791    
  11  Prefactor     .10000E-03    3.6560        .13176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.734        48.451        .10435E-03   -1.4940    
  14  Prefactor     .10000E-03    30.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8545        3.8221        .17250E-03   -1.5436    
  16  Prefactor     83.535        83.420        .43952E-04   -1.3877    
  17  Prefactor     55.143        55.009        .54023E-04   -1.4221    
  18  norm          .10000E-03    26.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.927        28.885        .78677E-04   -1.4689    
  20  Prefactor     .10000E-03    172.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    93.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    34.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.0001        4.5742        .12848E-03   -1.5218    
  24  norm          44.808        47.744        .59896E-04   -1.4368    
  25  Prefactor     .10000E-03    70.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0953        .64397        .65777E-03   -.89903    
  27  Prefactor     .90548        .12296        .14110E-03   -.95950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61219e-10
Minuit parameter uncertainties:
  1  5.69435e-05
  2  1.333e-05
  3  1.23864e-05
  4  0.00021634
  5  10.5614
  6  7.56791
  7  4.775e-06
  8  33.9057
  9  95.5087
  10  30.3789
  11  3.12329e-06
  12  4.42636e-07
  13  48.5809
  14  8.00569e-06
  15  3.82265
  16  83.5375
  17  55.0593
  18  3.24995e-05
  19  28.9005
  20  3.79077e-05
  21  0.00121236
  22  3.99016e-07
  23  4.57448
  24  47.7845
  25  7.06402e-05
  26  0.648666
  27  0.122994
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  4.426e-07  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:  9.055e-01  1.230e-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.095e+00  6.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 298.777 -16.072
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358543/likelihoodResults_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.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) = 5009.86926732
delta logL = -0.000181033306035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5009.86908624
delta logL = 3.91419234802e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9931       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90550       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.

 FCN=   5009.869     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.400        .90712E-02** at limit **
   2  Index         1.9582        6.1372        .50000        .91107E-05
   3  Normalizat    1.0953        .11085E-01    .14809        .26455E-04
   4  Prefactor     .90549        .21951E-02    .31933E-01    .36746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95818
  Normalizat = 1.0953
  Prefactor  = 0.905486
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.869     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9582        6.2958        .50000       -.65400    
   3  Normalizat    1.0953        .25094E-01    .65778E-03   -.89903    
   4  Prefactor     .90549        .49954E-02    .14110E-03   -.95950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.94163e-08
Minuit parameter uncertainties:
  1  0.00042149
  2  134.181
  3  0.0250945
  4  0.00499539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358543': 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) = 5009.8690861
delta logL = 1.81187715498e-07

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  4.215e-04  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  1.958e+00  1.342e+02  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:  9.055e-01  4.995e-03  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.095e+00  2.509e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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/358543/cmap_HighResolution_571104001_571363201_4FGL_J1955.1-1604_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-23 21:10:05.442537', job_id='358543', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632456605.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1280' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 358543: <4FGL_J1955.1-1604_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1280> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 20:54:19 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 20:54:23 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:54:23 2021
Terminated at Thu Sep 23 21:10:06 2021
Results reported at Thu Sep 23 21:10:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1280 298.777 -16.0715 571104001 571363201 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 :                                   876.48 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            947 sec.

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

