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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1522
RA = 163.628, Dec = 22.1913
tmin = 633830401, tmax = 634089601
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='277153', job_status='RUN', time_executed='2021-09-02 19:51:14.723577', time_epoch_executed='1630637474.72' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277153

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277153/ft1_4FGL_J1054.5+2211_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277153/ft2_4FGL_J1054.5+2211_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277153/ft1_4FGL_J1054.5+2211_daily_bin1522.fits outfile=/scratch/kocevski/277153/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1522.fits ra=163.628 dec=22.1913 rad=12.0 tmin=633830401.0 tmax=634089601.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.67
user 3.44
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277153/ft1_filtered_4FGL_J1054.5+2211_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/277153/ft2_4FGL_J1054.5+2211_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/277153/ltcube_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.fits outfile=/scratch/kocevski/277153/expmap_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.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/277153/ltcube_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.fits
.....................!
real 191.41
user 186.14
sys 4.12

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/277153/ft1_filtered_4FGL_J1054.5+2211_daily_bin1522.fits scfile=/scratch/kocevski/277153/ft2_4FGL_J1054.5+2211_daily_bin1522.fits outfile=/scratch/kocevski/277153/cmap_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.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.56
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11941E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63450E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.520       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2121       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78469       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=   5392.490     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     1903 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0543        .90712E-02** at limit **
   2  Prefactor     .10000E-03    77.914        .90712E-02** at limit **
   3  Prefactor     .10002E-03    329.89        .93355E-02** at limit **
   4  Prefactor     15.522        8.8658        .25417E-02    .30578E-02
   5  Prefactor     .83570        2.0770        .12577E-01    .79765E-03
   6  Prefactor     7.8095        5.9082        .35871E-02   -.46308E-03
   7  Prefactor     3.2422        9.2917        .56179E-02   -.69333E-03
   8  Prefactor     .10000E-03    6.1920        .90712E-02** at limit **
   9  Prefactor     .10000E-03    6.8857        .90712E-02** at limit **
  10  Prefactor     .10000E-03    4.1676        .90712E-02** at limit **
  11  Prefactor     .10000E-03    14.933        .90712E-02** at limit **
  12  norm          1.2017        1.0997        .10349E-01    .22424E-03
  13  Prefactor     7.2625        3.4752        .37208E-02   -.82626E-04
  14  Prefactor     .10000E-03    5.0335        .90712E-02** at limit **
  15  norm          .10000E-03    9.8471        .90712E-02** at limit **
  16  norm          .10000E-03    2.3288        .90712E-02** at limit **
  17  Prefactor     .10000E-03    4.5374        .90712E-02** at limit **
  18  Prefactor     51.317        23.645        .13996E-02   -.80749E-03
  19  Prefactor     .10000E-03    33.170        .90712E-02** at limit **
  20  Normalizat    1.2123        .18081        .49537E-01   -.68208E-03
  21  Prefactor     .78456        .18418        .63711E-01   -.63589E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100025
  Prefactor  = 15.5224
  Prefactor  = 0.835704
  Prefactor  = 7.80952
  Prefactor  = 3.24221
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.20173
  Prefactor  = 7.26251
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3166
  Prefactor  = 0.000100004
  Normalizat = 1.2123
  Prefactor  = 0.784555
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.490     FROM HESSE     STATUS=OK           305 CALLS     2208 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0724        .14438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    342.94        .37342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.522        8.8104        .10167E-03   -1.4920    
   5  Prefactor     .83570        2.0005        .15463E-03   -1.5525    
   6  Prefactor     7.8095        5.9078        .14349E-03   -1.5149    
   7  Prefactor     3.2422        9.2407        .22472E-03   -1.5348    
   8  Prefactor     .10000E-03    6.1937        .17847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1715        .14637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2017        1.0804        .71286E-04   -1.5489    
  13  Prefactor     7.2625        3.4835        .90200E-04   -1.5169    
  14  Prefactor     .10000E-03    5.0803        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.9411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3322        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5494        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.317        23.660        .55983E-04   -1.4274    
  19  Prefactor     .10000E-03    33.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2123        .21672        .21900E-03   -.86224    
  21  Prefactor     .78456        .21940        .28182E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66025e-09
Minuit parameter uncertainties:
  1  1.34311e-05
  2  0.000832519
  3  0.005834
  4  8.81109
  5  2.00063
  6  5.90823
  7  9.24475
  8  5.2787e-05
  9  0.000121708
  10  1.30424e-05
  11  0.000187798
  12  1.08038
  13  3.48356
  14  4.81181e-06
  15  8.97476e-05
  16  2.90614e-05
  17  2.29006e-05
  18  23.6642
  19  0.000711855
  20  0.216886
  21  0.219641
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.217e-04  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:  7.846e-01  2.196e-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.212e+00  2.169e-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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277153/likelihoodResults_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.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) = 5392.49019133
delta logL = -0.000689606502419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5392.48950173
delta logL = -1.27511157189e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1408       1.0000          .0000       10.000    
     3 'Normalizat'    1.2123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78456       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=   5392.490     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    415.89        .90712E-02** at limit **
   2  Index         2.1466        5.6427        .50000       -.70714E-05
   3  Normalizat    1.2123        .37416E-01    .49537E-01   -.14998E-04
   4  Prefactor     .78456        .39803E-01    .63711E-01    .97204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14664
  Normalizat = 1.2123
  Prefactor  = 0.784559
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.490     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1119.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1466        5.7131        .50000       -.60732    
   3  Normalizat    1.2123        .78854E-01    .21900E-03   -.86224    
   4  Prefactor     .78456        .83799E-01    .28182E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.7524e-09
Minuit parameter uncertainties:
  1  2.41209e-05
  2  53.3206
  3  0.0788614
  4  0.0838129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277153': 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): 102
logL (Free Index) = 5392.48950171
delta logL = 2.02535375138e-08

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  2.412e-05  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.147e+00  5.332e+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:  7.846e-01  8.381e-02  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.212e+00  7.886e-02  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/277153/cmap_HighResolution_633830401_634089601_4FGL_J1054.5+2211_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-02 20:01:11.085190', job_id='277153', GAL2='0.78', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630638071.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1522' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:01:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 277153: <4FGL_J1054.5+2211_daily_bin1522> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1522> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 19:46:18 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:49:18 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:49:18 2021
Terminated at Thu Sep  2 20:01:11 2021
Results reported at Thu Sep  2 20:01:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1522 163.628 22.1913 633830401 634089601 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 :                                   580.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            893 sec.

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

