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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1390
RA = 298.777, Dec = -16.0715
tmin = 599616001, tmax = 599875201
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='359351', job_status='RUN', time_executed='2021-09-23 20:57:13.621237', time_epoch_executed='1632455833.62' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359351

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359351/ft1_4FGL_J1955.1-1604_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359351/ft1_4FGL_J1955.1-1604_daily_bin1390.fits outfile=/scratch/kocevski/359351/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1390.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=599616001.0 tmax=599875201.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.55
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.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/359351/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.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.49
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/359351/ltcube_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.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/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits
.....................!
real 13.02
user 12.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/359351/ltcube_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.fits outfile=/scratch/kocevski/359351/expmap_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.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/359351/ltcube_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.fits
.....................!
real 190.55
user 185.13
sys 4.73

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/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits outfile=/scratch/kocevski/359351/cmap_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits outfile=/scratch/kocevski/359351/cmap_HighResolution_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.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/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/359351/ft2_4FGL_J1955.1-1604_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359351/Model_4FGL_J1955.1-1604_daily_bin1390.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/359351/ft1_filtered_4FGL_J1955.1-1604_daily_bin1390.fits.....................!
real 59.87
user 58.49
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24458E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    78.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55974E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20739E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    41.032       1.0000         .10000E-03   10000.    
    19 'norm      '    19.359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    514.16       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8469       1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21084E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89204       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0282       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=   3648.140     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3818 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.775        48.856       -.11031E-05   -.12143E-03
   2  Prefactor     .10185E-03    9703.3       -.84455E-04** at limit **
   3  norm          78.754        205.11       -.85630E-06   -.39109E-04
   4  Prefactor     .10002E-03    1082.6        .10091E-04** at limit **
   5  Prefactor     .10001E-03    190.72       -.50168E-05** at limit **
   6  norm          .10000E-03    24.780       -.24587E-06** at limit **
   7  norm          .10000E-03    55.725       -.13066E-05** at limit **
   8  Prefactor     .10000E-03    189.50       -.21454E-05** at limit **
   9  Prefactor     .10000E-03    140.88       -.14083E-05** at limit **
  10  Prefactor     34.148        35.902        .74278E-06   -.86889E-04
  11  Prefactor     .10000E-03    11.517        .28929E-06** at limit **
  12  Prefactor     37.377        78.790        .91454E-06    .80470E-05
  13  Prefactor     .10000E-03    101.63        .46630E-06** at limit **
  14  Prefactor     9.1376        186.27        .37855E-05   -.90446E-06
  15  Prefactor     10.384        7.1636        .18543E-06    .27814E-04
  16  Prefactor     .10020E-03    7384.4       -.52952E-04** at limit **
  17  Prefactor     .10000E-03    24.199       -.14081E-06** at limit **
  18  norm          41.022        54.931        .11073E-05   -.14574E-04
  19  norm          19.360        25.647        .32790E-06   -.33583E-04
  20  Prefactor     514.18        303.24        .46326E-06   -.21891E-04
  21  norm          .10000E-03    10.759        .52587E-07** at limit **
  22  norm          .10000E-03    12.272        .74289E-07** at limit **
  23  norm          7.8468        2.8971        .86958E-07   -.26211E-03
  24  norm          .10000E-03    3.3509        .22115E-06** at limit **
  25  Prefactor     .10000E-03    24.787        .11197E-04** at limit **
  26  Normalizat    .89203        .55659       -.29663E-05   -.26029E-03
  27  Prefactor     1.0281        .15211       -.15997E-06   -.35783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.7748
  Prefactor  = 0.000101848
  norm       = 78.7543
  Prefactor  = 0.000100016
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1478
  Prefactor  = 0.0001
  Prefactor  = 37.3772
  Prefactor  = 0.0001
  Prefactor  = 9.13758
  Prefactor  = 10.3837
  Prefactor  = 0.000100203
  Prefactor  = 0.0001
  norm       = 41.022
  norm       = 19.3605
  Prefactor  = 514.181
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.84682
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.892033
  Prefactor  = 1.02812
 **********
 **   18 **HESSE 
 **********

 FCN=   3648.140     FROM HESSE     STATUS=OK           484 CALLS     4302 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.775        49.114        .73443E-04   -1.4616    
   2  Prefactor     .10185E-03    9728.3        .18289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          78.754        206.95        .45266E-04   -1.3931    
   4  Prefactor     .10002E-03    1083.9        .19043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    191.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    24.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    55.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    190.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    140.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.148        35.712        .68579E-04   -1.4539    
  11  Prefactor     .10000E-03    11.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.377        78.790        .65552E-04   -1.4484    
  13  Prefactor     .10000E-03    101.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1376        184.70        .13285E-03   -1.5103    
  15  Prefactor     10.384        7.1581        .12299E-03   -1.5063    
  16  Prefactor     .10020E-03    104.29        .16521       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          41.022        54.895        .62578E-04   -1.4426    
  19  norm          19.360        25.615        .91029E-04   -1.4828    
  20  Prefactor     514.18        302.96        .90561E-04   -1.1133    
  21  norm          .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8468        2.8911        .58492E-04   -1.5148    
  24  norm          .10000E-03    3.3675        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.918        .31826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89203        .56871        .64572E-03   -.96741    
  27  Prefactor     1.0281        .15929        .16349E-03   -.91798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03816e-09
