/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 130 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_J2055.0-5218_daily_bin1280
RA = 313.764, Dec = -52.3099
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='205533', job_status='RUN', time_executed='2021-09-25 21:20:38.330986', time_epoch_executed='1632630038.33' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205533

Creating custom pfile directory:
/scratch/kocevski/205533/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/205533/ft1_4FGL_J2055.0-5218_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/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205533/ft1_4FGL_J2055.0-5218_daily_bin1280.fits outfile=/scratch/kocevski/205533/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1280.fits ra=313.764 dec=-52.3099 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.07
user 2.86
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_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/205533/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/205533/ltcube_571104001_571363201_4FGL_J2055.0-5218_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/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits
.....................!
real 14.96
user 14.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/205533/ltcube_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits outfile=/scratch/kocevski/205533/expmap_571104001_571363201_4FGL_J2055.0-5218_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/205533/ltcube_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits
.....................!
real 191.68
user 186.06
sys 5.22

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
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2055.0-5218 @ 313.764 -52.3099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits outfile=/scratch/kocevski/205533/cmap_571104001_571363201_4FGL_J2055.0-5218_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=313.764 yref=-52.3099 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits outfile=/scratch/kocevski/205533/cmap_HighResolution_571104001_571363201_4FGL_J2055.0-5218_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=313.764 yref=-52.3099 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205533/Model_4FGL_J2055.0-5218_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 GAL_V02
Working on...
/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits.....................!
real 24.89
user 23.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits', '/scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits', expMap='/scratch/kocevski/205533/expmap_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits', expCube='/scratch/kocevski/205533/ltcube_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/205533/Model_4FGL_J2055.0-5218_daily_bin1280.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2055.0-5218'

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.666e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.460e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/205533/ft1_filtered_4FGL_J2055.0-5218_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/205533/ft2_4FGL_J2055.0-5218_daily_bin1280.fits
Exposure map: /scratch/kocevski/205533/expmap_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits
Exposure cube: /scratch/kocevski/205533/ltcube_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/205533/Model_4FGL_J2055.0-5218_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) = 1799.68756841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.110       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0144       1.0000         .10000E-03   10000.    
     3 'norm      '    .65427       1.0000         .10000E-03   10000.    
     4 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15555E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31301E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.757       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10950       1.0000         .10000E-03   10000.    
    13 'Prefactor '    838.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1031.6       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41014E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17110E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .13497       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1794.710     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     2267 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.542        29.157       -.52567E-05   -.26303E-04
   2  norm          3.0171        2.1449        .32730E-06    .12055E-04
   3  norm          .48054        18.929        .47472E-05   -.16939E-04
   4  norm          .10000E-03    31.350        .54958E-05** at limit **
   5  Prefactor     .10000E-03    40.499       -.36432E-05** at limit **
   6  Prefactor     .10000E-03    135.74        .31261E-05** at limit **
   7  Prefactor     .10000E-03    2.5308        .15865E-06** at limit **
   8  Prefactor     33.207        41.550       -.16279E-05    .30188E-04
   9  norm          .10000E-03    5.5148       -.65299E-05** at limit **
  10  norm          .10000E-03    .87701       -.65348E-07** at limit **
  11  Prefactor     103.86        600.52       -.20570E-04   -.13994E-04
  12  Prefactor     .10000E-03    261.05       -.13007E-04** at limit **
  13  Prefactor     .10006E-03    762.98        .69980E-05** at limit **
  14  Prefactor    10000.0        1264.0       -.12215E-04** at limit **
  15  Prefactor     1022.3        670.10        .73800E-05    .18718E-05
  16  Prefactor     .10000E-03    100.78        .19478E-04** at limit **
  17  Prefactor     .10000E-03    57.962       -.66821E-05** at limit **
  18  Prefactor     10.977        19.198        .10651E-05    .30379E-04
  19  Prefactor     .10000E-03    4.1040        .85840E-06** at limit **
  20  Prefactor     .10000E-03    132.64       -.20437E-05** at limit **
  21  Normalizat    .93869E-01    .63909        .57182E-04    .92458E-05
  22  Prefactor     1.0800        .24318       -.69451E-05    .37331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.5418
  norm       = 3.01713
  norm       = 0.480538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 33.2068
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 103.863
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 10000
  Prefactor  = 1022.26
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9773
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.0938692
  Prefactor  = 1.08004
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.710     FROM HESSE     STATUS=NOT POSDEF   386 CALLS     2653 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.542        32.732        .17678E-02   -1.4584    
   2  norm          3.0171        2.0987        .58440E-02   -1.5361    
   3  norm          .48054        8.7090        .41236E-01   -1.5569    
   4  norm          .10000E-03    28.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.105        .10221E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    129.15        .91784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.207        43.253        .17503E-02   -1.4555    
   9  norm          .10000E-03    5.2746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .82129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     103.86        427.75        .10846E-02   -1.3666    
  12  Prefactor     .10000E-03    247.27        .95564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    720.76        .36084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        1164.3        .19248E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1022.3        1503.9        .32877E-03   -.91991    
  16  Prefactor     .10000E-03    97.363        .97316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.311        .90733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.977        18.782        .30417E-02   -1.5045    
  19  Prefactor     .10000E-03    3.7751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    124.50        .91083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93869E-01    9.7520        .20328       -1.3873    
  22  Prefactor     1.0800        1.4159        .38816E-01   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35438e-08
