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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin25
RA = 193.637, Dec = 22.1808
tmin = 245808001, tmax = 246067201
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='984997', job_status='RUN', time_executed='2021-09-06 08:55:42.254424', time_epoch_executed='1630943742.25' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984997

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984997/ft1_4FGL_J1254.5+2210_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984997/ft1_4FGL_J1254.5+2210_daily_bin25.fits outfile=/scratch/kocevski/984997/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin25.fits ra=193.637 dec=22.1808 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.48
user 1.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984997/ft1_filtered_4FGL_J1254.5+2210_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/984997/ltcube_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.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/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits
.....................!
real 12.75
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984997/ft1_filtered_4FGL_J1254.5+2210_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/984997/ltcube_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.fits outfile=/scratch/kocevski/984997/expmap_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.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/984997/ltcube_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.fits
.....................!
real 190.70
user 185.31
sys 4.95

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/984997/ft1_filtered_4FGL_J1254.5+2210_daily_bin25.fits scfile=/scratch/kocevski/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits outfile=/scratch/kocevski/984997/cmap_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.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.59
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984997/ft1_filtered_4FGL_J1254.5+2210_daily_bin25.fits scfile=/scratch/kocevski/984997/ft2_4FGL_J1254.5+2210_daily_bin25.fits outfile=/scratch/kocevski/984997/cmap_HighResolution_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.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.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26424       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6432       1.0000         .10000E-03   10000.    
    20 'norm      '    8.7600       1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .26451E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.8083       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89388       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3707       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=   8392.100     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3193 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7523        1.9320        .73784E-08    .93078E-06
   2  Prefactor     .10000E-03    .99858       -.34008E-07** at limit **
   3  norm          10.632        4.0944       -.10199E-06   -.13516E-04
   4  Prefactor     2.4584        2.0327        .27622E-06    .46438E-04
   5  Prefactor     11.915        3.1720       -.66458E-06   -.54999E-04
   6  Prefactor     .10000E-03    1.8651        .58150E-07** at limit **
   7  norm          .26422        .19581        .13365E-07    .12974E-03
   8  norm          1.7218        2.0915        .80887E-07    .54780E-05
   9  Prefactor     4.4164        5.6454        .19166E-05    .11232E-03
  10  Prefactor     .10000E-03    4.8679        .11006E-07** at limit **
  11  Prefactor     .10000E-03    72.763       -.10881E-04** at limit **
  12  Prefactor     .10000E-03    30.378       -.99951E-05** at limit **
  13  Prefactor     .10000E-03    17.292       -.10177E-04** at limit **
  14  Prefactor     .10000E-03    2.0633       -.31536E-07** at limit **
  15  Prefactor     .10000E-03    10.983       -.27001E-05** at limit **
  16  norm          .10000E-03    1.1682       -.76017E-07** at limit **
  17  Prefactor     1.0677        2.1227        .31454E-06   -.68691E-03
  18  Prefactor     .10000E-03    14.427        .11905E-04** at limit **
  19  norm          4.6429        3.4428       -.51093E-06   -.45409E-04
  20  norm          8.7594        4.2930       -.41391E-07   -.21878E-03
  21  norm          .10000E-03    2.9024       -.27978E-07** at limit **
  22  norm          .10000E-03    10.796       -.40814E-05** at limit **
  23  norm          .10008E-03    5.6125        .56643E-06** at limit **
  24  Prefactor     .10000E-03    33.717        .16761E-04** at limit **
  25  norm          5.8080        8.1502       -.23436E-06   -.24939E-03
  26  Prefactor     .10000E-03    9.8511        .28966E-05** at limit **
  27  Prefactor     10.330        15.087        .27638E-06   -.24573E-04
  28  Normalizat    .89396        .16280        .34219E-06   -.64561E-04
  29  Prefactor     1.3706        .16457       -.36866E-06   -.17366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75231
  Prefactor  = 0.0001
  norm       = 10.6324
  Prefactor  = 2.45835
  Prefactor  = 11.9147
  Prefactor  = 0.0001
  norm       = 0.264216
  norm       = 1.72185
  Prefactor  = 4.41645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.06769
  Prefactor  = 0.0001
  norm       = 4.64295
  norm       = 8.75939
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100084
  Prefactor  = 0.0001
  norm       = 5.80797
  Prefactor  = 0.0001
  Prefactor  = 10.3297
  Normalizat = 0.893957
  Prefactor  = 1.37064
 **********
 **   18 **HESSE 
 **********

 FCN=   8392.100     FROM HESSE     STATUS=OK           573 CALLS     3766 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7523        1.9077        .12871E-03   -1.5443    
   2  Prefactor     .10000E-03    1.9064        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.632        4.0964        .10659E-03   -1.5056    
   4  Prefactor     2.4584        2.0357        .11169E-03   -1.5394    
   5  Prefactor     11.915        3.1753        .78923E-04   -1.5017    
   6  Prefactor     .10000E-03    1.8921        .12215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .26422        .18816        .33094E-03   -1.5605    
   8  norm          1.7218        2.0727        .14210E-03   -1.5446    
   9  Prefactor     4.4164        5.6507        .19160E-03   -1.5288    
  10  Prefactor     .10000E-03    4.9141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    74.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0719        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1721        .96677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0677        4.9367        .11573       -1.5501    
  18  Prefactor     .10000E-03    14.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6429        3.4440        .14067E-03   -1.5277    
  20  norm          8.7594        4.2991        .12695E-03   -1.5116    
  21  norm          .10000E-03    2.9080        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10008E-03    6.3230        .53612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.8080        8.1636        .16665E-03   -1.5226    
  26  Prefactor     .10000E-03    9.9409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.330        15.096        .12465E-03   -1.5065    
  28  Normalizat    .89396        .19096        .28253E-03   -.96673    
  29  Prefactor     1.3706        .19289        .24659E-03   -.81230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99475e-10
