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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin46
RA = 163.628, Dec = 22.1913
tmin = 251251201, tmax = 251510401
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='269760', job_status='RUN', time_executed='2021-09-02 19:23:47.708356', time_epoch_executed='1630635827.71' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269760/ft1_4FGL_J1054.5+2211_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269760/ft2_4FGL_J1054.5+2211_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269760/ft1_4FGL_J1054.5+2211_daily_bin46.fits outfile=/scratch/kocevski/269760/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin46.fits ra=163.628 dec=22.1913 rad=12.0 tmin=251251201.0 tmax=251510401.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.53
user 1.33
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269760/ft1_filtered_4FGL_J1054.5+2211_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/269760/ft2_4FGL_J1054.5+2211_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/269760/ltcube_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.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/269760/ft2_4FGL_J1054.5+2211_daily_bin46.fits
.....................!
real 19.41
user 17.87
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269760/ft1_filtered_4FGL_J1054.5+2211_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/269760/ft2_4FGL_J1054.5+2211_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/269760/ltcube_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.fits outfile=/scratch/kocevski/269760/expmap_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.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/269760/ltcube_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.fits
.....................!
real 194.04
user 189.29
sys 4.25

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269760/ft1_filtered_4FGL_J1054.5+2211_daily_bin46.fits scfile=/scratch/kocevski/269760/ft2_4FGL_J1054.5+2211_daily_bin46.fits outfile=/scratch/kocevski/269760/cmap_HighResolution_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.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.65
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4953       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77748       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5608       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2301       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7971       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5696       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16321E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95970       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0604       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=   8066.537     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2221 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4971        6.8764        .29099E-06    .78405E-04
   2  Prefactor     .10000E-03    7.4364       -.96616E-08** at limit **
   3  Prefactor     42.586        51.348       -.11945E-07    .18562E-03
   4  Prefactor     2.7170        6.0278       -.11977E-06   -.13007E-03
   5  Prefactor     4.4386        2.3499       -.52829E-07   -.92583E-03
   6  Prefactor     .10000E-03    3.5793        .24660E-05** at limit **
   7  Prefactor     .83276        8.6496       -.47055E-05    .50332E-03
   8  Prefactor     10.091        26.641        .57044E-06   -.41980E-04
   9  Prefactor     .10000E-03    10.356        .83138E-06** at limit **
  10  Prefactor     4.3240        8.4313        .12256E-06   -.40117E-04
  11  Prefactor     8.5440        13.011       -.16318E-05   -.72048E-04
  12  norm          1.2316        .95357        .68240E-07   -.66001E-04
  13  Prefactor     3.2305        2.3123       -.18385E-07   -.13875E-03
  14  Prefactor     7.7972        5.7242        .47433E-07   -.17761E-03
  15  norm          .10000E-03    4.5044       -.79540E-07** at limit **
  16  norm          3.5712        6.5555        .40673E-05    .32141E-03
  17  Prefactor     .10000E-03    4.4839       -.53839E-07** at limit **
  18  Prefactor     2.4784        9.7389        .29327E-06   -.23406E-04
  19  Prefactor     .10000E-03    59.999       -.29771E-06** at limit **
  20  Normalizat    .95961        .14952       -.15577E-05   -.65480E-03
  21  Prefactor     1.0604        .15392        .71411E-06   -.44818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49705
  Prefactor  = 0.0001
  Prefactor  = 42.5857
  Prefactor  = 2.71704
  Prefactor  = 4.43856
  Prefactor  = 0.0001
  Prefactor  = 0.832758
  Prefactor  = 10.091
  Prefactor  = 0.0001
  Prefactor  = 4.32403
  Prefactor  = 8.54398
  norm       = 1.23165
  Prefactor  = 3.2305
  Prefactor  = 7.79723
  norm       = 0.0001
  norm       = 3.57119
  Prefactor  = 0.0001
  Prefactor  = 2.47836
  Prefactor  = 0.000100003
  Normalizat = 0.959607
  Prefactor  = 1.06037
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.537     FROM HESSE     STATUS=OK           323 CALLS     2544 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4971        6.8753        .21626E-03   -1.5334    
   2  Prefactor     .10000E-03    7.4389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.586        51.331        .61438E-04   -1.4402    
   4  Prefactor     2.7170        5.9839        .24705E-03   -1.5378    
   5  Prefactor     4.4386        2.3352        .91062E-04   -1.5287    
   6  Prefactor     .10000E-03    10.115        .30033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83276        22.303        .31171E-02   -1.5525    
   8  Prefactor     10.091        26.658        .12613E-03   -1.5073    
   9  Prefactor     .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3240        8.4006        .19376E-03   -1.5292    
  11  Prefactor     8.5440        13.757        .13700E-03   -1.5123    
  12  norm          1.2316        .94031        .74040E-04   -1.5486    
  13  Prefactor     3.2305        2.3025        .10869E-03   -1.5348    
  14  Prefactor     7.7972        5.7265        .14360E-03   -1.5149    
  15  norm          .10000E-03    4.5380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5712        7.3843        .10695E-02   -1.5330    
  17  Prefactor     .10000E-03    4.5052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4784        9.7293        .25978E-03   -1.5393    
  19  Prefactor     .10000E-03    61.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95961        .17688        .24034E-03   -.94396    
  21  Prefactor     1.0604        .18152        .24940E-03   -.90743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01471e-09
