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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin20
RA = 163.628, Dec = 22.1913
tmin = 244512001, tmax = 244771201
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='269730', job_status='RUN', time_executed='2021-09-02 19:26:34.340941', time_epoch_executed='1630635994.34' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269730/ft1_4FGL_J1054.5+2211_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269730/ft1_4FGL_J1054.5+2211_daily_bin20.fits outfile=/scratch/kocevski/269730/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin20.fits ra=163.628 dec=22.1913 rad=12.0 tmin=244512001.0 tmax=244771201.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.51
user 1.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269730/ft1_filtered_4FGL_J1054.5+2211_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/269730/ltcube_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.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/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits
.....................!
real 18.09
user 17.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269730/ft1_filtered_4FGL_J1054.5+2211_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/269730/ltcube_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.fits outfile=/scratch/kocevski/269730/expmap_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.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/269730/ltcube_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.fits
.....................!
real 192.72
user 186.90
sys 4.74

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/269730/ft1_filtered_4FGL_J1054.5+2211_daily_bin20.fits scfile=/scratch/kocevski/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits outfile=/scratch/kocevski/269730/cmap_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.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.74
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269730/ft1_filtered_4FGL_J1054.5+2211_daily_bin20.fits scfile=/scratch/kocevski/269730/ft2_4FGL_J1054.5+2211_daily_bin20.fits outfile=/scratch/kocevski/269730/cmap_HighResolution_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.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.71
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.229       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10127       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9087       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0969       1.0000         .10000E-03   10000.    
    16 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70636       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3192       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=   5106.346     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1860 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.229        9.9826        .21733E-02    .17901E-04
   2  Prefactor     .10000E-03    15.286        .90712E-02** at limit **
   3  Prefactor     .10011E-03    23.741        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.4339        .90712E-02** at limit **
   5  Prefactor     .92966E-01    1.1350        .39746E-01    .72117E-03
   6  Prefactor     5.5182        4.7656        .42759E-02    .72320E-03
   7  Prefactor     14.640        11.966        .26173E-02    .17897E-03
   8  Prefactor     .10007E-03    14.397        .90712E-02** at limit **
   9  Prefactor     30.060        15.555        .18270E-02   -.35007E-03
  10  Prefactor     2.1046        22.562        .71045E-02    .20433E-03
  11  Prefactor     .10001E-03    15.907        .90712E-02** at limit **
  12  norm          1.4145        1.2278        .91012E-02    .43519E-03
  13  Prefactor     6.6562        4.3001        .38882E-02    .22406E-03
  14  Prefactor     2.9103        7.7135        .59558E-02    .31337E-03
  15  norm          2.0973        13.589        .71257E-02    .24196E-03
  16  norm          .10001E-03    35.398        .90712E-02** at limit **
  17  Prefactor     .10000E-03    10.803        .90712E-02** at limit **
  18  Prefactor     .10007E-03    17.059        .90712E-02** at limit **
  19  Prefactor     .10000E-03    21.439        .90712E-02** at limit **
  20  Normalizat    .70640        .18408        .62643E-01    .34867E-04
  21  Prefactor     1.3191        .19758        .53236E-01   -.34699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.229
  Prefactor  = 0.000100002
  Prefactor  = 0.000100105
  Prefactor  = 0.0001
  Prefactor  = 0.0929658
  Prefactor  = 5.51819
  Prefactor  = 14.6403
  Prefactor  = 0.000100066
  Prefactor  = 30.0602
  Prefactor  = 2.10455
  Prefactor  = 0.000100013
  norm       = 1.4145
  Prefactor  = 6.65618
  Prefactor  = 2.91031
  norm       = 2.09728
  norm       = 0.000100012
  Prefactor  = 0.000100001
  Prefactor  = 0.000100075
  Prefactor  = 0.000100002
  Normalizat = 0.7064
  Prefactor  = 1.31914
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.346     FROM HESSE     STATUS=OK           317 CALLS     2177 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.229        9.9829        .86932E-04   -1.4786    
   2  Prefactor     .10000E-03    15.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    23.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4942        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .92966E-01    5.3278        .14491E-02   -1.5647    
   6  Prefactor     5.5182        4.7633        .14029E-03   -1.5238    
   7  Prefactor     14.640        11.947        .10469E-03   -1.4943    
   8  Prefactor     .10007E-03    14.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.060        15.539        .73082E-04   -1.4611    
  10  Prefactor     2.1046        21.603        .28418E-03   -1.5418    
  11  Prefactor     .10001E-03    16.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4145        1.2208        .70921E-04   -1.5470    
  13  Prefactor     6.6562        4.2139        .99012E-04   -1.5192    
  14  Prefactor     2.9103        7.6952        .23823E-03   -1.5367    
  15  norm          2.0973        13.586        .28503E-03   -1.5418    
  16  norm          .10001E-03    36.482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    17.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .70640        .21449        .27712E-03   -1.0364    
  21  Prefactor     1.3191        .23250        .23536E-03   -.82740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47395e-08
