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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1162
RA = 193.733, Dec = 11.6495
tmin = 540518401, tmax = 540777601
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='999215', job_status='RUN', time_executed='2021-09-06 09:41:18.971187', time_epoch_executed='1630946478.97' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999215/ft1_4FGL_J1254.9+1138_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999215/ft1_4FGL_J1254.9+1138_daily_bin1162.fits outfile=/scratch/kocevski/999215/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1162.fits ra=193.733 dec=11.6495 rad=12.0 tmin=540518401.0 tmax=540777601.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.76
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999215/ft1_filtered_4FGL_J1254.9+1138_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/999215/ltcube_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.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/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits
.....................!
real 13.27
user 12.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999215/ft1_filtered_4FGL_J1254.9+1138_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/999215/ltcube_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.fits outfile=/scratch/kocevski/999215/expmap_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.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/999215/ltcube_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.fits
.....................!
real 192.53
user 187.65
sys 4.49

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/999215/ft1_filtered_4FGL_J1254.9+1138_daily_bin1162.fits scfile=/scratch/kocevski/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits outfile=/scratch/kocevski/999215/cmap_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999215/ft1_filtered_4FGL_J1254.9+1138_daily_bin1162.fits scfile=/scratch/kocevski/999215/ft2_4FGL_J1254.9+1138_daily_bin1162.fits outfile=/scratch/kocevski/999215/cmap_HighResolution_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7650       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    98.697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.208       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18661E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.204       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0425       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=   7261.871     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2026 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6827        .16717E-06** at limit **
   2  Prefactor     .10000E-03    17.404       -.13323E-05** at limit **
   3  norm          6.7639        4.5203        .27871E-06    .26173E-04
   4  Prefactor     .10000E-03    11.198       -.21339E-06** at limit **
   5  norm          98.714        57.762       -.13372E-05    .11477E-04
   6  Prefactor     .10000E-03    158.17        .63478E-06** at limit **
   7  norm          1.6576        .70508        .31623E-07   -.13723E-03
   8  Prefactor     .10000E-03    12.392        .32265E-06** at limit **
   9  Prefactor     32.226        26.966        .38836E-06   -.50938E-04
  10  norm          3.6992        1.6457        .70278E-07    .46151E-04
  11  Prefactor     .10000E-03    26.377       -.29941E-05** at limit **
  12  Prefactor     .10000E-03    23.289        .20335E-05** at limit **
  13  Prefactor     .10000E-03    3.7791        .22380E-07** at limit **
  14  Prefactor     .10000E-03    4.2948       -.14505E-09** at limit **
  15  Prefactor     .10000E-03    29.733        .18305E-06** at limit **
  16  Prefactor     2.1015        17.895        .11299E-04   -.10208E-05
  17  Prefactor     .10000E-03    23.466        .17772E-05** at limit **
  18  Prefactor     33.170        48.939        .41710E-05    .50382E-05
  19  Normalizat    1.0627        .18701       -.75731E-06   -.22643E-04
  20  Prefactor     1.0425        .15885       -.84303E-06   -.46819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.76394
  Prefactor  = 0.0001
  norm       = 98.7135
  Prefactor  = 0.0001
  norm       = 1.65765
  Prefactor  = 0.0001
  Prefactor  = 32.2255
  norm       = 3.69924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.10153
  Prefactor  = 0.0001
  Prefactor  = 33.1702
  Normalizat = 1.06271
  Prefactor  = 1.04248
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.871     FROM HESSE     STATUS=OK           291 CALLS     2317 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7424        .21481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7639        4.5290        .12539E-03   -1.5188    
   4  Prefactor     .10000E-03    11.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          98.714        58.021        .20232E-03   -1.3718    
   6  Prefactor     .10000E-03    158.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6576        .69942        .43288E-04   -1.5450    
   8  Prefactor     .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.226        26.948        .70605E-04   -1.4572    
  10  norm          3.6992        1.6421        .69421E-04   -1.5323    
  11  Prefactor     .10000E-03    26.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8163        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3076        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.058        .40580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1015        17.959        .14232E-02   -1.5418    
  17  Prefactor     .10000E-03    23.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.170        48.971        .69540E-04   -1.4555    
  19  Normalizat    1.0627        .22034        .28114E-03   -.90958    
  20  Prefactor     1.0425        .18737        .24133E-03   -.91327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95466e-10
Minuit parameter uncertainties:
  1  9.27071e-06
  2  8.47763e-06
  3  4.52926
  4  1.50864e-06
  5  58.0545
  6  5.74502e-05
  7  0.699421
  8  2.72259e-05
  9  26.9577
  10  1.64208
  11  6.00557e-06
  12  1.82227e-05
  13  3.68533e-06
  14  6.11732e-07
  15  5.61933e-05
  16  12.2915
  17  1.19959e-05
  18  49.0309
  19  0.220525
  20  0.187485
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  6.117e-07  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.042e+00  1.875e-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.063e+00  2.205e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999215/likelihoodResults_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.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) = 7261.8725314
delta logL = -0.00110487026814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7261.87142648
delta logL = 4.8135916586e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7780       1.0000          .0000       10.000    
     3 'Normalizat'    1.0627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   7261.871     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.055        .17365E-01** at limit **
   2  Index         2.4066        6.1516        .50000        .25143E-06
   3  Normalizat    1.0627        .10431E-01    .28114E-03    .10821E-03
   4  Prefactor     1.0425        .89285E-02    .24132E-03    .13021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40657
  Normalizat = 1.06271
  Prefactor  = 1.04248
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.871     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.49        .18193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4066        5.9163        .50000       -.54531    
   3  Normalizat    1.0627        .33556E-01    .11246E-04   -.90958    
   4  Prefactor     1.0425        .28722E-01    .96530E-05   -.91327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42106e-10
Minuit parameter uncertainties:
  1  0.000364171
  2  839.097
  3  0.0335566
  4  0.0287229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999215': 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) = 7261.87142528
delta logL = 1.24435700855e-06

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.642e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.407e+00  8.391e+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.042e+00  2.872e-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.063e+00  3.356e-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/999215/cmap_HighResolution_540518401_540777601_4FGL_J1254.9+1138_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-06 09:52:03.302499', job_id='999215', GAL2='1.04', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630947123.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1162' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:52:03 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1162 193.733 11.6495 540518401 540777601 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 :                                   635.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

