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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1516
RA = 193.733, Dec = 11.6495
tmin = 632275201, tmax = 632534401
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='754', job_status='RUN', time_executed='2021-09-06 09:48:28.571575', time_epoch_executed='1630946908.57' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754/ft1_4FGL_J1254.9+1138_daily_bin1516.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754/ft2_4FGL_J1254.9+1138_daily_bin1516.fits


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

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

Done.
real 3.73
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754/ft2_4FGL_J1254.9+1138_daily_bin1516.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/754/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1516.fits evtable="EVENTS" outfile="/scratch/kocevski/754/ft1_filtered_4FGL_J1254.9+1138_daily_bin1516.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754/ft1_filtered_4FGL_J1254.9+1138_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/754/ft2_4FGL_J1254.9+1138_daily_bin1516.fits sctable="SC_DATA" expcube=/scratch/kocevski/754/ltcube_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.fits outfile=/scratch/kocevski/754/expmap_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.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/754/ltcube_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.fits
.....................!
real 191.42
user 185.00
sys 5.58

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/754/ft1_filtered_4FGL_J1254.9+1138_daily_bin1516.fits scfile=/scratch/kocevski/754/ft2_4FGL_J1254.9+1138_daily_bin1516.fits outfile=/scratch/kocevski/754/cmap_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754/ft1_filtered_4FGL_J1254.9+1138_daily_bin1516.fits scfile=/scratch/kocevski/754/ft2_4FGL_J1254.9+1138_daily_bin1516.fits outfile=/scratch/kocevski/754/cmap_HighResolution_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    39.548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    150.08       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6538       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.998       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.421       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87276       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2451       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=   8201.766     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2037 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5435        2.8746        .16686E-06    .53135E-04
   2  Prefactor     .10000E-03    6.1188       -.21266E-06** at limit **
   3  norm          .10000E-03    2.3583       -.24250E-05** at limit **
   4  Prefactor     .10000E-03    16.743       -.13111E-05** at limit **
   5  norm          39.504        34.663        .69091E-06    .32642E-03
   6  Prefactor     150.10        105.94        .19608E-05    .12402E-03
   7  norm          2.6543        .67458        .20904E-06    .53301E-02
   8  Prefactor     .93461E-01    4.4475       -.72013E-07   -.41391E-04
   9  Prefactor     .10000E-03    4.9422        .26391E-07** at limit **
  10  norm          2.6535        1.2969        .34533E-07    .85673E-03
  11  Prefactor     .10000E-03    9.0721       -.52565E-06** at limit **
  12  Prefactor     .10000E-03    26.213        .63826E-06** at limit **
  13  Prefactor     .10000E-03    2.8639        .26961E-08** at limit **
  14  Prefactor     .10000E-03    7.0498        .55846E-06** at limit **
  15  Prefactor     .10000E-03    13.139        .14318E-05** at limit **
  16  Prefactor     .10000E-03    3.9614       -.39094E-07** at limit **
  17  Prefactor     18.995        18.431       -.14184E-06   -.16124E-04
  18  Prefactor     31.405        42.993       -.18698E-05   -.78380E-04
  19  Normalizat    .87265        .17114        .22020E-06    .39220E-03
  20  Prefactor     1.2454        .15037        .50666E-06    .42777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54353
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 39.5037
  Prefactor  = 150.098
  norm       = 2.65434
  Prefactor  = 0.0934614
  Prefactor  = 0.0001
  norm       = 2.65351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9946
  Prefactor  = 31.4049
  Normalizat = 0.87265
  Prefactor  = 1.24538
 **********
 **   18 **HESSE 
 **********

 FCN=   8201.766     FROM HESSE     STATUS=OK           293 CALLS     2330 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5435        2.8644        .15720E-03   -1.5389    
   2  Prefactor     .10000E-03    6.1225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2544        .22644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          39.504        35.324        .31869E-03   -1.4450    
   6  Prefactor     150.10        106.80        .16449E-03   -1.3252    
   7  norm          2.6543        .69865        .36212E-04   -1.5382    
   8  Prefactor     .93461E-01    7.5748        .65581E-01   -1.5647    
   9  Prefactor     .10000E-03    4.9435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6535        1.2933        .68985E-04   -1.5382    
  11  Prefactor     .10000E-03    9.0989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8870        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9785        .17602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.995        18.437        .91891E-04   -1.4836    
  18  Prefactor     31.405        43.285        .71480E-04   -1.4587    
  19  Normalizat    .87265        .20458        .30284E-03   -.97428    
  20  Prefactor     1.2454        .18036        .22756E-03   -.84946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18251e-09
Minuit parameter uncertainties:
  1  2.86455
  2  1.23329e-05
  3  0.000220523
  4  0.000152282
  5  35.3429
  6  106.939
  7  0.69865
  8  1.68212
  9  4.94649e-09
  10  1.29336
  11  5.13791e-05
  12  6.76274e-05
  13  2.21988e-06
  14  2.274e-05
  15  9.24314e-05
  16  4.47174e-06
  17  18.4424
  18  43.3279
  19  0.204766
  20  0.180454
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.274e-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.245e+00  1.805e-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:  8.727e-01  2.048e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754/likelihoodResults_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.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) = 8201.76622527
delta logL = -0.000671190728099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8201.76555419
delta logL = -1.01426849142e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7893       1.0000          .0000       10.000    
     3 'Normalizat'    .87260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2454       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=   8201.766     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    284.02        .18142E-02** at limit **
   2  Index         2.7750        7.6338        .50000        .17370E-05
   3  Normalizat    .87265        .28468E-01    .30284E-03    .16443E-04
   4  Prefactor     1.2454        .25205E-01    .22756E-03    .17785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.77499
  Normalizat = 0.872649
  Prefactor  = 1.24538
 **********
 **   18 **HESSE 
 **********

 FCN=   8201.766     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    1043.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7750        8.5367        .50000       -.46118    
   3  Normalizat    .87265        .68606E-01    .12114E-04   -.97428    
   4  Prefactor     1.2454        .60741E-01    .91025E-05   -.84946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24892e-09
Minuit parameter uncertainties:
  1  0.0123659
  2  2214.58
  3  0.0686133
  4  0.060744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754': 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) = 8201.76555408
delta logL = 4.90581442136e-09

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.237e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.775e+00  2.215e+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:  1.245e+00  6.074e-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:  8.726e-01  6.861e-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/754/cmap_HighResolution_632275201_632534401_4FGL_J1254.9+1138_daily_bin1516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-06 09:59:42.321978', job_id='754', GAL2='1.25', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630947582.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.91e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1516' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 754: <4FGL_J1254.9+1138_daily_bin1516> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1516> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:32 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:33 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:45:33 2021
Terminated at Mon Sep  6 09:59:43 2021
Results reported at Mon Sep  6 09:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1516 193.733 11.6495 632275201 632534401 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

