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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1002
RA = 163.628, Dec = 22.1913
tmin = 499046401, tmax = 499305601
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='275323', job_status='RUN', time_executed='2021-09-02 19:45:29.090906', time_epoch_executed='1630637129.09' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275323/ft1_4FGL_J1054.5+2211_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275323/ft1_4FGL_J1054.5+2211_daily_bin1002.fits outfile=/scratch/kocevski/275323/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1002.fits ra=163.628 dec=22.1913 rad=12.0 tmin=499046401.0 tmax=499305601.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.96
user 4.11
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275323/ft1_filtered_4FGL_J1054.5+2211_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/275323/ltcube_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.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/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits
.....................!
real 18.71
user 17.82
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275323/ft1_filtered_4FGL_J1054.5+2211_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/275323/ltcube_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.fits outfile=/scratch/kocevski/275323/expmap_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.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/275323/ltcube_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.fits
.....................!
real 193.46
user 187.42
sys 5.17

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/275323/ft1_filtered_4FGL_J1054.5+2211_daily_bin1002.fits scfile=/scratch/kocevski/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits outfile=/scratch/kocevski/275323/cmap_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275323/ft1_filtered_4FGL_J1054.5+2211_daily_bin1002.fits scfile=/scratch/kocevski/275323/ft2_4FGL_J1054.5+2211_daily_bin1002.fits outfile=/scratch/kocevski/275323/cmap_HighResolution_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.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.61
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15891E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8838       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16917E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12894E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0996       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4602.186     FROM MIGRAD    STATUS=FAILED       799 CALLS     2581 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8911        12.114        .15284E-03   -.11924E-03
   2  Prefactor     .10000E-03    43.361        .18142E-02** at limit **
   3  Prefactor     18.284        37.121        .93733E-04   -.13381E-03
   4  Prefactor     .10000E-03    3.1262        .11686E-02** at limit **
   5  Prefactor     .13306E-01    3.2849        .26629E-01    .33867E-03
   6  Prefactor     1.8859        11.427        .30327E-03    .12821E-04
   7  Prefactor     .66853        76.468        .31845E-02    .96295E-03
   8  Prefactor     .10000E-03    8.0155        .18142E-02** at limit **
   9  Prefactor     5.2264        16.630        .17580E-03    .24257E-03
  10  Prefactor     .10000E-03    55.088        .33669E-02** at limit **
  11  Prefactor     .10000E-03    16.959        .18142E-02** at limit **
  12  norm          2.0750        1.8474        .82645E-04    .14306E-03
  13  Prefactor     .10000E-03    8.9945        .16442E-02** at limit **
  14  Prefactor     .10000E-03    2.5624        .10593E-02** at limit **
  15  norm          .10000E-03    4.0099        .13264E-02** at limit **
  16  norm          .10000E-03    22.968        .36285E-03** at limit **
  17  Prefactor     4.4129        6.9760        .19173E-03   -.67536E-04
  18  Prefactor     18.266        17.377        .93735E-04   -.58459E-04
  19  Prefactor     .10000E-03    23.995        .18142E-02** at limit **
  20  Normalizat    1.0681        .23879        .23980E-03   -.29440E-03
  21  Prefactor     1.0997        .24816        .25599E-03   -.12682E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4602.186     FROM SIMPLEX   STATUS=PROGRESS     993 CALLS     3574 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8912        12.114        .36663E-06   -1.5183    
   2  Prefactor     .10000E-03    43.361        .98895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.284        37.121        .30516E-06   -1.4852    
   4  Prefactor     .10000E-03    3.1262        .27824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13306E-01    3.2849        .33142E-06   -1.5685    
   6  Prefactor     1.8859        11.427        .31175E-06   -1.5433    
   7  Prefactor     .66853        76.468        .56558E-06   -1.5544    
   8  Prefactor     .10000E-03    8.0155        .50432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2264        16.630        .30449E-06   -1.5251    
  10  Prefactor     .10000E-03    55.088        .54474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.959        .10254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0750        1.8474        .30808E-06   -1.5420    
  13  Prefactor     .10000E-03    8.9945        .15638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5624        .12945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0099        .12539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.968        .38808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4129        6.9760        .30558E-06   -1.5288    
  18  Prefactor     18.266        17.377        .29756E-06   -1.4853    
  19  Prefactor     .10000E-03    23.995        .23176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0681        .23879        .18149E-06   -.90784    
  21  Prefactor     1.0997        .24816        .17844E-06   -.89478    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4602.186     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     3893 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8912        12.110        .61135E-05   -.33473E-05
   2  Prefactor     .10000E-03    43.367        .36285E-03** at limit **
   3  Prefactor     18.285        37.120        .18747E-04   -.73986E-05
   4  Prefactor     .10000E-03    3.1264        .23373E-03** at limit **
   5  Prefactor     .13306E-01    2.5288        .31761E-01    .25996E-03
   6  Prefactor     1.8859        11.407        .12131E-04   -.14995E-05
   7  Prefactor     .66869        65.468        .63690E-03    .11156E-04
   8  Prefactor     .10000E-03    8.0156        .36285E-03** at limit **
   9  Prefactor     5.2261        15.439        .70320E-05   -.80836E-05
  10  Prefactor     .10000E-03    56.331        .67339E-03** at limit **
  11  Prefactor     .10000E-03    16.965        .36285E-03** at limit **
  12  norm          2.0750        1.8469        .33058E-05    .55024E-05
  13  Prefactor     .10000E-03    9.1101        .32884E-03** at limit **
  14  Prefactor     .10000E-03    2.5625        .21186E-03** at limit **
  15  norm          .10000E-03    4.0100        .26527E-03** at limit **
  16  norm          .10000E-03    22.968        .72569E-04** at limit **
  17  Prefactor     4.4129        6.9758        .76693E-05   -.41506E-05
  18  Prefactor     18.266        17.376        .18747E-04   -.33960E-05
  19  Prefactor     .10000E-03    23.996        .36285E-03** at limit **
  20  Normalizat    1.0681        .23719        .47961E-04   -.24984E-04
  21  Prefactor     1.0997        .24764        .51199E-04   -.12657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.89118
  Prefactor  = 0.0001
  Prefactor  = 18.2849
  Prefactor  = 0.0001
  Prefactor  = 0.0133061
  Prefactor  = 1.88589
  Prefactor  = 0.668688
  Prefactor  = 0.0001
  Prefactor  = 5.22608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.41295
  Prefactor  = 18.266
  Prefactor  = 0.0001
  Normalizat = 1.06808
  Prefactor  = 1.09965
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.186     FROM HESSE     STATUS=OK           305 CALLS     4198 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8912        12.106        .12227E-05   -1.5183    
   2  Prefactor     .10000E-03    43.367        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.285        37.116        .37493E-05   -1.4852    
   4  Prefactor     .10000E-03    3.1265        .46745E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13306E-01    2.7280        .30143E-01   -1.5685    
   6  Prefactor     1.8859        11.413        .24261E-05   -1.5433    
   7  Prefactor     .66869        63.164        .25476E-04   -1.5544    
   8  Prefactor     .10000E-03    8.0156        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2261        15.182        .14064E-05   -1.5251    
  10  Prefactor     .10000E-03    56.382        .13468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.966        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0750        1.8471        .66116E-06   -1.5420    
  13  Prefactor     .10000E-03    9.1149        .65767E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5625        .42372E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0100        .53055E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.969        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4129        6.9776        .15339E-05   -1.5288    
  18  Prefactor     18.266        17.377        .37494E-05   -1.4853    
  19  Prefactor     .10000E-03    23.996        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0681        .23688        .95921E-05   -.90784    
  21  Prefactor     1.0997        .24757        .10240E-04   -.89478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70161e-11