Minuit parameter uncertainties:
  1  1.90781
  2  4.71919e-06
  3  4.09647
  4  2.03579
  5  3.17539
  6  1.98272e-06
  7  0.18816
  8  2.07283
  9  5.65141
  10  1.37906e-05
  11  0.000135537
  12  6.87051e-06
  13  3.04532e-06
  14  1.38262e-06
  15  2.31961e-05
  16  4.03554e-07
  17  4.59207
  18  1.97498e-06
  19  3.44414
  20  4.2993
  21  4.58023e-07
  22  4.80029e-06
  23  0.00145565
  24  6.63157e-05
  25  8.16517
  26  8.49305e-06
  27  15.1011
  28  0.191107
  29  0.192991
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.383e-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.371e+00  1.930e-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:  8.940e-01  1.911e-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: 3.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984997/likelihoodResults_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.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) = 8392.10192622
delta logL = -0.00228244853315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8392.09964378
delta logL = -8.93851392902e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0850       1.0000          .0000       10.000    
     3 'Normalizat'    .89397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3707       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=   8392.100     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.109        .90712E-02** at limit **
   2  Index         2.0808        8.9578        .50000        .15924E-04
   3  Normalizat    .89396        .16810E-01    .44824E-01    .33340E-04
   4  Prefactor     1.3706        .17787E-01    .55771E-01    .16243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0808
  Normalizat = 0.893958
  Prefactor  = 1.37064
 **********
 **   18 **HESSE 
 **********

 FCN=   8392.100     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    237.28        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0808        8.7915        .50000       -.62345    
   3  Normalizat    .89396        .50703E-01    .28253E-03   -.96673    
   4  Prefactor     1.3706        .53649E-01    .24659E-03   -.81230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20027e-08
Minuit parameter uncertainties:
  1  3.26592e-05
  2  43.6013
  3  0.0507056
  4  0.0536511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984997': 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) = 8392.09964374
delta logL = 3.3220203477e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.266e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.081e+00  4.360e+01  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.371e+00  5.365e-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:  8.940e-01  5.071e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/984997/cmap_HighResolution_245808001_246067201_4FGL_J1254.5+2210_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.86e-08', time_completed='2021-09-06 09:10:57.948968', job_id='984997', GAL2='1.37', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630944657.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='3.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='25' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 984997: <4FGL_J1254.5+2210_daily_bin25> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin25> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:30 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:31 2021
Terminated at Mon Sep  6 09:10:58 2021
Results reported at Mon Sep  6 09:10:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin25 193.637 22.1808 245808001 246067201 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 :                                   911.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

