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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1205
RA = 193.637, Dec = 22.1808
tmin = 551664001, tmax = 551923201
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='991468', job_status='RUN', time_executed='2021-09-06 09:17:09.514111', time_epoch_executed='1630945029.51' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991468/ft1_4FGL_J1254.5+2210_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991468/ft1_4FGL_J1254.5+2210_daily_bin1205.fits outfile=/scratch/kocevski/991468/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1205.fits ra=193.637 dec=22.1808 rad=12.0 tmin=551664001.0 tmax=551923201.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.84
user 3.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.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/991468/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/991468/ltcube_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.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/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/991468/ltcube_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits outfile=/scratch/kocevski/991468/expmap_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.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/991468/ltcube_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits
.....................!
real 193.37
user 187.21
sys 5.46

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits outfile=/scratch/kocevski/991468/cmap_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.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.637 yref=22.1808 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits outfile=/scratch/kocevski/991468/cmap_HighResolution_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.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.637 yref=22.1808 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/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991468/Model_4FGL_J1254.5+2210_daily_bin1205.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/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits...!
real 13.58
user 12.33
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits', '/scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits', expMap='/scratch/kocevski/991468/expmap_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits', expCube='/scratch/kocevski/991468/ltcube_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991468/Model_4FGL_J1254.5+2210_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991468/ft1_filtered_4FGL_J1254.5+2210_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/991468/ft2_4FGL_J1254.5+2210_daily_bin1205.fits
Exposure map: /scratch/kocevski/991468/expmap_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits
Exposure cube: /scratch/kocevski/991468/ltcube_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991468/Model_4FGL_J1254.5+2210_daily_bin1205.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) = 45.2661774404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10775       1.0000         .10000E-03   10000.    
     2 'Prefactor '    157.66       1.0000         .10000E-03   10000.    
     3 'norm      '    7.9802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0896       1.0000         .10000E-03   10000.    
     8 'norm      '    6.5566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0566       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65507       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8374       1.0000         .10000E-03   10000.    
    19 'norm      '    .62665       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5549       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8539       1.0000         .10000E-03   10000.    
    22 'norm      '    7.8803       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6867       1.0000         .10000E-03   10000.    
    25 'norm      '    3.0502       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5974       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6856       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71413       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53617       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43.14806     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      324 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.22        .19570E-04** at limit **
   2  Prefactor     157.76        1.4197        .94084E-07    .22483E-03
   3  norm          7.9802        1.0020         .0000         .0000    
   4  Prefactor     1.8326        1.0431         .0000         .0000    
   5  Prefactor     3.2056        1.0127         .0000         .0000    
   6  Prefactor     2.5058        1.0214         .0000         .0000    
   7  norm          2.0896        1.0319         .0000         .0000    
   8  norm          6.5566        1.0029         .0000         .0000    
   9  Prefactor     .10000E-03    80.863       -.29750E-05** at limit **
  10  Prefactor     7.3878        1.0023         .0000         .0000    
  11  Prefactor     .10522E-03    332.13        .16630E-04** at limit **
  12  Prefactor     8.0566        1.0019         .0000         .0000    
  13  Prefactor     .10000E-03    336.36       -.21855E-04** at limit **
  14  Prefactor     .18941E-03    404.81       -.51782E-05** at limit **
  15  Prefactor     .10000E-03    120.42        .12968E-05** at limit **
  16  norm          2.9938        1.0147         .0000         .0000    
  17  Prefactor     .10176E-03    228.87       -.23747E-04** at limit **
  18  Prefactor     4.8374        1.0054         .0000         .0000    
  19  norm          .10000E-03    437.33       -.24321E-05** at limit **
  20  norm          5.5549        1.0041         .0000         .0000    
  21  norm          1.8539        1.0420         .0000         .0000    
  22  norm          .10223E-03    995.33       -.67290E-04** at limit **
  23  norm          .10000E-03    164.81        .47078E-04** at limit **
  24  Prefactor     .22374E-03    384.21        .12216E-04** at limit **
  25  norm          .10601E-03    188.33       -.25110E-04** at limit **
  26  Prefactor     .83302E-03    365.94       -.28207E-06** at limit **
  27  Prefactor     .10714E-03    668.08       -.43044E-04** at limit **
  28  Normalizat    .72299        5.0861       -.17001E-03   -.21896E-06
  29  Prefactor     .53097        5.1660        .20173E-03   -.83484E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 157.756
  norm       = 7.98016
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  Prefactor  = 2.50582
  norm       = 2.08958
  norm       = 6.55658
  Prefactor  = 0.0001
  Prefactor  = 7.38783
  Prefactor  = 0.000105222
  Prefactor  = 8.05657
  Prefactor  = 0.0001
  Prefactor  = 0.000189409
  Prefactor  = 0.0001
  norm       = 2.99384
  Prefactor  = 0.000101759
  Prefactor  = 4.83739
  norm       = 0.0001
  norm       = 5.55486
  norm       = 1.85393
  norm       = 0.000102229
  norm       = 0.0001
  Prefactor  = 0.000223738
  norm       = 0.00010601
  Prefactor  = 0.000833025
  Prefactor  = 0.000107142
  Normalizat = 0.722993
  Prefactor  = 0.530965
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   43.14806     FROM HESSE     STATUS=FAILED        19 CALLS      343 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.22        .95481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     157.76        161.19        .80278E-03   -1.3189    
   3  norm          505.39        497.38         .0000       -1.5143    
   4  Prefactor     1.8326        1.0431         .0000       -1.5437    
   5  Prefactor     3.2056        1.0127         .0000       -1.5350    
   6  Prefactor     2.5058        1.0214         .0000       -1.5391    
   7  norm          2.0896        1.0319         .0000       -1.5419    
   8  norm          6.5566        1.0029         .0000       -1.5196    
   9  Prefactor     .10000E-03    .25743       -.29750E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3878        1.0023         .0000       -1.5164    
  11  Prefactor     .10522E-03    .82363E-01    .16630E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0566        1.0019         .0000       -1.5140    
  13  Prefactor     .10000E-03    .44709       -.21855E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18941E-03    .30747       -.51782E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .35333        .12968E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9938        1.0147         .0000       -1.5362    
  17  Prefactor     .10176E-03    .91697E-01   -.23747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8374        1.0054         .0000       -1.5268    
  19  norm          .10000E-03    .34676       -.24321E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5549        1.0041         .0000       -1.5237    
  21  norm          1.8539        1.0420         .0000       -1.5436    
  22  norm          .10223E-03    .31879E-01   -.67290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20521        .47078E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .22374E-03    .96548E-01    .12216E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10601E-03    .84320E-01   -.25110E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .83302E-03    .17591       -.28207E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10714E-03    .54003E-01   -.43044E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .72299        1.0599       -.17001E-03   -1.0299    
  29  Prefactor     .53097        .87682        .20173E-03   -1.1058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.21516e-10
