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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1294
RA = 193.733, Dec = 11.6495
tmin = 574732801, tmax = 574992001
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='999422', job_status='RUN', time_executed='2021-09-06 09:44:20.737986', time_epoch_executed='1630946660.74' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999422/ft1_4FGL_J1254.9+1138_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999422/ft1_4FGL_J1254.9+1138_daily_bin1294.fits outfile=/scratch/kocevski/999422/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1294.fits ra=193.733 dec=11.6495 rad=12.0 tmin=574732801.0 tmax=574992001.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 6.75
user 5.07
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/999422/ltcube_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.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/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits
.....................!
real 11.42
user 11.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/999422/ltcube_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.fits outfile=/scratch/kocevski/999422/expmap_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.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/999422/ltcube_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.fits
.....................!
real 191.19
user 185.62
sys 4.94

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/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits scfile=/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits outfile=/scratch/kocevski/999422/cmap_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits scfile=/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits outfile=/scratch/kocevski/999422/cmap_HighResolution_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.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/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/999422/ft2_4FGL_J1254.9+1138_daily_bin1294.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999422/Model_4FGL_J1254.9+1138_daily_bin1294.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/999422/ft1_filtered_4FGL_J1254.9+1138_daily_bin1294.fits.....................!
real 47.38
user 46.05
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.011       1.0000         .10000E-03   10000.    
     5 'norm      '    33.077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.654       1.0000         .10000E-03   10000.    
     7 'norm      '    .68160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.371       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11486E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.109       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92945       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0311       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=   5336.690     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2039 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19104        1.9141        .22550E-06   -.13957E-03
   2  Prefactor     .10000E-03    23.269        .19085E-06** at limit **
   3  norm          6.6945        5.9321        .25268E-06    .17002E-04
   4  Prefactor     11.011        25.500        .17938E-06   -.48855E-06
   5  norm          33.059        47.704       -.48562E-06   -.19963E-04
   6  Prefactor     89.606        137.16       -.27159E-06   -.14377E-04
   7  norm          .68278        .76658       -.13048E-07   -.36086E-04
   8  Prefactor     .10000E-03    2.6853        .46657E-08** at limit **
   9  Prefactor     19.371        20.513       -.14802E-09   -.30134E-05
  10  norm          4.9497        2.1283        .24392E-07    .74219E-06
  11  Prefactor     87.160        56.611        .14207E-06   -.46228E-04
  12  Prefactor     11.717        33.672       -.65872E-06   -.45674E-04
  13  Prefactor     .10000E-03    2.1485        .67595E-07** at limit **
  14  Prefactor     .10000E-03    8.7893       -.21990E-05** at limit **
  15  Prefactor     7.6807        14.063        .40299E-05   -.41674E-05
  16  Prefactor     .10000E-03    9.7596        .29469E-06** at limit **
  17  Prefactor     38.107        34.634        .44210E-08   -.50561E-05
  18  Prefactor     .10000E-03    37.410        .29882E-06** at limit **
  19  Normalizat    .92927        .21087       -.13750E-05    .25121E-04
  20  Prefactor     1.0313        .18135        .17530E-06   -.37100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.191042
  Prefactor  = 0.0001
  norm       = 6.69448
  Prefactor  = 11.0113
  norm       = 33.0589
  Prefactor  = 89.6065
  norm       = 0.682779
  Prefactor  = 0.0001
  Prefactor  = 19.3705
  norm       = 4.94974
  Prefactor  = 87.1604
  Prefactor  = 11.7174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6807
  Prefactor  = 0.0001
  Prefactor  = 38.107
  Prefactor  = 0.0001
  Normalizat = 0.929269
  Prefactor  = 1.03132
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.690     FROM HESSE     STATUS=OK           301 CALLS     2340 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19104        4.8002        .19465E-02   -1.5621    
   2  Prefactor     .10000E-03    23.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6945        5.8646        .13298E-03   -1.5190    
   4  Prefactor     11.011        25.488        .12074E-03   -1.5044    
   5  norm          33.059        47.838        .69674E-04   -1.4557    
   6  Prefactor     89.606        137.20        .21218E-03   -1.3812    
   7  norm          .68278        .71583        .59280E-03   -1.5543    
   8  Prefactor     .10000E-03    2.6881        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.371        20.518        .91002E-04   -1.4827    
  10  norm          4.9497        2.1212        .65595E-04   -1.5263    
  11  Prefactor     87.160        56.480        .21513E-03   -1.3838    
  12  Prefactor     11.717        33.713        .11680E-03   -1.5023    
  13  Prefactor     .10000E-03    2.1536        .10458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6807        14.122        .72341E-03   -1.5154    
  16  Prefactor     .10000E-03    9.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.107        34.646        .64925E-04   -1.4473    
  18  Prefactor     .10000E-03    37.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92927        .24323        .27217E-03   -.95439    
  20  Prefactor     1.0313        .21139        .23127E-03   -.91693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30284e-08
Minuit parameter uncertainties:
  1  1.91491
  2  1.62563e-05
  3  5.8651
  4  25.5134
  5  47.8935
  6  137.691
  7  0.715836
  8  6.61952e-07
  9  20.525
  10  2.12118
  11  56.5148
  12  33.7673
  13  8.34827e-07
  14  2.05032e-05
  15  14.1281
  16  1.27996e-05
  17  34.6641
  18  4.96642e-05
  19  0.24352
  20  0.211561
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.050e-05  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.031e+00  2.116e-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.293e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999422/likelihoodResults_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.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): 102
logL (Free Index) = 5336.69012026
delta logL = -0.00053276095332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5336.68958757
delta logL = -6.77737261867e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7915       1.0000          .0000       10.000    
     3 'Normalizat'    .92922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   5336.690     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    9.8203        .18142E-02** at limit **
   2  Index         2.8530        6.4189        .50000       -.61996E-06
   3  Normalizat    .92927        .23180        .27217E-03    .23558E-04
   4  Prefactor     1.0313        .20760        .23127E-03    .18189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100084
  Index      = 2.85302
  Normalizat = 0.929268
  Prefactor  = 1.03132
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.690     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    8.9623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8530        6.4070        .50000       -.44382    
   3  Normalizat    .92927        .23203        .10887E-04   -.95439    
   4  Prefactor     1.0313        .20781        .92506E-05   -.91693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42116e-09
Minuit parameter uncertainties:
  1  0.0017402
  2  4.52463
  3  0.232281
  4  0.207977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999422': 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) = 5336.6895875
delta logL = 2.03090166906e-09

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  1.740e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.853e+00  4.525e+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.031e+00  2.080e-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.293e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/999422/cmap_HighResolution_574732801_574992001_4FGL_J1254.9+1138_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-06 09:55:22.475942', job_id='999422', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630947322.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.03e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1294' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:55:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 999422: <4FGL_J1254.9+1138_daily_bin1294> in cluster <slac> Done

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

Your job looked like:

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

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

