/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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2055.0-5218_daily_bin248
RA = 313.764, Dec = -52.3099
tmin = 303609601, tmax = 303868801
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='198519', job_status='RUN', time_executed='2021-09-25 20:50:50.875225', time_epoch_executed='1632628250.88' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198519/ft1_4FGL_J2055.0-5218_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198519/ft1_4FGL_J2055.0-5218_daily_bin248.fits outfile=/scratch/kocevski/198519/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin248.fits ra=313.764 dec=-52.3099 rad=12.0 tmin=303609601.0 tmax=303868801.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.48
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/198519/ltcube_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.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/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits
.....................!
real 14.00
user 13.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/198519/ltcube_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.fits outfile=/scratch/kocevski/198519/expmap_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.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/198519/ltcube_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.fits
.....................!
real 192.12
user 186.78
sys 4.65

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/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits scfile=/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits outfile=/scratch/kocevski/198519/cmap_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits scfile=/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits outfile=/scratch/kocevski/198519/cmap_HighResolution_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/198519/ft2_4FGL_J2055.0-5218_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198519/Model_4FGL_J2055.0-5218_daily_bin248.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/198519/ft1_filtered_4FGL_J2055.0-5218_daily_bin248.fits.....................!
real 58.17
user 55.56
sys 1.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.660       1.0000         .10000E-03   10000.    
     2 'norm      '    .14081E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4690       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.4604       1.0000         .10000E-03   10000.    
    10 'norm      '    .21719E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11928E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94525       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99053       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=   6993.171     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2402 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.661        20.433       -.19368E-05   -.13193E-04
   2  norm          .10000E-03    .97620       -.20989E-06** at limit **
   3  norm          7.4691        4.4053       -.16730E-06   -.11481E-03
   4  norm          .10000E-03    6.6540       -.34086E-06** at limit **
   5  Prefactor     40.315        24.676       -.37038E-06    .11031E-05
   6  Prefactor     .10000E-03    15.743        .27920E-05** at limit **
   7  Prefactor     .10000E-03    1.5761       -.18746E-06** at limit **
   8  Prefactor     .10000E-03    26.344        .98949E-06** at limit **
   9  norm          9.4603        2.6490       -.21144E-06   -.23216E-04
  10  norm          .10000E-03    1.2020       -.34000E-06** at limit **
  11  Prefactor     .10000E-03    15.696       -.30226E-05** at limit **
  12  Prefactor     .10000E-03    44.135       -.60625E-05** at limit **
  13  Prefactor     10.292        7.2765        .50616E-06   -.27280E-04
  14  Prefactor     55.993        33.645       -.79743E-07   -.60805E-05
  15  Prefactor     31.045        25.634       -.19896E-05    .36814E-05
  16  Prefactor     .10000E-03    1.4270        .17576E-06** at limit **
  17  Prefactor     56.757        55.139       -.11409E-03   -.16197E-03
  18  Prefactor     5.5070        11.378        .35158E-04    .26781E-03
  19  Prefactor     .10000E-03    1.6477       -.30192E-06** at limit **
  20  Prefactor     .10000E-03    138.71        .48121E-04** at limit **
  21  Normalizat    .94520        .22199        .12551E-04   -.37857E-03
  22  Prefactor     .99056        .11891       -.31841E-05    .73510E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6612
  norm       = 0.0001
  norm       = 7.46911
  norm       = 0.0001
  Prefactor  = 40.3153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.46032
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2916
  Prefactor  = 55.9933
  Prefactor  = 31.0448
  Prefactor  = 0.0001
  Prefactor  = 56.7574
  Prefactor  = 5.50704
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.945201
  Prefactor  = 0.99056
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.171     FROM HESSE     STATUS=OK           342 CALLS     2744 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.661        20.412        .10461E-03   -1.4942    
   2  norm          .10000E-03    5.1371        .15919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4691        4.4006        .12918E-03   -1.5161    
   4  norm          .10000E-03    6.6543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        24.674        .63131E-04   -1.4437    
   6  Prefactor     .10000E-03    15.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6088        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.4603        2.6498        .68956E-04   -1.5093    
  10  norm          .10000E-03    6.6890        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.292        7.2828        .12490E-03   -1.5066    
  14  Prefactor     55.993        33.639        .53607E-04   -1.4210    
  15  Prefactor     31.045        25.717        .71907E-04   -1.4593    
  16  Prefactor     .10000E-03    1.4348        .97528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.757        55.197        .26592E-03   -1.4200    
  18  Prefactor     5.5070        11.412        .17131E-03   -1.5239    
  19  Prefactor     .10000E-03    1.6646        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    138.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94520        .26572        .33658E-03   -.94890    
  22  Prefactor     .99056        .14244        .18424E-03   -.93045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53666e-09
Minuit parameter uncertainties:
  1  20.4212
  2  4.82546e-05
  3  4.40076
  4  5.44788e-07
  5  24.6805
  6  7.99228e-06
  7  2.31745e-05
  8  0.000241649
  9  2.64987
  10  0.000176865
  11  1.33578e-05
  12  0.000100077
  13  7.28338
  14  33.6508
  15  25.7264
  16  2.27857e-05
  17  55.247
  18  11.4162
  19  3.8538e-05
  20  0.00151006
  21  0.266087
  22  0.142499
Done.

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

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.416e-04  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:  9.906e-01  1.425e-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:  9.452e-01  2.661e-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: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198519/likelihoodResults_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.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) = 6993.17125637
delta logL = -0.000178963437065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6993.05640226
delta logL = 0.114675143835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45778       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2585       1.0000          .0000       10.000    
     3 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0012       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6993.056     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      306 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45512        100.87        .11417E-03   -.20424E-03
   2  Index         4.2626        5.0912        .40748E-02   -.11556E-04
   3  Normalizat    .91003        .23108        .34245E-03   -.18359E-04
   4  Prefactor     1.0011        .12753        .18336E-03   -.20832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.455121
  Index      = 4.2626
  Normalizat = 0.910027
  Prefactor  = 1.00113
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.056     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45512        5.8696        .45666E-05   -1.5573    
   2  Index         4.2626        3.1606        .16299E-03   -.14802    
   3  Normalizat    .91003        .25700        .13698E-04   -.96109    
   4  Prefactor     1.0011        .14071        .73345E-05   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74076e-12
Minuit parameter uncertainties:
  1  3.26892
  2  3.42879
  3  0.257344
  4  0.140763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198519': 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) = 6993.05640009
delta logL = 0.11467731434

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  4.551e-01  3.269e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  4.263e+00  3.429e+00  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.001e+00  1.408e-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:  9.100e-01  2.573e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198519/cmap_HighResolution_303609601_303868801_4FGL_J2055.0-5218_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2021-09-25 21:02:24.640115', job_id='198519', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.95', time_epoch_completed='1632628944.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.15e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='248' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:02:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 198519: <4FGL_J2055.0-5218_daily_bin248> in cluster <slac> Done

Job <4FGL_J2055.0-5218_daily_bin248> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 20:50:15 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 20:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 20:50:31 2021
Terminated at Sat Sep 25 21:02:26 2021
Results reported at Sat Sep 25 21:02:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin248 313.764 -52.3099 303609601 303868801 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 :                                   686.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            731 sec.

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

