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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin597
RA = 163.628, Dec = 22.1913
tmin = 394070401, tmax = 394329601
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='271124', job_status='RUN', time_executed='2021-09-02 19:31:26.393533', time_epoch_executed='1630636286.39' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271124/ft1_4FGL_J1054.5+2211_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271124/ft2_4FGL_J1054.5+2211_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271124/ft1_4FGL_J1054.5+2211_daily_bin597.fits outfile=/scratch/kocevski/271124/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin597.fits ra=163.628 dec=22.1913 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.88
user 4.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271124/ft1_filtered_4FGL_J1054.5+2211_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/271124/ft2_4FGL_J1054.5+2211_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/271124/ltcube_394070401_394329601_4FGL_J1054.5+2211_daily_bin597.fits outfile=/scratch/kocevski/271124/expmap_394070401_394329601_4FGL_J1054.5+2211_daily_bin597.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/271124/ltcube_394070401_394329601_4FGL_J1054.5+2211_daily_bin597.fits
.....................!
real 192.28
user 186.67
sys 3.87

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/271124/ft1_filtered_4FGL_J1054.5+2211_daily_bin597.fits scfile=/scratch/kocevski/271124/ft2_4FGL_J1054.5+2211_daily_bin597.fits outfile=/scratch/kocevski/271124/cmap_394070401_394329601_4FGL_J1054.5+2211_daily_bin597.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.429       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.380       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.444       1.0000         .10000E-03   10000.    
    15 'norm      '    .70500       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.807       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67204E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4958       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65903       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=   6322.744     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2226 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3032        8.1708        .24015E-05   -.30550E-04
   2  Prefactor     5.5572        49.443        .77483E-06   -.10518E-04
   3  Prefactor     50.385        57.287       -.43381E-04    .14445E-04
   4  Prefactor     9.6608        10.632        .20178E-05    .26709E-03
   5  Prefactor     .20812        1.6087       -.82240E-06    .26937E-03
   6  Prefactor     14.666        8.8410        .20388E-06    .33359E-04
   7  Prefactor     .10000E-03    7.1818       -.20934E-06** at limit **
   8  Prefactor     8.4118        15.874       -.74685E-06   -.11483E-04
   9  Prefactor     20.606        12.435       -.14623E-06    .16884E-03
  10  Prefactor     .10000E-03    6.6042       -.19186E-06** at limit **
  11  Prefactor     14.381        14.884       -.43970E-05    .51937E-04
  12  norm          3.6881        1.7528       -.73537E-07    .92843E-04
  13  Prefactor     3.8687        2.8693       -.17694E-06    .12353E-04
  14  Prefactor     10.445        8.0620       -.34455E-06    .33079E-05
  15  norm          .77409        8.3253       -.17520E-05   -.14356E-03
  16  norm          2.2383        10.532       -.30985E-05   -.26685E-03
  17  Prefactor     .10000E-03    5.7920        .20613E-06** at limit **
  18  Prefactor     25.789        24.864        .50327E-05    .17341E-04
  19  Prefactor     .10000E-03    211.04       -.14506E-05** at limit **
  20  Normalizat    1.4958        .19766        .16741E-05    .28936E-03
  21  Prefactor     .65916        .19330        .11029E-05    .23915E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30319
  Prefactor  = 5.5572
  Prefactor  = 50.385
  Prefactor  = 9.66081
  Prefactor  = 0.208125
  Prefactor  = 14.6657
  Prefactor  = 0.0001
  Prefactor  = 8.41182
  Prefactor  = 20.6059
  Prefactor  = 0.0001
  Prefactor  = 14.3807
  norm       = 3.68806
  Prefactor  = 3.86869
  Prefactor  = 10.4452
  norm       = 0.774087
  norm       = 2.23829
  Prefactor  = 0.0001
  Prefactor  = 25.7887
  Prefactor  = 0.0001
  Normalizat = 1.49584
  Prefactor  = 0.659157
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.744     FROM HESSE     STATUS=OK           329 CALLS     2555 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3032        8.1620        .14842E-03   -1.5167    
   2  Prefactor     5.5572        49.427        .17050E-03   -1.5236    
   3  Prefactor     50.385        57.322        .56473E-04   -1.4287    
   4  Prefactor     9.6608        10.578        .12884E-03   -1.5086    
   5  Prefactor     .20812        10.978        .17511E-02   -1.5617    
   6  Prefactor     14.666        8.8548        .10458E-03   -1.4942    
   7  Prefactor     .10000E-03    7.2272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4118        15.871        .13822E-03   -1.5128    
   9  Prefactor     20.606        12.416        .88229E-04   -1.4800    
  10  Prefactor     .10000E-03    6.6425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.381        14.886        .10562E-03   -1.4949    
  12  norm          3.6881        1.7482        .69081E-04   -1.5324    
  13  Prefactor     3.8687        2.8724        .11109E-03   -1.5315    
  14  Prefactor     10.445        8.0714        .12398E-03   -1.5061    
  15  norm          .77409        29.230        .43962E-02   -1.5532    
  16  norm          2.2383        10.581        .27470E-03   -1.5409    
  17  Prefactor     .10000E-03    5.8036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.789        24.906        .78855E-04   -1.4692    
  19  Prefactor     .10000E-03    216.67        .42005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4958        .23143        .23295E-03   -.77895    
  21  Prefactor     .65916        .22285        .34035E-03   -1.0515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96197e-10
