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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1079
RA = 163.628, Dec = 22.1913
tmin = 519004801, tmax = 519264001
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='275473', job_status='RUN', time_executed='2021-09-02 19:44:42.239985', time_epoch_executed='1630637082.24' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275473/ft1_4FGL_J1054.5+2211_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275473/ft1_4FGL_J1054.5+2211_daily_bin1079.fits outfile=/scratch/kocevski/275473/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1079.fits ra=163.628 dec=22.1913 rad=12.0 tmin=519004801.0 tmax=519264001.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.85
user 3.36
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275473/ft1_filtered_4FGL_J1054.5+2211_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/275473/ltcube_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.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/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits
.....................!
real 16.68
user 16.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275473/ft1_filtered_4FGL_J1054.5+2211_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/275473/ltcube_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.fits outfile=/scratch/kocevski/275473/expmap_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.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/275473/ltcube_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.fits
.....................!
real 193.92
user 188.75
sys 4.28

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/275473/ft1_filtered_4FGL_J1054.5+2211_daily_bin1079.fits scfile=/scratch/kocevski/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits outfile=/scratch/kocevski/275473/cmap_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275473/ft1_filtered_4FGL_J1054.5+2211_daily_bin1079.fits scfile=/scratch/kocevski/275473/ft2_4FGL_J1054.5+2211_daily_bin1079.fits outfile=/scratch/kocevski/275473/cmap_HighResolution_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4147       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.098       1.0000         .10000E-03   10000.    
    16 'norm      '    29.928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    88.959       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87535       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=   5753.399     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2166 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6685        .19542E-05** at limit **
   2  Prefactor     20.054        36.647       -.47631E-04    .11347E-04
   3  Prefactor     .10000E-03    50.810        .10340E-05** at limit **
   4  Prefactor     .10000E-03    1.9837        .54999E-07** at limit **
   5  Prefactor     .13569        1.5071       -.13381E-05    .10255E-03
   6  Prefactor     21.531        10.040       -.18329E-06    .84687E-04
   7  Prefactor     8.9959        11.086       -.21336E-05    .23286E-03
   8  Prefactor     .10000E-03    7.8547        .24047E-05** at limit **
   9  Prefactor     .10000E-03    5.1700       -.34111E-07** at limit **
  10  Prefactor     .10000E-03    6.1261       -.23342E-05** at limit **
  11  Prefactor     .10000E-03    10.522       -.51158E-05** at limit **
  12  norm          1.4145        1.4244       -.25389E-06   -.38687E-03
  13  Prefactor     .10000E-03    1.3943       -.81563E-07** at limit **
  14  Prefactor     .10000E-03    6.5871        .85941E-06** at limit **
  15  norm          12.097        11.598       -.90002E-06   -.41958E-03
  16  norm          29.928        15.408       -.75668E-06    .34639E-04
  17  Prefactor     .10000E-03    4.4922       -.14303E-05** at limit **
  18  Prefactor     .10000E-03    11.670        .34339E-05** at limit **
  19  Prefactor     88.959        62.219        .45687E-06    .14740E-04
  20  Normalizat    1.1751        .19400        .22340E-05    .21514E-03
  21  Prefactor     .87540        .19304        .30417E-05    .17754E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.0543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.135691
  Prefactor  = 21.5312
  Prefactor  = 8.9959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0975
  norm       = 29.9277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.9593
  Normalizat = 1.17513
  Prefactor  = 0.875403
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.399     FROM HESSE     STATUS=OK           313 CALLS     2479 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6889        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.054        36.688        .89371E-04   -1.4812    
   3  Prefactor     .10000E-03    50.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9894        .10430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13569        3.7651        .17635E-02   -1.5634    
   6  Prefactor     21.531        10.037        .86320E-04   -1.4780    
   7  Prefactor     8.9959        11.103        .13365E-03   -1.5108    
   8  Prefactor     .10000E-03    7.8555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1778        .16829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4145        1.4102        .86417E-04   -1.5470    
  13  Prefactor     .10000E-03    1.4137        .87409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.097        11.601        .57586E-03   -1.5012    
  16  norm          29.928        15.489        .73238E-04   -1.4613    
  17  Prefactor     .10000E-03    4.5029        .15702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     88.959        62.296        .42600E-04   -1.3819    
  20  Normalizat    1.1751        .23290        .23739E-03   -.87375    
  21  Prefactor     .87540        .23026        .28050E-03   -.97006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62922e-10
Minuit parameter uncertainties:
  1  8.75681e-06
  2  36.7296
  3  0.000115133
  4  8.71093e-06
  5  1.42911
  6  10.0381
  7  11.1054
  8  9.30534e-06
  9  1.94578e-05
  10  1.94525e-05
  11  2.53023e-05
  12  1.41026
  13  9.13175e-06
  14  4.44681e-05
  15  11.6035
  16  15.4913
  17  1.22495e-05
  18  3.05787e-05
  19  62.342
  20  0.233104
  21  0.230513
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.946e-05  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:  8.754e-01  2.305e-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:  1.175e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275473/likelihoodResults_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.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) = 5753.39957091
delta logL = -0.000918538632504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5753.39865237
delta logL = -6.08906702837e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1329       1.0000          .0000       10.000    
     3 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87541       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=   5753.399     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    206.05        .16832E-02** at limit **
   2  Index         2.1100        6.5144        .50000        .21613E-05
   3  Normalizat    1.1751        .30352E-01    .23739E-03   -.71834E-05
   4  Prefactor     .87540        .31601E-01    .28050E-03   -.27561E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Index      = 2.11001
  Normalizat = 1.17513
  Prefactor  = 0.875402
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.399     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    927.59        .33664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1100        5.0573        .50000       -.61627    
   3  Normalizat    1.1751        .92834E-01    .94958E-05   -.87375    
   4  Prefactor     .87540        .95319E-01    .11220E-04   -.97006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.56878e-09
Minuit parameter uncertainties:
  1  0.0147992
  2  2666.32
  3  0.0928473
  4  0.0953371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275473': 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) = 5753.39865236
delta logL = 1.13941496238e-08

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.001e-04  1.480e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.110e+00  2.666e+03  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:  8.754e-01  9.534e-02  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:  1.175e+00  9.285e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/275473/cmap_HighResolution_519004801_519264001_4FGL_J1054.5+2211_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-02 19:55:14.038461', job_id='275473', GAL2='0.88', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630637714.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1079' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:55:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 275473: <4FGL_J1054.5+2211_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1079> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:41:44 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:42:27 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:27 2021
Terminated at Thu Sep  2 19:55:14 2021
Results reported at Thu Sep  2 19:55:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1079 163.628 22.1913 519004801 519264001 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 :                                   616.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            810 sec.

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

