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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin263
RA = 193.733, Dec = 11.6495
tmin = 307497601, tmax = 307756801
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='994501', job_status='RUN', time_executed='2021-09-06 09:25:58.462199', time_epoch_executed='1630945558.46' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994501/ft1_4FGL_J1254.9+1138_daily_bin263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994501/ft1_4FGL_J1254.9+1138_daily_bin263.fits outfile=/scratch/kocevski/994501/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin263.fits ra=193.733 dec=11.6495 rad=12.0 tmin=307497601.0 tmax=307756801.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 4.43
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994501/ft1_filtered_4FGL_J1254.9+1138_daily_bin263.fits" evtable="EVENTS" scfile=/scratch/kocevski/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits sctable="SC_DATA" outfile=/scratch/kocevski/994501/ltcube_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.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/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits
.....................!
real 12.88
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994501/ft1_filtered_4FGL_J1254.9+1138_daily_bin263.fits evtable="EVENTS" scfile=/scratch/kocevski/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits sctable="SC_DATA" expcube=/scratch/kocevski/994501/ltcube_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.fits outfile=/scratch/kocevski/994501/expmap_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.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/994501/ltcube_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.fits
.....................!
real 189.66
user 184.87
sys 4.39

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/994501/ft1_filtered_4FGL_J1254.9+1138_daily_bin263.fits scfile=/scratch/kocevski/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits outfile=/scratch/kocevski/994501/cmap_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994501/ft1_filtered_4FGL_J1254.9+1138_daily_bin263.fits scfile=/scratch/kocevski/994501/ft2_4FGL_J1254.9+1138_daily_bin263.fits outfile=/scratch/kocevski/994501/cmap_HighResolution_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6031       1.0000         .10000E-03   10000.    
     5 'norm      '    33.929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.464       1.0000         .10000E-03   10000.    
    10 'norm      '    9.1592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95250       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2997       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=   7774.832     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2039 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4649        4.0933        .26024E-07   -.18217E-03
   2  Prefactor     .10000E-03    8.7525        .46784E-07** at limit **
   3  norm          3.4773        3.9313        .23223E-05   -.49590E-03
   4  Prefactor     1.5761        147.90        .39471E-04   -.42157E-04
   5  norm          33.896        52.982       -.27373E-04   -.14027E-04
   6  Prefactor     .10000E-03    243.05       -.38557E-04** at limit **
   7  norm          4.5850        1.0812        .25849E-06   -.13024E-02
   8  Prefactor     .10000E-03    4.7557       -.78949E-08** at limit **
   9  Prefactor     67.468        36.034       -.11167E-07   -.25884E-04
  10  norm          9.1592        2.5598       -.31622E-07   -.75942E-03
  11  Prefactor     .10000E-03    49.329        .59605E-04** at limit **
  12  Prefactor     .10000E-03    20.937        .62022E-06** at limit **
  13  Prefactor     22.641        11.588        .37306E-06   -.19463E-04
  14  Prefactor     26.428        17.106       -.11359E-05   -.40718E-04
  15  Prefactor     42.203        21.616        .99290E-06   -.13264E-04
  16  Prefactor     15.064        14.327        .95466E-06   -.41447E-05
  17  Prefactor     .10000E-03    10.023       -.98482E-07** at limit **
  18  Prefactor     .10000E-03    46.807       -.54440E-04** at limit **
  19  Normalizat    .95218        .23840       -.23963E-05   -.10389E-03
  20  Prefactor     1.2999        .18855        .64454E-06   -.21970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.46485
  Prefactor  = 0.0001
  norm       = 3.47731
  Prefactor  = 1.57608
  norm       = 33.8962
  Prefactor  = 0.000100001
  norm       = 4.58499
  Prefactor  = 0.0001
  Prefactor  = 67.4677
  norm       = 9.15922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6411
  Prefactor  = 26.4285
  Prefactor  = 42.2028
  Prefactor  = 15.064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.952183
  Prefactor  = 1.29992
 **********
 **   18 **HESSE 
 **********

 FCN=   7774.832     FROM HESSE     STATUS=OK           291 CALLS     2330 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4649        4.0977        .12707E-03   -1.5161    
   2  Prefactor     .10000E-03    8.7554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4773        3.9084        .15992E-03   -1.5335    
   4  Prefactor     1.5761        148.29        .33477E-03   -1.5457    
   5  norm          33.896        52.936        .68796E-04   -1.4543    
   6  Prefactor     .10000E-03    244.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5850        1.0809        .18799E-04   -1.5280    
   8  Prefactor     .10000E-03    4.7734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.468        36.096        .48866E-04   -1.4063    
  10  norm          9.1592        2.5598        .69864E-04   -1.5103    
  11  Prefactor     .10000E-03    49.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.641        11.598        .84181E-04   -1.4756    
  14  Prefactor     26.428        17.112        .77930E-04   -1.4679    
  15  Prefactor     42.203        21.671        .61707E-04   -1.4408    
  16  Prefactor     15.064        14.354        .10320E-03   -1.4932    
  17  Prefactor     .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95218        .28435        .36685E-03   -.94650    
  20  Prefactor     1.2999        .22557        .26994E-03   -.83309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85336e-10
