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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin694
RA = 163.628, Dec = 22.1913
tmin = 419212801, tmax = 419472001
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='272390', job_status='RUN', time_executed='2021-09-02 19:32:53.149704', time_epoch_executed='1630636373.15' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272390/ft1_4FGL_J1054.5+2211_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272390/ft2_4FGL_J1054.5+2211_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272390/ft1_4FGL_J1054.5+2211_daily_bin694.fits outfile=/scratch/kocevski/272390/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin694.fits ra=163.628 dec=22.1913 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.49
user 5.21
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272390/ft1_filtered_4FGL_J1054.5+2211_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/272390/ft2_4FGL_J1054.5+2211_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/272390/ltcube_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.fits outfile=/scratch/kocevski/272390/expmap_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.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/272390/ltcube_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.fits
.....................!
real 193.50
user 187.72
sys 3.98

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/272390/ft1_filtered_4FGL_J1054.5+2211_daily_bin694.fits scfile=/scratch/kocevski/272390/ft2_4FGL_J1054.5+2211_daily_bin694.fits outfile=/scratch/kocevski/272390/cmap_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272390/ft1_filtered_4FGL_J1054.5+2211_daily_bin694.fits scfile=/scratch/kocevski/272390/ft2_4FGL_J1054.5+2211_daily_bin694.fits outfile=/scratch/kocevski/272390/cmap_HighResolution_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0803       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.254       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1902       1.0000         .10000E-03   10000.    
    12 'norm      '    .10427E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7373       1.0000         .10000E-03   10000.    
    15 'norm      '    .19515E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .51905E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13353E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80352       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89914       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=   4052.887     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2230 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.814        9.3516        .15740E-06    .29069E-04
   2  Prefactor     .10000E-03    8.0423        .95190E-06** at limit **
   3  Prefactor     8.9139        105.42       -.16917E-06    .56026E-04
   4  Prefactor     7.0813        7.3706        .29059E-06    .47579E-04
   5  Prefactor     2.8942        2.3068        .28556E-07    .91869E-04
   6  Prefactor     13.251        8.7553        .15566E-06    .48866E-04
   7  Prefactor     .10000E-03    3.6272       -.21293E-06** at limit **
   8  Prefactor     21.969        19.636        .28664E-06   -.44580E-04
   9  Prefactor     7.7849        8.2304        .24750E-05    .66525E-03
  10  Prefactor     .10000E-03    9.0167       -.83388E-06** at limit **
  11  Prefactor     5.1918        11.510       -.11029E-06    .36094E-04
  12  norm          .10000E-03    .96971        .42440E-06** at limit **
  13  Prefactor     .10000E-03    .78413        .55267E-07** at limit **
  14  Prefactor     1.7377        3.9346        .50209E-06    .18918E-03
  15  norm          .10042E-03    12.040       -.30457E-05** at limit **
  16  norm          .10000E-03    15.893       -.10263E-04** at limit **
  17  Prefactor     .10000E-03    4.1243        .64177E-10** at limit **
  18  Prefactor     11.216        18.315       -.57381E-06    .20261E-03
  19  Prefactor     .10000E-03    26.712       -.48228E-06** at limit **
  20  Normalizat    .80333        .18342       -.12967E-05    .19507E-03
  21  Prefactor     .89937        .18972       -.21619E-06    .16985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8138
  Prefactor  = 0.000100002
  Prefactor  = 8.91393
  Prefactor  = 7.08126
  Prefactor  = 2.89419
  Prefactor  = 13.2512
  Prefactor  = 0.0001
  Prefactor  = 21.9694
  Prefactor  = 7.78493
  Prefactor  = 0.000100005
  Prefactor  = 5.19183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73773
  norm       = 0.000100421
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2158
  Prefactor  = 0.000100001
  Normalizat = 0.803328
  Prefactor  = 0.899374
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.887     FROM HESSE     STATUS=OK           319 CALLS     2549 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.814        9.3442        .10072E-03   -1.4912    
   2  Prefactor     .10000E-03    8.0171        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9139        105.38        .13430E-03   -1.5111    
   4  Prefactor     7.0813        7.3583        .15076E-03   -1.5176    
   5  Prefactor     2.8942        2.2978        .80949E-04   -1.5368    
   6  Prefactor     13.251        8.7229        .11002E-03   -1.4980    
   7  Prefactor     .10000E-03    3.6509        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.969        19.638        .85442E-04   -1.4770    
   9  Prefactor     7.7849        8.6639        .71852E-03   -1.5150    
  10  Prefactor     .10000E-03    9.1312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1918        11.487        .17645E-03   -1.5252    
  12  norm          .10000E-03    6.4574        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .79151        .55047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7377        3.9006        .18524E-03   -1.5444    
  15  norm          .10042E-03    99.131        .39537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.763        .33269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1327        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.216        18.295        .11949E-03   -1.5038    
  19  Prefactor     .10000E-03    26.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .80333        .21081        .22433E-03   -.99945    
  21  Prefactor     .89937        .22022        .23536E-03   -.96163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5687e-09
