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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1319
RA = 163.628, Dec = 22.1913
tmin = 581212801, tmax = 581472001
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='275855', job_status='RUN', time_executed='2021-09-02 19:46:58.898384', time_epoch_executed='1630637218.9' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275855

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275855/ft1_4FGL_J1054.5+2211_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275855/ft1_4FGL_J1054.5+2211_daily_bin1319.fits outfile=/scratch/kocevski/275855/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1319.fits ra=163.628 dec=22.1913 rad=12.0 tmin=581212801.0 tmax=581472001.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.03
user 2.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.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/275855/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/275855/ltcube_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.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/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits
.....................!
real 18.77
user 18.25
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/275855/ltcube_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits outfile=/scratch/kocevski/275855/expmap_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.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/275855/ltcube_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits
.....................!
real 194.20
user 188.03
sys 5.43

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/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits outfile=/scratch/kocevski/275855/cmap_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits outfile=/scratch/kocevski/275855/cmap_HighResolution_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.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/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/275855/Model_4FGL_J1054.5+2211_daily_bin1319.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/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits.....................!
real 72.53
user 70.92
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits', '/scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits', expMap='/scratch/kocevski/275855/expmap_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits', expCube='/scratch/kocevski/275855/ltcube_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275855/Model_4FGL_J1054.5+2211_daily_bin1319.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/275855/ft1_filtered_4FGL_J1054.5+2211_daily_bin1319.fits
Spacecraft file(s): /scratch/kocevski/275855/ft2_4FGL_J1054.5+2211_daily_bin1319.fits
Exposure map: /scratch/kocevski/275855/expmap_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits
Exposure cube: /scratch/kocevski/275855/ltcube_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275855/Model_4FGL_J1054.5+2211_daily_bin1319.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8453.75957646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.415       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25965E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .35067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3744       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1094       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2039       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8453.715     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2265 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.064        6.4534         .0000        .12892E-03
   2  Prefactor     34.411        30.157         .0000        .15503E-02
   3  Prefactor     .10000E-03    17.443         .0000    ** at limit **
   4  Prefactor     .10004E-03    2.5310         .0000    ** at limit **
   5  Prefactor     .21716        .90623         .0000        .10774E-02
   6  Prefactor     4.1105        5.1857         .0000        .58017E-03
   7  Prefactor     2.2263        10.591         .0000        .12459E-01
   8  Prefactor     .10000E-03    9.5732         .0000    ** at limit **
   9  Prefactor     17.211        12.416         .0000        .29579E-02
  10  Prefactor     .10000E-03    5.0106         .0000    ** at limit **
  11  Prefactor     .10000E-03    4.4071         .0000    ** at limit **
  12  norm          .35067        .62225         .0000        .82193E-02
  13  Prefactor     .10000E-03    .47626         .0000    ** at limit **
  14  Prefactor     1.3741        3.2880         .0000        .98890E-03
  15  norm          3.1093        6.4720         .0000        .75283E-02
  16  norm          7.0698        8.9884         .0000        .31215E-02
  17  Prefactor     .10000E-03    6.6187         .0000    ** at limit **
  18  Prefactor     .10000E-03    6.1921         .0000    ** at limit **
  19  Prefactor     .10001E-03    85.507         .0000    ** at limit **
  20  Normalizat    .82723        .13931         .0000        .39264E-05
  21  Prefactor     1.2038        .14972         .0000        .59648E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0637
  Prefactor  = 34.4111
  Prefactor  = 0.000100001
  Prefactor  = 0.000100036
  Prefactor  = 0.217157
  Prefactor  = 4.1105
  Prefactor  = 2.22634
  Prefactor  = 0.0001
  Prefactor  = 17.2113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.350666
  Prefactor  = 0.0001
  Prefactor  = 1.37411
  norm       = 3.1093
  norm       = 7.06978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.827226
  Prefactor  = 1.20383
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.715     FROM HESSE     STATUS=OK           319 CALLS     2584 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.064        6.4529        .12631E-03   -1.5073    
   2  Prefactor     34.411        30.155        .68309E-04   -1.4534    
   3  Prefactor     .10000E-03    17.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    24.467        .26908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21716        3.6579        .15709E-02   -1.5615    
   6  Prefactor     4.1105        5.1771        .19883E-03   -1.5302    
   7  Prefactor     2.2263        9.5682        .13742E-02   -1.5410    
   8  Prefactor     .10000E-03    9.6244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.211        11.915        .96583E-04   -1.4878    
  10  Prefactor     .10000E-03    5.1621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .35067        .62160        .21290E-03   -1.5590    
  13  Prefactor     .10000E-03    .47970        .61941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3741        3.2403        .25020E-03   -1.5474    
  15  norm          3.1093        6.4561        .11498E-02   -1.5355    
  16  norm          7.0698        8.9943        .75424E-03   -1.5176    
  17  Prefactor     .10000E-03    6.8636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    86.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82723        .16214        .24577E-03   -.99067    
  21  Prefactor     1.2038        .17685        .23329E-03   -.86214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02616e-08
