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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin153
RA = 193.733, Dec = 11.6495
tmin = 278985601, tmax = 279244801
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='994343', job_status='RUN', time_executed='2021-09-06 09:25:47.472565', time_epoch_executed='1630945547.47' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994343/ft1_4FGL_J1254.9+1138_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994343/ft1_4FGL_J1254.9+1138_daily_bin153.fits outfile=/scratch/kocevski/994343/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin153.fits ra=193.733 dec=11.6495 rad=12.0 tmin=278985601.0 tmax=279244801.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.98
user 3.57
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.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/994343/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin153.fits evtable="EVENTS" outfile="/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.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.62
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/994343/ltcube_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.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/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits
.....................!
real 13.44
user 13.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/994343/ltcube_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits outfile=/scratch/kocevski/994343/expmap_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.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/994343/ltcube_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits
.....................!
real 193.70
user 186.95
sys 5.92

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits outfile=/scratch/kocevski/994343/cmap_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.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=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits outfile=/scratch/kocevski/994343/cmap_HighResolution_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.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=193.733 yref=11.6495 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994343/Model_4FGL_J1254.9+1138_daily_bin153.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/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits.....................!
real 68.51
user 66.64
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits', '/scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits', expMap='/scratch/kocevski/994343/expmap_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits', expCube='/scratch/kocevski/994343/ltcube_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994343/Model_4FGL_J1254.9+1138_daily_bin153.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994343/ft1_filtered_4FGL_J1254.9+1138_daily_bin153.fits
Spacecraft file(s): /scratch/kocevski/994343/ft2_4FGL_J1254.9+1138_daily_bin153.fits
Exposure map: /scratch/kocevski/994343/expmap_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits
Exposure cube: /scratch/kocevski/994343/ltcube_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994343/Model_4FGL_J1254.9+1138_daily_bin153.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) = 7934.46866898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12294E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.570       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36686       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6604       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82479       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   7934.460     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     2357 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2154        .95552E-03** at limit **
   2  Prefactor     .10000E-03    15.276        .18142E-02** at limit **
   3  norm          10.659        4.9267        .12272E-03   -.18342E-04
   4  Prefactor     .10000E-03    8.8781        .18142E-02** at limit **
   5  norm          .10000E-03    28.369        .18142E-02** at limit **
   6  Prefactor     .10000E-03    72.393        .18142E-02** at limit **
   7  norm          12.602        1.3904        .32297E-04   -.38721E-05
   8  Prefactor     22.317        13.274        .84779E-04   -.17433E-05
   9  Prefactor     47.576        34.024        .58137E-04    .11537E-04
  10  norm          6.5155        1.9889        .66386E-04   -.59938E-05
  11  Prefactor     20.066        26.032        .89418E-04    .21614E-05
  12  Prefactor     .31875        22.378        .14450        .18414E-03
  13  Prefactor     .88461        8.0891        .48639E-03    .65666E-04
  14  Prefactor     7.7426        9.4636        .14412E-03    .20668E-04
  15  Prefactor     .10000E-03    8.4713        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.5268        .18142E-02** at limit **
  17  Prefactor     .10000E-03    28.492        .18142E-02** at limit **
  18  Prefactor     2.6395        257.20        .24990E-03    .18197E-05
  19  Normalizat    .82479        .24702        .36022E-03    .51760E-05
  20  Prefactor     1.2805        .20736        .25242E-03    .22339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6025
  Prefactor  = 22.317
  Prefactor  = 47.5758
  norm       = 6.51547
  Prefactor  = 20.0663
  Prefactor  = 0.318753
  Prefactor  = 0.88461
  Prefactor  = 7.74257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63955
  Normalizat = 0.824788
  Prefactor  = 1.28047
 **********
 **   18 **HESSE 
 **********

 FCN=   7934.460     FROM HESSE     STATUS=OK           283 CALLS     2640 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2155        .19110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.659        4.9267        .49088E-05   -1.5055    
   4  Prefactor     .10000E-03    8.8782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    28.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.602        1.3904        .12919E-05   -1.4998    
   8  Prefactor     22.317        13.275        .33912E-05   -1.4763    
   9  Prefactor     47.576        34.036        .23255E-05   -1.4327    
  10  norm          6.5155        1.9889        .26555E-05   -1.5197    
  11  Prefactor     20.066        26.030        .35767E-05   -1.4812    
  12  Prefactor     .31875        22.235        .14547       -1.5595    
  13  Prefactor     .88461        8.0872        .97278E-04   -1.5520    
  14  Prefactor     7.7426        9.4632        .57647E-05   -1.5151    
  15  Prefactor     .10000E-03    8.4727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6395        257.26        .99959E-05   -1.5383    
  19  Normalizat    .82479        .24727        .14409E-04   -.99156    
  20  Prefactor     1.2805        .20758        .10097E-04   -.83890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97318e-10
