/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7380
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin257
RA = 193.637, Dec = 22.1808
tmin = 305942401, tmax = 306201601
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='986642', job_status='RUN', time_executed='2021-09-06 09:01:07.340918', time_epoch_executed='1630944067.34' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986642/ft1_4FGL_J1254.5+2210_daily_bin257.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986642/ft1_4FGL_J1254.5+2210_daily_bin257.fits outfile=/scratch/kocevski/986642/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin257.fits ra=193.637 dec=22.1808 rad=12.0 tmin=305942401.0 tmax=306201601.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.53
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.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/986642/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin257.fits evtable="EVENTS" outfile="/scratch/kocevski/986642/ft1_filtered_4FGL_J1254.5+2210_daily_bin257.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986642/ft1_filtered_4FGL_J1254.5+2210_daily_bin257.fits" evtable="EVENTS" scfile=/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits sctable="SC_DATA" outfile=/scratch/kocevski/986642/ltcube_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.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/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits
.....................!
real 12.33
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986642/ft1_filtered_4FGL_J1254.5+2210_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits sctable="SC_DATA" expcube=/scratch/kocevski/986642/ltcube_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.fits outfile=/scratch/kocevski/986642/expmap_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.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/986642/ltcube_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.fits
.....................!
real 191.11
user 185.71
sys 4.35

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/986642/ft1_filtered_4FGL_J1254.5+2210_daily_bin257.fits scfile=/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits outfile=/scratch/kocevski/986642/cmap_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986642/ft1_filtered_4FGL_J1254.5+2210_daily_bin257.fits scfile=/scratch/kocevski/986642/ft2_4FGL_J1254.5+2210_daily_bin257.fits outfile=/scratch/kocevski/986642/cmap_HighResolution_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32131E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.050       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9543       1.0000         .10000E-03   10000.    
     8 'norm      '    9.0713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9634       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67633E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .24369E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.398       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10750E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .76019E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5833       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.2741       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4853       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12972E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0352       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0673       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=   7156.997     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3786 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5646        .49396E-08** at limit **
   2  Prefactor     .10000E-03    1.8894        .54612E-07** at limit **
   3  norm          11.973        4.2131       -.14515E-06   -.22232E-03
   4  Prefactor     .10000E-03    1.2833        .85175E-07** at limit **
   5  Prefactor     3.5489        2.6581        .17796E-06   -.28344E-04
   6  Prefactor     14.050        8.6859        .95793E-07   -.72861E-05
   7  norm          4.9544        .56882        .31513E-07   -.43363E-03
   8  norm          9.0716        5.0839        .23925E-07   -.23779E-04
   9  Prefactor     7.9625        10.405        .31866E-06   -.18921E-04
  10  Prefactor     11.008        8.3931        .25396E-08   -.18965E-04
  11  Prefactor     .10000E-03    20.268        .19040E-05** at limit **
  12  Prefactor     .10000E-03    172.54       -.14818E-04** at limit **
  13  Prefactor     .10000E-03    16.704       -.53999E-06** at limit **
  14  Prefactor     .10000E-03    4.3025       -.23265E-07** at limit **
  15  Prefactor     .10000E-03    11.376        .15393E-05** at limit **
  16  norm          .10001E-03    4.9834        .12070E-05** at limit **
  17  Prefactor     35.151        20.102        .93772E-06   -.35667E-04
  18  Prefactor     43.442        31.513       -.21213E-05   -.35420E-04
  19  norm          .10000E-03    1.1427       -.20069E-07** at limit **
  20  norm          .10000E-03    3.2822        .38624E-06** at limit **
  21  norm          .13793        4.2038        .11920E-05   -.60760E-03
  22  norm          .10000E-03    6.1173       -.47752E-07** at limit **
  23  norm          4.5838        5.4092        .71411E-07   -.42564E-04
  24  Prefactor     .10000E-03    11.834       -.14798E-05** at limit **
  25  norm          9.2736        10.864        .55171E-06   -.40471E-04
  26  Prefactor     4.4840        12.817        .81116E-06   -.46898E-04
  27  Prefactor     .10000E-03    47.710        .53980E-05** at limit **
  28  Normalizat    1.0353        .20375       -.34004E-05   -.14642E-03
  29  Prefactor     1.0672        .19424        .10432E-05   -.32228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9735
  Prefactor  = 0.0001
  Prefactor  = 3.54892
  Prefactor  = 14.0496
  norm       = 4.95439
  norm       = 9.0716
  Prefactor  = 7.9625
  Prefactor  = 11.008
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 35.1508
  Prefactor  = 43.4416
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.137934
  norm       = 0.0001
  norm       = 4.58385
  Prefactor  = 0.0001
  norm       = 9.2736
  Prefactor  = 4.48398
  Prefactor  = 0.000100001
  Normalizat = 1.03527
  Prefactor  = 1.06721
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.997     FROM HESSE     STATUS=OK           569 CALLS     4355 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5848        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5946        .22556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.973        4.2141        .97819E-04   -1.5016    
   4  Prefactor     .10000E-03    1.1687        .32986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5489        2.6509        .11270E-03   -1.5331    
   6  Prefactor     14.050        8.6875        .10686E-03   -1.4958    
   7  norm          4.9544        .56983        .20402E-04   -1.5263    
   8  norm          9.0716        5.0826        .13307E-03   -1.5105    
   9  Prefactor     7.9625        10.410        .14209E-03   -1.5144    
  10  Prefactor     11.008        8.3910        .12076E-03   -1.5044    
  11  Prefactor     .10000E-03    20.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    173.34        .20999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3539        .17133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    28.267        .33968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.151        20.073        .67607E-04   -1.4522    
  18  Prefactor     43.442        32.262        .60855E-04   -1.4389    
  19  norm          .10000E-03    1.1508        .88302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4066        .29720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .13793        30.999        .32401E-02   -1.5634    
  22  norm          .10000E-03    6.1191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5838        5.3908        .18802E-03   -1.5280    
  24  Prefactor     .10000E-03    11.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.2736        10.837        .13160E-03   -1.5099    
  26  Prefactor     4.4840        12.786        .19012E-03   -1.5284    
  27  Prefactor     .10000E-03    48.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0353        .23736        .29883E-03   -.91858    
  29  Prefactor     1.0672        .23101        .29636E-03   -.90522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87039e-09
