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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1102
RA = 163.628, Dec = 22.1913
tmin = 524966401, tmax = 525225601
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='275509', job_status='RUN', time_executed='2021-09-02 19:45:58.993468', time_epoch_executed='1630637158.99' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275509/ft1_4FGL_J1054.5+2211_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275509/ft1_4FGL_J1054.5+2211_daily_bin1102.fits outfile=/scratch/kocevski/275509/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1102.fits ra=163.628 dec=22.1913 rad=12.0 tmin=524966401.0 tmax=525225601.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.49
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.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/275509/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/275509/ltcube_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.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/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits
.....................!
real 16.35
user 15.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/275509/ltcube_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits outfile=/scratch/kocevski/275509/expmap_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.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/275509/ltcube_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits
.....................!
real 191.85
user 186.97
sys 4.31

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/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits scfile=/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits outfile=/scratch/kocevski/275509/cmap_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.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.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits scfile=/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits outfile=/scratch/kocevski/275509/cmap_HighResolution_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.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.58
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits', '/scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits', expMap='/scratch/kocevski/275509/expmap_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits', expCube='/scratch/kocevski/275509/ltcube_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275509/Model_4FGL_J1054.5+2211_daily_bin1102.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/275509/ft1_filtered_4FGL_J1054.5+2211_daily_bin1102.fits
Spacecraft file(s): /scratch/kocevski/275509/ft2_4FGL_J1054.5+2211_daily_bin1102.fits
Exposure map: /scratch/kocevski/275509/expmap_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits
Exposure cube: /scratch/kocevski/275509/ltcube_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275509/Model_4FGL_J1054.5+2211_daily_bin1102.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) = 5663.36741673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.279       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.416       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8900       1.0000         .10000E-03   10000.    
    15 'norm      '    20.284       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78364       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4350       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=   5663.366     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2169 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3586        5.9956        .16639E-05   -.10671E-02
   2  Prefactor     42.224        50.444       -.98363E-06   -.61694E-04
   3  Prefactor     19.274        47.463       -.32803E-05   -.99819E-04
   4  Prefactor     7.7148        6.6990       -.14447E-06   -.11199E-03
   5  Prefactor     .10000E-03    1.3807        .56219E-07** at limit **
   6  Prefactor     .88372        5.0896       -.15256E-06    .75591E-04
   7  Prefactor     4.1221        11.579        .40537E-05    .23666E-03
   8  Prefactor     .10000E-03    10.698       -.50508E-07** at limit **
   9  Prefactor     4.2546        9.8516       -.85154E-06   -.19054E-03
  10  Prefactor     .10000E-03    3.3924       -.46192E-08** at limit **
  11  Prefactor     63.408        23.954       -.25826E-05   -.74302E-03
  12  norm          2.3822        1.5982       -.95980E-08    .41143E-04
  13  Prefactor     2.7718        2.4061        .61782E-07   -.83009E-04
  14  Prefactor     7.8895        9.2413        .18326E-05   -.67879E-03
  15  norm          20.284        14.758        .27256E-06   -.11231E-03
  16  norm          .10000E-03    2.6619        .93784E-08** at limit **
  17  Prefactor     .10000E-03    4.1085       -.50399E-07** at limit **
  18  Prefactor     .10000E-03    15.385        .24980E-06** at limit **
  19  Prefactor     .10000E-03    15.529        .49773E-07** at limit **
  20  Normalizat    .78378        .19619       -.10068E-06   -.10323E-04
  21  Prefactor     1.4348        .21024       -.34370E-06    .20591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.35859
  Prefactor  = 42.2236
  Prefactor  = 19.2737
  Prefactor  = 7.71482
  Prefactor  = 0.0001
  Prefactor  = 0.883715
  Prefactor  = 4.12213
  Prefactor  = 0.0001
  Prefactor  = 4.25463
  Prefactor  = 0.0001
  Prefactor  = 63.4075
  norm       = 2.38218
  Prefactor  = 2.77176
  Prefactor  = 7.88948
  norm       = 20.2842
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.783783
  Prefactor  = 1.43484
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.366     FROM HESSE     STATUS=OK           317 CALLS     2486 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3586        6.5298        .86805E-03   -1.5245    
   2  Prefactor     42.224        50.678        .61690E-04   -1.4407    
   3  Prefactor     19.274        48.000        .91218E-04   -1.4830    
   4  Prefactor     7.7148        6.7126        .14436E-03   -1.5152    
   5  Prefactor     .10000E-03    1.4257        .17232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .88372        25.590        .30510E-02   -1.5520    
   7  Prefactor     4.1221        11.969        .19868E-03   -1.5302    
   8  Prefactor     .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2546        9.8424        .19518E-03   -1.5295    
  10  Prefactor     .10000E-03    3.3985        .13534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.408        25.211        .50391E-04   -1.4114    
  12  norm          2.3822        1.5906        .73689E-04   -1.5399    
  13  Prefactor     2.7718        2.4007        .10441E-03   -1.5375    
  14  Prefactor     7.8895        9.6717        .71374E-03   -1.5146    
  15  norm          20.284        14.790        .44466E-03   -1.4807    
  16  norm          .10000E-03    2.6642        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1158        .14895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78378        .23526        .28355E-03   -1.0067    
  21  Prefactor     1.4348        .25173        .24694E-03   -.79381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82494e-09
