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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1051
RA = 193.637, Dec = 22.1808
tmin = 511747201, tmax = 512006401
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='991203', job_status='RUN', time_executed='2021-09-06 09:16:25.198183', time_epoch_executed='1630944985.2' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991203/ft1_4FGL_J1254.5+2210_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991203/ft1_4FGL_J1254.5+2210_daily_bin1051.fits outfile=/scratch/kocevski/991203/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1051.fits ra=193.637 dec=22.1808 rad=12.0 tmin=511747201.0 tmax=512006401.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.10
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.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/991203/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1051.fits evtable="EVENTS" outfile="/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.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.78
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/991203/ltcube_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.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/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits
.....................!
real 12.14
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/991203/ltcube_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits outfile=/scratch/kocevski/991203/expmap_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.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/991203/ltcube_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits
.....................!
real 191.63
user 186.60
sys 4.21

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/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits outfile=/scratch/kocevski/991203/cmap_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits outfile=/scratch/kocevski/991203/cmap_HighResolution_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991203/Model_4FGL_J1254.5+2210_daily_bin1051.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/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits.....................!
real 54.31
user 52.90
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits', '/scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits', expMap='/scratch/kocevski/991203/expmap_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits', expCube='/scratch/kocevski/991203/ltcube_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991203/Model_4FGL_J1254.5+2210_daily_bin1051.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/991203/ft1_filtered_4FGL_J1254.5+2210_daily_bin1051.fits
Spacecraft file(s): /scratch/kocevski/991203/ft2_4FGL_J1254.5+2210_daily_bin1051.fits
Exposure map: /scratch/kocevski/991203/expmap_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits
Exposure cube: /scratch/kocevski/991203/ltcube_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991203/Model_4FGL_J1254.5+2210_daily_bin1051.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) = 6237.52294638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9517       1.0000         .10000E-03   10000.    
     3 'norm      '    12.840       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9453       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7436       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2514       1.0000         .10000E-03   10000.    
    20 'norm      '    .12993E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3015       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.3059       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    31.109       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12315E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.763       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1932       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6237.518     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3736 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6341        2.4261        .18775E-06    .55365E-04
   2  Prefactor     3.9501        3.6237       -.71236E-07   -.67971E-04
   3  norm          12.841        4.0342       -.10013E-06   -.17437E-03
   4  Prefactor     .10000E-03    .84509        .48036E-07** at limit **
   5  Prefactor     2.9462        1.9761       -.13396E-07   -.20781E-03
   6  Prefactor     .10000E-03    4.6468        .89796E-07** at limit **
   7  norm          .10000E-03    .20621        .12107E-07** at limit **
   8  norm          12.326        5.1654        .46876E-07   -.78628E-04
   9  Prefactor     .10000E-03    9.1442        .13595E-05** at limit **
  10  Prefactor     .10000E-03    19.068        .17646E-05** at limit **
  11  Prefactor     2.5752        40.175        .31813E-06   -.18545E-04
  12  Prefactor     .10000E-03    20.671        .27282E-05** at limit **
  13  Prefactor     20.934        37.043        .15073E-05    .25200E-04
  14  Prefactor     .10000E-03    3.5269        .34166E-07** at limit **
  15  Prefactor     .10000E-03    4.3803       -.21142E-06** at limit **
  16  norm          10.267        6.2892       -.45947E-06   -.13619E-03
  17  Prefactor     .10106E-03    6.2589       -.12508E-05** at limit **
  18  Prefactor     8.7059        30.335        .55096E-05    .41430E-04
  19  norm          2.2505        3.0625        .14636E-06    .15810E-04
  20  norm          .10000E-03    3.6834       -.19881E-06** at limit **
  21  norm          3.2952        6.4310        .42208E-05   -.79402E-04
  22  norm          .10000E-03    8.4842       -.10110E-05** at limit **
  23  norm          8.3056        6.0751        .45231E-07    .15300E-04
  24  Prefactor     .10000E-03    15.936       -.28133E-05** at limit **
  25  norm          31.108        11.135        .79136E-07    .18222E-04
  26  Prefactor     .10000E-03    27.988       -.29003E-05** at limit **
  27  Prefactor     15.762        16.252        .26811E-06    .50364E-04
  28  Normalizat    1.0233        .18755       -.65975E-07   -.21706E-04
  29  Prefactor     1.1933        .19809       -.11240E-05   -.42533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63406
  Prefactor  = 3.95011
  norm       = 12.8407
  Prefactor  = 0.0001
  Prefactor  = 2.94622
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.3258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57521
  Prefactor  = 0.0001
  Prefactor  = 20.9345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2668
  Prefactor  = 0.000101058
  Prefactor  = 8.70591
  norm       = 2.25045
  norm       = 0.000100001
  norm       = 3.29517
  norm       = 0.0001
  norm       = 8.30561
  Prefactor  = 0.0001
  norm       = 31.1077
  Prefactor  = 0.0001
  Prefactor  = 15.7615
  Normalizat = 1.02333
  Prefactor  = 1.1933
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.518     FROM HESSE     STATUS=OK           569 CALLS     4305 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6341        2.3844        .13839E-03   -1.5452    
   2  Prefactor     3.9501        3.5922        .13164E-03   -1.5310    
   3  norm          12.841        4.0309        .85521E-04   -1.4991    
   4  Prefactor     .10000E-03    .85226        .70822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9462        1.9731        .87021E-04   -1.5365    
   6  Prefactor     .10000E-03    4.8464        .33220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .20809        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.326        5.1656        .11190E-03   -1.5006    
   9  Prefactor     .10000E-03    9.2015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.779        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5752        40.181        .25502E-03   -1.5387    
  12  Prefactor     .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.934        37.068        .87528E-04   -1.4793    
  14  Prefactor     .10000E-03    3.5394        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3907        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.267        6.2911        .62531E-03   -1.5067    
  17  Prefactor     .10106E-03    11.026        .65651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7059        30.319        .13556E-03   -1.5118    
  19  norm          2.2505        3.0470        .15572E-03   -1.5408    
  20  norm          .10000E-03    3.9173        .29817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2952        6.4549        .11141E-02   -1.5345    
  22  norm          .10000E-03    8.5022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.3056        6.0720        .13910E-03   -1.5131    
  24  Prefactor     .10000E-03    15.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          31.108        11.139        .71837E-04   -1.4592    
  26  Prefactor     .10000E-03    28.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.762        16.255        .10088E-03   -1.4914    
  28  Normalizat    1.0233        .22037        .26427E-03   -.92253    
  29  Prefactor     1.1933        .23318        .26440E-03   -.86538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01012e-10