Minuit parameter uncertainties:
  1  6.87682
  2  6.39758e-06
  3  51.3846
  4  5.98521
  5  2.33523
  6  7.15893e-05
  7  8.62226
  8  26.6897
  9  7.23646e-05
  10  8.40291
  11  13.7617
  12  0.940325
  13  2.30252
  14  5.72694
  15  1.65784e-06
  16  7.38619
  17  1.26007e-05
  18  9.73547
  19  0.000909221
  20  0.176989
  21  0.181628
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  7.236e-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:  1.060e+00  1.816e-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:  9.596e-01  1.770e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269760/likelihoodResults_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.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) = 8066.53774174
delta logL = -0.000450201140666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8066.53729174
delta logL = -1.98855559574e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1750       1.0000          .0000       10.000    
     3 'Normalizat'    .95946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0606       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=   8066.537     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2096.3        .36285E-03** at limit **
   2  Index         2.2202        6.1095        .50000       -.36478E-04
   3  Normalizat    .95961        .70352E-01    .24034E-03   -.65468E-03
   4  Prefactor     1.0604        .76681E-01    .24940E-03   -.52419E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8066.537     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      420 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2096.3        .65527E-03** at limit **
   2  Index         2.2202        6.1095        .28176E-05   -.36478E-04
   3  Normalizat    .95961        .70352E-01    .92086E-07   -.65468E-03
   4  Prefactor     1.0604        .76681E-01    .72997E-07   -.52419E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8066.537     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      454 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    14.432        .72569E-04** at limit **
   2  Index         2.2205        6.0980        .50000       -.36499E-04
   3  Normalizat    .95961        .16420        .48068E-04   -.65740E-03
   4  Prefactor     1.0604        .17900        .49880E-04   -.52650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.2205
  Normalizat = 0.959608
  Prefactor  = 1.06037
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.537     FROM HESSE     STATUS=OK            29 CALLS      483 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    12.480        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2205        6.1096        .50000       -.58944    
   3  Normalizat    .95961        .16423        .96137E-05   -.94396    
   4  Prefactor     1.0604        .17903        .99760E-05   -.90743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75286e-09
Minuit parameter uncertainties:
  1  0.00091046
  2  4.17545
  3  0.164319
  4  0.179132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269760': 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) = 8066.53729085
delta logL = 6.93833499099e-07

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  9.105e-04  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.221e+00  4.175e+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.060e+00  1.791e-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:  9.596e-01  1.643e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/269760/cmap_HighResolution_251251201_251510401_4FGL_J1054.5+2211_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-09-02 19:36:19.688497', job_id='269760', GAL2='1.06', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630636579.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='46' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:36:19 PDT 2021


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

Job <4FGL_J1054.5+2211_daily_bin46> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:23:03 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:23: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:23:30 2021
Terminated at Thu Sep  2 19:36:20 2021
Results reported at Thu Sep  2 19:36:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin46 163.628 22.1913 251251201 251510401 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 :                                   745.00 sec.
    Max Memory :                                 1023 MB
    Average Memory :                             339.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            797 sec.

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

