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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1044
RA = 193.733, Dec = 11.6495
tmin = 509932801, tmax = 510192001
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='999013', job_status='RUN', time_executed='2021-09-06 09:44:46.460658', time_epoch_executed='1630946686.46' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999013/ft1_4FGL_J1254.9+1138_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999013/ft2_4FGL_J1254.9+1138_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999013/ft1_4FGL_J1254.9+1138_daily_bin1044.fits outfile=/scratch/kocevski/999013/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1044.fits ra=193.733 dec=11.6495 rad=12.0 tmin=509932801.0 tmax=510192001.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.59
user 3.29
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999013/ft1_filtered_4FGL_J1254.9+1138_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/999013/ft2_4FGL_J1254.9+1138_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/999013/ltcube_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.fits outfile=/scratch/kocevski/999013/expmap_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.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/999013/ltcube_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.fits
.....................!
real 190.70
user 185.60
sys 4.50

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/999013/ft1_filtered_4FGL_J1254.9+1138_daily_bin1044.fits scfile=/scratch/kocevski/999013/ft2_4FGL_J1254.9+1138_daily_bin1044.fits outfile=/scratch/kocevski/999013/cmap_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999013/ft1_filtered_4FGL_J1254.9+1138_daily_bin1044.fits scfile=/scratch/kocevski/999013/ft2_4FGL_J1254.9+1138_daily_bin1044.fits outfile=/scratch/kocevski/999013/cmap_HighResolution_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.614       1.0000         .10000E-03   10000.    
     3 'norm      '    .53071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19321E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24780E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8270       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.577       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.241       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5032       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .30121       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=   5188.603     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2117 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3764        3.3077       -.32764E-06    .70891E-03
   2  Prefactor     10.615        23.186        .12479E-05    .36059E-03
   3  norm          .52796        2.9660       -.39507E-05    .41779E-03
   4  Prefactor     .10000E-03    9.0669        .47180E-07** at limit **
   5  norm          .10000E-03    16.083        .12078E-06** at limit **
   6  Prefactor     .10000E-03    31.304       -.31480E-06** at limit **
   7  norm          1.7107        .74403        .10042E-05    .21708E-02
   8  Prefactor     .10000E-03    8.7169       -.29679E-07** at limit **
   9  Prefactor     .10000E-03    219.28        .14053E-03** at limit **
  10  norm          2.1391        1.2908        .90316E-06   -.23965E-02
  11  Prefactor     .10000E-03    334.69        .20454E-04** at limit **
  12  Prefactor     49.837        53.525       -.26955E-05    .21317E-03
  13  Prefactor     .10000E-03    2.5604       -.43264E-06** at limit **
  14  Prefactor     5.8256        10.982       -.22732E-05    .27904E-03
  15  Prefactor     .10000E-03    8.7560       -.94554E-06** at limit **
  16  Prefactor     .10000E-03    10.220       -.22157E-05** at limit **
  17  Prefactor     29.577        26.452       -.20328E-05    .53872E-04
  18  Prefactor     54.242        37.396       -.10736E-05    .17879E-04
  19  Normalizat    1.5034        .20086        .56463E-05    .55331E-03
  20  Prefactor     .30107        .15998        .95821E-05    .93111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37636
  Prefactor  = 10.6147
  norm       = 0.527959
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71069
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.13908
  Prefactor  = 0.000100001
  Prefactor  = 49.8375
  Prefactor  = 0.0001
  Prefactor  = 5.82557
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 29.5772
  Prefactor  = 54.2422
  Normalizat = 1.50338
  Prefactor  = 0.301068
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.603     FROM HESSE     STATUS=OK           287 CALLS     2404 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3764        3.3039        .91419E-04   -1.5203    
   2  Prefactor     10.615        23.053        .12298E-03   -1.5056    
   3  norm          .52796        5.1564        .21647E-02   -1.5563    
   4  Prefactor     .10000E-03    9.0686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    16.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7107        .73764        .37154E-04   -1.5446    
   8  Prefactor     .10000E-03    8.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    210.12        .62937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1391        1.2850        .60738E-04   -1.5415    
  11  Prefactor     .10000E-03    332.21        .36585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.837        53.368        .56802E-04   -1.4295    
  13  Prefactor     .10000E-03    2.5670        .11259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8256        10.977        .16637E-03   -1.5225    
  15  Prefactor     .10000E-03    8.8291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.577        26.448        .73670E-04   -1.4620    
  18  Prefactor     54.242        37.403        .54462E-04   -1.4234    
  19  Normalizat    1.5034        .22112        .20754E-03   -.77683    
  20  Prefactor     .30107        .17304        .34507E-03   -1.2220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08231e-09
Minuit parameter uncertainties:
  1  3.30401
  2  23.0722
  3  3.29999
  4  0.000127558
  5  0.000110473
  6  0.000127696
  7  0.737642
  8  4.35089e-05
  9  0.0015826
  10  1.28506
  11  0.00116668
  12  53.4197
  13  4.04004e-05
  14  10.9808
  15  0.00020816
  16  0.000381922
  17  26.4587
  18  37.4195
  19  0.221266
  20  0.17334
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  5.826e+00  1.098e+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:  3.011e-01  1.733e-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.503e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999013/likelihoodResults_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.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) = 5188.59825085
delta logL = 0.0043513696146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5188.59769183
delta logL = 0.00491038896598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1366       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6550       1.0000          .0000       10.000    
     3 'Normalizat'    1.5061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29934       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=   5188.598     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      285 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1373        11.342        .16206E-03   -.62763E-03
   2  Index         2.6551        1.3353        .15690E-01   -.11555E-03
   3  Normalizat    1.5058        .21907        .20740E-03    .20261E-03
   4  Prefactor     .29954        .17233        .34589E-03    .14524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.13734
  Index      = 2.65507
  Normalizat = 1.50579
  Prefactor  = 0.299537
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.598     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1373        11.177        .64826E-05   -1.5212    
   2  Index         2.6551        1.3166        .62759E-03   -.48814    
   3  Normalizat    1.5058        .21916        .41479E-04   -.77616    
   4  Prefactor     .29954        .17232        .13836E-04   -1.2229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84315e-09
Minuit parameter uncertainties:
  1  11.1812
  2  1.33692
  3  0.219302
  4  0.172619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999013': 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) = 5188.59769106
delta logL = 0.00491116083413

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.137e+00  1.118e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.655e+00  1.337e+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:  2.995e-01  1.726e-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.506e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/999013/cmap_HighResolution_509932801_510192001_4FGL_J1254.9+1138_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-06 09:55:26.533005', job_id='999013', GAL2='0.30', fit_tolerance='1e-08', EG2='1.51', EG='1.50', time_epoch_completed='1630947326.53', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.30', dlogl='4.91e-03', ts2='0.41', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1044' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 999013: <4FGL_J1254.9+1138_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1044 193.733 11.6495 509932801 510192001 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 :                                   544.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

