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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin3
RA = 193.733, Dec = 11.6495
tmin = 240105601, tmax = 240364801
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='993083', job_status='RUN', time_executed='2021-09-06 09:24:11.913635', time_epoch_executed='1630945451.91' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993083/ft1_4FGL_J1254.9+1138_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993083/ft2_4FGL_J1254.9+1138_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993083/ft1_4FGL_J1254.9+1138_daily_bin3.fits outfile=/scratch/kocevski/993083/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin3.fits ra=193.733 dec=11.6495 rad=12.0 tmin=240105601.0 tmax=240364801.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.46
user 1.25
sys 0.17

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993083/ft1_filtered_4FGL_J1254.9+1138_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/993083/ft2_4FGL_J1254.9+1138_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/993083/ltcube_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.fits outfile=/scratch/kocevski/993083/expmap_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.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/993083/ltcube_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.fits
.....................!
real 190.47
user 185.90
sys 4.26

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993083/ft1_filtered_4FGL_J1254.9+1138_daily_bin3.fits scfile=/scratch/kocevski/993083/ft2_4FGL_J1254.9+1138_daily_bin3.fits outfile=/scratch/kocevski/993083/cmap_HighResolution_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.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/993083/ft1_filtered_4FGL_J1254.9+1138_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/993083/ft2_4FGL_J1254.9+1138_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993083/Model_4FGL_J1254.9+1138_daily_bin3.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/993083/ft1_filtered_4FGL_J1254.9+1138_daily_bin3.fits.....................!
real 49.20
user 47.88
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    131.08       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7642       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.355       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.311       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78686       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1681       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=   5688.799     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2029 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2961        .87819E-06** at limit **
   2  Prefactor     .10000E-03    13.963       -.19197E-05** at limit **
   3  norm          9.8576        4.6378       -.31547E-05    .39798E-03
   4  Prefactor     .10000E-03    20.235        .18440E-04** at limit **
   5  norm          .10000E-03    33.104       -.33940E-04** at limit **
   6  Prefactor     131.46        119.22        .30931E-03   -.13907E-04
   7  norm          3.7644        .92319       -.65909E-07    .63420E-04
   8  Prefactor     24.642        14.419        .56939E-05   -.87696E-06
   9  Prefactor     14.315        31.232       -.36149E-04   -.46031E-04
  10  norm          2.3138        1.4267       -.56047E-06   -.47771E-03
  11  Prefactor     .10000E-03    8.4146       -.11715E-06** at limit **
  12  Prefactor     .10000E-03    22.026       -.15561E-04** at limit **
  13  Prefactor     1.9305        6.4957       -.15932E-05   -.58328E-03
  14  Prefactor     .10000E-03    4.9657        .94023E-07** at limit **
  15  Prefactor     6.1813        8.3003        .54605E-06   -.93737E-04
  16  Prefactor     4.1965        10.285        .37481E-06   -.16311E-03
  17  Prefactor     .10000E-03    40.746        .40595E-04** at limit **
  18  Prefactor     17.305        26.393       -.25926E-05   -.15319E-04
  19  Normalizat    .78664        .20183       -.22400E-05   -.22345E-03
  20  Prefactor     1.1684        .17474       -.14611E-05   -.17936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.85758
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 131.457
  norm       = 3.76437
  Prefactor  = 24.642
  Prefactor  = 14.3147
  norm       = 2.31376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93049
  Prefactor  = 0.0001
  Prefactor  = 6.18129
  Prefactor  = 4.19654
  Prefactor  = 0.0001
  Prefactor  = 17.3051
  Normalizat = 0.786641
  Prefactor  = 1.16838
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.799     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2384        .22124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8576        4.6454        .10365E-03   -1.5080    
   4  Prefactor     .10000E-03    20.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    33.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     131.46        119.22        .17584E-03   -1.3410    
   7  norm          3.7644        .92481        .33452E-04   -1.5320    
   8  Prefactor     24.642        14.400        .80706E-04   -1.4715    
   9  Prefactor     14.315        31.206        .10572E-03   -1.4951    
  10  norm          2.3138        1.4250        .67851E-04   -1.5404    
  11  Prefactor     .10000E-03    8.4168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9305        6.4870        .29886E-03   -1.5430    
  14  Prefactor     .10000E-03    4.9846        .16412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1813        8.2956        .16147E-03   -1.5211    
  16  Prefactor     4.1965        10.279        .19659E-03   -1.5298    
  17  Prefactor     .10000E-03    41.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.305        26.393        .96262E-04   -1.4876    
  19  Normalizat    .78664        .23947        .30432E-03   -1.0057    
  20  Prefactor     1.1684        .20864        .22584E-03   -.87310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56519e-09
Minuit parameter uncertainties:
  1  0.000164864
  2  0.000139145
  3  4.64561
  4  0.000616747
  5  8.26884e-05
  6  119.441
  7  0.92481
  8  14.4019
  9  31.2411
  10  1.425
  11  4.25837e-06
  12  4.39422e-05
  13  6.48933
  14  2.74201e-05
  15  8.2971
  16  10.2836
  17  5.26065e-05
  18  26.4107
  19  0.239789
  20  0.208788
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.742e-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.168e+00  2.088e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.866e-01  2.398e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993083/likelihoodResults_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.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) = 5688.80024122
delta logL = -0.000954194390943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5688.79928698
delta logL = 4.29281499237e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7726       1.0000          .0000       10.000    
     3 'Normalizat'    .78666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1684       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=   5688.799     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.427        .16643E-01** at limit **
   2  Index         2.2775        5.2899        .50000        .54729E-07
   3  Normalizat    .78664        .11706E-01    .30432E-03    .17431E-03
   4  Prefactor     1.1684        .10446E-01    .22584E-03    .27846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27745
  Normalizat = 0.786644
  Prefactor  = 1.16838
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.799     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    306.39        .18311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2775        7.6123        .50000       -.57580    
   3  Normalizat    .78664        .36682E-01    .12173E-04   -1.0057    
   4  Prefactor     1.1684        .32735E-01    .45168E-04   -.87310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.94941e-10
Minuit parameter uncertainties:
  1  0.00013344
  2  864.946
  3  0.0366827
  4  0.0327353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993083': 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) = 5688.79928498
delta logL = 2.04135267268e-06

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.334e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.277e+00  8.649e+02  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.168e+00  3.274e-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:  7.866e-01  3.668e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/993083/cmap_HighResolution_240105601_240364801_4FGL_J1254.9+1138_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-06 09:33:25.412923', job_id='993083', GAL2='1.17', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630946005.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='3' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 993083: <4FGL_J1254.9+1138_daily_bin3> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin3> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:53 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:20:54 2021
Terminated at Mon Sep  6 09:33:26 2021
Results reported at Mon Sep  6 09:33:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin3 193.733 11.6495 240105601 240364801 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 :                                   553.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

