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


Performing analysis on: 4FGL_J2055.0-5218_daily_bin902
RA = 313.764, Dec = -52.3099
tmin = 473126401, tmax = 473385601
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='202814', job_status='RUN', time_executed='2021-09-25 21:07:07.732962', time_epoch_executed='1632629227.73' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202814/ft1_4FGL_J2055.0-5218_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202814/ft1_4FGL_J2055.0-5218_daily_bin902.fits outfile=/scratch/kocevski/202814/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin902.fits ra=313.764 dec=-52.3099 rad=12.0 tmin=473126401.0 tmax=473385601.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.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/202814/ltcube_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.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/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits
.....................!
real 14.53
user 14.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/202814/ltcube_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.fits outfile=/scratch/kocevski/202814/expmap_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.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/202814/ltcube_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.fits
.....................!
real 192.22
user 185.85
sys 6.00

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/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits scfile=/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits outfile=/scratch/kocevski/202814/cmap_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits scfile=/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits outfile=/scratch/kocevski/202814/cmap_HighResolution_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.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/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/202814/ft2_4FGL_J2055.0-5218_daily_bin902.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/202814/Model_4FGL_J2055.0-5218_daily_bin902.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/202814/ft1_filtered_4FGL_J2055.0-5218_daily_bin902.fits.....................!
real 54.15
user 52.83
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.846       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3593       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0614       1.0000         .10000E-03   10000.    
     4 'norm      '    20.023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.537       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13745E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.7238       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    85.938       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4961       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91299       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=   6792.809     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2412 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.842        20.352       -.47185E-05    .26719E-03
   2  norm          1.3592        1.4597        .39344E-07    .13600E-03
   3  norm          1.0626        4.3715       -.14452E-05   -.11083E-02
   4  norm          20.030        26.805       -.40076E-06    .53307E-05
   5  Prefactor     15.543        43.532        .15676E-05   -.54384E-05
   6  Prefactor     .10000E-03    330.39       -.27295E-05** at limit **
   7  Prefactor     6.4976        3.5985       -.11927E-06   -.15945E-03
   8  Prefactor     .10000E-03    9.3261       -.58483E-08** at limit **
   9  norm          6.7241        2.9200       -.65947E-07   -.96328E-04
  10  norm          2.6591        2.2741       -.66833E-07   -.11053E-03
  11  Prefactor     .10000E-03    17.788       -.10796E-07** at limit **
  12  Prefactor     .10000E-03    120.51        .77531E-06** at limit **
  13  Prefactor     .10000E-03    8.5446       -.42237E-08** at limit **
  14  Prefactor     16.077        36.933       -.24139E-05    .19611E-04
  15  Prefactor     14.519        23.822        .79644E-07   -.14727E-04
  16  Prefactor     .10000E-03    1.6064       -.16818E-08** at limit **
  17  Prefactor     .10000E-03    23.503        .14869E-07** at limit **
  18  Prefactor     .10000E-03    5.5311        .15163E-06** at limit **
  19  Prefactor     .10000E-03    .96057        .19525E-07** at limit **
  20  Prefactor     85.918        104.89       -.16161E-04    .12221E-03
  21  Normalizat    1.4961        .24431        .11489E-05    .41393E-05
  22  Prefactor     .91297        .12986        .14012E-06    .90297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8424
  norm       = 1.35919
  norm       = 1.06264
  norm       = 20.0304
  Prefactor  = 15.543
  Prefactor  = 0.0001
  Prefactor  = 6.49761
  Prefactor  = 0.0001
  norm       = 6.72406
  norm       = 2.65905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0771
  Prefactor  = 14.5192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.9182
  Normalizat = 1.49606
  Prefactor  = 0.912973
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.809     FROM HESSE     STATUS=OK           342 CALLS     2754 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.842        19.347        .92261E-04   -1.4840    
   2  norm          1.3592        1.4629        .10016E-03   -1.5475    
   3  norm          1.0626        5.1207        .34917E-03   -1.5502    
   4  norm          20.030        26.774        .89510E-04   -1.4813    
   5  Prefactor     15.543        43.474        .10161E-03   -1.4919    
   6  Prefactor     .10000E-03    338.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4976        3.6020        .11123E-03   -1.5198    
   8  Prefactor     .10000E-03    9.3460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7241        2.9277        .88124E-04   -1.5189    
  10  norm          2.6591        2.2734        .11172E-03   -1.5382    
  11  Prefactor     .10000E-03    17.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    121.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.077        37.041        .99921E-04   -1.4906    
  15  Prefactor     14.519        23.866        .10512E-03   -1.4946    
  16  Prefactor     .10000E-03    1.6184        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .96135        .78885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     85.918        101.97        .21668E-03   -1.3851    
  21  Normalizat    1.4961        .29346        .30955E-03   -.77889    
  22  Prefactor     .91297        .15583        .20845E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0993e-09