Minuit parameter uncertainties:
  1  2.38451
  2  3.59242
  3  4.03103
  4  2.08136e-06
  5  1.97316
  6  3.09765e-06
  7  2.92448e-07
  8  5.16577
  9  3.62427e-05
  10  1.58529e-05
  11  20.3604
  12  0.000110931
  13  37.1088
  14  3.83082e-06
  15  5.03468e-06
  16  6.29153
  17  0.00683229
  18  30.3723
  19  3.04719
  20  8.98004e-05
  21  6.45623
  22  2.35633e-05
  23  6.07244
  24  9.71134e-05
  25  11.1399
  26  7.38705e-05
  27  16.2594
  28  0.220569
  29  0.233386
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.831e-06  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:  1.193e+00  2.334e-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:  1.023e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991203/likelihoodResults_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.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) = 6237.51934013
delta logL = -0.00134274330594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6237.51799736
delta logL = 2.71538738161e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6237.518     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    40.214        .14537E-02** at limit **
   2  Index         2.0515        7.9225        .50000        .19126E-04
   3  Normalizat    1.0233        .15638E-01    .26427E-03    .91202E-05
   4  Prefactor     1.1933        .16810E-01    .26440E-03    .94597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100304
  Index      = 2.0515
  Normalizat = 1.02333
  Prefactor  = 1.1933
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.518     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    184.07        .29075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0515        5.7550        .50000       -.63069    
   3  Normalizat    1.0233        .35205E-01    .10571E-04   -.92253    
   4  Prefactor     1.1933        .37826E-01    .10576E-04   -.86538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00982e-08
Minuit parameter uncertainties:
  1  0.0150066
  2  462.393
  3  0.0352056
  4  0.0378273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991203': 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) = 6237.51799723
delta logL = 1.50531377585e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.003e-04  1.501e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.052e+00  4.624e+02  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:  1.193e+00  3.783e-02  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:  1.023e+00  3.521e-02  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/991203/cmap_HighResolution_511747201_512006401_4FGL_J1254.5+2210_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-06 09:30:22.628358', job_id='991203', GAL2='1.19', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630945822.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1051' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 991203: <4FGL_J1254.5+2210_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1051 193.637 22.1808 511747201 512006401 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

