/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 195 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin36
RA = 193.733, Dec = 11.6495
tmin = 248659201, tmax = 248918401
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='993129', job_status='RUN', time_executed='2021-09-06 09:24:23.609145', time_epoch_executed='1630945463.61' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993129/ft1_4FGL_J1254.9+1138_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993129/ft1_4FGL_J1254.9+1138_daily_bin36.fits outfile=/scratch/kocevski/993129/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin36.fits ra=193.733 dec=11.6495 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.41
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.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/993129/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/993129/ltcube_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.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/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits
.....................!
real 12.58
user 12.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/993129/ltcube_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits outfile=/scratch/kocevski/993129/expmap_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.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/993129/ltcube_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits
.....................!
real 190.46
user 186.02
sys 4.07

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/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits scfile=/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits outfile=/scratch/kocevski/993129/cmap_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits scfile=/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits outfile=/scratch/kocevski/993129/cmap_HighResolution_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits', '/scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits', expMap='/scratch/kocevski/993129/expmap_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits', expCube='/scratch/kocevski/993129/ltcube_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993129/Model_4FGL_J1254.9+1138_daily_bin36.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/993129/ft1_filtered_4FGL_J1254.9+1138_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/993129/ft2_4FGL_J1254.9+1138_daily_bin36.fits
Exposure map: /scratch/kocevski/993129/expmap_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits
Exposure cube: /scratch/kocevski/993129/ltcube_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993129/Model_4FGL_J1254.9+1138_daily_bin36.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) = 6732.09286807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13870E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8531       1.0000         .10000E-03   10000.    
     5 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36800E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.077       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0808       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=   6732.091     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     2351 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4268        .18550E-02** at limit **
   2  Prefactor     .10000E-03    16.005        .18142E-02** at limit **
   3  norm          3.3140        2.8318        .61173E-03    .57650E-04
   4  Prefactor     5.8665        17.759        .16600E-03   -.20546E-06
   5  norm          .10000E-03    28.258        .18142E-02** at limit **
   6  Prefactor     .10000E-03    64.356        .18142E-02** at limit **
   7  norm          3.0496        .74028        .33118E-04    .12159E-03
   8  Prefactor     9.6472        8.2170        .12900E-03    .23971E-04
   9  Prefactor     .10000E-03    26.727        .18142E-02** at limit **
  10  norm          1.2723        1.1812        .83146E-04    .11212E-04
  11  Prefactor     .10000E-03    9.4533        .18142E-02** at limit **
  12  Prefactor     .10000E-03    56.680        .15599    ** at limit **
  13  Prefactor     3.4469        5.0825        .10896E-02   -.12792E-04
  14  Prefactor     12.693        14.300        .56237E-03   -.68935E-05
  15  Prefactor     11.443        14.042        .11842E-03    .29762E-05
  16  Prefactor     .10000E-03    8.5428        .18142E-02** at limit **
  17  Prefactor     41.048        31.592        .62544E-04   -.54531E-05
  18  Prefactor     .10000E-03    20.921        .18142E-02** at limit **
  19  Normalizat    1.0878        .23211        .27873E-03    .10442E-04
  20  Prefactor     1.0808        .20093        .24530E-03    .25536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.31396
  Prefactor  = 5.8665
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04959
  Prefactor  = 9.64721
  Prefactor  = 0.0001
  norm       = 1.27233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44691
  Prefactor  = 12.6928
  Prefactor  = 11.4433
  Prefactor  = 0.0001
  Prefactor  = 41.0478
  Prefactor  = 0.0001
  Normalizat = 1.0878
  Prefactor  = 1.0808
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.091     FROM HESSE     STATUS=OK           285 CALLS     2636 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4759        .37100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3140        2.8313        .24469E-04   -1.5344    
   4  Prefactor     5.8665        17.759        .66399E-05   -1.5224    
   5  norm          .10000E-03    28.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    64.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0496        .74022        .66236E-05   -1.5359    
   8  Prefactor     9.6472        8.2168        .51601E-05   -1.5087    
   9  Prefactor     .10000E-03    26.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2723        1.1812        .33258E-05   -1.5482    
  11  Prefactor     .10000E-03    9.4534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.787        .15388       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4469        5.0820        .43584E-04   -1.5337    
  14  Prefactor     12.693        14.296        .22495E-04   -1.4995    
  15  Prefactor     11.443        14.039        .47367E-05   -1.5031    
  16  Prefactor     .10000E-03    8.5464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.048        31.587        .25018E-05   -1.4426    
  18  Prefactor     .10000E-03    20.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0878        .23232        .11149E-04   -.90145    
  20  Prefactor     1.0808        .20114        .98122E-05   -.90083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01286e-10
Minuit parameter uncertainties:
  1  0.000128465
  2  2.93669e-06
  3  2.83144
  4  17.775
  5  9.91052e-06
  6  1.72776e-05
  7  0.740223
  8  8.2178
  9  1.21104e-05
  10  1.18119
  11  1.16728e-07
  12  1.79696e-05
  13  5.08262
  14  14.2995
  15  14.0431
  16  2.6357e-06
  17  31.5997
  18  9.21332e-06
  19  0.232537
  20  0.201283
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.269e+01  1.430e+01  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.081e+00  2.013e-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:  1.088e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.27e-05

TS (Fixed Index): 1.34
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993129/likelihoodResults_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.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) = 6732.0837019
delta logL = 0.00760032745984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6732.08036371
delta logL = 0.0109385195692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.850       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6587       1.0000          .0000       10.000    
     3 'Normalizat'    1.0922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       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=   6732.080     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.851        15.749        .10763E-03   -.67255E-03
   2  Index         2.6583        .88388        .11038E-01   -.18991E-03
   3  Normalizat    1.0923        .23092        .27822E-03    .26308E-03
   4  Prefactor     1.0771        .20138        .24565E-03    .34907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8514
  Index      = 2.65828
  Normalizat = 1.09226
  Prefactor  = 1.07715
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.080     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.851        15.262        .43051E-05   -1.4963    
   2  Index         2.6583        .85650        .44151E-03   -.48742    
   3  Normalizat    1.0923        .23111        .55644E-04   -.90001    
   4  Prefactor     1.0771        .20142        .49131E-04   -.90200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55804e-09
Minuit parameter uncertainties:
  1  15.2667
  2  0.861962
  3  0.231328
  4  0.201565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993129': 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) = 6732.08036359
delta logL = 0.0109386395197

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.385e+01  1.527e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.658e+00  8.620e-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.077e+00  2.016e-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:  1.092e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.66 +/- 0.86
Photon Flux (Free Index): 4.82e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.29e-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/993129/cmap_HighResolution_248659201_248918401_4FGL_J1254.9+1138_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='1.20e-05', photon_flux_error='5.63e-08', dlogl='1.09e-02', energy_flux='1.13e-05', photon_flux2='4.82e-08', job_status='DONE', time_completed='2021-09-06 09:34:54.302697', photon_index_error2='0.86', photon_index2='2.66', ts='1.34', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.29e-05', EG='1.09', time_epoch_completed='1630946094.3', return_code='0', job_id='993129', GAL2='1.08', EG2='1.09', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.05e-08', ts2='1.36', photon_index='2.79' WHERE bin_id='36' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 993129: <4FGL_J1254.9+1138_daily_bin36> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin36> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:56 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:57 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:20:57 2021
Terminated at Mon Sep  6 09:34:55 2021
Results reported at Mon Sep  6 09:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin36 193.733 11.6495 248659201 248918401 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 :                                   630.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