Minuit parameter uncertainties:
  1  49.1803
  2  0.363081
  3  208.885
  4  0.00858247
  5  0.00205378
  6  2.47421e-05
  7  0.000276986
  8  0.000508753
  9  0.00045599
  10  35.7347
  11  6.91166e-05
  12  79.0102
  13  6.39033e-05
  14  82.4567
  15  7.1587
  16  0.00921184
  17  7.51601e-05
  18  54.963
  19  25.6294
  20  303.913
  21  1.39245e-05
  22  9.27565e-06
  23  2.89113
  24  1.36643e-05
  25  0.000548959
  26  0.572598
  27  0.159361
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  3.738e+01  7.901e+01  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.028e+00  1.594e-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:  8.920e-01  5.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/359351/likelihoodResults_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.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): 0
logL (Free Index) = 3648.0377381
delta logL = 0.102155470587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3648.03547258
delta logL = 0.104420987836

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3648.035     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      291 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.838        107.09        .51444E-04   -.64397E-04
   2  Index         1.4921        1.0118        .12131E-01   -.41491E-04
   3  Normalizat    .90231        .53051        .64259E-03    .47901E-04
   4  Prefactor     1.0271        .14562        .16355E-03    .21980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.838
  Index      = 1.49215
  Normalizat = 0.902309
  Prefactor  = 1.0271
 **********
 **   18 **HESSE 
 **********

 FCN=   3648.035     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.838        106.67        .10289E-04   -1.4146    
   2  Index         1.4921        1.0081        .48525E-03   -.77760    
   3  Normalizat    .90231        .53059        .25704E-04   -.96379    
   4  Prefactor     1.0271        .14565        .32709E-04   -.91832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5701e-10
Minuit parameter uncertainties:
  1  107.008
  2  1.02207
  3  0.533708
  4  0.145703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359351': 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): 0
logL (Free Index) = 3648.03547237
delta logL = 0.104421198786

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  6.084e+01  1.070e+02  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  1.492e+00  1.022e+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.027e+00  1.457e-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:  9.023e-01  5.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/359351/cmap_HighResolution_599616001_599875201_4FGL_J1955.1-1604_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-02', job_status='DONE', photon_flux_upper_limit='3.33e-07', time_completed='2021-09-23 21:09:30.584080', job_id='359351', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.89', time_epoch_completed='1632456570.58', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.04e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1390' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:09:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 359351: <4FGL_J1955.1-1604_daily_bin1390> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 20:56:44 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 20:56:51 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:56:51 2021
Terminated at Thu Sep 23 21:09:31 2021
Results reported at Thu Sep 23 21:09:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1390 298.777 -16.0715 599616001 599875201 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 :                                   737.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             358.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            767 sec.

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