Minuit parameter uncertainties:
  1  4.09789
  2  8.0102e-06
  3  3.90872
  4  30.6535
  5  53.0094
  6  0.000782477
  7  1.08093
  8  3.42355e-07
  9  36.1075
  10  2.55982
  11  0.000231351
  12  2.26758e-05
  13  11.5995
  14  17.1156
  15  21.6746
  16  14.3577
  17  2.75649e-06
  18  0.000104127
  19  0.284798
  20  0.225739
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.643e+01  1.712e+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:  1.300e+00  2.257e-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:  9.522e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 6.74e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/994501/likelihoodResults_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.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) = 7774.83183908
delta logL = 0.000484895283989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7774.83165459
delta logL = 0.000669383685818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.741       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7664       1.0000          .0000       10.000    
     3 'Normalizat'    .95425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2984       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=   7774.832     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.749        19.199        .77469E-04    .61489E-04
   2  Index         2.7663        .68904        .88680E-02    .16863E-03
   3  Normalizat    .95416        .27243        .36652E-03    .52731E-04
   4  Prefactor     1.2985        .22728        .27005E-03   -.66009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7485
  Index      = 2.7663
  Normalizat = 0.954156
  Prefactor  = 1.29853
 **********
 **   18 **HESSE 
 **********

 FCN=   7774.832     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.749        18.792        .30988E-05   -1.4673    
   2  Index         2.7663        .67401        .17736E-02   -.46312    
   3  Normalizat    .95416        .27255        .14661E-04   -.94582    
   4  Prefactor     1.2985        .22731        .10802E-04   -.83351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87289e-11
Minuit parameter uncertainties:
  1  18.796
  2  0.676588
  3  0.272947
  4  0.227483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994501': 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): 0
logL (Free Index) = 7774.83165434
delta logL = 0.000669640164233

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.675e+01  1.880e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.766e+00  6.766e-01  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.299e+00  2.275e-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:  9.542e-01  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.77 +/- 0.68
Photon Flux (Free Index): 1.03e-07 +/- 7.25e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.51e-05

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/994501/cmap_HighResolution_307497601_307756801_4FGL_J1254.9+1138_daily_bin263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='2.36e-05', photon_flux_error='6.74e-08', dlogl='6.70e-04', energy_flux='2.35e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-06 09:37:11.930420', photon_index_error2='0.68', photon_index2='2.77', ts='3.88', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='2.31e-07', energy_flux_error2='1.51e-05', EG='0.95', time_epoch_completed='1630946231.93', return_code='0', job_id='994501', GAL2='1.30', EG2='0.95', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='7.25e-08', ts2='3.91', photon_index='2.79' WHERE bin_id='263' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 994501: <4FGL_J1254.9+1138_daily_bin263> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin263 193.733 11.6495 307497601 307756801 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 :                                   663.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            697 sec.

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