Minuit parameter uncertainties:
  1  5.40365e-07
  2  8.65445e-06
  3  4.92688
  4  2.24535e-06
  5  6.87742e-08
  6  0.000132992
  7  1.39042
  8  13.2769
  9  34.0502
  10  1.98887
  11  26.0446
  12  5.32575
  13  5.35005
  14  9.46507
  15  2.06756e-06
  16  1.2051e-05
  17  4.78491e-05
  18  52.349
  19  0.247607
  20  0.207712
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.743e+00  9.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.280e+00  2.077e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.248e-01  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 6.88e-06 +/- 8.40e-06

TS (Fixed Index): 1.19
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994343/likelihoodResults_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.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) = 7934.33515017
delta logL = 0.124671487373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7934.33189982
delta logL = 0.127921833744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0976       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2295       1.0000          .0000       10.000    
     3 'Normalizat'    .84193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7934.332     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0976        11.084        .35224E-02    .67604E-03
   2  Index         2.2289        .84214        .24617       -.54511E-04
   3  Normalizat    .84196        .20088        .80588E-01    .28461E-04
   4  Prefactor     1.2700        .17148        .57278E-01    .30669E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.09758
  Index      = 2.22888
  Normalizat = 0.841957
  Prefactor  = 1.26999
 **********
 **   18 **HESSE 
 **********

 FCN=   7934.332     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0976        10.118        .14089E-03   -1.5139    
   2  Index         2.2289        .98118        .15457E-01   -.58743    
   3  Normalizat    .84196        .24193        .35679E-03   -.98531    
   4  Prefactor     1.2700        .20646        .25326E-03   -.84204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20481e-10
Minuit parameter uncertainties:
  1  10.1205
  2  0.990506
  3  0.24224
  4  0.206595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994343': 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) = 7934.33189931
delta logL = 0.127922344185

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  8.098e+00  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.229e+00  9.905e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.270e+00  2.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.420e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.23 +/- 0.99
Photon Flux (Free Index): 1.97e-08 +/- 3.14e-08
Energy Flux (Free Index): 8.41e-06 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/994343/cmap_HighResolution_278985601_279244801_4FGL_J1254.9+1138_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='8.41e-06', photon_flux_error='3.73e-08', dlogl='1.28e-01', energy_flux='6.88e-06', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-06 09:37:47.805284', photon_index_error2='0.99', photon_index2='2.23', ts='1.19', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.18e-05', EG='0.82', time_epoch_completed='1630946267.81', return_code='0', job_id='994343', GAL2='1.27', EG2='0.84', return_code2='0', energy_flux_error='8.40e-06', photon_flux_error2='3.14e-08', ts2='1.44', photon_index='2.79' WHERE bin_id='153' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:37:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 994343: <4FGL_J1254.9+1138_daily_bin153> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin153> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:25:23 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:25:25 2021
Terminated at Mon Sep  6 09:37:48 2021
Results reported at Mon Sep  6 09:37:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin153 193.733 11.6495 278985601 279244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

