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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin23
RA = 193.733, Dec = 11.6495
tmin = 245289601, tmax = 245548801
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='993111', job_status='RUN', time_executed='2021-09-06 09:21:58.798059', time_epoch_executed='1630945318.8' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993111

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993111/ft1_4FGL_J1254.9+1138_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993111/ft1_4FGL_J1254.9+1138_daily_bin23.fits outfile=/scratch/kocevski/993111/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin23.fits ra=193.733 dec=11.6495 rad=12.0 tmin=245289601.0 tmax=245548801.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.68
user 1.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993111/ft1_filtered_4FGL_J1254.9+1138_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/993111/ltcube_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.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/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits
.....................!
real 13.24
user 12.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993111/ft1_filtered_4FGL_J1254.9+1138_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/993111/ltcube_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.fits outfile=/scratch/kocevski/993111/expmap_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.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/993111/ltcube_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.fits
.....................!
real 194.23
user 186.57
sys 6.65

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/993111/ft1_filtered_4FGL_J1254.9+1138_daily_bin23.fits scfile=/scratch/kocevski/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits outfile=/scratch/kocevski/993111/cmap_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993111/ft1_filtered_4FGL_J1254.9+1138_daily_bin23.fits scfile=/scratch/kocevski/993111/ft2_4FGL_J1254.9+1138_daily_bin23.fits outfile=/scratch/kocevski/993111/cmap_HighResolution_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    203.98       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8992       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.059       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73869       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3740       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=   7959.858     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1966 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1.3523        .39685E-06** at limit **
   2  Prefactor     .10000E-03    8.5886        .56094E-05** at limit **
   3  norm          .10000E-03    .75239       -.89347E-07** at limit **
   4  Prefactor     .10000E-03    12.188        .41776E-05** at limit **
   5  norm          10.187        25.480       -.60562E-05   -.13256E-04
   6  Prefactor     203.98        136.73        .10777E-05   -.41517E-05
   7  norm          7.9208        1.0529        .33901E-07   -.35136E-04
   8  Prefactor     12.225        8.8697        .44488E-07    .48932E-04
   9  Prefactor     .10000E-03    9.5058       -.99836E-05** at limit **
  10  norm          1.4874        1.1364       -.68567E-07   -.29558E-03
  11  Prefactor     .10000E-03    14.008        .58473E-05** at limit **
  12  Prefactor     .10000E-03    16.116       -.13201E-04** at limit **
  13  Prefactor     .10000E-03    3.2107        .11289E-06** at limit **
  14  Prefactor     5.7765        12.553        .15370E-05   -.25060E-04
  15  Prefactor     9.9009        16.059       -.19004E-06   -.37602E-04
  16  Prefactor     8.2956        11.346       -.76880E-06   -.78008E-04
  17  Prefactor     .10000E-03    14.183        .51177E-05** at limit **
  18  Prefactor     45.058        39.744       -.17836E-05   -.14530E-05
  19  Normalizat    .73835        .19038       -.12478E-06   -.41124E-04
  20  Prefactor     1.3743        .16203        .28617E-06   -.62398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1872
  Prefactor  = 203.981
  norm       = 7.92082
  Prefactor  = 12.2248
  Prefactor  = 0.0001
  norm       = 1.48739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77654
  Prefactor  = 9.90091
  Prefactor  = 8.29561
  Prefactor  = 0.0001
  Prefactor  = 45.0579
  Normalizat = 0.738345
  Prefactor  = 1.37425
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.858     FROM HESSE     STATUS=OK           289 CALLS     2255 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    14.170        .20019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .75392        .75547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.187        25.508        .12552E-03   -1.5070    
   6  Prefactor     203.98        136.71        .14149E-03   -1.2842    
   7  norm          7.9208        1.0515        .14247E-04   -1.5145    
   8  Prefactor     12.225        8.8692        .11457E-03   -1.5009    
   9  Prefactor     .10000E-03    9.5111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4874        1.1285        .79824E-04   -1.5464    
  11  Prefactor     .10000E-03    14.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2296        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7765        12.474        .16716E-03   -1.5227    
  15  Prefactor     9.9009        16.034        .12736E-03   -1.5079    
  16  Prefactor     8.2956        11.350        .13919E-03   -1.5132    
  17  Prefactor     .10000E-03    14.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.058        39.750        .59728E-04   -1.4364    
  19  Normalizat    .73835        .22337        .33939E-03   -1.0240    
  20  Prefactor     1.3743        .19188        .22946E-03   -.81125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89034e-09
Minuit parameter uncertainties:
  1  0.00154852
  2  6.04696e-07
  3  1.0078e-06
  4  4.27313e-06
  5  25.5348
  6  136.923
  7  1.05149
  8  8.87011
  9  1.23094e-08
  10  1.12847
  11  4.37172e-06
  12  1.59769e-05
  13  7.88507e-07
  14  12.48
  15  16.0408
  16  11.3532
  17  1.15475e-06
  18  39.7729
  19  0.223649
  20  0.191978
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  5.777e+00  1.248e+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.374e+00  1.920e-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:  7.383e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993111/likelihoodResults_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.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) = 7959.84785203
delta logL = 0.0106265869463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7959.59618914
delta logL = 0.26228948295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21768E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.1452       1.0000          .0000       10.000    
     3 'Normalizat'    .71318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3977       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=   7959.596     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      325 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20465E-02    .69318E-01    .10076E-02** at limit **
   2  Index         9.1905        8.9388        .44426        .35418E-04
   3  Normalizat    .71338        .38953E-01    .77888E-01    .14965E-03
   4  Prefactor     1.3974        .34764E-01    .51542E-01    .25365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00204653
  Index      = 9.19052
  Normalizat = 0.713377
  Prefactor  = 1.3974
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.596     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20465E-02    .19291        .57780E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1905        5.5972        .36286E-01    .99380    
   3  Normalizat    .71338        .12942        .34484E-03   -1.0337    
   4  Prefactor     1.3974        .11479        .22786E-03   -.80455    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.41106e-10
Minuit parameter uncertainties:
  1  0.0387559
  2  13.0321
  3  0.129476
  4  0.114815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993111': 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): 102
logL (Free Index) = 7959.59616592
delta logL = 0.262312703438

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.047e-03  3.876e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  9.191e+00  1.303e+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.397e+00  1.148e-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:  7.134e-01  1.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/993111/cmap_HighResolution_245289601_245548801_4FGL_J1254.9+1138_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-06 09:33:14.618613', job_id='993111', GAL2='1.40', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1630945994.62', return_code2='102', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.62e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='23' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 993111: <4FGL_J1254.9+1138_daily_bin23> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin23> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:55 2021
Job was executed on host(s) <bullet0295>, 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:33:16 2021
Results reported at Mon Sep  6 09:33:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin23 193.733 11.6495 245289601 245548801 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            741 sec.

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