Minuit parameter uncertainties:
  1  9.98369
  2  0.000316974
  3  0.00316195
  4  1.76152e-05
  5  1.40693
  6  4.76361
  7  11.9494
  8  0.00194722
  9  15.5415
  10  13.4916
  11  0.000927536
  12  1.22078
  13  4.21413
  14  7.6978
  15  10.6791
  16  0.00129928
  17  0.000168769
  18  0.0022641
  19  0.000425165
  20  0.214742
  21  0.232682
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.006e+01  1.554e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.319e+00  2.327e-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:  7.064e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.88
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 2.17e-05

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) = 5106.32275945
delta logL = 0.0235694248377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.31263479
delta logL = 0.0336940833877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.307       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0299       1.0000          .0000       10.000    
     3 'Normalizat'    .71564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3136       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=   5106.313     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.308        17.729        .70497E-04   -.71682E-03
   2  Index         2.0298        .41014        .50241E-02   -.30326E-03
   3  Normalizat    .71564        .20776        .27556E-03    .13677E-03
   4  Prefactor     1.3136        .23137        .23582E-03    .19944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3078
  Index      = 2.02981
  Normalizat = 0.715636
  Prefactor  = 1.31364
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.313     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.308        17.459        .14099E-04   -1.4571    
   2  Index         2.0298        .40352        .20096E-03   -.63607    
   3  Normalizat    .71564        .20777        .11022E-04   -1.0328    
   4  Prefactor     1.3136        .23149        .47165E-04   -.82902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98369e-10
Minuit parameter uncertainties:
  1  17.4619
  2  0.404202
  3  0.207997
  4  0.231667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269730': 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) = 5106.31263476
delta logL = 0.0336941149435

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.231e+01  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.030e+00  4.042e-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:  1.314e+00  2.317e-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:  7.156e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.02
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.03 +/- 0.40
Photon Flux (Free Index): 7.35e-08 +/- 4.96e-08
Energy Flux (Free Index): 4.73e-05 +/- 3.28e-05

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/269730/cmap_HighResolution_244512001_244771201_4FGL_J1054.5+2211_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='4.73e-05', photon_flux_error='4.26e-08', dlogl='3.37e-02', energy_flux='4.20e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-02 19:35:15.601879', photon_index_error2='0.40', photon_index2='2.03', ts='14.88', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.71', time_epoch_completed='1630636515.6', return_code='0', job_id='269730', GAL2='1.31', EG2='0.72', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.96e-08', ts2='15.02', photon_index='2.13' WHERE bin_id='20' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 269730: <4FGL_J1054.5+2211_daily_bin20> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin20> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:22:59 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:23:12 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:12 2021
Terminated at Thu Sep  2 19:35:16 2021
Results reported at Thu Sep  2 19:35:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin20 163.628 22.1913 244512001 244771201 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 :                                   510.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            737 sec.

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

