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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin95
RA = 193.733, Dec = 11.6495
tmin = 263952001, tmax = 264211201
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='993205', job_status='RUN', time_executed='2021-09-06 09:24:17.659860', time_epoch_executed='1630945457.66' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993205/ft1_4FGL_J1254.9+1138_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993205/ft2_4FGL_J1254.9+1138_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993205/ft1_4FGL_J1254.9+1138_daily_bin95.fits outfile=/scratch/kocevski/993205/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin95.fits ra=193.733 dec=11.6495 rad=12.0 tmin=263952001.0 tmax=264211201.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.72
user 1.51
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993205/ft1_filtered_4FGL_J1254.9+1138_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/993205/ft2_4FGL_J1254.9+1138_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/993205/ltcube_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.fits outfile=/scratch/kocevski/993205/expmap_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.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/993205/ltcube_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.fits
.....................!
real 191.79
user 185.84
sys 5.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/993205/ft1_filtered_4FGL_J1254.9+1138_daily_bin95.fits scfile=/scratch/kocevski/993205/ft2_4FGL_J1254.9+1138_daily_bin95.fits outfile=/scratch/kocevski/993205/cmap_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.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.52
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.096       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4048       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.095       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2596       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11477E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.518       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67916       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2651       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96070       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=   7748.248     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     2361 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7164        .22151E-03** at limit **
   2  Prefactor     .10000E-03    13.780        .18142E-02** at limit **
   3  norm          3.4320        3.6947        .16176E-03   -.49477E-04
   4  Prefactor     .10000E-03    18.050        .18142E-02** at limit **
   5  norm          .10000E-03    14.359        .18142E-02** at limit **
   6  Prefactor     47.184        121.39        .29214E-03   -.11441E-04
   7  norm          5.4052        .99385        .34651E-04   -.54464E-04
   8  Prefactor     9.1211        8.0124        .13270E-03   -.15421E-05
   9  Prefactor     23.099        20.189        .83349E-04   -.46375E-05
  10  norm          .10000E-03    2.1619        .15450E-02** at limit **
  11  Prefactor     .10000E-03    9.6529        .18142E-02** at limit **
  12  Prefactor     8.2918        53.049        .13950E-03    .11410E-04
  13  Prefactor     2.7243        2.8650        .14878E-03    .23687E-04
  14  Prefactor     .10000E-03    13.903        .36285E-03** at limit **
  15  Prefactor     .10000E-03    13.765        .36285E-03** at limit **
  16  Prefactor     12.521        10.213        .11322E-03   -.10644E-04
  17  Prefactor     2.2749        38.410        .27215E-03   -.25064E-05
  18  Prefactor     .62670        33.970        .15701        .15899E-03
  19  Normalizat    1.2650        .22289        .27070E-03   -.37000E-04
  20  Prefactor     .96078        .18796        .25915E-03    .75015E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43198
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.184
  norm       = 5.40516
  Prefactor  = 9.12111
  Prefactor  = 23.099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.29178
  Prefactor  = 2.72429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5211
  Prefactor  = 2.27487
  Prefactor  = 0.626701
  Normalizat = 1.26501
  Prefactor  = 0.960776
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.248     FROM HESSE     STATUS=OK           281 CALLS     2642 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7165        .44302E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4320        3.6943        .64705E-05   -1.5337    
   4  Prefactor     .10000E-03    18.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.184        121.37        .11685E-04   -1.4333    
   7  norm          5.4052        .99372        .13860E-05   -1.5243    
   8  Prefactor     9.1211        8.0121        .53081E-05   -1.5104    
   9  Prefactor     23.099        20.188        .33340E-05   -1.4746    
  10  norm          .10000E-03    2.1794        .30900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2918        53.014        .55798E-05   -1.5132    
  13  Prefactor     2.7243        2.8650        .59513E-05   -1.5378    
  14  Prefactor     .10000E-03    13.904        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.766        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.521        10.213        .45287E-05   -1.5000    
  17  Prefactor     2.2749        38.404        .10886E-04   -1.5406    
  18  Prefactor     .62670        33.432        .15907       -1.5550    
  19  Normalizat    1.2650        .22311        .10828E-04   -.84617    
  20  Prefactor     .96078        .18814        .10366E-04   -.94049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91177e-10
Minuit parameter uncertainties:
  1  3.2536e-06
  2  9.19431e-06
  3  3.69453
  4  2.48558e-05
  5  8.37159e-06
  6  122.015
  7  0.993723
  8  8.01301
  9  20.1942
  10  2.80104e-05
  11  2.72446e-06
  12  41.9869
  13  2.86517
  14  1.1596e-05
  15  4.85755e-05
  16  10.2145
  17  18.7075
  18  9.15925
  19  0.223283
  20  0.188265
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.160e-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:  9.608e-01  1.883e-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.265e+00  2.233e-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: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993205/likelihoodResults_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.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) = 7748.24822876
delta logL = -0.000343148059983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7748.24788562
delta logL = -2.40652298089e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8065       1.0000          .0000       10.000    
     3 'Normalizat'    1.2650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96077       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=   7748.248     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    154.59        .36285E-02** at limit **
   2  Index         2.8711        8.4607        .50000       -.71002E-05
   3  Normalizat    1.2650        .15422E-01    .27070E-03    .69170E-04
   4  Prefactor     .96078        .13146E-01    .25915E-03    .53169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101143
  Index      = 2.87112
  Normalizat = 1.26501
  Prefactor  = 0.960776
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.248     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10114E-03    748.94        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8711        8.2333        .50000       -.43982    
   3  Normalizat    1.2650        .35973E-01    .10828E-04   -.84617    
   4  Prefactor     .96078        .30664E-01    .10366E-04   -.94049    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63931e-08
Minuit parameter uncertainties:
  1  0.0592836
  2  1244
  3  0.0359733
  4  0.0306644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993205': 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) = 7748.2478855
delta logL = 1.15921466204e-07

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.011e-04  5.928e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.871e+00  1.244e+03  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.608e-01  3.066e-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.265e+00  3.597e-02  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/993205/cmap_HighResolution_263952001_264211201_4FGL_J1254.9+1138_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-06 09:35:40.738561', job_id='993205', GAL2='0.96', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630946140.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='95' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 993205: <4FGL_J1254.9+1138_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin95 193.733 11.6495 263952001 264211201 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 :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