Minuit parameter uncertainties:
  1  0.00011612
  2  161.642
  3  1.00198
  4  1.04314
  5  1.01271
  6  1.02144
  7  1.03195
  8  1.00294
  9  9.4775e-06
  10  1.00231
  11  0.00131164
  12  1.00194
  13  1.12937e-05
  14  0.0104864
  15  1.50767e-06
  16  1.01467
  17  0.000803153
  18  1.00544
  19  1.04954e-06
  20  1.00411
  21  1.04199
  22  0.000533163
  23  6.20564e-06
  24  0.0069128
  25  0.00142373
  26  0.0227111
  27  0.00124211
  28  1.09249
  29  0.900857
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.894e-04  1.049e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  5.310e-01  9.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.230e-01  1.092e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 2.01e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991468/likelihoodResults_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.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) = 43.1480680639
delta logL = -4.15918560748e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 43.1480680599
delta logL = -4.15518189811e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75376E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0858       1.0000          .0000       10.000    
     3 'Normalizat'    .72291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   43.14806     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      205 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1668.8        .92890E-02** at limit **
   2  Index         2.0651        8.7842        .50000        .24813E-06
   3  Normalizat    .72298        .66215E-01    .42596E-01   -.17993E-04
   4  Prefactor     .53097        .60981E-01    .63298E-01   -.15853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.06514
  Normalizat = 0.722985
  Prefactor  = 0.530966
 **********
 **   18 **HESSE 
 **********

 FCN=   43.14806     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      234 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8228.8        .18578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0651        6.0701        .50000       -.62731    
   3  Normalizat    .72298        .14783        .26522E-03   -1.0299    
   4  Prefactor     .53097        .13591        .28016E-03   -1.1058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97934e-08
Minuit parameter uncertainties:
  1  0.0181555
  2  3417.76
  3  0.147909
  4  0.135993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991468': 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) = 43.1480638525
delta logL = 5.22028926753e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.816e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.065e+00  3.418e+03  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  5.310e-01  1.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.230e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/991468/cmap_HighResolution_551664001_551923201_4FGL_J1254.5+2210_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e+00', job_status='DONE', photon_flux_upper_limit='2.01e-05', time_completed='2021-09-06 09:23:37.408862', job_id='991468', GAL2='0.53', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630945417.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.53', dlogl='5.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1205' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:23:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 991468: <4FGL_J1254.5+2210_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1205> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:53 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:54 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:15:54 2021
Terminated at Mon Sep  6 09:23:38 2021
Results reported at Mon Sep  6 09:23:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1205 193.637 22.1808 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   321.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   463 sec.
    Turnaround time :                            465 sec.

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

