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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1460
RA = 298.777, Dec = -16.0715
tmin = 617760001, tmax = 618019201
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='360761', job_status='RUN', time_executed='2021-09-23 21:02:17.021472', time_epoch_executed='1632456137.02' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360761/ft1_4FGL_J1955.1-1604_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360761/ft1_4FGL_J1955.1-1604_daily_bin1460.fits outfile=/scratch/kocevski/360761/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1460.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=617760001.0 tmax=618019201.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.68
user 2.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/360761/ltcube_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.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/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits
.....................!
real 13.07
user 12.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/360761/ltcube_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.fits outfile=/scratch/kocevski/360761/expmap_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.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/360761/ltcube_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.fits
.....................!
real 190.57
user 185.02
sys 5.16

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/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits scfile=/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits outfile=/scratch/kocevski/360761/cmap_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits scfile=/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits outfile=/scratch/kocevski/360761/cmap_HighResolution_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/360761/ft2_4FGL_J1955.1-1604_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360761/Model_4FGL_J1955.1-1604_daily_bin1460.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/360761/ft1_filtered_4FGL_J1955.1-1604_daily_bin1460.fits....................!
real 28.70
user 27.46
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.681       1.0000         .10000E-03   10000.    
     6 'norm      '    21.361       1.0000         .10000E-03   10000.    
     7 'norm      '    62.428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    113.62       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18071E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    277.57       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
    18 'norm      '    .11713E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.542       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    24.687       1.0000         .10000E-03   10000.    
    22 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9764       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6025       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .41636       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=   1117.247     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3271 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4037        5.5274        .58240E-06    .10244E-04
   2  Prefactor     .10000E-03    69.638       -.23962E-04** at limit **
   3  norm          .10000E-03    64.519        .94586E-05** at limit **
   4  Prefactor     .10000E-03    42.949       -.30567E-04** at limit **
   5  Prefactor     35.662        49.711       -.31553E-05    .24431E-04
   6  norm          21.363        21.204        .21279E-06    .13612E-04
   7  norm          62.420        53.853        .43083E-06    .21641E-04
   8  Prefactor     .10000E-03    25.085        .29284E-05** at limit **
   9  Prefactor     113.59        175.13       -.26710E-04    .12342E-04
  10  Prefactor     .10000E-03    21.869       -.13969E-05** at limit **
  11  Prefactor     .10002E-03    20.130       -.16600E-05** at limit **
  12  Prefactor     .10000E-03    73.148       -.44320E-04** at limit **
  13  Prefactor     .10000E-03    475.52       -.27075E-03** at limit **
  14  Prefactor     277.59        187.67        .13780E-04    .54590E-04
  15  Prefactor     .10000E-03    3.7727       -.70787E-07** at limit **
  16  Prefactor     .10000E-03    118.48       -.14602E-04** at limit **
  17  Prefactor     10.615        98.023        .11678E-04    .20763E-04
  18  norm          .10001E-03    375.06       -.82784E-04** at limit **
  19  norm          27.547        41.834       -.43477E-05    .12760E-04
  20  Prefactor     .10000E-03    196.80        .17439E-03** at limit **
  21  norm          24.703        80.870        .19539E-04    .54748E-04
  22  norm          .10000E-03    51.946        .64287E-04** at limit **
  23  norm          7.9772        6.0617       -.10205E-05    .10118E-03
  24  norm          .10000E-03    16.311        .61077E-07** at limit **
  25  Prefactor     .10000E-03    12.459        .12361E-06** at limit **
  26  Normalizat    1.6015        .79305       -.27430E-05    .21256E-03
  27  Prefactor     .41655        .14930        .13464E-05    .57587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6616
  norm       = 21.3632
  norm       = 62.4198
  Prefactor  = 0.0001
  Prefactor  = 113.591
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 277.593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6154
  norm       = 0.000100015
  norm       = 27.5475
  Prefactor  = 0.0001
  norm       = 24.7035
  norm       = 0.0001
  norm       = 7.97723
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.60155
  Prefactor  = 0.416552
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.247     FROM HESSE     STATUS=OK           474 CALLS     3745 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4037        5.4378        .96562E-04   -1.5398    
   2  Prefactor     .10000E-03    69.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    64.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.662        49.394        .67091E-04   -1.4513    
   6  norm          21.363        21.210        .86662E-04   -1.4783    
   7  norm          62.420        53.827        .50786E-04   -1.4126    
   8  Prefactor     .10000E-03    25.088        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     113.59        175.17        .18870E-03   -1.3572    
  10  Prefactor     .10000E-03    21.878        .15273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    152.33        .28299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    73.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    477.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     277.59        185.71        .12175E-03   -1.2360    
  15  Prefactor     .10000E-03    3.7745        .63393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    118.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.615        98.140        .12304E-03   -1.5056    
  18  norm          .10001E-03    383.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.547        41.787        .76336E-04   -1.4658    
  20  Prefactor     .10000E-03    196.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          24.703        80.943        .80622E-04   -1.4714    
  22  norm          .10000E-03    51.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9772        6.0948        .63173E-04   -1.5143    
  24  norm          .10000E-03    16.374        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.471        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6015        .93112        .41294E-03   -.74964    
  27  Prefactor     .41655        .17553        .14930E-03   -1.1597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02222e-09
