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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1121
RA = 193.637, Dec = 22.1808
tmin = 529891201, tmax = 530150401
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='991312', job_status='RUN', time_executed='2021-09-06 09:16:54.724510', time_epoch_executed='1630945014.72' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991312/ft1_4FGL_J1254.5+2210_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991312/ft2_4FGL_J1254.5+2210_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991312/ft1_4FGL_J1254.5+2210_daily_bin1121.fits outfile=/scratch/kocevski/991312/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1121.fits ra=193.637 dec=22.1808 rad=12.0 tmin=529891201.0 tmax=530150401.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.52
user 3.31
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991312/ft1_filtered_4FGL_J1254.5+2210_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/991312/ft2_4FGL_J1254.5+2210_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/991312/ltcube_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.fits outfile=/scratch/kocevski/991312/expmap_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.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/991312/ltcube_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.fits
.....................!
real 190.23
user 185.52
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/991312/ft1_filtered_4FGL_J1254.5+2210_daily_bin1121.fits scfile=/scratch/kocevski/991312/ft2_4FGL_J1254.5+2210_daily_bin1121.fits outfile=/scratch/kocevski/991312/cmap_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991312/ft1_filtered_4FGL_J1254.5+2210_daily_bin1121.fits scfile=/scratch/kocevski/991312/ft2_4FGL_J1254.5+2210_daily_bin1121.fits outfile=/scratch/kocevski/991312/cmap_HighResolution_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27876       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11772E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18120       1.0000         .10000E-03   10000.    
     8 'norm      '    .11337E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.280       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7977       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .40293       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.611       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.731       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71350       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1513       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=   5142.603     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     4674 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69304        2.4156       -.28798E-07   -.34485E-03
   2  Prefactor     .10000E-03    2.4604        .86070E-07** at limit **
   3  norm          10.285        4.9567        .42177E-07   -.16515E-03
   4  Prefactor     .27860        2.7292        .56834E-07   -.44521E-03
   5  Prefactor     .10005E-03    1.3078        .53602E-06** at limit **
   6  Prefactor     .10000E-03    3.7925       -.10143E-05** at limit **
   7  norm          .18123        .19369       -.40766E-09    .42909E-03
   8  norm          .10001E-03    2.7498       -.12353E-05** at limit **
   9  Prefactor     .10000E-03    6.8092        .23230E-05** at limit **
  10  Prefactor     5.7098        8.8516        .18400E-05   -.47876E-03
  11  Prefactor     53.482        32.297       -.12766E-05   -.21593E-03
  12  Prefactor     .10000E-03    77.512       -.45683E-06** at limit **
  13  Prefactor     .10000E-03    15.719       -.98394E-06** at limit **
  14  Prefactor     .10000E-03    1.5509        .26674E-06** at limit **
  15  Prefactor     .10000E-03    5.4520       -.53794E-06** at limit **
  16  norm          .10000E-03    1.0504        .70391E-07** at limit **
  17  Prefactor     31.953        15.776        .14093E-06    .32791E-04
  18  Prefactor     30.282        21.485        .62015E-07    .15962E-04
  19  norm          5.7976        3.5899        .34536E-06    .42466E-03
  20  norm          .10000E-03    .92758       -.27284E-07** at limit **
  21  norm          .40273        3.5106       -.43649E-06   -.50454E-03
  22  norm          .10000E-03    7.7967       -.20425E-05** at limit **
  23  norm          14.612        7.2151        .18667E-07   -.59087E-04
  24  Prefactor     .10000E-03    26.815        .13476E-05** at limit **
  25  norm          .10000E-03    3.9022        .15252E-05** at limit **
  26  Prefactor     .10000E-03    4.3786       -.52589E-06** at limit **
  27  Prefactor     18.732        18.867       -.53872E-07   -.84299E-05
  28  Normalizat    .71345        .18110        .50614E-07    .66008E-04
  29  Prefactor     1.1513        .18756       -.15569E-06    .65124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.693036
  Prefactor  = 0.0001
  norm       = 10.2852
  Prefactor  = 0.278604
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  norm       = 0.181227
  norm       = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 5.70983
  Prefactor  = 53.4819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9526
  Prefactor  = 30.2818
  norm       = 5.7976
  norm       = 0.0001
  norm       = 0.402734
  norm       = 0.000100001
  norm       = 14.6125
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7324
  Normalizat = 0.713446
  Prefactor  = 1.15132
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.603     FROM HESSE     STATUS=OK           555 CALLS     5229 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69304        2.4639        .20367E-03   -1.5541    
   2  Prefactor     .10000E-03    2.5353        .21903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.285        4.8995        .92460E-04   -1.5066    
   4  Prefactor     .27860        5.4905        .19764E-02   -1.5602    
   5  Prefactor     .10005E-03    9.7783        .14571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8315        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18123        .18326        .30803E-03   -1.5623    
   8  norm          .10001E-03    8.4777        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7098        10.556        .84046E-03   -1.5230    
  11  Prefactor     53.482        32.741        .54843E-04   -1.4244    
  12  Prefactor     .10000E-03    77.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5528        .87232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4726        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0512        .71761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.953        15.762        .70885E-04   -1.4577    
  18  Prefactor     30.282        21.492        .72811E-04   -1.4607    
  19  norm          5.7976        3.5899        .10318E-03   -1.5226    
  20  norm          .10000E-03    .93216        .67282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .40273        4.1804        .28506E-03   -1.5581    
  22  norm          .10000E-03    7.8927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.612        7.2149        .10478E-03   -1.4943    
  24  Prefactor     .10000E-03    26.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.9522        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3871        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.732        18.900        .92543E-04   -1.4842    
  28  Normalizat    .71345        .20840        .26215E-03   -1.0336    
  29  Prefactor     1.1513        .21949        .22976E-03   -.87843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94312e-09
