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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1616
RA = 163.628, Dec = 22.1913
tmin = 658195201, tmax = 658454401
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='301201', job_status='RUN', time_executed='2021-12-07 21:22:47.868772', time_epoch_executed='1638940967.87' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301201

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301201/ft1_4FGL_J1054.5+2211_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301201/ft1_4FGL_J1054.5+2211_daily_bin1616.fits outfile=/scratch/kocevski/301201/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1616.fits ra=163.628 dec=22.1913 rad=12.0 tmin=658195201.0 tmax=658454401.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 4.85
user 4.58
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.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/301201/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1616.fits evtable="EVENTS" outfile="/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.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.60
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/301201/ltcube_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.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/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits
.....................!
real 18.29
user 17.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/301201/ltcube_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits outfile=/scratch/kocevski/301201/expmap_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.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/301201/ltcube_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits
.....................!
real 196.39
user 190.76
sys 5.09

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

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits outfile=/scratch/kocevski/301201/cmap_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.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=163.628 yref=22.1913 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.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits outfile=/scratch/kocevski/301201/cmap_HighResolution_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.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=163.628 yref=22.1913 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.59
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301201/Model_4FGL_J1054.5+2211_daily_bin1616.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/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits.....................!
real 64.31
user 62.68
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits', '/scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits', expMap='/scratch/kocevski/301201/expmap_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits', expCube='/scratch/kocevski/301201/ltcube_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/301201/Model_4FGL_J1054.5+2211_daily_bin1616.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/301201/ft1_filtered_4FGL_J1054.5+2211_daily_bin1616.fits
Spacecraft file(s): /scratch/kocevski/301201/ft2_4FGL_J1054.5+2211_daily_bin1616.fits
Exposure map: /scratch/kocevski/301201/expmap_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits
Exposure cube: /scratch/kocevski/301201/ltcube_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/301201/Model_4FGL_J1054.5+2211_daily_bin1616.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) = 6682.83882316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7633       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.869       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95791       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6682.814     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     1855 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2099        8.2998        .69123E-07   -.13313E-03
   2  Prefactor     .10000E-03    43.689       -.60600E-05** at limit **
   3  Prefactor     .10000E-03    35.300        .95544E-05** at limit **
   4  Prefactor     .10000E-03    2.8898       -.19163E-08** at limit **
   5  Prefactor     .10000E-03    .91587        .16917E-07** at limit **
   6  Prefactor     12.131        6.2177       -.38816E-06    .54519E-04
   7  Prefactor     8.9628        9.3063       -.13587E-06   -.29389E-04
   8  Prefactor     .10000E-03    21.261        .35569E-05** at limit **
   9  Prefactor     2.2059        8.7036       -.17460E-05   -.30085E-03
  10  Prefactor     21.294        10.697       -.17838E-07   -.11017E-04
  11  Prefactor     .10000E-03    7.1968        .45680E-07** at limit **
  12  norm          1.7634        1.1082       -.37574E-08   -.16612E-03
  13  Prefactor     .10000E-03    .66239       -.71745E-08** at limit **
  14  Prefactor     .10000E-03    1.8750        .33510E-08** at limit **
  15  norm          12.869        9.8463       -.59852E-06   -.73749E-03
  16  norm          2.0456        8.5706       -.15420E-05   -.33575E-03
  17  Prefactor     6.8183        7.1063        .11009E-06   -.32374E-04
  18  Prefactor     .10000E-03    10.342       -.34170E-07** at limit **
  19  Prefactor     .10000E-03    25.157       -.76220E-05** at limit **
  20  Normalizat    .95793        .15891        .48634E-06    .94294E-05
  21  Prefactor     1.0896        .16945        .57567E-07    .35248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.2099
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1306
  Prefactor  = 8.96278
  Prefactor  = 0.0001
  Prefactor  = 2.20587
  Prefactor  = 21.294
  Prefactor  = 0.0001
  norm       = 1.76337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8691
  norm       = 2.0456
  Prefactor  = 6.81832
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.957932
  Prefactor  = 1.08964
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.814     FROM HESSE     STATUS=OK           319 CALLS     2174 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2099        8.2998        .13992E-03   -1.5135    
   2  Prefactor     .10000E-03    43.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9175        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4459        .15101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.131        6.2219        .11501E-03   -1.5011    
   7  Prefactor     8.9628        9.1618        .13388E-03   -1.5109    
   8  Prefactor     .10000E-03    21.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2059        8.8387        .27689E-03   -1.5411    
  10  Prefactor     21.294        10.701        .86800E-04   -1.4785    
  11  Prefactor     .10000E-03    7.2172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7634        1.1021        .65805E-04   -1.5442    
  13  Prefactor     .10000E-03    .66569        .64920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8776        .10931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.869        10.167        .55830E-03   -1.4990    
  16  norm          2.0456        9.2415        .28914E-03   -1.5422    
  17  Prefactor     6.8183        7.1044        .15366E-03   -1.5186    
  18  Prefactor     .10000E-03    10.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95793        .18681        .23854E-03   -.94453    
  21  Prefactor     1.0896        .19888        .25031E-03   -.89798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36691e-09
Minuit parameter uncertainties:
  1  8.30095
  2  0.000362198
  3  0.000500858
  4  1.18821e-07
  5  1.46893e-06
  6  6.22223
  7  9.16323
  8  0.000156928
  9  8.83316
  10  10.7016
  11  1.27614e-05
  12  1.10216
  13  1.46087e-08
  14  2.16317e-07
  15  10.1687
  16  8.69786
  17  7.10525
  18  5.63238e-07
  19  0.000329941
  20  0.186934
  21  0.199018
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.206e+00  8.833e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.090e+00  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.579e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301201/likelihoodResults_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.79804376
delta logL = 0.0157563544144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.7942524
delta logL = 0.0195477151547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9870       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8345       1.0000          .0000       10.000    
     3 'Normalizat'    .96048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   6682.794     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      258 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9861        9.3828        .23489E-03   -.98251E-04
   2  Index         1.8344        1.3125        .67055E-02    .49372E-04
   3  Normalizat    .96049        .17749        .23826E-03   -.45006E-03
   4  Prefactor     1.0872        .19828        .25055E-03   -.39488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9861
  Index      = 1.83444
  Normalizat = 0.960489
  Prefactor  = 1.08719
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.794     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9861        9.3639        .93957E-05   -1.5362    
   2  Index         1.8344        1.3100        .26822E-03   -.68557    
   3  Normalizat    .96049        .17761        .47652E-04   -.94366    
   4  Prefactor     1.0872        .19842        .50110E-04   -.89877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27036e-10
Minuit parameter uncertainties:
  1  9.36853
  2  1.33644
  3  0.177722
  4  0.198553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301201': 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) = 6682.79425239
delta logL = 0.019547720728

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.986e+00  9.369e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.834e+00  1.336e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.087e+00  1.986e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.605e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 163.628 22.191

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/301201/cmap_HighResolution_658195201_658454401_4FGL_J1054.5+2211_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-12-07 21:33:55.816486', job_id='301201', GAL2='1.09', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1638941635.82', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.95e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1616' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:33:55 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 301201: <4FGL_J1054.5+2211_daily_bin1616> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1616> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 21:20:14 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:20:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:20:36 2021
Terminated at Tue Dec  7 21:33:56 2021
Results reported at Tue Dec  7 21:33:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1616 163.628 22.1913 658195201 658454401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1054.5+2211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            822 sec.

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

