/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7640
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1304
RA = 163.628, Dec = 22.1913
tmin = 577324801, tmax = 577584001
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='275830', job_status='RUN', time_executed='2021-09-02 19:46:17.568290', time_epoch_executed='1630637177.57' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275830/ft1_4FGL_J1054.5+2211_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275830/ft2_4FGL_J1054.5+2211_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275830/ft1_4FGL_J1054.5+2211_daily_bin1304.fits outfile=/scratch/kocevski/275830/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1304.fits ra=163.628 dec=22.1913 rad=12.0 tmin=577324801.0 tmax=577584001.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.83
user 2.84
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275830/ft1_filtered_4FGL_J1054.5+2211_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/275830/ft2_4FGL_J1054.5+2211_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/275830/ltcube_577324801_577584001_4FGL_J1054.5+2211_daily_bin1304.fits outfile=/scratch/kocevski/275830/expmap_577324801_577584001_4FGL_J1054.5+2211_daily_bin1304.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/275830/ltcube_577324801_577584001_4FGL_J1054.5+2211_daily_bin1304.fits
.....................!
real 192.83
user 187.29
sys 4.65

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/275830/ft1_filtered_4FGL_J1054.5+2211_daily_bin1304.fits scfile=/scratch/kocevski/275830/ft2_4FGL_J1054.5+2211_daily_bin1304.fits outfile=/scratch/kocevski/275830/cmap_577324801_577584001_4FGL_J1054.5+2211_daily_bin1304.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .83471       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3672       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .59121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    73.340       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92778       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0663       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=   6934.227     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2193 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.646        9.6682        .26130E-08   -.27246E-04
   2  Prefactor     20.743        23.366        .96561E-06   -.44362E-05
   3  Prefactor     .10000E-03    25.601       -.30960E-05** at limit **
   4  Prefactor     16.335        10.036        .99934E-07   -.10149E-03
   5  Prefactor     .10000E-03    1.4124        .34642E-06** at limit **
   6  Prefactor     .10000E-03    13.980        .87595E-05** at limit **
   7  Prefactor     .10000E-03    11.503       -.64266E-05** at limit **
   8  Prefactor     8.0294        13.337       -.33282E-07   -.32024E-04
   9  Prefactor     28.839        12.891       -.19453E-06    .13666E-03
  10  Prefactor     .10000E-03    3.7480       -.12069E-05** at limit **
  11  Prefactor     .10000E-03    4.2303        .42632E-05** at limit **
  12  norm          .83414        1.4752       -.50798E-06   -.21217E-02
  13  Prefactor     7.5742        3.1081       -.19254E-07    .53341E-04
  14  Prefactor     1.3673        4.4263       -.11619E-05   -.89482E-03
  15  norm          .10000E-03    5.6493        .27666E-05** at limit **
  16  norm          .59254        6.1816       -.12213E-05   -.20224E-03
  17  Prefactor     .10000E-03    4.7357       -.59830E-05** at limit **
  18  Prefactor     17.623        14.791        .18258E-06    .23763E-04
  19  Prefactor     73.350        82.594        .11204E-04    .91699E-06
  20  Normalizat    .92769        .17468       -.32316E-06    .80945E-05
  21  Prefactor     1.0664        .17594       -.43143E-06   -.81986E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 29.6456
  Prefactor  = 20.743
  Prefactor  = 0.0001
  Prefactor  = 16.3355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.02941
  Prefactor  = 28.8393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.834138
  Prefactor  = 7.5742
  Prefactor  = 1.36733
  norm       = 0.0001
  norm       = 0.592544
  Prefactor  = 0.0001
  Prefactor  = 17.6228
  Prefactor  = 73.3504
  Normalizat = 0.927685
  Prefactor  = 1.06637
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.227     FROM HESSE     STATUS=OK           321 CALLS     2514 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.646        9.6668        .73586E-04   -1.4618    
   2  Prefactor     20.743        23.360        .87945E-04   -1.4797    
   3  Prefactor     .10000E-03    25.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.335        9.8357        .99083E-04   -1.4899    
   5  Prefactor     .10000E-03    2.7900        .18532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0294        13.331        .14150E-03   -1.5141    
   9  Prefactor     28.839        12.841        .74596E-04   -1.4633    
  10  Prefactor     .10000E-03    3.7520        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2065        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .83414        1.2472        .13126E-02   -1.5525    
  13  Prefactor     7.5742        3.1101        .88945E-04   -1.5157    
  14  Prefactor     1.3673        4.4671        .31177E-03   -1.5474    
  15  norm          .10000E-03    5.6280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .59254        19.523        .39514E-02   -1.5554    
  17  Prefactor     .10000E-03    4.6738        .17556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.623        14.795        .95410E-04   -1.4868    
  19  Prefactor     73.350        82.457        .46881E-04   -1.3993    
  20  Normalizat    .92769        .20370        .26231E-03   -.95494    
  21  Prefactor     1.0664        .20663        .26258E-03   -.90549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09634e-09