Minuit parameter uncertainties:
  1  19.3539
  2  1.46298
  3  4.66582
  4  26.7905
  5  43.563
  6  0.000334799
  7  3.60212
  8  3.58927e-06
  9  2.92781
  10  2.27346
  11  3.38404e-06
  12  0.000158978
  13  4.02155e-07
  14  37.0936
  15  23.8816
  16  2.40054e-08
  17  2.10458e-05
  18  3.60586e-05
  19  1.01976e-06
  20  102.179
  21  0.293791
  22  0.155911
Done.

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

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.589e-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:  9.130e-01  1.559e-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.496e+00  2.938e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202814/likelihoodResults_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.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) = 6792.80980288
delta logL = -0.000509554646669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6792.80929345
delta logL = -1.20244294521e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4515       1.0000          .0000       10.000    
     3 'Normalizat'    1.4960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91301       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6792.809     FROM MIGRAD    STATUS=FAILED        94 CALLS      247 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    9.3480        .18142E-01** at limit **
   2  Index         2.2228        6.4555        .50000        .30661E-05
   3  Normalizat    1.4961        .59460E-02    .30955E-03    .20934E-05
   4  Prefactor     .91297        .32461E-02    .20845E-03    .30542E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6792.809     FROM SIMPLEX   STATUS=UNCHANGED    108 CALLS      355 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    9.3480        .59499E-03** at limit **
   2  Index         2.2228        6.4555        .27557E-02    .30661E-05
   3  Normalizat    1.4961        .59460E-02    .69883E-05    .20934E-05
   4  Prefactor     .91297        .32461E-02    .45735E-05    .30542E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6792.809     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      427 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.530        .50562E-03** at limit **
   2  Index         2.0831        7.3793        .50000       -.78444E-08
   3  Normalizat    1.4961        .28194        .24764E-05    .13772E-04
   4  Prefactor     .91297        .15405        .16676E-05    .19089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08315
  Normalizat = 1.49606
  Prefactor  = 0.912972
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.809     FROM HESSE     STATUS=OK            29 CALLS      456 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.297        .10112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0831        5.4474        .50000       -.62287    
   3  Normalizat    1.4961        .28602        .49528E-06   -.77889    
   4  Prefactor     .91297        .15700        .33352E-06   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12682e-13
Minuit parameter uncertainties:
  1  7.80049e-06
  2  289.216
  3  0.286325
  4  0.157075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202814': 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) = 6792.80929297
delta logL = 3.55944393959e-07

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.800e-06  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.083e+00  2.892e+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:  9.130e-01  1.571e-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.496e+00  2.863e-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/202814/cmap_HighResolution_473126401_473385601_4FGL_J2055.0-5218_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-09-25 21:18:37.115484', job_id='202814', GAL2='0.91', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632629917.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='902' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 202814: <4FGL_J2055.0-5218_daily_bin902> in cluster <slac> Done

Job <4FGL_J2055.0-5218_daily_bin902> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 21:05:36 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:06:54 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:06:54 2021
Terminated at Sat Sep 25 21:18:37 2021
Results reported at Sat Sep 25 21:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin902 313.764 -52.3099 473126401 473385601 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 :                                   684.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            781 sec.

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