Minuit parameter uncertainties:
  1  32.7505
  2  2.09878
  3  4.09173
  4  9.87443e-05
  5  0.000215216
  6  0.000847822
  7  3.10346e-06
  8  43.2944
  9  5.67244e-05
  10  3.76892e-07
  11  426.932
  12  0.000348749
  13  0.0130219
  14  0.00080688
  15  1573.76
  16  0.000193411
  17  6.61537e-05
  18  18.7919
  19  6.99025e-06
  20  0.000721391
  21  2.66726
  22  1.47032
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1794.71043882

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  3.321e+01  4.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.460e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.080e+00  1.470e+00  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.387e-02  2.667e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 313.764 -52.310
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.94e-08 +/- 9.05e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 2.75e-05

TS (Fixed Index): 1.24
Ra Dec: 313.764 -52.310
Photon Flux Upper Limit: 3.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205533/likelihoodResults_571104001_571363201_4FGL_J2055.0-5218_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): 0
logL (Free Index) = 1794.38655056
delta logL = 0.323888251678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1794.33495659
delta logL = 0.37548222974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.935       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .11389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0708       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   1794.335     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      284 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.922        69.070        .25291E-03    .66973E-04
   2  Index         1.7868        .67222        .66192E-02    .10607E-04
   3  Normalizat    .11381        .55653        .77001E-02    .30763E-04
   4  Prefactor     1.0709        .26107        .14218E-03    .27586E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.9217
  Index      = 1.78681
  Normalizat = 0.113809
  Prefactor  = 1.07091
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.335     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.922        68.879        .50582E-04   -1.4120    
   2  Index         1.7868        .67036        .26477E-03   -.69794    
   3  Normalizat    .11381        .48956        .30801E-03   -1.3666    
   4  Prefactor     1.0709        .24461        .56872E-05   -.90402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59767e-10
Minuit parameter uncertainties:
  1  68.9664
  2  0.673833
  3  0.457123
  4  0.244871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205533': 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) = 1794.33495636
delta logL = 0.375482454203

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  6.292e+01  6.897e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.787e+00  6.738e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.071e+00  2.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.138e-01  4.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 313.764 -52.310
Photon Index (Free Index): 1.79 +/- 0.67
Photon Flux (Free Index): 5.08e-08 +/- 6.32e-08
Energy Flux (Free Index): 6.32e-05 +/- 1.14e-04

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/205533/cmap_HighResolution_571104001_571363201_4FGL_J2055.0-5218_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-02', comment='SUCCESS', photon_flux='6.94e-08', energy_flux2='6.32e-05', photon_flux_error='9.05e-08', dlogl='3.75e-01', energy_flux='2.11e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-25 21:27:43.133916', photon_index_error2='0.67', photon_index2='1.79', ts='1.24', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='3.30e-07', energy_flux_error2='1.14e-04', EG='0.09', time_epoch_completed='1632630463.13', return_code='102', job_id='205533', GAL2='1.07', EG2='0.11', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='6.32e-08', ts2='1.99', photon_index='2.46' WHERE bin_id='1280' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:27:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 205533: <4FGL_J2055.0-5218_daily_bin1280> in cluster <slac> Done

Job <4FGL_J2055.0-5218_daily_bin1280> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 21:15:27 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:18:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 21:18:19 2021
Terminated at Sat Sep 25 21:27:43 2021
Results reported at Sat Sep 25 21:27:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin1280 313.764 -52.3099 571104001 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2055.0-5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   421.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             259.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            736 sec.

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