Minuit parameter uncertainties:
  1  9.66727
  2  23.3698
  3  1.32024e-05
  4  9.83669
  5  2.31886e-05
  6  6.87726e-05
  7  5.76319e-05
  8  13.3364
  9  12.8421
  10  3.65323e-06
  11  3.22935e-06
  12  1.24721
  13  3.11019
  14  4.46821
  15  1.84254e-05
  16  6.80426
  17  4.50082e-06
  18  14.7982
  19  82.5861
  20  0.203869
  21  0.206783
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.884e+01  1.284e+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.066e+00  2.068e-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.277e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.44
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.90e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 1.79e-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) = 6934.15300628
delta logL = 0.0741691327139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.13370701
delta logL = 0.0934683941941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.325       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9795       1.0000          .0000       10.000    
     3 'Normalizat'    .94126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       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=   6934.134     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.326        16.165        .70476E-04   -.33088E-03
   2  Index         1.9795        .35809        .53660E-02   -.16957E-03
   3  Normalizat    .94127        .19487        .26066E-03    .83086E-04
   4  Prefactor     1.0575        .20628        .26354E-03    .10823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3259
  Index      = 1.97947
  Normalizat = 0.941275
  Prefactor  = 1.05752
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.134     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.326        15.949        .14095E-04   -1.4570    
   2  Index         1.9795        .35303        .21464E-03   -.64864    
   3  Normalizat    .94127        .19494        .10426E-04   -.95025    
   4  Prefactor     1.0575        .20642        .10542E-04   -.90836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53952e-10
Minuit parameter uncertainties:
  1  15.9507
  2  0.35349
  3  0.195084
  4  0.206575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275830': 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) = 6934.133707
delta logL = 0.093468404667

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.233e+01  1.595e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.979e+00  3.535e-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.058e+00  2.066e-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.413e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.61
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.98 +/- 0.35
Photon Flux (Free Index): 6.75e-08 +/- 4.04e-08
Energy Flux (Free Index): 4.91e-05 +/- 3.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/275830/cmap_HighResolution_577324801_577584001_4FGL_J1054.5+2211_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.90e-08', energy_flux2='4.91e-05', photon_flux_error='3.52e-08', dlogl='9.35e-02', energy_flux='4.03e-05', photon_flux2='6.75e-08', job_status='DONE', time_completed='2021-09-02 19:56:54.069212', photon_index_error2='0.35', photon_index2='1.98', ts='13.44', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='0.93', time_epoch_completed='1630637814.07', return_code='0', job_id='275830', GAL2='1.06', EG2='0.94', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.04e-08', ts2='13.61', photon_index='2.13' WHERE bin_id='1304' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 275830: <4FGL_J1054.5+2211_daily_bin1304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1304 163.628 22.1913 577324801 577584001 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 :                                   607.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            880 sec.

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

