/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 0 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1054.5+2211_daily_bin284
RA = 163.628, Dec = 22.1913
tmin = 312940801, tmax = 313200001
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='270138', job_status='RUN', time_executed='2021-09-02 19:27:44.592905', time_epoch_executed='1630636064.59' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270138

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270138/ft1_4FGL_J1054.5+2211_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270138/ft2_4FGL_J1054.5+2211_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270138/ft1_4FGL_J1054.5+2211_daily_bin284.fits outfile=/scratch/kocevski/270138/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin284.fits ra=163.628 dec=22.1913 rad=12.0 tmin=312940801.0 tmax=313200001.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.50
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270138/ft1_filtered_4FGL_J1054.5+2211_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/270138/ft2_4FGL_J1054.5+2211_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/270138/ltcube_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.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/270138/ft2_4FGL_J1054.5+2211_daily_bin284.fits
.....................!
real 15.16
user 14.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270138/ft1_filtered_4FGL_J1054.5+2211_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/270138/ft2_4FGL_J1054.5+2211_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/270138/ltcube_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.fits outfile=/scratch/kocevski/270138/expmap_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.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/270138/ltcube_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.fits
.....................!
real 191.27
user 186.70
sys 4.08

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/270138/ft1_filtered_4FGL_J1054.5+2211_daily_bin284.fits scfile=/scratch/kocevski/270138/ft2_4FGL_J1054.5+2211_daily_bin284.fits outfile=/scratch/kocevski/270138/cmap_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=163.628 yref=22.1913 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55293E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3515       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91953       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10913E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.339       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89285       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2042       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=   5533.489     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2245 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.832        8.4032       -.19875E-06    .43145E-04
   2  Prefactor     27.330        39.222       -.34771E-06    .22444E-04
   3  Prefactor     15.907        31.907       -.40608E-06    .34794E-05
   4  Prefactor     .10000E-03    12.870       -.72513E-05** at limit **
   5  Prefactor     .10000E-03    1.1578       -.67209E-08** at limit **
   6  Prefactor     6.6483        8.6395       -.28794E-06   -.39957E-05
   7  Prefactor     31.478        14.737       -.36148E-06    .12320E-03
   8  Prefactor     10.457        15.064       -.16246E-06    .70246E-05
   9  Prefactor     16.672        14.234       -.87931E-07    .34616E-04
  10  Prefactor     .66169        15.655        .60248E-05   -.26967E-04
  11  Prefactor     .10000E-03    12.464       -.10557E-06** at limit **
  12  norm          1.3524        1.5841        .22305E-06   -.23574E-03
  13  Prefactor     .92536        3.4265       -.25462E-05   -.40797E-03
  14  Prefactor     .10000E-03    2.1536       -.53029E-07** at limit **
  15  norm          .10003E-03    12.847        .40398E-05** at limit **
  16  norm          .10000E-03    5.2987        .35568E-07** at limit **
  17  Prefactor     7.5131        9.5014       -.18941E-06    .28488E-04
  18  Prefactor     .10000E-03    6.3211        .21096E-07** at limit **
  19  Prefactor     25.423        61.098        .31202E-05   -.13376E-03
  20  Normalizat    .89278        .19494        .41548E-06   -.15805E-03
  21  Prefactor     1.2043        .20005        .11286E-05   -.25292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8319
  Prefactor  = 27.3301
  Prefactor  = 15.9074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.64833
  Prefactor  = 31.4779
  Prefactor  = 10.4569
  Prefactor  = 16.6716
  Prefactor  = 0.661686
  Prefactor  = 0.0001
  norm       = 1.35236
  Prefactor  = 0.92536
  Prefactor  = 0.0001
  norm       = 0.000100032
  norm       = 0.0001
  Prefactor  = 7.51313
  Prefactor  = 0.0001
  Prefactor  = 25.4228
  Normalizat = 0.892778
  Prefactor  = 1.20427
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.489     FROM HESSE     STATUS=OK           327 CALLS     2572 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.832        8.4008        .11647E-03   -1.5020    
   2  Prefactor     27.330        39.236        .76620E-04   -1.4662    
   3  Prefactor     15.907        31.903        .10043E-03   -1.4910    
   4  Prefactor     .10000E-03    14.990        .29298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1723        .78047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6483        8.6259        .15565E-03   -1.5192    
   7  Prefactor     31.478        14.696        .71412E-04   -1.4585    
   8  Prefactor     10.457        15.063        .12390E-03   -1.5061    
   9  Prefactor     16.672        14.225        .98099E-04   -1.4891    
  10  Prefactor     .66169        44.043        .42981E-02   -1.5545    
  11  Prefactor     .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3524        1.5481        .95682E-04   -1.5475    
  13  Prefactor     .92536        3.4148        .22048E-03   -1.5516    
  14  Prefactor     .10000E-03    2.1555        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    46.120        .41215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3161        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5131        9.4948        .14631E-03   -1.5160    
  18  Prefactor     .10000E-03    6.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.423        60.079        .79579E-04   -1.4699    
  20  Normalizat    .89278        .22482        .26276E-03   -.96714    
  21  Prefactor     1.2043        .23556        .25237E-03   -.86200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4786e-08
