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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1606
RA = 163.628, Dec = 22.1913
tmin = 655603201, tmax = 655862401
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='301185', job_status='RUN', time_executed='2021-12-07 21:23:24.638481', time_epoch_executed='1638941004.64' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301185/ft1_4FGL_J1054.5+2211_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301185/ft1_4FGL_J1054.5+2211_daily_bin1606.fits outfile=/scratch/kocevski/301185/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1606.fits ra=163.628 dec=22.1913 rad=12.0 tmin=655603201.0 tmax=655862401.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.26
user 4.02
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.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/301185/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/301185/ft1_filtered_4FGL_J1054.5+2211_daily_bin1606.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301185/ft1_filtered_4FGL_J1054.5+2211_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/301185/ltcube_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.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/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits
.....................!
real 13.89
user 13.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301185/ft1_filtered_4FGL_J1054.5+2211_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/301185/ltcube_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.fits outfile=/scratch/kocevski/301185/expmap_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.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/301185/ltcube_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.fits
.....................!
real 191.69
user 187.21
sys 4.11

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/301185/ft1_filtered_4FGL_J1054.5+2211_daily_bin1606.fits scfile=/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits outfile=/scratch/kocevski/301185/cmap_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.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/301185/ft1_filtered_4FGL_J1054.5+2211_daily_bin1606.fits scfile=/scratch/kocevski/301185/ft2_4FGL_J1054.5+2211_daily_bin1606.fits outfile=/scratch/kocevski/301185/cmap_HighResolution_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.983       1.0000         .10000E-03   10000.    
    12 'norm      '    .36054       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.121       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6643       1.0000         .10000E-03   10000.    
    16 'norm      '    .10689E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85735E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3652       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80645       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=   6932.749     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     2675 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30352        42.404        .39134E-02   -.89458E-04
   2  Prefactor     .10000E-03    46.515        .18142E-02** at limit **
   3  Prefactor     .10000E-03    18.440        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.041        .36285E-03** at limit **
   5  Prefactor     .10000E-03    1.2235        .17659E-03** at limit **
   6  Prefactor     26.018        10.329        .78524E-04    .30404E-04
   7  Prefactor     1.8768        14.156        .15132E-02   -.12286E-02
   8  Prefactor     3.2563        39.677        .22465E-03   -.19534E-04
   9  Prefactor     4.4860        8.2325        .19016E-03   -.18115E-04
  10  Prefactor     28.895        14.138        .74524E-04    .16597E-03
  11  Prefactor     12.004        18.369        .11572E-03    .62580E-04
  12  norm          .36060        1.1677        .15540E-03   -.77840E-04
  13  Prefactor     .10000E-03    1.3937        .95047E-03** at limit **
  14  Prefactor     19.123        8.3894        .91595E-04    .18658E-03
  15  norm          8.6619        8.9751        .13618E-03    .10018E-04
  16  norm          .10000E-03    9.2332        .18142E-02** at limit **
  17  Prefactor     .34612E-01    10.555        .70182E-01    .57379E-03
  18  Prefactor     .12046        8.9548        .84676E-01    .46346E-03
  19  Prefactor     .10000E-03    16.437        .18142E-02** at limit **
  20  Normalizat    1.3656        .21988        .23191E-03    .32994E-03
  21  Prefactor     .80634        .21722        .30390E-03    .22307E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.303517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0177
  Prefactor  = 1.87679
  Prefactor  = 3.2563
  Prefactor  = 4.486
  Prefactor  = 28.895
  Prefactor  = 12.0039
  norm       = 0.360599
  Prefactor  = 0.0001
  Prefactor  = 19.1233
  norm       = 8.66189
  norm       = 0.0001
  Prefactor  = 0.0346119
  Prefactor  = 0.12046
  Prefactor  = 0.0001
  Normalizat = 1.36561
  Prefactor  = 0.806342
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.749     FROM HESSE     STATUS=OK           317 CALLS     2992 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30352        42.823        .15654E-03   -1.5598    
   2  Prefactor     .10000E-03    46.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.042        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2235        .35317E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.018        10.323        .31410E-05   -1.4687    
   7  Prefactor     1.8768        13.810        .60529E-04   -1.5434    
   8  Prefactor     3.2563        39.657        .89861E-05   -1.5347    
   9  Prefactor     4.4860        8.1992        .76063E-05   -1.5284    
  10  Prefactor     28.895        14.133        .29810E-05   -1.4632    
  11  Prefactor     12.004        18.254        .46288E-05   -1.5015    
  12  norm          .36060        1.1673        .62160E-05   -1.5588    
  13  Prefactor     .10000E-03    1.3939        .19009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.123        8.3877        .18319E-04   -1.4833    
  15  norm          8.6619        8.9746        .54472E-05   -1.5119    
  16  norm          .10000E-03    9.2386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34612E-01    9.5576        .75403E-01   -1.5671    
  18  Prefactor     .12046        8.8255        .85893E-01   -1.5639    
  19  Prefactor     .10000E-03    16.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3656        .21942        .46382E-04   -.81629    
  21  Prefactor     .80634        .21735        .12156E-04   -.99495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12872e-08
Minuit parameter uncertainties:
  1  7.2145
  2  0.000172375
  3  3.20882e-05
  4  5.38819e-05
  5  3.81733e-06
  6  10.324
  7  10.185
  8  22.7459
  9  8.20121
  10  14.1345
  11  18.2622
  12  1.16736
  13  1.93315e-05
  14  8.38824
  15  8.97595
  16  1.42878e-05
  17  1.14884
  18  2.06162
  19  8.92036e-06
  20  0.219572
  21  0.21758
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  4.486e+00  8.201e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.063e-01  2.176e-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.366e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301185/likelihoodResults_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.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): 0
logL (Free Index) = 6932.74942553
delta logL = 3.12154215862e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6932.74941976
delta logL = 3.69782355847e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4609       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1447       1.0000          .0000       10.000    
     3 'Normalizat'    1.3655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80630       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=   6932.749     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      254 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4594        8.3703        .19065E-03    .73240E-03
   2  Index         2.1442        1.0887        .11984E-01    .17573E-03
   3  Normalizat    1.3655        .20726        .23192E-03   -.59652E-03
   4  Prefactor     .80643        .21509        .30389E-03   -.50855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45943
  Index      = 2.14424
  Normalizat = 1.36546
  Prefactor  = 0.806428
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.749     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4594        8.0968        .76259E-05   -1.5286    
   2  Index         2.1442        1.0540        .47936E-03   -.60791    
   3  Normalizat    1.3655        .20733        .46384E-04   -.81633    
   4  Prefactor     .80643        .21520        .60778E-04   -.99492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31504e-09
Minuit parameter uncertainties:
  1  8.09877
  2  1.06595
  3  0.207454
  4  0.215426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301185': 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) = 6932.74941935
delta logL = 3.73923894585e-05

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  4.459e+00  8.099e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.144e+00  1.066e+00  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:  8.064e-01  2.154e-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.365e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 163.628 22.191

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/301185/cmap_HighResolution_655603201_655862401_4FGL_J1054.5+2211_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-12-07 21:35:27.303452', job_id='301185', GAL2='0.81', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1638941727.3', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.74e-05', ts2='0.50', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1606' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:35:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 301185: <4FGL_J1054.5+2211_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1606> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 21:20:13 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:20:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:20:27 2021
Terminated at Tue Dec  7 21:35:28 2021
Results reported at Tue Dec  7 21:35:28 2021

Your job looked like:

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

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

