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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin80
RA = 193.733, Dec = 11.6495
tmin = 260064001, tmax = 260323201
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='993183', job_status='RUN', time_executed='2021-09-06 09:23:46.417283', time_epoch_executed='1630945426.42' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993183/ft1_4FGL_J1254.9+1138_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993183/ft2_4FGL_J1254.9+1138_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993183/ft1_4FGL_J1254.9+1138_daily_bin80.fits outfile=/scratch/kocevski/993183/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin80.fits ra=193.733 dec=11.6495 rad=12.0 tmin=260064001.0 tmax=260323201.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.28
sys 0.17

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993183/ft1_filtered_4FGL_J1254.9+1138_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/993183/ft2_4FGL_J1254.9+1138_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/993183/ltcube_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.fits outfile=/scratch/kocevski/993183/expmap_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.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/993183/ltcube_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.fits
.....................!
real 190.67
user 186.04
sys 4.23

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/993183/ft1_filtered_4FGL_J1254.9+1138_daily_bin80.fits scfile=/scratch/kocevski/993183/ft2_4FGL_J1254.9+1138_daily_bin80.fits outfile=/scratch/kocevski/993183/cmap_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993183/ft1_filtered_4FGL_J1254.9+1138_daily_bin80.fits scfile=/scratch/kocevski/993183/ft2_4FGL_J1254.9+1138_daily_bin80.fits outfile=/scratch/kocevski/993183/cmap_HighResolution_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30569E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.581       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.302       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96545       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=   8947.885     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2045 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .61067        .16463E-07** at limit **
   2  Prefactor     .10000E-03    27.693        .15729E-04** at limit **
   3  norm          .10001E-03    .95675       -.52890E-07** at limit **
   4  Prefactor     24.579        29.823       -.10124E-05   -.19506E-04
   5  norm          .10000E-03    23.690       -.97562E-05** at limit **
   6  Prefactor     .10000E-03    49.727       -.49710E-05** at limit **
   7  norm          1.8812        .56561       -.11896E-08    .35291E-03
   8  Prefactor     .10000E-03    2.4795       -.40576E-09** at limit **
   9  Prefactor     .10000E-03    9.0574        .27019E-07** at limit **
  10  norm          .10000E-03    .45648        .14185E-07** at limit **
  11  Prefactor     .10000E-03    16.123        .16531E-05** at limit **
  12  Prefactor     .10000E-03    24.883       -.30412E-05** at limit **
  13  Prefactor     4.6831        6.2188       -.11343E-05   -.90955E-04
  14  Prefactor     14.161        10.949        .55888E-07   -.18037E-03
  15  Prefactor     12.788        11.874        .62794E-08   -.17244E-03
  16  Prefactor     2.2531        3.9964        .98715E-06   -.11777E-02
  17  Prefactor     .10000E-03    10.437       -.18180E-06** at limit **
  18  Prefactor     19.302        27.117       -.40104E-06   -.28253E-05
  19  Normalizat    1.0867        .15615        .74029E-07   -.34615E-04
  20  Prefactor     .96546        .13085       -.18935E-07   -.16044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 24.5793
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68313
  Prefactor  = 14.1609
  Prefactor  = 12.7883
  Prefactor  = 2.25311
  Prefactor  = 0.0001
  Prefactor  = 19.3016
  Normalizat = 1.08669
  Prefactor  = 0.965461
 **********
 **   18 **HESSE 
 **********

 FCN=   8947.885     FROM HESSE     STATUS=OK           295 CALLS     2340 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .61673        .72179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    28.846        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.579        29.855        .80795E-04   -1.4716    
   5  norm          .10000E-03    23.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8812        .55203        .36619E-04   -1.5434    
   8  Prefactor     .10000E-03    2.4832        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .78185        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6831        6.2321        .18595E-03   -1.5275    
  14  Prefactor     14.161        11.000        .53215E-03   -1.4955    
  15  Prefactor     12.788        11.915        .56007E-03   -1.4993    
  16  Prefactor     2.2531        10.216        .13683E-02   -1.5408    
  17  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.302        27.116        .91165E-04   -1.4829    
  19  Normalizat    1.0867        .18694        .25805E-03   -.90180    
  20  Prefactor     .96546        .15480        .23435E-03   -.93890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85273e-09
Minuit parameter uncertainties:
  1  8.01949e-08
  2  0.000103258
  3  0.000912636
  4  29.8733
  5  0.000106745
  6  9.03107e-05
  7  0.552036
  8  1.86232e-08
  9  6.27945e-07
  10  7.53289e-07
  11  1.51621e-05
  12  4.38093e-05
  13  6.23297
  14  11.0011
  15  11.917
  16  9.59769
  17  2.46346e-06
  18  27.1334
  19  0.187049
  20  0.154869
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.416e+01  1.100e+01  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.655e-01  1.549e-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.087e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.77e-06

TS (Fixed Index): 2.76
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993183/likelihoodResults_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.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): 0
logL (Free Index) = 8947.4253011
delta logL = 0.459283644244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8946.99961144
delta logL = 0.884973303875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32903E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9629       1.0000          .0000       10.000    
     3 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0199       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.

 FCN=   8947.000     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      317 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32427E-01    .24074        .20700E-02    .70048E-02
   2  Index         7.9742        3.0663        .20035        .13409E-03
   3  Normalizat    1.0217        .42468E-01    .43140E-01    .45605E-04
   4  Prefactor     1.0195        .36825E-01    .42149E-01   -.10486E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0324274
  Index      = 7.9742
  Normalizat = 1.02171
  Prefactor  = 1.01953
 **********
 **   18 **HESSE 
 **********

 FCN=   8947.000     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      352 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32427E-01    .51562        .93729E-04   -1.5672    
   2  Index         7.9742        8.2090        .82881E-02    .63707    
   3  Normalizat    1.0217        .14284        .26476E-03   -.92307    
   4  Prefactor     1.0195        .12146        .22898E-03   -.92081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.60461e-11
Minuit parameter uncertainties:
  1  0.258217
  2  5.61427
  3  0.142898
  4  0.121496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993183': 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) = 8946.99959851
delta logL = 0.884986232324

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.243e-02  2.582e-01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  7.974e+00  5.614e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.020e+00  1.215e-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.022e+00  1.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 193.733 11.649
Photon Index (Free Index): 7.97 +/- 5.61
Photon Flux (Free Index): 9.06e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.05e-05 +/- 6.51e-06

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/993183/cmap_HighResolution_260064001_260323201_4FGL_J1254.9+1138_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='1.05e-05', photon_flux_error='4.33e-08', dlogl='8.85e-01', energy_flux='1.26e-05', photon_flux2='9.06e-08', job_status='DONE', time_completed='2021-09-06 09:35:41.831749', photon_index_error2='5.61', photon_index2='7.97', ts='2.76', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='6.51e-06', EG='1.09', time_epoch_completed='1630946141.83', return_code='0', job_id='993183', GAL2='1.02', EG2='1.02', return_code2='102', energy_flux_error='9.77e-06', photon_flux_error2='5.07e-08', ts2='4.84', photon_index='2.79' WHERE bin_id='80' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 993183: <4FGL_J1254.9+1138_daily_bin80> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin80 193.733 11.6495 260064001 260323201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