Minuit parameter uncertainties:
  1  6.5307
  2  50.7299
  3  48.0964
  4  6.71321
  5  2.98303e-06
  6  9.51481
  7  11.9758
  8  6.81946e-06
  9  9.84611
  10  8.63503e-07
  11  25.2155
  12  1.59064
  13  2.40076
  14  9.67362
  15  14.7922
  16  3.61366e-08
  17  4.54018e-06
  18  2.12168e-05
  19  5.52713e-06
  20  0.235563
  21  0.251948
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  4.255e+00  9.846e+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.435e+00  2.519e-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:  7.838e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275509/likelihoodResults_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.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) = 5663.33051047
delta logL = 0.0355117870322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5663.31713886
delta logL = 0.0488833993804

Fit tolerance = 1e-08

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

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

 FCN=   5663.317     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      228 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5938        154.44        .63180E-02    .60177E-03
   2  Index         2.7364        6.3202        .15310        .89458E-04
   3  Normalizat    .77004        .50587E-01    .64583E-01    .11022E-04
   4  Prefactor     1.4446        .52497E-01    .55685E-01   -.11106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59379
  Index      = 2.73637
  Normalizat = 0.770035
  Prefactor  = 1.44456
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.317     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5938        387.29        .20573E-03   -1.5386    
   2  Index         2.7364        7.8726        .10692E-01   -.46982    
   3  Normalizat    .77004        .34404        .28571E-03   -1.0119    
   4  Prefactor     1.4446        .32082        .24621E-03   -.79105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71019e-09
Minuit parameter uncertainties:
  1  63.8131
  2  15.3455
  3  0.345016
  4  0.321268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275509': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.31713568
delta logL = 0.0488865851203

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.594e+00  6.381e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.736e+00  1.535e+01  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.445e+00  3.213e-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:  7.700e-01  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/275509/cmap_HighResolution_524966401_525225601_4FGL_J1054.5+2211_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-02 19:56:41.153476', job_id='275509', GAL2='1.44', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1630637801.15', return_code2='102', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='4.89e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1102' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 275509: <4FGL_J1054.5+2211_daily_bin1102> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1102> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:41:46 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:42:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 19:42:37 2021
Terminated at Thu Sep  2 19:56:42 2021
Results reported at Thu Sep  2 19:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1102 163.628 22.1913 524966401 525225601 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 :                                   621.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            896 sec.

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

