/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 223 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1054.5+2211_daily_bin95
RA = 163.628, Dec = 22.1913
tmin = 263952001, tmax = 264211201
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='269838', job_status='RUN', time_executed='2021-09-02 19:28:15.807244', time_epoch_executed='1630636095.81' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269838/ft1_4FGL_J1054.5+2211_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269838/ft2_4FGL_J1054.5+2211_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269838/ft1_4FGL_J1054.5+2211_daily_bin95.fits outfile=/scratch/kocevski/269838/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin95.fits ra=163.628 dec=22.1913 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.74
user 1.54
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269838/ft1_filtered_4FGL_J1054.5+2211_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/269838/ft2_4FGL_J1054.5+2211_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/269838/ltcube_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.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/269838/ft2_4FGL_J1054.5+2211_daily_bin95.fits
.....................!
real 16.13
user 15.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269838/ft1_filtered_4FGL_J1054.5+2211_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/269838/ft2_4FGL_J1054.5+2211_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/269838/ltcube_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.fits outfile=/scratch/kocevski/269838/expmap_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.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/269838/ltcube_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.fits
.....................!
real 191.06
user 186.30
sys 4.20

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/269838/ft1_filtered_4FGL_J1054.5+2211_daily_bin95.fits scfile=/scratch/kocevski/269838/ft2_4FGL_J1054.5+2211_daily_bin95.fits outfile=/scratch/kocevski/269838/cmap_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=163.628 yref=22.1913 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.62
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8275       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6855       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.691       1.0000         .10000E-03   10000.    
    15 'norm      '    10.671       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11857E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87036       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0237       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=   5415.289     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1892 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.332        10.484        .19714E-06    .31941E-05
   2  Prefactor     14.541        25.190       -.41864E-05   -.65910E-05
   3  Prefactor     12.408        27.993       -.25653E-04   -.74078E-05
   4  Prefactor     9.8282        8.8046        .48083E-06   -.11416E-03
   5  Prefactor     2.8954        2.1316       -.63700E-07   -.12795E-03
   6  Prefactor     6.2689        5.7623        .14786E-05   -.10931E-03
   7  Prefactor     .10000E-03    5.3652       -.27512E-06** at limit **
   8  Prefactor     .10000E-03    19.913       -.59430E-06** at limit **
   9  Prefactor     8.2491        9.4849        .17829E-06   -.76544E-04
  10  Prefactor     5.1112        6.4953       -.37254E-05   -.15958E-03
  11  Prefactor     5.6839        13.872        .61635E-06   -.75975E-04
  12  norm          1.7283        1.3512       -.44322E-06   -.68510E-03
  13  Prefactor     .10000E-03    1.0824        .50442E-06** at limit **
  14  Prefactor     12.691        7.3133       -.14525E-06   -.14036E-04
  15  norm          10.657        15.194        .76854E-05   -.25819E-04
  16  norm          .10000E-03    3.4189       -.24326E-06** at limit **
  17  Prefactor     .10000E-03    3.1654       -.30723E-07** at limit **
  18  Prefactor     .10000E-03    13.705       -.28830E-07** at limit **
  19  Prefactor     .10000E-03    76.989       -.23316E-05** at limit **
  20  Normalizat    .87034        .17451       -.94639E-06   -.38338E-04
  21  Prefactor     1.0237        .18501        .49329E-06   -.96010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.3321
  Prefactor  = 14.5412
  Prefactor  = 12.4082
  Prefactor  = 9.82822
  Prefactor  = 2.89543
  Prefactor  = 6.26886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.2491
  Prefactor  = 5.11123
  Prefactor  = 5.68391
  norm       = 1.72831
  Prefactor  = 0.0001
  Prefactor  = 12.6907
  norm       = 10.6572
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.870344
  Prefactor  = 1.02366
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.289     FROM HESSE     STATUS=OK           325 CALLS     2217 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.332        10.487        .71582E-04   -1.4588    
   2  Prefactor     14.541        25.190        .10502E-03   -1.4945    
   3  Prefactor     12.408        27.978        .11361E-03   -1.5003    
   4  Prefactor     9.8282        8.7972        .12783E-03   -1.5081    
   5  Prefactor     2.8954        2.1240        .86608E-04   -1.5368    
   6  Prefactor     6.2689        5.7531        .16033E-03   -1.5207    
   7  Prefactor     .10000E-03    5.3992        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2491        9.4450        .13959E-03   -1.5133    
  10  Prefactor     5.1112        6.4918        .17782E-03   -1.5256    
  11  Prefactor     5.6839        13.830        .16846E-03   -1.5231    
  12  norm          1.7283        1.3401        .72143E-04   -1.5445    
  13  Prefactor     .10000E-03    2.1797        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.691        7.3161        .11244E-03   -1.4995    
  15  norm          10.657        15.157        .12265E-03   -1.5055    
  16  norm          .10000E-03    3.4282        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1717        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    77.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87034        .19998        .24151E-03   -.97510    
  21  Prefactor     1.0237        .21184        .24724E-03   -.91945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60197e-10
