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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin546
RA = 163.628, Dec = 22.1913
tmin = 380851201, tmax = 381110401
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='271045', job_status='RUN', time_executed='2021-09-02 19:29:45.431298', time_epoch_executed='1630636185.43' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271045/ft1_4FGL_J1054.5+2211_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271045/ft2_4FGL_J1054.5+2211_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271045/ft1_4FGL_J1054.5+2211_daily_bin546.fits outfile=/scratch/kocevski/271045/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin546.fits ra=163.628 dec=22.1913 rad=12.0 tmin=380851201.0 tmax=381110401.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.52
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271045/ft2_4FGL_J1054.5+2211_daily_bin546.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/271045/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/271045/ft1_filtered_4FGL_J1054.5+2211_daily_bin546.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.69
user 0.37
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271045/ft1_filtered_4FGL_J1054.5+2211_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/271045/ft2_4FGL_J1054.5+2211_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/271045/ltcube_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.fits outfile=/scratch/kocevski/271045/expmap_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.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/271045/ltcube_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.fits
.....................!
real 193.32
user 187.21
sys 4.36

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/271045/ft1_filtered_4FGL_J1054.5+2211_daily_bin546.fits scfile=/scratch/kocevski/271045/ft2_4FGL_J1054.5+2211_daily_bin546.fits outfile=/scratch/kocevski/271045/cmap_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271045/ft1_filtered_4FGL_J1054.5+2211_daily_bin546.fits scfile=/scratch/kocevski/271045/ft2_4FGL_J1054.5+2211_daily_bin546.fits outfile=/scratch/kocevski/271045/cmap_HighResolution_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .34703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7557       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3480       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79212       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98008       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=   5594.755     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2198 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.836        9.2438        .30952E-06   -.10721E-03
   2  Prefactor     38.494        37.163        .10683E-05   -.22791E-04
   3  Prefactor     .10000E-03    92.814       -.36763E-05** at limit **
   4  Prefactor     6.8611        7.1236        .21785E-05   -.32288E-03
   5  Prefactor     .10000E-03    1.6977        .45775E-07** at limit **
   6  Prefactor     6.0012        8.3192        .39793E-05   -.25079E-03
   7  Prefactor     3.1648        5.8963       -.23298E-05   -.33397E-03
   8  Prefactor     17.077        16.202        .35315E-06   -.53690E-05
   9  Prefactor     .10000E-03    4.2939       -.36690E-06** at limit **
  10  Prefactor     8.3461        15.543        .10081E-05   -.76692E-04
  11  Prefactor     .10000E-03    3.7944        .43431E-06** at limit **
  12  norm          .34656        1.2034       -.66697E-06   -.12574E-02
  13  Prefactor     9.0922        4.1952        .68238E-07   -.12246E-03
  14  Prefactor     1.7555        4.1417        .22269E-07   -.43807E-03
  15  norm          5.3476        12.825       -.88969E-06   -.70022E-05
  16  norm          3.8403        8.1027       -.18638E-05   -.98120E-04
  17  Prefactor     8.6347        8.2407       -.23967E-05    .21394E-03
  18  Prefactor     52.758        24.912       -.50561E-06    .33373E-04
  19  Prefactor     .10000E-03    30.152        .12849E-05** at limit **
  20  Normalizat    .79226        .17815        .30488E-06    .76735E-04
  21  Prefactor     .97993        .17861       -.45941E-06    .10963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8356
  Prefactor  = 38.4938
  Prefactor  = 0.0001
  Prefactor  = 6.86109
  Prefactor  = 0.0001
  Prefactor  = 6.00124
  Prefactor  = 3.1648
  Prefactor  = 17.0775
  Prefactor  = 0.0001
  Prefactor  = 8.34609
  Prefactor  = 0.0001
  norm       = 0.346557
  Prefactor  = 9.09217
  Prefactor  = 1.75551
  norm       = 5.34757
  norm       = 3.84028
  Prefactor  = 8.6347
  Prefactor  = 52.7585
  Prefactor  = 0.0001
  Normalizat = 0.792256
  Prefactor  = 0.979928
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.755     FROM HESSE     STATUS=OK           327 CALLS     2525 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.836        9.2309        .12171E-03   -1.5049    
   2  Prefactor     38.494        37.150        .64602E-04   -1.4466    
   3  Prefactor     .10000E-03    93.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8611        7.0010        .15316E-03   -1.5184    
   5  Prefactor     .10000E-03    1.7615        .18968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0012        8.1510        .16392E-03   -1.5218    
   7  Prefactor     3.1648        6.0256        .22783E-03   -1.5352    
   8  Prefactor     17.077        16.201        .96916E-04   -1.4881    
   9  Prefactor     .10000E-03    4.3077        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3461        15.472        .13875E-03   -1.5130    
  11  Prefactor     .10000E-03    3.7981        .14229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34656        1.6615        .13828E-02   -1.5590    
  13  Prefactor     9.0922        4.1928        .90042E-04   -1.5105    
  14  Prefactor     1.7555        4.1085        .22660E-03   -1.5443    
  15  norm          5.3476        12.702        .17378E-03   -1.5245    
  16  norm          3.8403        8.1609        .20593E-03   -1.5316    
  17  Prefactor     8.6347        8.1888        .13641E-03   -1.5120    
  18  Prefactor     52.758        24.935        .55217E-04   -1.4254    
  19  Prefactor     .10000E-03    30.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .79226        .20534        .25281E-03   -1.0036    
  21  Prefactor     .97993        .20651        .24230E-03   -.93402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46123e-09
