/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1192
RA = 193.733, Dec = 11.6495
tmin = 548294401, tmax = 548553601
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='999264', job_status='RUN', time_executed='2021-09-06 09:42:12.740585', time_epoch_executed='1630946532.74' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999264/ft1_4FGL_J1254.9+1138_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999264/ft1_4FGL_J1254.9+1138_daily_bin1192.fits outfile=/scratch/kocevski/999264/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1192.fits ra=193.733 dec=11.6495 rad=12.0 tmin=548294401.0 tmax=548553601.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.95
user 3.65
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999264/ft1_filtered_4FGL_J1254.9+1138_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/999264/ltcube_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits outfile=/scratch/kocevski/999264/expmap_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.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/999264/ltcube_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits
.....................!
real 193.15
user 187.26
sys 5.15

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/999264/ft1_filtered_4FGL_J1254.9+1138_daily_bin1192.fits scfile=/scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits outfile=/scratch/kocevski/999264/cmap_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999264/ft1_filtered_4FGL_J1254.9+1138_daily_bin1192.fits scfile=/scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits outfile=/scratch/kocevski/999264/cmap_HighResolution_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/999264/ft1_filtered_4FGL_J1254.9+1138_daily_bin1192.fits', '/scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits', expMap='/scratch/kocevski/999264/expmap_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits', expCube='/scratch/kocevski/999264/ltcube_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/999264/Model_4FGL_J1254.9+1138_daily_bin1192.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/999264/ft1_filtered_4FGL_J1254.9+1138_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/999264/ft2_4FGL_J1254.9+1138_daily_bin1192.fits
Exposure map: /scratch/kocevski/999264/expmap_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits
Exposure cube: /scratch/kocevski/999264/ltcube_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/999264/Model_4FGL_J1254.9+1138_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 177.615327623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 174.595932532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .19740E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14990E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .42975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9147       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4664       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5825       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89053E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56286E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    313.63       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70139       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .33395E-03   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   174.5792     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      490 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3423        1.0953         .0000         .0000    
   2  Prefactor     .10000E-03    131.67        .80149E-05** at limit **
   3  norm          .10000E-03    11.546        .62145E-05** at limit **
   4  Prefactor     .10024E-03    231.04        .15489E-04** at limit **
   5  norm          .10000E-03    110.59        .46505E-05** at limit **
   6  Prefactor     .10606E-03    546.25        .36311E-04** at limit **
   7  norm          2.4563        2.5603        .17151E-05   -.29348E-03
   8  Prefactor     .10617E-03    311.62       -.14108E-03** at limit **
   9  Prefactor     .38706E-02    1731.8        .11257E-03   -.16171E-02
  10  norm          .10000E-03    2.7140       -.23210E-05** at limit **
  11  Prefactor     4.1889        529.15       -.14697E-03    .18241E-03
  12  Prefactor     .10000E-03    213.69        .13418E-04** at limit **
  13  Prefactor     1.7873        1.0457         .0000         .0000    
  14  Prefactor     .10000E-03    73.052       -.25138E-05** at limit **
  15  Prefactor     .10345E-03    270.12        .17911E-04** at limit **
  16  Prefactor     .10000E-03    24.961       -.25864E-06** at limit **
  17  Prefactor     .10008E-03    176.93        .13851E-03** at limit **
  18  Prefactor     310.65        55.660        .57515E-05    .43436E-01
  19  Normalizat    .69520        .37715        .57691E-05    .10157E-04
  20  Prefactor     .80291E-09    6.6493        .24380E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34235
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100237
  norm       = 0.000100001
  Prefactor  = 0.000106062
  norm       = 2.45627
  Prefactor  = 0.000106167
  Prefactor  = 0.00387063
  norm       = 0.0001
  Prefactor  = 4.18886
  Prefactor  = 0.000100003
  Prefactor  = 1.78728
  Prefactor  = 0.0001
  Prefactor  = 0.000103454
  Prefactor  = 0.0001
  Prefactor  = 0.00010008
  Prefactor  = 310.653
  Normalizat = 0.695203
  Prefactor  = 8.02914e-10
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   174.5792     FROM HESSE     STATUS=FAILED         9 CALLS      499 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     580.89        579.33         .0000       -1.5476    
   2  Prefactor     .10000E-03    .20571        .80149E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .20571        .62145E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10024E-03    .20571        .15489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .30143        .46505E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10606E-03    .64966E-01    .36311E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4563        1.0201        .17151E-05   -1.5395    
   8  Prefactor     .10617E-03    .12395       -.14108E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38706E-02    .45174E-01    .11257E-03   -1.5720    
  10  norm          .10000E-03    .20571       -.23210E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1889        2.1148       -.14697E-03   -1.5299    
  12  Prefactor     .10000E-03    .24401        .13418E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7873        1.0457         .0000       -1.5441    
  14  Prefactor     .10000E-03    .22368       -.25138E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10345E-03    .13888        .17911E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .27819       -.25864E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10008E-03    .25584        .13851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     310.65        .99539        .57515E-05   -1.2164    
  19  Normalizat    .69520        1.0367        .57691E-05   -1.0408    
  20  Prefactor     .80291E-09    .25513        .24380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6467e-09