Minuit parameter uncertainties:
  1  5.43888
  2  2.01795e-05
  3  2.13972e-05
  4  4.92431e-07
  5  49.4509
  6  21.2177
  7  53.8693
  8  1.2291e-05
  9  175.978
  10  1.77764e-05
  11  0.00313787
  12  5.59587e-05
  13  0.00189545
  14  186.106
  15  9.89388e-06
  16  0.000171238
  17  64.6941
  18  0.00477953
  19  41.8311
  20  1.91339e-05
  21  81.3057
  22  2.70951e-05
  23  6.09523
  24  1.24661e-06
  25  8.28758e-07
  26  0.941493
  27  0.175754
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  5.596e-05  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:  4.166e-01  1.758e-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.602e+00  9.415e-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: 4.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360761/likelihoodResults_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.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) = 1117.24737305
delta logL = -6.49956405141e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1117.2473083
delta logL = -2.51393203143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12800E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0735       1.0000          .0000       10.000    
     3 'Normalizat'    1.6015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41655       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=   1117.247     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8276.9        .90712E-02** at limit **
   2  Index         2.0353        8.1040        .50000        .42190E-05
   3  Normalizat    1.6015        .27540        .93250E-01   -.34876E-05
   4  Prefactor     .41655        .54836E-01    .38490E-01   -.90277E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.03531
  Normalizat = 1.60154
  Prefactor  = 0.416551
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.247     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8979.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0353        5.8301        .50000       -.63470    
   3  Normalizat    1.6015        .36786        .41295E-03   -.74964    
   4  Prefactor     .41655        .73388E-01    .14930E-03   -1.1597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96828e-10
Minuit parameter uncertainties:
  1  0.00604091
  2  52.7946
  3  0.368486
  4  0.0734045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360761': 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) = 1117.24730806
delta logL = -5.80280357099e-09

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  6.041e-03  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.035e+00  5.279e+01  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:  4.166e-01  7.340e-02  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.602e+00  3.685e-01  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/360761/cmap_HighResolution_617760001_618019201_4FGL_J1955.1-1604_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-02', job_status='DONE', photon_flux_upper_limit='4.54e-07', time_completed='2021-09-23 21:09:58.342625', job_id='360761', GAL2='0.42', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1632456598.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='-5.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1460' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 360761: <4FGL_J1955.1-1604_daily_bin1460> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1460> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 21:01:56 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 21:01:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 21:01:59 2021
Terminated at Thu Sep 23 21:09:58 2021
Results reported at Thu Sep 23 21:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1460 298.777 -16.0715 617760001 618019201 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 :                                   454.19 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            482 sec.

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