Minuit parameter uncertainties:
  1  9.23207
  2  37.1726
  3  0.000188775
  4  7.00183
  5  1.5978e-05
  6  8.15251
  7  6.02671
  8  16.2056
  9  2.08461e-05
  10  15.4798
  11  5.0488e-07
  12  1.51747
  13  4.19294
  14  4.10919
  15  12.708
  16  8.16327
  17  8.18985
  18  24.9397
  19  7.82112e-06
  20  0.205539
  21  0.20668
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  2.085e-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:  9.799e-01  2.067e-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.923e-01  2.055e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271045/likelihoodResults_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.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) = 5594.75605324
delta logL = -0.00110458043491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5594.75494882
delta logL = -1.68651240529e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1157       1.0000          .0000       10.000    
     3 'Normalizat'    .79214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98007       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=   5594.755     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    61.659        .15338E-02** at limit **
   2  Index         2.0527        5.1482        .50000        .27181E-04
   3  Normalizat    .79226        .15475E-01    .25281E-03    .32108E-04
   4  Prefactor     .97993        .16433E-01    .24230E-03    .32609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101372
  Index      = 2.05272
  Normalizat = 0.792256
  Prefactor  = 0.979927
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.755     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10137E-03    253.34        .30676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0527        6.8800        .50000       -.63039    
   3  Normalizat    .79226        .33131E-01    .10112E-04   -1.0036    
   4  Prefactor     .97993        .35177E-01    .96921E-05   -.93402    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3191e-08
Minuit parameter uncertainties:
  1  0.0374516
  2  619.869
  3  0.0331321
  4  0.0351776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271045': 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) = 5594.75494816
delta logL = 4.98158442497e-07

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.014e-04  3.745e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.053e+00  6.199e+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:  9.799e-01  3.518e-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:  7.923e-01  3.313e-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/271045/cmap_HighResolution_380851201_381110401_4FGL_J1054.5+2211_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-02 19:39:51.530421', job_id='271045', GAL2='0.98', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630636791.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='546' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 271045: <4FGL_J1054.5+2211_daily_bin546> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin546> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:26:10 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:29:25 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:29:25 2021
Terminated at Thu Sep  2 19:39:52 2021
Results reported at Thu Sep  2 19:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin546 163.628 22.1913 380851201 381110401 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 :                                   600.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            822 sec.

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

