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


Performing analysis on: 4FGL_J2055.0-5218_daily_bin1136
RA = 313.764, Dec = -52.3099
tmin = 533779201, tmax = 534038401
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='204250', job_status='RUN', time_executed='2021-09-25 21:12:08.142342', time_epoch_executed='1632629528.14' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204250/ft1_4FGL_J2055.0-5218_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204250/ft1_4FGL_J2055.0-5218_daily_bin1136.fits outfile=/scratch/kocevski/204250/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1136.fits ra=313.764 dec=-52.3099 rad=12.0 tmin=533779201.0 tmax=534038401.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.50
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.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/204250/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1136.fits evtable="EVENTS" outfile="/scratch/kocevski/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/204250/ltcube_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.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/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits
.....................!
real 13.77
user 13.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/204250/ltcube_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.fits outfile=/scratch/kocevski/204250/expmap_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.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/204250/ltcube_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.fits
.....................!
real 192.31
user 187.05
sys 4.49

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/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits outfile=/scratch/kocevski/204250/cmap_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits outfile=/scratch/kocevski/204250/cmap_HighResolution_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/204250/ft2_4FGL_J2055.0-5218_daily_bin1136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204250/Model_4FGL_J2055.0-5218_daily_bin1136.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/204250/ft1_filtered_4FGL_J2055.0-5218_daily_bin1136.fits.....................!
real 68.19
user 66.72
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10862E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .21396       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6024       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.649       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11307       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99197       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0841       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=   9210.899     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2479 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.504       -.43168E-06** at limit **
   2  norm          .21413        1.3207        .26128E-06   -.15352E-03
   3  norm          .10000E-03    1.1979       -.73081E-07** at limit **
   4  norm          .10000E-03    7.5222        .23491E-07** at limit **
   5  Prefactor     .10000E-03    30.379        .35425E-06** at limit **
   6  Prefactor     59.104        58.525       -.51702E-05    .49980E-04
   7  Prefactor     .49910        1.5475        .37579E-06   -.21099E-03
   8  Prefactor     .10000E-03    6.0368        .72364E-07** at limit **
   9  norm          3.6044        1.6290        .51674E-07    .58042E-04
  10  norm          1.2383        1.3450        .10118E-07    .33819E-04
  11  Prefactor     56.675        44.645       -.58306E-05    .50044E-04
  12  Prefactor     .10000E-03    75.079       -.82237E-05** at limit **
  13  Prefactor     1.4632        6.6887        .92753E-06   -.56407E-04
  14  Prefactor     42.278        30.531       -.87269E-07   -.17703E-05
  15  Prefactor     1.2324        37.497        .25545E-04    .43115E-04
  16  Prefactor     .88814        2.1738        .49570E-06    .31076E-03
  17  Prefactor     .98490        29.374        .24046E-05   -.15276E-03
  18  Prefactor     .10000E-03    4.6195       -.13522E-06** at limit **
  19  Prefactor     1.9235        2.0923       -.11292E-07   -.40796E-04
  20  Prefactor     .10000E-03    72.156        .74479E-05** at limit **
  21  Normalizat    .99035        .19720       -.10571E-05    .17129E-06
  22  Prefactor     1.0846        .10698        .62624E-06    .67758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.214126
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.1037
  Prefactor  = 0.499101
  Prefactor  = 0.0001
  norm       = 3.60438
  norm       = 1.23832
  Prefactor  = 56.6752
  Prefactor  = 0.0001
  Prefactor  = 1.46317
  Prefactor  = 42.2784
  Prefactor  = 1.2324
  Prefactor  = 0.888136
  Prefactor  = 0.984897
  Prefactor  = 0.0001
  Prefactor  = 1.92351
  Prefactor  = 0.000100001
  Normalizat = 0.990347
  Prefactor  = 1.08465
 **********
 **   18 **HESSE 
 **********

 FCN=   9210.899     FROM HESSE     STATUS=OK           358 CALLS     2837 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21413        1.3236        .21282E-03   -1.5615    
   3  norm          .10000E-03    1.2088        .10256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.5282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.104        58.493        .26101E-03   -1.4169    
   7  Prefactor     .49910        1.9751        .19778E-02   -1.5567    
   8  Prefactor     .10000E-03    6.0510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6044        1.6276        .78950E-04   -1.5328    
  10  norm          1.2383        1.3351        .11302E-03   -1.5485    
  11  Prefactor     56.675        44.701        .26649E-03   -1.4201    
  12  Prefactor     .10000E-03    75.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4632        6.6644        .35574E-03   -1.5466    
  14  Prefactor     42.278        30.462        .61670E-04   -1.4407    
  15  Prefactor     1.2324        37.467        .20514E-02   -1.5486    
  16  Prefactor     .88814        1.9354        .21032E-02   -1.5519    
  17  Prefactor     .98490        29.137        .14058       -1.5509    
  18  Prefactor     .10000E-03    4.6493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9235        2.0801        .14069E-03   -1.5431    
  20  Prefactor     .10000E-03    72.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99035        .23171        .32571E-03   -.93355    
  22  Prefactor     1.0846        .12734        .17982E-03   -.89959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13348e-08
Minuit parameter uncertainties:
  1  0.000140235
  2  1.06453
  3  2.7702e-06
  4  3.22085e-06
  5  0.000160743
  6  58.5503
  7  1.97539
  8  4.03184e-06
  9  1.62765
  10  1.33513
  11  44.7278
  12  0.000256718
  13  6.24631
  14  30.4734
  15  13.5991
  16  1.93551
  17  10.7191
  18  2.60248e-05
  19  2.08018
  20  0.000423375
  21  0.231943
  22  0.127377
Done.

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

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.032e-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:  1.085e+00  1.274e-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.903e-01  2.319e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204250/likelihoodResults_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.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) = 9210.90009922
delta logL = -0.000787380102338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9210.89931184
delta logL = -7.62156560086e-10

Fit tolerance = 1e-08

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

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

 FCN=   9210.899     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.581        .90712E-02** at limit **
   2  Index         2.4468        6.1201        .50000        .93487E-05
   3  Normalizat    .99035        .18225        .73612E-01    .10672E-04
   4  Prefactor     1.0846        .10536        .38201E-01   -.18855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44682
  Normalizat = 0.990347
  Prefactor  = 1.08464
 **********
 **   18 **HESSE 
 **********

 FCN=   9210.899     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4468        6.0093        .50000       -.53592    
   3  Normalizat    .99035        .21436        .32571E-03   -.93355    
   4  Prefactor     1.0846        .12415        .17982E-03   -.89959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59566e-10
Minuit parameter uncertainties:
  1  1.66342e-05
  2  6.24101
  3  0.214542
  4  0.124187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204250': 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) = 9210.89931181
delta logL = 2.88964656647e-08

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.663e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.447e+00  6.241e+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.085e+00  1.242e-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.903e-01  2.145e-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/204250/cmap_HighResolution_533779201_534038401_4FGL_J2055.0-5218_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-25 21:26:02.007272', job_id='204250', GAL2='1.08', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632630362.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1136' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 204250: <4FGL_J2055.0-5218_daily_bin1136> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin1136 313.764 -52.3099 533779201 534038401 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 :                                   813.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            927 sec.

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

