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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin86
RA = 193.733, Dec = 11.6495
tmin = 261619201, tmax = 261878401
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='993191', job_status='RUN', time_executed='2021-09-06 09:24:25.451220', time_epoch_executed='1630945465.45' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993191/ft1_4FGL_J1254.9+1138_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993191/ft2_4FGL_J1254.9+1138_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993191/ft1_4FGL_J1254.9+1138_daily_bin86.fits outfile=/scratch/kocevski/993191/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin86.fits ra=193.733 dec=11.6495 rad=12.0 tmin=261619201.0 tmax=261878401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.40
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993191/ft2_4FGL_J1254.9+1138_daily_bin86.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/993191/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/993191/ft1_filtered_4FGL_J1254.9+1138_daily_bin86.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993191/ft1_filtered_4FGL_J1254.9+1138_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/993191/ft2_4FGL_J1254.9+1138_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/993191/ltcube_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.fits outfile=/scratch/kocevski/993191/expmap_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.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/993191/ltcube_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.fits
.....................!
real 189.04
user 184.28
sys 4.46

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/993191/ft1_filtered_4FGL_J1254.9+1138_daily_bin86.fits scfile=/scratch/kocevski/993191/ft2_4FGL_J1254.9+1138_daily_bin86.fits outfile=/scratch/kocevski/993191/cmap_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993191/ft1_filtered_4FGL_J1254.9+1138_daily_bin86.fits scfile=/scratch/kocevski/993191/ft2_4FGL_J1254.9+1138_daily_bin86.fits outfile=/scratch/kocevski/993191/cmap_HighResolution_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.2460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12301E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.996       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2158       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94209       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=   10317.70     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1737 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .90515        .32605E-07** at limit **
   2  Prefactor     .10000E-03    6.9160       -.92157E-06** at limit **
   3  norm          1.1409        3.8307        .34082E-05   -.18589E-03
   4  Prefactor     .10000E-03    10.339       -.37091E-06** at limit **
   5  norm          18.824        39.524        .12414E-05    .37451E-04
   6  Prefactor     .10000E-03    33.502       -.49111E-05** at limit **
   7  norm          6.8737        .98215       -.24926E-06   -.13848E-02
   8  Prefactor     15.692        9.3925       -.63206E-07    .13657E-04
   9  Prefactor     .10000E-03    11.841       -.21585E-05** at limit **
  10  norm          6.2464        1.7459       -.30671E-07   -.42773E-03
  11  Prefactor     .10000E-03    9.2961        .16978E-05** at limit **
  12  Prefactor     17.783        22.593       -.90692E-07   -.17231E-04
  13  Prefactor     11.639        5.9874        .26297E-07   -.71255E-05
  14  Prefactor     .10000E-03    6.3998        .26402E-06** at limit **
  15  Prefactor     10.383        12.603        .19413E-05   -.15352E-03
  16  Prefactor     .10003E-03    3.8600        .13171E-05** at limit **
  17  Prefactor     .10000E-03    28.509        .45094E-05** at limit **
  18  Prefactor     99.981        50.207       -.18421E-05   -.14394E-03
  19  Normalizat    1.2155        .16807       -.33955E-06   -.35083E-03
  20  Prefactor     .94237        .13815       -.52725E-06   -.31753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14091
  Prefactor  = 0.0001
  norm       = 18.8237
  Prefactor  = 0.000100001
  norm       = 6.8737
  Prefactor  = 15.6921
  Prefactor  = 0.0001
  norm       = 6.24639
  Prefactor  = 0.0001
  Prefactor  = 17.7829
  Prefactor  = 11.6393
  Prefactor  = 0.0001
  Prefactor  = 10.3832
  Prefactor  = 0.000100034
  Prefactor  = 0.000100001
  Prefactor  = 99.9815
  Normalizat = 1.2155
  Prefactor  = 0.942369
 **********
 **   18 **HESSE 
 **********

 FCN=   10317.70     FROM HESSE     STATUS=OK           289 CALLS     2026 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93860        .18871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1409        3.9272        .30373E-03   -1.5494    
   4  Prefactor     .10000E-03    10.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.824        40.199        .92386E-04   -1.4840    
   6  Prefactor     .10000E-03    33.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8737        .98639        .33659E-04   -1.5184    
   8  Prefactor     15.692        9.3901        .10112E-03   -1.4915    
   9  Prefactor     .10000E-03    11.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.2464        1.7455        .67026E-04   -1.5208    
  11  Prefactor     .10000E-03    9.3567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.783        22.587        .94975E-04   -1.4864    
  13  Prefactor     11.639        5.9894        .11743E-03   -1.5026    
  14  Prefactor     .10000E-03    6.4446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.383        12.746        .62176E-03   -1.5063    
  16  Prefactor     .10003E-03    15.295        .37605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     99.981        50.517        .20101E-03   -1.3705    
  19  Normalizat    1.2155        .19799        .28334E-03   -.86125    
  20  Prefactor     .94237        .16214        .26962E-03   -.94676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45766e-09
Minuit parameter uncertainties:
  1  9.01947e-07
  2  3.93377e-05
  3  3.92812
  4  1.72672e-05
  5  40.2565
  6  0.000390964
  7  0.986392
  8  9.39101
  9  9.2413e-05
  10  1.74554
  11  7.37297e-05
  12  22.5979
  13  5.98971
  14  2.14887e-06
  15  12.7489
  16  0.00143533
  17  0.000317746
  18  50.5391
  19  0.198109
  20  0.162222
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.149e-06  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:  9.424e-01  1.622e-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.215e+00  1.981e-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: 7.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993191/likelihoodResults_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.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) = 10317.6976934
delta logL = -0.000739561794035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10317.6969538
delta logL = 6.67441781843e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8114       1.0000          .0000       10.000    
     3 'Normalizat'    1.2155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94241       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=   10317.63     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      306 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60328E-01    .81860        .10816E-01    .56910E-02
   2  Index         6.3903        2.2440        .49205        .34308E-04
   3  Normalizat    1.1910        .13948E-01    .28334E-03   -.56976E-05
   4  Prefactor     .95553        .11921E-01    .26963E-03   -.33732E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0603284
  Index      = 6.3903
  Normalizat = 1.19102
  Prefactor  = 0.955533
 **********
 **   18 **HESSE 
 **********

 FCN=   10317.63     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      337 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60328E-01    20.401        .54033E-03   -1.5659    
   2  Index         6.3903        6.4891        .14517E-01    .28177    
   3  Normalizat    1.1910        .10265        .11333E-04   -.86881    
   4  Prefactor     .95553        .85345E-01    .10785E-04   -.94227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69972e-06
Minuit parameter uncertainties:
  1  2.21769
  2  26.4262
  3  0.102664
  4  0.0853571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993191': 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) = 10317.6332753
delta logL = 0.0636786011546

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.033e-02  2.218e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  6.390e+00  2.643e+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:  9.555e-01  8.536e-02  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.191e+00  1.027e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993191/cmap_HighResolution_261619201_261878401_4FGL_J1254.9+1138_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-06 09:36:35.324903', job_id='993191', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1630946195.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.37e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='86' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 993191: <4FGL_J1254.9+1138_daily_bin86> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin86> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:21:02 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:21:03 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:21:03 2021
Terminated at Mon Sep  6 09:36:36 2021
Results reported at Mon Sep  6 09:36:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin86 193.733 11.6495 261619201 261878401 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 :                                   729.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