Minuit parameter uncertainties:
  1  8.16321
  2  33.1829
  3  57.385
  4  10.5799
  5  3.02301
  6  8.85563
  7  2.40474e-05
  8  15.8789
  9  12.4179
  10  1.40537e-06
  11  14.8893
  12  1.74827
  13  2.87253
  14  8.07226
  15  9.51779
  16  9.73563
  17  3.67273e-06
  18  24.9165
  19  0.000344916
  20  0.231598
  21  0.223146
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.061e+01  1.242e+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:  6.592e-01  2.231e-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:  1.496e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.73e-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) = 6322.65804059
delta logL = 0.0855369074143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.6442668
delta logL = 0.0993106953683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.566       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9520       1.0000          .0000       10.000    
     3 'Normalizat'    1.5054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65346       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=   6322.644     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      269 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.567        14.959        .82514E-04   -.96547E-03
   2  Index         1.9518        .40630        .61865E-02   -.37645E-03
   3  Normalizat    1.5054        .21808        .23237E-03    .17513E-03
   4  Prefactor     .65345        .22094        .34171E-03    .14359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5671
  Index      = 1.95177
  Normalizat = 1.50544
  Prefactor  = 0.653453
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.644     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.567        14.804        .16503E-04   -1.4737    
   2  Index         1.9518        .40197        .24746E-03   -.65561    
   3  Normalizat    1.5054        .21817        .46473E-04   -.77625    
   4  Prefactor     .65345        .22107        .13668E-04   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76635e-09
Minuit parameter uncertainties:
  1  14.8059
  2  0.40266
  3  0.218307
  4  0.221361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271124': 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) = 6322.64426661
delta logL = 0.0993108889652

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.357e+01  1.481e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.952e+00  4.027e-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:  6.535e-01  2.214e-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:  1.505e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.41
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.95 +/- 0.40
Photon Flux (Free Index): 4.70e-08 +/- 3.53e-08
Energy Flux (Free Index): 3.67e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/271124/cmap_HighResolution_394070401_394329601_4FGL_J1054.5+2211_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='3.67e-05', photon_flux_error='3.40e-08', dlogl='9.93e-02', energy_flux='2.88e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-02 19:41:30.017641', photon_index_error2='0.40', photon_index2='1.95', ts='6.20', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.50', time_epoch_completed='1630636890.02', return_code='0', job_id='271124', GAL2='0.65', EG2='1.51', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='3.53e-08', ts2='6.41', photon_index='2.13' WHERE bin_id='597' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 271124: <4FGL_J1054.5+2211_daily_bin597> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin597> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:26:15 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:30:08 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:30:08 2021
Terminated at Thu Sep  2 19:41:30 2021
Results reported at Thu Sep  2 19:41:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin597 163.628 22.1913 394070401 394329601 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 :                                   596.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            915 sec.

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