Minuit parameter uncertainties:
  1  12.1105
  2  4.07614e-05
  3  37.1629
  4  6.83152e-07
  5  0.379626
  6  9.28117
  7  13.0112
  8  1.85014e-07
  9  15.1929
  10  7.09397e-06
  11  1.07605e-05
  12  1.84711
  13  5.14721e-06
  14  4.96838e-07
  15  1.92431e-06
  16  1.30273e-05
  17  6.97888
  18  17.3819
  19  7.668e-06
  20  0.237112
  21  0.24783
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.226e+00  1.519e+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.100e+00  2.478e-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.068e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275323/likelihoodResults_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.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) = 4602.18325011
delta logL = 0.00277987880236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4602.18208443
delta logL = 0.00394556134142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8543       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0343       1.0000          .0000       10.000    
     3 'Normalizat'    1.0695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0984       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=   4602.182     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      199 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8543        508.95        .41495E-02    .64224E-03
   2  Index         2.0343        5.7137        .25595        .10964E-03
   3  Normalizat    1.0695        .56932E-01    .39406E-01   -.11468E-04
   4  Prefactor     1.0984        .55794E-01    .57917E-01    .28745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85428
  Index      = 2.0343
  Normalizat = 1.06949
  Prefactor  = 1.09843
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.182     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8543        14.134        .16598E-03   -1.5224    
   2  Index         2.0343        1.1368        .10282E-01   -.63495    
   3  Normalizat    1.0695        .22617        .23966E-03   -.90738    
   4  Prefactor     1.0984        .24552        .25611E-03   -.89517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55733e-10
Minuit parameter uncertainties:
  1  14.1423
  2  1.1525
  3  0.226372
  4  0.245775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275323': 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) = 4602.18208442
delta logL = 0.00394556348692

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.854e+00  1.414e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.034e+00  1.153e+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.098e+00  2.458e-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.069e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/275323/cmap_HighResolution_499046401_499305601_4FGL_J1054.5+2211_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-09-02 19:56:47.802386', job_id='275323', GAL2='1.10', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630637807.8', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.95e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1002' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:56:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 275323: <4FGL_J1054.5+2211_daily_bin1002> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1002 163.628 22.1913 499046401 499305601 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 :                                   670.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            915 sec.

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