Minuit parameter uncertainties:
  1  6.45337
  2  30.1684
  3  0.000300591
  4  0.00186526
  5  1.78223
  6  5.17763
  7  9.23313
  8  1.06091e-05
  9  11.9164
  10  1.38285e-05
  11  2.12238e-05
  12  0.621609
  13  5.36739e-06
  14  3.24075
  15  6.45752
  16  8.99599
  17  4.70013e-05
  18  1.22088e-05
  19  0.00162145
  20  0.162232
  21  0.17694
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.721e+01  1.192e+01  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.204e+00  1.769e-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.272e-01  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.66e-05

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) = 8452.98630846
delta logL = 0.728625512464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8452.98035174
delta logL = 0.734582235835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1413       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7029       1.0000          .0000       10.000    
     3 'Normalizat'    .78885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2301       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=   8452.980     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      279 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1415        10.306        .12181E-03    .36828E-03
   2  Index         2.7029        .60495        .40600E-02    .13634E-03
   3  Normalizat    .78886        .16140        .25092E-03    .19999E-03
   4  Prefactor     1.2300        .17811        .23107E-03    .13113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14154
  Index      = 2.70293
  Normalizat = 0.788858
  Prefactor  = 1.23005
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.980     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1415        8.5707        .48725E-05   -1.5103    
   2  Index         2.7029        .50295        .16240E-03   -.47733    
   3  Normalizat    .78886        .16075        .10037E-04   -1.0048    
   4  Prefactor     1.2300        .17765        .46213E-04   -.85412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56144e-11
Minuit parameter uncertainties:
  1  8.57189
  2  0.504036
  3  0.160849
  4  0.177739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275855': 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) = 8452.98035174
delta logL = 0.73458223661

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  9.142e+00  8.572e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.703e+00  5.040e-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.230e+00  1.777e-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:  7.889e-01  1.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.51
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.70 +/- 0.50
Photon Flux (Free Index): 7.69e-08 +/- 4.03e-08
Energy Flux (Free Index): 1.85e-05 +/- 9.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/275855/cmap_HighResolution_581212801_581472001_4FGL_J1054.5+2211_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.85e-05', photon_flux_error='3.26e-08', dlogl='7.35e-01', energy_flux='2.40e-05', photon_flux2='7.69e-08', job_status='DONE', time_completed='2021-09-02 19:58:52.810148', photon_index_error2='0.50', photon_index2='2.70', ts='5.93', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='9.01e-06', EG='0.83', time_epoch_completed='1630637932.81', return_code='0', job_id='275855', GAL2='1.23', EG2='0.79', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.03e-08', ts2='7.51', photon_index='2.13' WHERE bin_id='1319' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:58:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 275855: <4FGL_J1054.5+2211_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1319 163.628 22.1913 581212801 581472001 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 :                                   696.20 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 :                                   837 sec.
    Turnaround time :                            997 sec.

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