Minuit parameter uncertainties:
  1  1.09531
  2  3.06782e-05
  3  1.46056e-05
  4  0.00044198
  5  2.86639e-05
  6  0.00125508
  7  1.02008
  8  0.00174863
  9  0.0261025
  10  5.5694e-06
  11  2.11483
  12  5.19943e-05
  13  1.04575
  14  1.45649e-05
  15  0.00138524
  16  9.5377e-07
  17  0.000285548
  18  0.995393
  19  1.06831
  20  2.87481e-05
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 174.579186719

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.456e-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:  8.029e-10  2.875e-05  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:  6.952e-01  1.068e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.71e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999264/likelihoodResults_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.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) = 174.579252988
delta logL = -6.62682998325e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 174.579188257
delta logL = -1.53810199777e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8853       1.0000          .0000       10.000    
     3 'Normalizat'    .69521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56780E-05   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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   174.5792     FROM MIGRAD    STATUS=FAILED       119 CALLS      320 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1216.6        .77426E-02** at limit **
   2  Index         2.3120        7.6262        .50000        .18509E-06
   3  Normalizat    .69520        .59518E-01    .17037E-03   -.13968E-04
   4  Prefactor     .35738E-11    .11551        .84868E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   174.5792     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      484 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1216.6        .13905E-02** at limit **
   2  Index         2.3120        7.6262        .88074E-06    .18509E-06
   3  Normalizat    .69520        .59518E-01    .38100E-07   -.13968E-04
   4  Prefactor     .35738E-11    .11551        .47243E-02** at limit **
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   174.5792     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      517 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    7884.7        .11683E-02** at limit **
   2  Index         2.2849        5.8415        .50000        .12401E-06
   3  Normalizat    .69520        .15657        .34073E-04   -.13949E-04
   4  Prefactor     .35622E-11    .79143        .16974E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100054
  Index      = 2.28494
  Normalizat = 0.695202
  Prefactor  = 3.56215e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   174.5792     FROM HESSE     STATUS=OK            29 CALLS      546 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    590.30        .23367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2849        6.7472        .50000       -.57402    
   3  Normalizat    .69520        .33178        .68146E-05   -1.0408    
   4  Prefactor     .35622E-11    6.6213        .33947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67514e-10
Minuit parameter uncertainties:
  1  0.0114214
  2  2148.28
  3  0.332743
  4  7.23164e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999264': 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) = 174.57918664
delta logL = 7.90896592662e-08

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  1.142e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.285e+00  2.148e+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:  3.562e-12  7.232e-06  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:  6.952e-01  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/999264/cmap_HighResolution_548294401_548553601_4FGL_J1254.9+1138_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-01', job_status='DONE', photon_flux_upper_limit='1.71e-06', time_completed='2021-09-06 09:48:47.727827', job_id='999264', GAL2='0.00', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630946927.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='7.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1192' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:48:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 999264: <4FGL_J1254.9+1138_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1192 193.733 11.6495 548294401 548553601 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 :                                   324.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             459.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   454 sec.
    Turnaround time :                            459 sec.

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

