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


Performing analysis on: 4FGL_J2055.0-5218_daily_bin1096
RA = 313.764, Dec = -52.3099
tmin = 523411201, tmax = 523670401
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='204188', job_status='RUN', time_executed='2021-09-25 21:14:58.155381', time_epoch_executed='1632629698.16' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204188/ft1_4FGL_J2055.0-5218_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204188/ft1_4FGL_J2055.0-5218_daily_bin1096.fits outfile=/scratch/kocevski/204188/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1096.fits ra=313.764 dec=-52.3099 rad=12.0 tmin=523411201.0 tmax=523670401.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.57
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.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/204188/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/204188/ltcube_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.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/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits
.....................!
real 14.64
user 14.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/204188/ltcube_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits outfile=/scratch/kocevski/204188/expmap_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.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/204188/ltcube_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits
.....................!
real 194.27
user 189.01
sys 4.88

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/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits outfile=/scratch/kocevski/204188/cmap_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits outfile=/scratch/kocevski/204188/cmap_HighResolution_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204188/Model_4FGL_J2055.0-5218_daily_bin1096.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/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits.....................!
real 51.40
user 49.95
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits', '/scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits', expMap='/scratch/kocevski/204188/expmap_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits', expCube='/scratch/kocevski/204188/ltcube_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204188/Model_4FGL_J2055.0-5218_daily_bin1096.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/204188/ft1_filtered_4FGL_J2055.0-5218_daily_bin1096.fits
Spacecraft file(s): /scratch/kocevski/204188/ft2_4FGL_J2055.0-5218_daily_bin1096.fits
Exposure map: /scratch/kocevski/204188/expmap_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits
Exposure cube: /scratch/kocevski/204188/ltcube_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204188/Model_4FGL_J2055.0-5218_daily_bin1096.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) = 6023.47904746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1927       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6557       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .54066       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24927E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62850E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6950       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75868       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.

 FCN=   6023.472     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2355 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2877        68.162        .60692E-05    .24902E-04
   2  norm          2.6559        1.6868        .13826E-07   -.94768E-04
   3  norm          .10000E-03    1.3138        .28660E-07** at limit **
   4  norm          .10000E-03    11.320        .41680E-07** at limit **
   5  Prefactor     .10000E-03    10.201        .61444E-07** at limit **
   6  Prefactor     5.8364        88.855        .48882E-06   -.12026E-05
   7  Prefactor     1.9382        2.6855        .29324E-06    .78871E-04
   8  Prefactor     .10000E-03    8.3304        .12335E-06** at limit **
   9  norm          .54129        1.9568        .16958E-05    .31638E-03
  10  norm          .10000E-03    .84381       -.57463E-06** at limit **
  11  Prefactor     .10000E-03    112.38        .13232E-05** at limit **
  12  Prefactor     18.603        179.27       -.35543E-05   -.33920E-04
  13  Prefactor     .10000E-03    3.5094        .14500E-06** at limit **
  14  Prefactor     .10000E-03    121.06        .69238E-06** at limit **
  15  Prefactor     .10000E-03    21.396        .22508E-06** at limit **
  16  Prefactor     .10000E-03    1.8961        .10748E-06** at limit **
  17  Prefactor     32.246        55.075       -.15323E-06   -.14569E-04
  18  Prefactor     15.503        16.028       -.64126E-06   -.22976E-03
  19  Prefactor     .10005E-03    3.7948        .12894E-05** at limit **
  20  Prefactor     .10000E-03    245.02       -.25142E-05** at limit **
  21  Normalizat    1.6951        .27059        .29675E-05   -.44331E-03
  22  Prefactor     .75853        .13936       -.32939E-05   -.29807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28775
  norm       = 2.65586
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.83638
  Prefactor  = 1.93817
  Prefactor  = 0.0001
  norm       = 0.541286
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.6035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2464
  Prefactor  = 15.5034
  Prefactor  = 0.00010005
  Prefactor  = 0.000100003
  Normalizat = 1.6951
  Prefactor  = 0.758532
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.472     FROM HESSE     STATUS=OK           336 CALLS     2691 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2877        70.774        .41679E-03   -1.5481    
   2  norm          2.6559        1.6896        .78073E-04   -1.5382    
   3  norm          .10000E-03    1.3179        .86858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8364        88.791        .16632E-03   -1.5225    
   7  Prefactor     1.9382        2.6757        .14397E-03   -1.5430    
   8  Prefactor     .10000E-03    8.3413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .54129        2.0351        .19929E-03   -1.5561    
  10  norm          .10000E-03    .85101        .69686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    112.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.603        181.53        .92559E-04   -1.4845    
  13  Prefactor     .10000E-03    3.5189        .14198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    124.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9110        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.246        55.026        .70570E-04   -1.4572    
  18  Prefactor     15.503        15.920        .10157E-03   -1.4920    
  19  Prefactor     .10005E-03    17.021        .26456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    245.33        .21039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6951        .29432        .27692E-03   -.72434    
  22  Prefactor     .75853        .15118        .20926E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49188e-09
Minuit parameter uncertainties:
  1  19.1165
  2  1.68965
  3  4.70307e-08
  4  3.21973e-06
  5  5.14873e-06
  6  45.6095
  7  2.67587
  8  2.16024e-06
  9  2.03534
  10  8.21336e-06
  11  0.000560883
  12  116.69
  13  2.05803e-06
  14  0.000129749
  15  2.1055e-05
  16  1.75677e-06
  17  55.1123
  18  15.924
  19  0.00184184
  20  0.00160897
  21  0.294627
  22  0.151258
Done.

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

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.160e-06  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:  7.585e-01  1.513e-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.695e+00  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 313.764 -52.310
Photon Flux Upper Limit: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204188/likelihoodResults_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.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) = 6023.47296899
delta logL = -0.000569915171582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6023.47239908
delta logL = -1.5897967387e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4420       1.0000          .0000       10.000    
     3 'Normalizat'    1.6951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75854       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=   6023.472     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10305E-03    8.0148        .18142E-01** at limit **
   2  Index         2.3348        7.3348        .50000        .15950E-04
   3  Normalizat    1.6951        .57414E-02    .27691E-03    .87177E-04
   4  Prefactor     .75853        .30709E-02    .20926E-03   -.49656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103049
  Index      = 2.33483
  Normalizat = 1.69511
  Prefactor  = 0.758529
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.472     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10305E-03    102.35        .22830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3348        8.2990        .50000       -.56218    
   3  Normalizat    1.6951        .20722E-01    .55382E-04   -.72434    
   4  Prefactor     .75853        .11084E-01    .83704E-05   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1162e-09
Minuit parameter uncertainties:
  1  0.035391
  2  519.777
  3  0.0207221
  4  0.0110836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204188': 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) = 6023.47239874
delta logL = 3.39939106198e-07

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.030e-04  3.539e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.335e+00  5.198e+02  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:  7.585e-01  1.108e-02  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.695e+00  2.072e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 313.764 -52.310

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/204188/cmap_HighResolution_523411201_523670401_4FGL_J2055.0-5218_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-25 21:25:40.755998', job_id='204188', GAL2='0.76', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1632630340.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1096' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 204188: <4FGL_J2055.0-5218_daily_bin1096> in cluster <slac> Done

Job <4FGL_J2055.0-5218_daily_bin1096> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 21:10:30 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:11:16 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:11:16 2021
Terminated at Sat Sep 25 21:25:41 2021
Results reported at Sat Sep 25 21:25:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin1096 313.764 -52.3099 523411201 523670401 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 :                                   640.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            911 sec.

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

