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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1163
RA = 163.628, Dec = 22.1913
tmin = 540777601, tmax = 541036801
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='275630', job_status='RUN', time_executed='2021-09-02 19:43:24.524333', time_epoch_executed='1630637004.52' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275630

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275630/ft1_4FGL_J1054.5+2211_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275630/ft2_4FGL_J1054.5+2211_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275630/ft1_4FGL_J1054.5+2211_daily_bin1163.fits outfile=/scratch/kocevski/275630/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1163.fits ra=163.628 dec=22.1913 rad=12.0 tmin=540777601.0 tmax=541036801.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.19
user 3.42
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275630/ft1_filtered_4FGL_J1054.5+2211_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/275630/ft2_4FGL_J1054.5+2211_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/275630/ltcube_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.fits outfile=/scratch/kocevski/275630/expmap_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.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/275630/ltcube_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.fits
.....................!
real 196.70
user 187.35
sys 5.32

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/275630/ft1_filtered_4FGL_J1054.5+2211_daily_bin1163.fits scfile=/scratch/kocevski/275630/ft2_4FGL_J1054.5+2211_daily_bin1163.fits outfile=/scratch/kocevski/275630/cmap_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275630/ft1_filtered_4FGL_J1054.5+2211_daily_bin1163.fits scfile=/scratch/kocevski/275630/ft2_4FGL_J1054.5+2211_daily_bin1163.fits outfile=/scratch/kocevski/275630/cmap_HighResolution_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.793       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1869       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.666       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.816       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94052       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66566       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=   5332.896     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2164 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.358        11.445        .22475E-06   -.56394E-04
   2  Prefactor     .10000E-03    36.505        .17406E-05** at limit **
   3  Prefactor     61.503        60.126        .18897E-04   -.10229E-04
   4  Prefactor     .10000E-03    3.2031        .14884E-06** at limit **
   5  Prefactor     .10000E-03    .65635        .64241E-07** at limit **
   6  Prefactor     3.7143        6.9505        .20221E-05   -.29273E-03
   7  Prefactor     .10001E-03    18.427        .16370E-05** at limit **
   8  Prefactor     55.539        32.136        .86075E-05   -.14620E-04
   9  Prefactor     .10000E-03    4.4177        .42626E-07** at limit **
  10  Prefactor     .10000E-03    3.8178        .36202E-07** at limit **
  11  Prefactor     40.781        20.912       -.45197E-05   -.13599E-03
  12  norm          3.2191        1.7412        .13435E-06   -.43892E-03
  13  Prefactor     .10000E-03    1.2565       -.37499E-07** at limit **
  14  Prefactor     7.1891        8.4850        .19330E-05   -.14426E-03
  15  norm          .10000E-03    4.7892        .17027E-06** at limit **
  16  norm          18.241        14.337       -.61214E-06   -.60974E-04
  17  Prefactor     12.333        10.971        .39171E-06   -.61715E-04
  18  Prefactor     73.681        31.870        .11136E-04   -.18309E-04
  19  Prefactor     43.820        42.558        .58765E-05   -.12110E-04
  20  Normalizat    .93991        .18140       -.38150E-05   -.69991E-05
  21  Prefactor     .66617        .17331       -.74451E-06   -.19839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.358
  Prefactor  = 0.0001
  Prefactor  = 61.5029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71426
  Prefactor  = 0.000100008
  Prefactor  = 55.5393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7812
  norm       = 3.21907
  Prefactor  = 0.0001
  Prefactor  = 7.18915
  norm       = 0.0001
  norm       = 18.2408
  Prefactor  = 12.3326
  Prefactor  = 73.681
  Prefactor  = 43.8204
  Normalizat = 0.939911
  Prefactor  = 0.66617
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.896     FROM HESSE     STATUS=OK           315 CALLS     2479 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.358        11.451        .81167E-04   -1.4720    
   2  Prefactor     .10000E-03    36.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.503        60.071        .51171E-04   -1.4138    
   4  Prefactor     .10000E-03    3.2413        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .66229        .57754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7143        6.9249        .20961E-03   -1.5322    
   7  Prefactor     .10001E-03    19.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.539        32.123        .53830E-04   -1.4216    
   9  Prefactor     .10000E-03    4.4248        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8261        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.781        21.002        .62760E-04   -1.4430    
  12  norm          3.2191        1.7367        .66686E-04   -1.5349    
  13  Prefactor     .10000E-03    1.2812        .79887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1891        8.4633        .14963E-03   -1.5172    
  15  norm          .10000E-03    4.8033        .15606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.241        14.375        .93796E-04   -1.4854    
  17  Prefactor     12.333        10.960        .11408E-03   -1.5005    
  18  Prefactor     73.681        31.886        .46778E-04   -1.3989    
  19  Prefactor     43.820        42.555        .60566E-04   -1.4383    
  20  Normalizat    .93991        .21290        .23399E-03   -.95072    
  21  Prefactor     .66617        .20185        .27904E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55115e-10
Minuit parameter uncertainties:
  1  11.452
  2  0.000119706
  3  60.1305
  4  2.53476e-05
  5  5.33827e-06
  6  6.92644
  7  0.000799842
  8  32.1325
  9  4.84807e-05
  10  2.21985e-06
  11  21.0056
  12  1.73671
  13  4.01117e-06
  14  8.46475
  15  7.90657e-08
  16  14.3777
  17  10.9622
  18  31.8937
  19  42.5841
  20  0.213096
  21  0.202066
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  4.848e-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:  6.662e-01  2.021e-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.399e-01  2.131e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275630/likelihoodResults_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.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) = 5332.89710518
delta logL = -0.00107416486935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.89603099
delta logL = 2.80106178252e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1254       1.0000          .0000       10.000    
     3 'Normalizat'    .93992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66618       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=   5332.896     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      238 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    176.63        .15040E-01** at limit **
   2  Index         1.8141        7.9517        .10045        .36781E-07
   3  Normalizat    .93991        .27186E-01    .23399E-03    .60150E-04
   4  Prefactor     .66617        .27821E-01    .27904E-03    .59403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81412
  Normalizat = 0.939909
  Prefactor  = 0.666173
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.896     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7554        .15504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8141        5.9068        .40182E-02   -.69083    
   3  Normalizat    .93991        .19569        .93596E-05   -.95072    
   4  Prefactor     .66617        .20021        .11161E-04   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16796e-11
Minuit parameter uncertainties:
  1  4.51466e-06
  2  245.463
  3  0.195843
  4  0.200425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275630': 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) = 5332.89603026
delta logL = 7.50484105083e-07

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  4.515e-06  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.814e+00  2.455e+02  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:  6.662e-01  2.004e-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.399e-01  1.958e-01  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/275630/cmap_HighResolution_540777601_541036801_4FGL_J1054.5+2211_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-02 19:54:46.903607', job_id='275630', GAL2='0.67', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630637686.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='7.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1163' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 275630: <4FGL_J1054.5+2211_daily_bin1163> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1163> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:41:57 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:43:09 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:43:09 2021
Terminated at Thu Sep  2 19:54:47 2021
Results reported at Thu Sep  2 19:54:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1163 163.628 22.1913 540777601 541036801 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 :                                   583.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            770 sec.

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

