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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1314
RA = 163.628, Dec = 22.1913
tmin = 579916801, tmax = 580176001
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='275847', job_status='RUN', time_executed='2021-09-02 19:47:09.549146', time_epoch_executed='1630637229.55' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275847/ft1_4FGL_J1054.5+2211_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275847/ft2_4FGL_J1054.5+2211_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275847/ft1_4FGL_J1054.5+2211_daily_bin1314.fits outfile=/scratch/kocevski/275847/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1314.fits ra=163.628 dec=22.1913 rad=12.0 tmin=579916801.0 tmax=580176001.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.51
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275847/ft2_4FGL_J1054.5+2211_daily_bin1314.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/275847/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1314.fits evtable="EVENTS" outfile="/scratch/kocevski/275847/ft1_filtered_4FGL_J1054.5+2211_daily_bin1314.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.53
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275847/ft1_filtered_4FGL_J1054.5+2211_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/275847/ft2_4FGL_J1054.5+2211_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/275847/ltcube_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.fits outfile=/scratch/kocevski/275847/expmap_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.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/275847/ltcube_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.fits
.....................!
real 194.47
user 188.01
sys 3.96

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/275847/ft1_filtered_4FGL_J1054.5+2211_daily_bin1314.fits scfile=/scratch/kocevski/275847/ft2_4FGL_J1054.5+2211_daily_bin1314.fits outfile=/scratch/kocevski/275847/cmap_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275847/ft1_filtered_4FGL_J1054.5+2211_daily_bin1314.fits scfile=/scratch/kocevski/275847/ft2_4FGL_J1054.5+2211_daily_bin1314.fits outfile=/scratch/kocevski/275847/cmap_HighResolution_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7866       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0356       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85635E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .34861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46705       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1529       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98045       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0171       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=   5214.821     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2213 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7871        7.5072        .45973E-02   -.44181E-03
   2  Prefactor     46.055        42.416        .14770E-02    .16293E-03
   3  Prefactor     7.0341        47.414        .37810E-02    .34965E-03
   4  Prefactor     .86658        5.1078        .51241E-01    .60630E-03
   5  Prefactor     1.8378        1.6495        .76928E-02    .74680E-04
   6  Prefactor     .10000E-03    3.4823        .90712E-02** at limit **
   7  Prefactor     9.8032        8.2562        .31997E-02    .11474E-02
   8  Prefactor     .10000E-03    69.004        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.9349        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.2104        .91790E-01** at limit **
  11  Prefactor     .10000E-03    4.7963        .90712E-02** at limit **
  12  norm          .34867        .94248        .25888E-01    .14809E-02
  13  Prefactor     .46535        1.8353        .34426E-01    .10565E-02
  14  Prefactor     8.1527        6.0237        .35103E-02   -.43294E-02
  15  norm          .10000E-03    4.5399        .90712E-02** at limit **
  16  norm          2.2406        4.9696        .68649E-02    .68005E-03
  17  Prefactor     5.1889        6.2158        .44119E-02   -.61124E-03
  18  Prefactor     .10000E-03    12.357        .90712E-02** at limit **
  19  Prefactor     .10000E-03    23.163        .90712E-02** at limit **
  20  Normalizat    .98044        .17540        .45921E-01    .56070E-04
  21  Prefactor     1.0171        .19085        .42441E-01    .84409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.7871
  Prefactor  = 46.055
  Prefactor  = 7.03411
  Prefactor  = 0.866575
  Prefactor  = 1.83784
  Prefactor  = 0.0001
  Prefactor  = 9.80319
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.348667
  Prefactor  = 0.465352
  Prefactor  = 8.15266
  norm       = 0.0001
  norm       = 2.24061
  Prefactor  = 5.18886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.980444
  Prefactor  = 1.01706
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.821     FROM HESSE     STATUS=OK           321 CALLS     2534 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7871        7.5052        .18389E-03   -1.5270    
   2  Prefactor     46.055        42.389        .59081E-04   -1.4350    
   3  Prefactor     7.0341        47.384        .15124E-03   -1.5177    
   4  Prefactor     .86658        9.1710        .29870E-02   -1.5522    
   5  Prefactor     1.8378        1.6415        .83600E-04   -1.5437    
   6  Prefactor     .10000E-03    3.5257        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8032        8.2331        .12799E-03   -1.5082    
   8  Prefactor     .10000E-03    70.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9366        .12079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.981        .33357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8045        .15442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34867        .93982        .11031E-03   -1.5590    
  13  Prefactor     .46535        2.6348        .17640E-02   -1.5572    
  14  Prefactor     8.1527        6.0228        .14041E-03   -1.5137    
  15  norm          .10000E-03    4.5557        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2406        4.9393        .23295E-03   -1.5409    
  17  Prefactor     5.1889        6.2112        .17648E-03   -1.5252    
  18  Prefactor     .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98044        .20229        .22512E-03   -.93688    
  21  Prefactor     1.0171        .22341        .24750E-03   -.92163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45391e-08
Minuit parameter uncertainties:
  1  7.5067
  2  42.4166
  3  36.5547
  4  5.639
  5  1.64153
  6  1.50211e-05
  7  8.23404
  8  0.000587648
  9  8.92033e-06
  10  0.000605299
  11  5.1317e-06
  12  0.939861
  13  2.21452
  14  6.02322
  15  8.99854e-07
  16  4.94016
  17  6.21198
  18  1.37054e-05
  19  0.000113025
  20  0.202447
  21  0.223613
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  8.920e-06  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.017e+00  2.236e-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.804e-01  2.024e-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: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275847/likelihoodResults_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.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) = 5214.82287747
delta logL = -0.00160719567339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5214.82127019
delta logL = 8.66257323651e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1194       1.0000          .0000       10.000    
     3 'Normalizat'    .98049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0170       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=   5214.821     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      233 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10277E-03    3.2669        .12196E-01** at limit **
   2  Index         1.9885        5.3058        .50000        .30361E-04
   3  Normalizat    .98044        .42772E-02    .22512E-03    .93427E-05
   4  Prefactor     1.0171        .48051E-02    .24750E-03   -.20211E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102767
  Index      = 1.98854
  Normalizat = 0.980445
  Prefactor  = 1.01706
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.821     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10277E-03    102.44        .12581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9885        6.5135        .50000       -.64637    
   3  Normalizat    .98044        .24809E-01    .90047E-05   -.93688    
   4  Prefactor     1.0171        .27868E-01    .99000E-05   -.92163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10014e-08
Minuit parameter uncertainties:
  1  0.0337298
  2  699.608
  3  0.024809
  4  0.0278687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275847': 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) = 5214.82126937
delta logL = 8.99302904145e-07

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.028e-04  3.373e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.989e+00  6.996e+02  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.017e+00  2.787e-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:  9.804e-01  2.481e-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/275847/cmap_HighResolution_579916801_580176001_4FGL_J1054.5+2211_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-09-02 19:57:35.186586', job_id='275847', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630637855.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1314' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 275847: <4FGL_J1054.5+2211_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1314> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:42:15 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:44:53 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:44:53 2021
Terminated at Thu Sep  2 19:57:35 2021
Results reported at Thu Sep  2 19:57:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1314 163.628 22.1913 579916801 580176001 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            920 sec.

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