Minuit parameter uncertainties:
  1  2.46431
  2  8.61385e-06
  3  4.89969
  4  2.47341
  5  0.00138005
  6  4.30326e-05
  7  0.183265
  8  0.000624006
  9  0.00017971
  10  10.5592
  11  32.7517
  12  0.000130758
  13  0.000102621
  14  8.33764e-06
  15  3.24419e-05
  16  1.71464e-06
  17  15.7641
  18  21.4971
  19  3.59003
  20  3.58406e-06
  21  2.59496
  22  0.000154505
  23  7.2153
  24  0.000180582
  25  7.78352e-05
  26  2.9524e-05
  27  18.9064
  28  0.208629
  29  0.219664
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.338e-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.151e+00  2.197e-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.134e-01  2.086e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991312/likelihoodResults_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.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) = 5142.60559497
delta logL = -0.00283248826963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5142.60276153
delta logL = 9.56029907684e-07

Fit tolerance = 1e-08

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

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

 FCN=   5142.603     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10222E-03    24.864        .90496E-03** at limit **
   2  Index         1.9890        6.4976        .50000        .13174E-03
   3  Normalizat    .71345        .16337E-01    .26215E-03   -.12568E-03
   4  Prefactor     1.1513        .17883E-01    .22976E-03   -.20791E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5142.603     FROM SIMPLEX   STATUS=PROGRESS     120 CALLS      356 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    24.864        .17120E-03** at limit **
   2  Index         1.9883        6.4976        .24634E-03    .13174E-03
   3  Normalizat    .71344        .16337E-01    .34898E-05   -.12568E-03
   4  Prefactor     1.1513        .17883E-01    .32705E-05   -.20791E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5142.603     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      412 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.404        .18099E-02** at limit **
   2  Index         1.4753        8.9452        .50000       -.15714E-06
   3  Normalizat    .71344        .17195E-01    .10486E-04    .11059E-04
   4  Prefactor     1.1513        .18823E-01    .45953E-04    .75111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.47532
  Normalizat = 0.713445
  Prefactor  = 1.15132
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.603     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    165.83        .36198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4753        6.5258        .50000       -.78233    
   3  Normalizat    .71344        .38871E-01    .20972E-05   -1.0336    
   4  Prefactor     1.1513        .42554E-01    .91905E-05   -.87843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.62469e-10
Minuit parameter uncertainties:
  1  2.53178e-05
  2  542.808
  3  0.0388721
  4  0.0425554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991312': 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) = 5142.60275123
delta logL = 1.12573925435e-05

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.532e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.475e+00  5.428e+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.151e+00  4.256e-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:  7.134e-01  3.887e-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/991312/cmap_HighResolution_529891201_530150401_4FGL_J1254.5+2210_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-06 09:30:09.432276', job_id='991312', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630945809.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.13e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1121' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 991312: <4FGL_J1254.5+2210_daily_bin1121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1121 193.637 22.1808 529891201 530150401 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 :                                   787.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