Minuit parameter uncertainties:
  1  9.3451
  2  0.000247139
  3  61.4344
  4  7.35924
  5  2.29789
  6  8.72372
  7  2.30946e-05
  8  19.6433
  9  8.66525
  10  0.000409989
  11  11.4915
  12  5.35178e-05
  13  3.4154e-06
  14  3.9012
  15  0.012944
  16  6.26602e-05
  17  1.75423e-06
  18  18.3042
  19  0.000255023
  20  0.211021
  21  0.220441
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  7.785e+00  8.665e+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:  8.994e-01  2.204e-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:  8.033e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/272390/likelihoodResults_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.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) = 4052.88190476
delta logL = 0.00546225396147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4052.87793962
delta logL = 0.00942739523907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8439       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2427       1.0000          .0000       10.000    
     3 'Normalizat'    .80139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90085       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=   4052.878     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      232 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8414        11.184        .15337E-03    .13656E-02
   2  Index         2.2429        .86116        .72524E-02    .31540E-03
   3  Normalizat    .80137        .19781        .22458E-03   -.49960E-03
   4  Prefactor     .90085        .21916        .23518E-03   -.56694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.84143
  Index      = 2.24288
  Normalizat = 0.801373
  Prefactor  = 0.900851
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.878     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8414        10.404        .61346E-05   -1.5185    
   2  Index         2.2429        .80175        .29010E-03   -.58407    
   3  Normalizat    .80137        .19787        .44915E-04   -1.0002    
   4  Prefactor     .90085        .21924        .47037E-04   -.96111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65381e-09
Minuit parameter uncertainties:
  1  10.4064
  2  0.806772
  3  0.198052
  4  0.219457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272390': 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) = 4052.87793957
delta logL = 0.00942743809765

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  6.841e+00  1.041e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.243e+00  8.068e-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:  9.009e-01  2.195e-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:  8.014e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.24 +/- 0.81
Photon Flux (Free Index): 2.29e-08 +/- 2.71e-08
Energy Flux (Free Index): 9.52e-06 +/- 1.37e-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/272390/cmap_HighResolution_419212801_419472001_4FGL_J1054.5+2211_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='9.52e-06', photon_flux_error='2.37e-08', dlogl='9.43e-03', energy_flux='1.09e-05', photon_flux2='2.29e-08', job_status='DONE', time_completed='2021-09-02 19:42:07.505066', photon_index_error2='0.81', photon_index2='2.24', ts='1.38', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.40e-08', energy_flux_error2='1.37e-05', EG='0.80', time_epoch_completed='1630636927.51', return_code='0', job_id='272390', GAL2='0.90', EG2='0.80', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.71e-08', ts2='1.40', photon_index='2.13' WHERE bin_id='694' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 272390: <4FGL_J1054.5+2211_daily_bin694> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin694> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 19:31:08 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:32:40 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:32:40 2021
Terminated at Thu Sep  2 19:42:08 2021
Results reported at Thu Sep  2 19:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin694 163.628 22.1913 419212801 419472001 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 :                                   549.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            660 sec.

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

