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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1401
RA = 163.628, Dec = 22.1913
tmin = 602467201, tmax = 602726401
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='275982', job_status='RUN', time_executed='2021-09-02 19:49:37.088474', time_epoch_executed='1630637377.09' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275982

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275982/ft1_4FGL_J1054.5+2211_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275982/ft2_4FGL_J1054.5+2211_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275982/ft1_4FGL_J1054.5+2211_daily_bin1401.fits outfile=/scratch/kocevski/275982/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1401.fits ra=163.628 dec=22.1913 rad=12.0 tmin=602467201.0 tmax=602726401.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.04
user 2.97
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275982/ft1_filtered_4FGL_J1054.5+2211_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/275982/ft2_4FGL_J1054.5+2211_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/275982/ltcube_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.fits outfile=/scratch/kocevski/275982/expmap_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.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/275982/ltcube_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.fits
.....................!
real 191.42
user 185.31
sys 4.77

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/275982/ft1_filtered_4FGL_J1054.5+2211_daily_bin1401.fits scfile=/scratch/kocevski/275982/ft2_4FGL_J1054.5+2211_daily_bin1401.fits outfile=/scratch/kocevski/275982/cmap_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275982/ft1_filtered_4FGL_J1054.5+2211_daily_bin1401.fits scfile=/scratch/kocevski/275982/ft2_4FGL_J1054.5+2211_daily_bin1401.fits outfile=/scratch/kocevski/275982/cmap_HighResolution_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.925       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11791E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.0573       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .10739E-07   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=   265.8618     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     3232 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        9712.4        .19085E-02** at limit **
   2  Prefactor     .10000E-03    6481.9       -.17162E-02** at limit **
   3  Prefactor    10000.0        9980.8        .19243E-02** at limit **
   4  Prefactor     .10000E-03    143.51        .94421E-04** at limit **
   5  Prefactor     .10000E-03    80.956       -.23741E-04** at limit **
   6  Prefactor     49.677        61.062       -.24616E-06    .11696E-04
   7  Prefactor     .10000E-03    79.023       -.12285E-04** at limit **
   8  Prefactor     .10000E-03    7282.1       -.18093E-02** at limit **
   9  Prefactor     .10000E-03    81.276       -.25003E-04** at limit **
  10  Prefactor     .10000E-03    251.00       -.12343E-03** at limit **
  11  Prefactor     .10000E-03    96.108       -.20968E-04** at limit **
  12  norm          .10000E-03    3.6762       -.39976E-06** at limit **
  13  Prefactor     52.124        64.980        .18227E-04    .54252E-04
  14  Prefactor     56.882        77.781       -.39579E-04    .39546E-04
  15  norm          .10000E-03    23.670        .17894E-05** at limit **
  16  norm          .10000E-03    73.461        .48971E-04** at limit **
  17  Prefactor     .10041E-03    286.75       -.15462E-06** at limit **
  18  Prefactor     .10000E-03    174.66        .72492E-04** at limit **
  19  Prefactor     .10000E-03    214.24       -.16265E-04** at limit **
  20  Normalizat    2.0573        .68430        .16100E-04   -.18500E-04
  21  Prefactor     .53135E-10    .60305       -.49092E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.6774
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.1239
  Prefactor  = 56.8815
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100406
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 2.05729
  Prefactor  = 5.31353e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   265.8618     FROM HESSE     STATUS=OK           297 CALLS     3529 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        9712.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6481.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        9980.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    143.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    80.972        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.677        61.069        .56896E-04   -1.4297    
   7  Prefactor     .10000E-03    79.027        .14187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7282.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    81.278        .14388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    251.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    96.114        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6765        .30560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.124        65.258        .55564E-04   -1.4263    
  14  Prefactor     56.882        78.292        .53170E-04   -1.4198    
  15  norm          .10000E-03    23.672        .77572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    73.464        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10041E-03    288.12        .20650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    174.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    214.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    2.0573        .67261        .23019E-03   -.63122    
  21  Prefactor     .53135E-10    .62786        .75617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56449e-09
Minuit parameter uncertainties:
  1  0.0179355
  2  0.000117311
  3  0.0285953
  4  4.05627e-06
  5  9.08789e-05
  6  61.1464
  7  3.99806e-05
  8  0.00897786
  9  1.9027e-05
  10  0.000801913
  11  0.000159294
  12  3.5951e-06
  13  65.3475
  14  78.4342
  15  2.3561e-05
  16  0.000207023
  17  0.021748
  18  0.000876811
  19  0.000289604
  20  0.675772
  21  1.16763e-05
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.903e-05  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:  5.314e-11  1.168e-05  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:  2.057e+00  6.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 1.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275982/likelihoodResults_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.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): 102
logL (Free Index) = 265.861870772
delta logL = -5.77768831249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 265.861814116
delta logL = -1.1208950923e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9809       1.0000          .0000       10.000    
     3 'Normalizat'    2.0577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85289E-10   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=   265.8618     FROM MIGRAD    STATUS=FAILED        85 CALLS      270 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13516E-03    6241.4        .97977E-02** at limit **
   2  Index         1.9874        8.9007        .20000E-01    .16330E-05
   3  Normalizat    2.0573        .14831        .23018E-03   -.14173E-03
   4  Prefactor     .46414E-10    .41562E-01    .75619E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   265.8618     FROM SIMPLEX   STATUS=PROGRESS     139 CALLS      409 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11978E-03    6241.4        .89732E-03** at limit **
   2  Index         1.9874        8.9007        .36579E-05    .16330E-05
   3  Normalizat    2.0573        .14831        .65587E-07   -.14173E-03
   4  Prefactor     .59483E-08    .41562E-01    .20880E-02** at limit **
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   265.8618     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      450 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8375.1        .15051E-01** at limit **
   2  Index         1.5667        5.7226        .40000E-01   -.22009E-07
   3  Normalizat    2.0573        .27674        .46037E-04    .21608E-06
   4  Prefactor     .18430E-12    .14439        .15124E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.56666
  Normalizat = 2.0573
  Prefactor  = 1.84297e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   265.8618     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.40        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5667        5.2136        .16000E-02   -.75690    
   3  Normalizat    2.0573        .58031        .92073E-05   -.63122    
   4  Prefactor     .18430E-12    .62789        .30247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27758e-11
Minuit parameter uncertainties:
  1  0.00135814
  2  1095.84
  3  0.582336
  4  6.88127e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275982': 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) = 265.861812878
delta logL = 1.16699482078e-07

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.358e-03  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.567e+00  1.096e+03  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.843e-13  6.881e-07  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:  2.057e+00  5.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/275982/cmap_HighResolution_602467201_602726401_4FGL_J1054.5+2211_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-02', job_status='DONE', photon_flux_upper_limit='1.22e-06', time_completed='2021-09-02 19:58:24.858004', job_id='275982', GAL2='0.00', fit_tolerance='1e-08', EG2='2.06', EG='2.06', time_epoch_completed='1630637904.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1401' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:58:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 275982: <4FGL_J1054.5+2211_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1401 163.628 22.1913 602467201 602726401 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 :                                   346.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            958 sec.

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