Minuit parameter uncertainties:
  1  8.40161
  2  39.2731
  3  31.9368
  4  0.000171317
  5  8.28297e-06
  6  8.62747
  7  14.6979
  8  15.0681
  9  14.2277
  10  10.8043
  11  2.21764e-05
  12  1.54817
  13  3.41548
  14  2.23308e-06
  15  0.00242632
  16  2.06777e-05
  17  9.49668
  18  1.17445e-05
  19  60.2222
  20  0.225058
  21  0.235765
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.667e+01  1.423e+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.204e+00  2.358e-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:  8.928e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.31
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.99e-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) = 5531.03148192
delta logL = 2.45708014374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5529.52217057
delta logL = 3.96639149505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33584       1.0000         .10000E-03   10000.    
     2 'Index     '    .29505E-06   1.0000          .0000       10.000    
     3 'Normalizat'    .91448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2062       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=   5529.522     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33591        .36454        .95126E-02   -.73515E-03
   2  Index         .37748E-13    .31969        .50000    ** at limit **
   3  Normalizat    .91437        .18054        .45086E-01    .15605E-04
   4  Prefactor     1.2063        .19904        .57122E-01    .67332E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.335912
  Index      = 3.77476e-14
  Normalizat = 0.914374
  Prefactor  = 1.20634
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.522     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33591        .33780        .36513E-03   -1.5592    
   2  Index         .37748E-13    .93555        .20868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91437        .21218        .26035E-03   -.95957    
   4  Prefactor     1.2063        .23390        .25259E-03   -.86136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.555e-12
Minuit parameter uncertainties:
  1  0.337802
  2  3.80746e-07
  3  0.212375
  4  0.2341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270138': 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) = 5529.52217022
delta logL = 3.96639184219

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.359e-01  3.378e-01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.775e-14  3.807e-07  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.206e+00  2.341e-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.144e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.26
Ra Dec: 163.628 22.191
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.36e-09 +/- 3.37e-09
Energy Flux (Free Index): 1.68e-04 +/- 1.69e-04

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/270138/cmap_HighResolution_312940801_313200001_4FGL_J1054.5+2211_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.68e-04', photon_flux_error='3.90e-08', dlogl='3.97e+00', energy_flux='2.33e-05', photon_flux2='3.36e-09', job_status='DONE', time_completed='2021-09-02 19:37:06.724346', photon_index_error2='0.00', photon_index2='0.00', ts='15.31', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.69e-04', EG='0.89', time_epoch_completed='1630636626.72', return_code='0', job_id='270138', GAL2='1.21', EG2='0.91', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='3.37e-09', ts2='23.26', photon_index='2.13' WHERE bin_id='284' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:37:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 270138: <4FGL_J1054.5+2211_daily_bin284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin284 163.628 22.1913 312940801 313200001 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            812 sec.

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

