/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 57 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 = 7642
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1073
RA = 193.733, Dec = 11.6495
tmin = 517449601, tmax = 517708801
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='999065', job_status='RUN', time_executed='2021-09-06 09:42:08.463621', time_epoch_executed='1630946528.46' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999065

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999065/ft1_4FGL_J1254.9+1138_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999065/ft1_4FGL_J1254.9+1138_daily_bin1073.fits outfile=/scratch/kocevski/999065/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1073.fits ra=193.733 dec=11.6495 rad=12.0 tmin=517449601.0 tmax=517708801.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 5.76
user 5.34
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999065/ft1_filtered_4FGL_J1254.9+1138_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/999065/ltcube_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.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/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits
.....................!
real 12.75
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999065/ft1_filtered_4FGL_J1254.9+1138_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/999065/ltcube_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.fits outfile=/scratch/kocevski/999065/expmap_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.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/999065/ltcube_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.fits
.....................!
real 190.50
user 185.16
sys 4.26

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/999065/ft1_filtered_4FGL_J1254.9+1138_daily_bin1073.fits scfile=/scratch/kocevski/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits outfile=/scratch/kocevski/999065/cmap_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999065/ft1_filtered_4FGL_J1254.9+1138_daily_bin1073.fits scfile=/scratch/kocevski/999065/ft2_4FGL_J1254.9+1138_daily_bin1073.fits outfile=/scratch/kocevski/999065/cmap_HighResolution_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.942       1.0000         .10000E-03   10000.    
     3 'norm      '    .27167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    107.40       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .94433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.393       1.0000         .10000E-03   10000.    
    10 'norm      '    .39961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8289       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.799       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97512       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0801       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.

 FCN=   5846.321     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2171 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6347       -.35246E-06** at limit **
   2  Prefactor     30.009        45.332       -.29211E-05    .14347E-03
   3  norm          .25712        25.091        .47045E-05    .32893E-03
   4  Prefactor     .10000E-03    48.031        .72574E-06** at limit **
   5  norm          107.46        55.410       -.58471E-06   -.28279E-04
   6  Prefactor     .10000E-03    71.716       -.12838E-07** at limit **
   7  norm          .94439        .61796        .17746E-06    .11753E-02
   8  Prefactor     1.1410        9.1877       -.21204E-05   -.57969E-04
   9  Prefactor     18.393        21.109       -.19269E-06    .63787E-04
  10  norm          .39844        1.0486       -.17206E-05   -.38828E-03
  11  Prefactor     26.227        31.842        .11121E-06    .36027E-04
  12  Prefactor     .20280E-03    99.060       -.11269E-04** at limit **
  13  Prefactor     .10000E-03    2.3842       -.88010E-07** at limit **
  14  Prefactor     2.8592        10.565        .20258E-05    .32343E-03
  15  Prefactor     .10000E-03    4.9467       -.29041E-06** at limit **
  16  Prefactor     .10000E-03    7.2331       -.46596E-06** at limit **
  17  Prefactor     .10000E-03    37.650       -.55880E-06** at limit **
  18  Prefactor     29.782        50.062       -.50077E-06   -.11876E-05
  19  Normalizat    .97524        .21787       -.23688E-05    .52280E-03
  20  Prefactor     1.0801        .18424        .30459E-05    .25419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.0091
  norm       = 0.257123
  Prefactor  = 0.0001
  norm       = 107.46
  Prefactor  = 0.0001
  norm       = 0.944394
  Prefactor  = 1.14101
  Prefactor  = 18.3927
  norm       = 0.398443
  Prefactor  = 26.2268
  Prefactor  = 0.000202803
  Prefactor  = 0.0001
  Prefactor  = 2.85919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7822
  Normalizat = 0.975236
  Prefactor  = 1.08012
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.321     FROM HESSE     STATUS=OK           299 CALLS     2470 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7112        .24228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.009        46.527        .73221E-04   -1.4612    
   3  norm          .25712        28.958        .20306E-02   -1.5607    
   4  Prefactor     .10000E-03    48.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          107.46        57.152        .19404E-03   -1.3631    
   6  Prefactor     .10000E-03    71.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .94439        .61281        .44966E-04   -1.5514    
   8  Prefactor     1.1410        9.1019        .43490E-03   -1.5494    
   9  Prefactor     18.393        21.010        .93388E-04   -1.4850    
  10  norm          .39844        1.0481        .12137E-03   -1.5582    
  11  Prefactor     26.227        31.725        .78209E-04   -1.4683    
  12  Prefactor     .20280E-03    51.696        .14305       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3867        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8592        10.583        .24179E-03   -1.5370    
  15  Prefactor     .10000E-03    4.9600        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.782        50.095        .73395E-04   -1.4616    
  19  Normalizat    .97524        .24267        .27892E-03   -.93865    
  20  Prefactor     1.0801        .20455        .22741E-03   -.90105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56038e-09
Minuit parameter uncertainties:
  1  1.19413e-06
  2  46.5835
  3  5.45905
  4  6.57455e-05
  5  57.1817
  6  0.000131451
  7  0.612813
  8  6.44633
  9  21.0188
  10  1.04813
  11  31.7452
  12  0.145927
  13  1.15285e-06
  14  10.5901
  15  4.27792e-06
  16  9.84806e-06
  17  4.40688e-05
  18  50.1658
  19  0.242945
  20  0.204698
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.859e+00  1.059e+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.080e+00  2.047e-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:  9.752e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999065/likelihoodResults_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.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) = 5846.31907464
delta logL = 0.00189459567991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5846.31859364
delta logL = 0.00237559259676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1448       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6693       1.0000          .0000       10.000    
     3 'Normalizat'    .97593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0795       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=   5846.319     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1452        11.304        .22858E-03   -.83406E-04
   2  Index         2.6691        1.7083        .14066E-01   -.20191E-04
   3  Normalizat    .97593        .23651        .27882E-03    .14030E-03
   4  Prefactor     1.0794        .20182        .22747E-03    .15988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14516
  Index      = 2.66906
  Normalizat = 0.975932
  Prefactor  = 1.07945
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.319     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1452        11.001        .91434E-05   -1.5353    
   2  Index         2.6691        1.6654        .56263E-03   -.48498    
   3  Normalizat    .97593        .23679        .11153E-04   -.93841    
   4  Prefactor     1.0794        .20199        .45494E-04   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13989e-10
Minuit parameter uncertainties:
  1  11.0082
  2  1.70752
  3  0.237043
  4  0.202136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999065': 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) = 5846.31859355
delta logL = 0.00237568141893

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.145e+00  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.669e+00  1.708e+00  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.079e+00  2.021e-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:  9.759e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 193.733 11.649

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/999065/cmap_HighResolution_517449601_517708801_4FGL_J1254.9+1138_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 09:53:12.517262', job_id='999065', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630947192.52', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.38e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1073' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:53:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 999065: <4FGL_J1254.9+1138_daily_bin1073> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1073> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:40:50 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:40:52 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:40:52 2021
Terminated at Mon Sep  6 09:53:13 2021
Results reported at Mon Sep  6 09:53:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1073 193.733 11.6495 517449601 517708801 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 :                                   585.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