Minuit parameter uncertainties:
  1  2.49624e-06
  2  4.44363e-05
  3  4.21418
  4  2.95048e-05
  5  2.651
  6  8.68826
  7  0.569834
  8  5.08286
  9  10.4124
  10  8.39191
  11  0.000124022
  12  0.00182531
  13  2.83178e-05
  14  1.19969e-05
  15  5.61292e-05
  16  0.00102675
  17  20.0766
  18  32.2749
  19  2.20612e-06
  20  7.79444e-06
  21  4.13627
  22  1.38317e-06
  23  5.39136
  24  5.99595e-05
  25  10.8395
  26  12.7933
  27  0.000515709
  28  0.2376
  29  0.231224
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.200e-05  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.067e+00  2.312e-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.035e+00  2.376e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986642/likelihoodResults_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.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) = 7156.99773489
delta logL = -0.0010925497636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7156.9966413
delta logL = 1.03418551589e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0296       1.0000          .0000       10.000    
     3 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0672       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=   7156.749     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      306 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5104        167.24        .44957E-01    .60262E-03
   2  Index         .87579        9.2948        .20000        .71405E-04
   3  Normalizat    1.0302        .47056E-01    .29883E-03    .10880E-04
   4  Prefactor     1.0685        .47570E-01    .29636E-03   -.55124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51037
  Index      = 0.875794
  Normalizat = 1.03021
  Prefactor  = 1.06853
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.749     FROM HESSE     STATUS=OK            29 CALLS      335 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5104        4.1704        .24532E-02   -1.5462    
   2  Index         .87579        1.0075        .19614E-02   -2.1717    
   3  Normalizat    1.0302        .22599        .11953E-04   -.92025    
   4  Prefactor     1.0685        .22829        .11855E-04   -.90479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0799e-09
Minuit parameter uncertainties:
  1  4.17123
  2  1.03012
  3  0.226204
  4  0.228495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986642': 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) = 7156.74948035
delta logL = 0.247161986747

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.510e+00  4.171e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  8.758e-01  1.030e+00  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.069e+00  2.285e-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.030e+00  2.262e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/986642/cmap_HighResolution_305942401_306201601_4FGL_J1254.5+2210_daily_bin257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2021-09-06 09:16:18.718131', job_id='986642', GAL2='1.07', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1630944978.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.47e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='257' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:16:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 986642: <4FGL_J1254.5+2210_daily_bin257> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin257> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:00:49 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:00:50 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:00:50 2021
Terminated at Mon Sep  6 09:16:19 2021
Results reported at Mon Sep  6 09:16:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin257 193.637 22.1808 305942401 306201601 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 :                                   904.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

