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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1026
RA = 163.628, Dec = 22.1913
tmin = 505267201, tmax = 505526401
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='275366', job_status='RUN', time_executed='2021-09-02 19:44:22.220707', time_epoch_executed='1630637062.22' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275366/ft1_4FGL_J1054.5+2211_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275366/ft1_4FGL_J1054.5+2211_daily_bin1026.fits outfile=/scratch/kocevski/275366/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1026.fits ra=163.628 dec=22.1913 rad=12.0 tmin=505267201.0 tmax=505526401.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.69
user 3.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275366/ft1_filtered_4FGL_J1054.5+2211_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/275366/ltcube_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.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/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits
.....................!
real 14.24
user 13.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275366/ft1_filtered_4FGL_J1054.5+2211_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/275366/ltcube_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.fits outfile=/scratch/kocevski/275366/expmap_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.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/275366/ltcube_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.fits
.....................!
real 192.99
user 186.60
sys 5.53

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/275366/ft1_filtered_4FGL_J1054.5+2211_daily_bin1026.fits scfile=/scratch/kocevski/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits outfile=/scratch/kocevski/275366/cmap_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275366/ft1_filtered_4FGL_J1054.5+2211_daily_bin1026.fits scfile=/scratch/kocevski/275366/ft2_4FGL_J1054.5+2211_daily_bin1026.fits outfile=/scratch/kocevski/275366/cmap_HighResolution_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2246       1.0000         .10000E-03   10000.    
    12 'norm      '    .85018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35062E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98094       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1490       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=   5631.620     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     2207 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7142        8.8419        .12857E-03    .61720E-04
   2  Prefactor     .10000E-03    19.829        .18142E-02** at limit **
   3  Prefactor     .10000E-03    15.250        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.4301        .11391E-02** at limit **
   5  Prefactor     .10000E-03    .65590        .59138E-03** at limit **
   6  Prefactor     6.0658        8.3282        .16301E-03    .33888E-03
   7  Prefactor     5.7111        10.452        .16801E-03    .29895E-03
   8  Prefactor     .10000E-03    83.997        .18142E-02** at limit **
   9  Prefactor     9.2449        9.1940        .13183E-03    .41998E-04
  10  Prefactor     1.9389        11.391        .29814E-03    .16942E-03
  11  Prefactor     9.2334        12.249        .13196E-03    .15422E-04
  12  norm          .85033        1.2235        .10395E-02   -.88817E-03
  13  Prefactor     .10000E-03    2.0755        .20849E-03** at limit **
  14  Prefactor     .10000E-03    2.8285        .12304E-02** at limit **
  15  norm          .10000E-03    4.9161        .16226E-02** at limit **
  16  norm          .10000E-03    8.8430        .18142E-02** at limit **
  17  Prefactor     3.8370        9.8805        .20591E-03    .13649E-03
  18  Prefactor     .10001E-03    122.78        .36285E-03** at limit **
  19  Prefactor     .10001E-03    373.35        .94677E-02** at limit **
  20  Normalizat    .98091        .21327        .25024E-03    .95906E-04
  21  Prefactor     1.1489        .22268        .24863E-03    .21013E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.71419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06579
  Prefactor  = 5.71112
  Prefactor  = 0.0001
  Prefactor  = 9.24487
  Prefactor  = 1.93885
  Prefactor  = 9.23342
  norm       = 0.850328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.83703
  Prefactor  = 0.000100005
  Prefactor  = 0.000100009
  Normalizat = 0.980907
  Prefactor  = 1.14889
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.620     FROM HESSE     STATUS=OK           297 CALLS     2504 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7142        8.8416        .51428E-05   -1.5085    
   2  Prefactor     .10000E-03    19.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4304        .22781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .65592        .11828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0658        8.3258        .65203E-05   -1.5215    
   7  Prefactor     5.7111        10.448        .67204E-05   -1.5230    
   8  Prefactor     .10000E-03    84.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2449        9.1932        .52731E-05   -1.5100    
  10  Prefactor     1.9389        11.388        .11926E-04   -1.5429    
  11  Prefactor     9.2334        12.247        .52782E-05   -1.5100    
  12  norm          .85033        1.2225        .41581E-04   -1.5524    
  13  Prefactor     .10000E-03    2.0755        .41697E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8287        .24608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9166        .32451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.8455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8370        9.8800        .82363E-05   -1.5316    
  18  Prefactor     .10001E-03    122.78        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    389.53        .37871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98091        .21344        .10010E-04   -.93673    
  21  Prefactor     1.1489        .22288        .49725E-04   -.87919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17736e-10
Minuit parameter uncertainties:
  1  8.84275
  2  2.67781e-05
  3  6.14271e-06
  4  2.90393e-06
  5  6.64742e-07
  6  8.32742
  7  10.4516
  8  3.82018e-05
  9  9.19456
  10  9.40022
  11  12.2504
  12  1.22258
  13  1.70487e-05
  14  4.45176e-06
  15  4.81459e-06
  16  2.11259e-05
  17  9.88418
  18  0.00164036
  19  0.00373892
  20  0.213624
  21  0.223063
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  9.245e+00  9.195e+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.149e+00  2.231e-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.809e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/275366/likelihoodResults_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.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) = 5631.59182349
delta logL = 0.0284096897612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.59099178
delta logL = 0.0292413944653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5260       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8980       1.0000          .0000       10.000    
     3 'Normalizat'    .98946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1443       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=   5631.591     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5265        9.5392        .12984E-03   -.73116E-03
   2  Index         1.8981        .94027        .10679E-01   -.14549E-03
   3  Normalizat    .98947        .20924        .24933E-03    .15736E-03
   4  Prefactor     1.1443        .22196        .24909E-03    .17235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52649
  Index      = 1.89808
  Normalizat = 0.989465
  Prefactor  = 1.14429
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.591     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5265        9.5674        .25968E-04   -1.5091    
   2  Index         1.8981        .94231        .42717E-03   -.66923    
   3  Normalizat    .98947        .20932        .99730E-05   -.93384    
   4  Prefactor     1.1443        .22214        .49819E-04   -.88063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01392e-09
Minuit parameter uncertainties:
  1  9.56892
  2  0.95162
  3  0.209497
  4  0.222319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275366': 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) = 5631.59099177
delta logL = 0.0292414068417

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  9.526e+00  9.569e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.898e+00  9.516e-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.144e+00  2.223e-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.895e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.90 +/- 0.95
Photon Flux (Free Index): 1.74e-08 +/- 3.30e-08
Energy Flux (Free Index): 1.57e-05 +/- 2.24e-05

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/275366/cmap_HighResolution_505267201_505526401_4FGL_J1054.5+2211_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='1.57e-05', photon_flux_error='2.52e-08', dlogl='2.92e-02', energy_flux='1.29e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-02 19:54:47.981994', photon_index_error2='0.95', photon_index2='1.90', ts='2.86', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='2.24e-05', EG='0.98', time_epoch_completed='1630637687.98', return_code='0', job_id='275366', GAL2='1.14', EG2='0.99', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.30e-08', ts2='2.93', photon_index='2.13' WHERE bin_id='1026' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 275366: <4FGL_J1054.5+2211_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1026 163.628 22.1913 505267201 505526401 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 :                                   602.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            791 sec.

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

