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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1014
RA = 163.628, Dec = 22.1913
tmin = 502156801, tmax = 502416001
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='275344', job_status='RUN', time_executed='2021-09-02 19:42:20.735958', time_epoch_executed='1630636940.74' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275344/ft1_4FGL_J1054.5+2211_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275344/ft2_4FGL_J1054.5+2211_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275344/ft1_4FGL_J1054.5+2211_daily_bin1014.fits outfile=/scratch/kocevski/275344/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1014.fits ra=163.628 dec=22.1913 rad=12.0 tmin=502156801.0 tmax=502416001.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.15
user 3.86
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275344/ft2_4FGL_J1054.5+2211_daily_bin1014.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/275344/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/275344/ft1_filtered_4FGL_J1054.5+2211_daily_bin1014.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.54
user 0.37
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275344/ft1_filtered_4FGL_J1054.5+2211_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/275344/ft2_4FGL_J1054.5+2211_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/275344/ltcube_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.fits outfile=/scratch/kocevski/275344/expmap_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.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/275344/ltcube_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.fits
.....................!
real 194.61
user 188.11
sys 4.72

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/275344/ft1_filtered_4FGL_J1054.5+2211_daily_bin1014.fits scfile=/scratch/kocevski/275344/ft2_4FGL_J1054.5+2211_daily_bin1014.fits outfile=/scratch/kocevski/275344/cmap_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.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.62
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275344/ft1_filtered_4FGL_J1054.5+2211_daily_bin1014.fits scfile=/scratch/kocevski/275344/ft2_4FGL_J1054.5+2211_daily_bin1014.fits outfile=/scratch/kocevski/275344/cmap_HighResolution_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.030       1.0000         .10000E-03   10000.    
    12 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .76254E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15523E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1849       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0115       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=   5827.124     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2200 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8410        8.6623        .12840E-05   -.93377E-05
   2  Prefactor     .10000E-03    25.181       -.18551E-05** at limit **
   3  Prefactor     49.347        59.801        .81545E-05    .11964E-03
   4  Prefactor     3.4581        7.1577        .28611E-06   -.21769E-03
   5  Prefactor     .10000E-03    .69833        .13553E-07** at limit **
   6  Prefactor     2.2615        7.0636        .75967E-05   -.37205E-03
   7  Prefactor     .10000E-03    6.6814       -.14247E-05** at limit **
   8  Prefactor     .10000E-03    5.0187       -.18895E-08** at limit **
   9  Prefactor     3.1784        8.3458        .20510E-05   -.38027E-03
  10  Prefactor     1.1144        4.5825        .18818E-05    .14648E-03
  11  Prefactor     14.044        12.956       -.81836E-06   -.35491E-03
  12  norm          .10000E-03    .78653        .26404E-06** at limit **
  13  Prefactor     2.7704        2.5822       -.35332E-07   -.56800E-03
  14  Prefactor     .10000E-03    3.1448        .91338E-07** at limit **
  15  norm          .10000E-03    5.8697       -.93671E-07** at limit **
  16  norm          .10001E-03    8.2561        .31973E-05** at limit **
  17  Prefactor     3.2648        8.8247        .72174E-06   -.56688E-04
  18  Prefactor     .10000E-03    30.684        .17240E-05** at limit **
  19  Prefactor     10.634        39.130        .61367E-05    .31908E-04
  20  Normalizat    1.1850        .18486       -.21931E-05   -.66122E-03
  21  Prefactor     1.0118        .19070       -.17158E-05   -.66338E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84102
  Prefactor  = 0.0001
  Prefactor  = 49.3471
  Prefactor  = 3.45806
  Prefactor  = 0.0001
  Prefactor  = 2.26154
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.1784
  Prefactor  = 1.11444
  Prefactor  = 14.0441
  norm       = 0.0001
  Prefactor  = 2.77045
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 3.26479
  Prefactor  = 0.0001
  Prefactor  = 10.6341
  Normalizat = 1.18499
  Prefactor  = 1.01177
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.124     FROM HESSE     STATUS=OK           317 CALLS     2517 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8410        8.6527        .24090E-03   -1.5371    
   2  Prefactor     .10000E-03    25.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.347        59.896        .57060E-04   -1.4302    
   4  Prefactor     3.4581        7.0770        .21770E-03   -1.5336    
   5  Prefactor     .10000E-03    .70351        .62236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2615        7.1611        .13651E-02   -1.5407    
   7  Prefactor     .10000E-03    19.204        .34846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0196        .16702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1784        8.2381        .11389E-02   -1.5351    
  10  Prefactor     1.1144        4.4498        .31486E-03   -1.5497    
  11  Prefactor     14.044        12.804        .10693E-03   -1.4958    
  12  norm          .10000E-03    1.4859        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7704        2.5691        .11187E-03   -1.5375    
  14  Prefactor     .10000E-03    3.1552        .13218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8998        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    33.654        .40820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2648        8.8115        .22387E-03   -1.5347    
  18  Prefactor     .10000E-03    31.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.634        39.180        .12277E-03   -1.5056    
  20  Normalizat    1.1850        .21695        .22553E-03   -.87068    
  21  Prefactor     1.0118        .22557        .26508E-03   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81896e-09
Minuit parameter uncertainties:
  1  8.65651
  2  7.43305e-05
  3  59.9691
  4  7.07869
  5  2.19843e-06
  6  7.16376
  7  0.000608568
  8  1.57014e-06
  9  8.24108
  10  4.45116
  11  12.8062
  12  1.68406e-06
  13  2.56916
  14  1.01587e-05
  15  7.99768e-06
  16  0.00110484
  17  8.81501
  18  0.000201171
  19  39.2747
  20  0.217116
  21  0.225776
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.178e+00  8.241e+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.012e+00  2.258e-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.185e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275344/likelihoodResults_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.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) = 5826.91213306
delta logL = 0.212324242352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5826.8877267
delta logL = 0.236730600698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0093       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3989       1.0000          .0000       10.000    
     3 'Normalizat'    1.1437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       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=   5826.888     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0097        23.626        .13216E-01    .14474E-02
   2  Index         3.3993        2.9871        .11731        .12152E-03
   3  Normalizat    1.1437        .36066E-01    .36448E-01    .15095E-04
   4  Prefactor     1.0399        .39590E-01    .59257E-01    .16073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00967
  Index      = 3.39933
  Normalizat = 1.14368
  Prefactor  = 1.03987
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.888     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0097        78.098        .94432E-04   -1.5507    
   2  Index         3.3993        6.3677        .66236E-02   -.32587    
   3  Normalizat    1.1437        .20049        .22881E-03   -.88361    
   4  Prefactor     1.0399        .20713        .26205E-03   -.91412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.14944e-07
Minuit parameter uncertainties:
  1  17.7831
  2  8.36593
  3  0.200625
  4  0.207288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275344': 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) = 5826.88772606
delta logL = 0.236731235343

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.010e+00  1.778e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.399e+00  8.366e+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.040e+00  2.073e-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.144e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/275344/cmap_HighResolution_502156801_502416001_4FGL_J1054.5+2211_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-02 19:53:12.015174', job_id='275344', GAL2='1.04', fit_tolerance='1e-08', EG2='1.14', EG='1.18', time_epoch_completed='1630637592.02', return_code2='102', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.37e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1014' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:53:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 275344: <4FGL_J1054.5+2211_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

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

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