Minuit parameter uncertainties:
  1  10.4872
  2  25.2087
  3  28.0077
  4  8.79833
  5  2.12408
  6  5.75358
  7  6.89834e-06
  8  3.71542e-05
  9  9.44671
  10  6.49271
  11  13.8382
  12  1.34013
  13  1.64077e-05
  14  7.3166
  15  15.1626
  16  2.61863e-06
  17  1.62079e-07
  18  1.24976e-05
  19  0.000698651
  20  0.200146
  21  0.212011
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  8.249e+00  9.447e+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.024e+00  2.120e-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.703e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/269838/likelihoodResults_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.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) = 5415.03595733
delta logL = 0.252997946431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5415.02828145
delta logL = 0.260673827442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5291       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8539       1.0000          .0000       10.000    
     3 'Normalizat'    .84611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       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=   5415.028     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      270 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5277        29.849        .12149E-03   -.20436E-02
   2  Index         2.8543        2.7785        .59647E-02   -.46055E-03
   3  Normalizat    .84613        .20517        .24444E-03   -.66012E-03
   4  Prefactor     1.0412        .22273        .24539E-03   -.74480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52772
  Index      = 2.85428
  Normalizat = 0.846126
  Prefactor  = 1.04116
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.028     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5277        8.2442        .48598E-05   -1.5332    
   2  Index         2.8543        1.1867        .23859E-03   -.44354    
   3  Normalizat    .84613        .19562        .48888E-04   -.98380    
   4  Prefactor     1.0412        .21381        .49077E-04   -.91370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65076e-09
Minuit parameter uncertainties:
  1  8.24685
  2  1.20078
  3  0.195782
  4  0.213985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269838': 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) = 5415.02828123
delta logL = 0.260674054728

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.528e+00  8.247e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.854e+00  1.201e+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.041e+00  2.140e-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.461e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.85 +/- 1.20
Photon Flux (Free Index): 4.10e-08 +/- 4.16e-08
Energy Flux (Free Index): 8.86e-06 +/- 8.58e-06

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/269838/cmap_HighResolution_263952001_264211201_4FGL_J1054.5+2211_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='8.86e-06', photon_flux_error='2.59e-08', dlogl='2.61e-01', energy_flux='1.15e-05', photon_flux2='4.10e-08', job_status='DONE', time_completed='2021-09-02 19:38:00.741167', photon_index_error2='1.20', photon_index2='2.85', ts='1.17', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='8.58e-06', EG='0.87', time_epoch_completed='1630636680.74', return_code='0', job_id='269838', GAL2='1.04', EG2='0.85', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.16e-08', ts2='1.71', photon_index='2.13' WHERE bin_id='95' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:38:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 269838: <4FGL_J1054.5+2211_daily_bin95> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin95> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:23:10 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:24:17 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:24:17 2021
Terminated at Thu Sep  2 19:38:01 2021
Results reported at Thu Sep  2 19:38:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin95 163.628 22.1913 263952001 264211201 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 :                                   576.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            891 sec.

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

