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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin714
RA = 193.637, Dec = 22.1808
tmin = 424396801, tmax = 424656001
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='988212', job_status='RUN', time_executed='2021-09-06 09:05:57.536441', time_epoch_executed='1630944357.54' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988212/ft1_4FGL_J1254.5+2210_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988212/ft2_4FGL_J1254.5+2210_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988212/ft1_4FGL_J1254.5+2210_daily_bin714.fits outfile=/scratch/kocevski/988212/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin714.fits ra=193.637 dec=22.1808 rad=12.0 tmin=424396801.0 tmax=424656001.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 5.04
user 4.81
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988212/ft1_filtered_4FGL_J1254.5+2210_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/988212/ft2_4FGL_J1254.5+2210_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/988212/ltcube_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.fits outfile=/scratch/kocevski/988212/expmap_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.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/988212/ltcube_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.fits
.....................!
real 191.40
user 185.74
sys 5.19

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/988212/ft1_filtered_4FGL_J1254.5+2210_daily_bin714.fits scfile=/scratch/kocevski/988212/ft2_4FGL_J1254.5+2210_daily_bin714.fits outfile=/scratch/kocevski/988212/cmap_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988212/ft1_filtered_4FGL_J1254.5+2210_daily_bin714.fits scfile=/scratch/kocevski/988212/ft2_4FGL_J1254.5+2210_daily_bin714.fits outfile=/scratch/kocevski/988212/cmap_HighResolution_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0241       1.0000         .10000E-03   10000.    
     8 'norm      '    12.265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.655       1.0000         .10000E-03   10000.    
    21 'norm      '    26.625       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .91968E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    32.584       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.246       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81413       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0222       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=   2029.712     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3735 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68040        9.7406        .40380E-06   -.78387E-04
   2  Prefactor     .10000E-03    6.3538       -.33844E-06** at limit **
   3  norm          .10000E-03    5.3076        .52210E-07** at limit **
   4  Prefactor     .10000E-03    3.6506        .48205E-07** at limit **
   5  Prefactor     13.257        9.5888       -.37346E-07   -.76966E-05
   6  Prefactor     .10000E-03    7.0120        .39252E-07** at limit **
   7  norm          4.0242        1.1687       -.34841E-07    .78726E-04
   8  norm          12.264        13.825       -.16604E-07   -.10090E-05
   9  Prefactor     .10000E-03    8.6675       -.18464E-05** at limit **
  10  Prefactor     .10000E-03    23.628        .41390E-06** at limit **
  11  Prefactor     11.044        73.306       -.33142E-05   -.17517E-04
  12  Prefactor     5.7507        1400.2       -.11048E-04    .66570E-05
  13  Prefactor     .10000E-03    23.685       -.50200E-07** at limit **
  14  Prefactor     .10000E-03    5.1026        .44284E-07** at limit **
  15  Prefactor     .10000E-03    33.920       -.65845E-06** at limit **
  16  norm          .10000E-03    14.201        .45420E-05** at limit **
  17  Prefactor     .10000E-03    16.682       -.23024E-07** at limit **
  18  Prefactor     .10000E-03    44.704        .94227E-06** at limit **
  19  norm          .10000E-03    3.0642        .76620E-07** at limit **
  20  norm          21.657        27.868        .27322E-06   -.46874E-04
  21  norm          26.615        54.924       -.26195E-06   -.25080E-04
  22  norm          .10000E-03    41.308        .15069E-06** at limit **
  23  norm          .10011E-03    18.360       -.45801E-05** at limit **
  24  Prefactor     .10000E-03    34.488        .15072E-06** at limit **
  25  norm          32.654        21.853        .27411E-05    .79280E-03
  26  Prefactor     .10000E-03    14.281        .10888E-07** at limit **
  27  Prefactor     17.250        38.321       -.31220E-06    .24544E-04
  28  Normalizat    .81374        .37862        .64011E-05    .68889E-04
  29  Prefactor     1.0227        .32261       -.46427E-05    .27427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.680402
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2572
  Prefactor  = 0.0001
  norm       = 4.02419
  norm       = 12.264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0444
  Prefactor  = 5.75072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.6569
  norm       = 26.6153
  norm       = 0.0001
  norm       = 0.000100114
  Prefactor  = 0.0001
  norm       = 32.6545
  Prefactor  = 0.0001
  Prefactor  = 17.2502
  Normalizat = 0.813741
  Prefactor  = 1.02268
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.712     FROM HESSE     STATUS=OK           547 CALLS     4282 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68040        17.786        .25793E-02   -1.5543    
   2  Prefactor     .10000E-03    6.4301        .22030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3091        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6509        .84073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.257        9.5939        .11003E-03   -1.4980    
   6  Prefactor     .10000E-03    7.0137        .11652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0242        1.1607        .24220E-04   -1.5307    
   8  norm          12.264        13.827        .11438E-03   -1.5007    
   9  Prefactor     .10000E-03    8.5321        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.044        74.239        .12014E-03   -1.5043    
  12  Prefactor     5.7507        1348.9        .17012E-03   -1.5228    
  13  Prefactor     .10000E-03    23.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1034        .99400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.499        .16121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.766        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0651        .77019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.657        28.890        .86074E-04   -1.4777    
  21  norm          26.615        56.894        .77637E-04   -1.4676    
  22  norm          .10000E-03    41.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10011E-03    121.57        .31816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          32.654        21.824        .70197E-04   -1.4564    
  26  Prefactor     .10000E-03    14.282        .16632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.250        38.376        .96443E-04   -1.4877    
  28  Normalizat    .81374        .43488        .30023E-03   -.99561    
  29  Prefactor     1.0227        .37004        .24777E-03   -.91977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03869e-08
Minuit parameter uncertainties:
  1  6.95926
  2  3.3666e-06
  3  2.01063e-06
  4  1.79774e-06
  5  9.59502
  6  7.79396e-07
  7  1.16071
  8  13.8309
  9  8.79258e-05
  10  3.74294e-06
  11  57.3715
  12  180.428
  13  4.28556e-05
  14  3.56463e-06
  15  3.8383e-05
  16  0.000212395
  17  5.62884e-05
  18  1.45879e-05
  19  4.33664e-06
  20  28.9083
  21  57.0102
  22  1.74873e-05
  23  0.0074683
  24  9.25774e-05
  25  21.8291
  26  1.54969e-05
  27  38.4313
  28  0.436756
  29  0.370964
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.565e-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.023e+00  3.710e-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.137e-01  4.368e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988212/likelihoodResults_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.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) = 2029.71270187
delta logL = -0.000854522186728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2029.71184728
delta logL = 6.13911197433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0675       1.0000          .0000       10.000    
     3 'Normalizat'    .81386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       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=   2029.712     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10662E-03    12.401        .10153E-01** at limit **
   2  Index         1.8644        5.5981        .50000        .23858E-04
   3  Normalizat    .81375        .11750E-01    .30022E-03    .36003E-04
   4  Prefactor     1.0227        .10830E-01    .24778E-03    .56466E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2029.712     FROM SIMPLEX   STATUS=UNCHANGED    106 CALLS      348 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10662E-03    12.401        .45686E-03** at limit **
   2  Index         1.8644        5.5981        .30361E-02    .23858E-04
   3  Normalizat    .81375        .11750E-01    .19519E-04    .36003E-04
   4  Prefactor     1.0227        .10830E-01    .15779E-04    .56466E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2029.712     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      395 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.716        .10928E-01** at limit **
   2  Index         1.4599        8.9527        .50000        .11876E-06
   3  Normalizat    .81375        .17984E-01    .12009E-04   -.26285E-03
   4  Prefactor     1.0227        .16575E-01    .49555E-04   -.30967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.4599
  Normalizat = 0.813747
  Prefactor  = 1.02267
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      424 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    320.60        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4599        8.3664        .50000       -.78669    
   3  Normalizat    .81375        .58361E-01    .24017E-05   -.99561    
   4  Prefactor     1.0227        .53782E-01    .99111E-05   -.91978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.37155e-10
Minuit parameter uncertainties:
  1  0.000836146
  2  1148.43
  3  0.0583651
  4  0.0537852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988212': 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) = 2029.71184449
delta logL = 2.85422515844e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.023e+00  5.379e-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.137e-01  5.837e-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/988212/cmap_HighResolution_424396801_424656001_4FGL_J1254.5+2210_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 09:14:05.615263', job_id='988212', GAL2='1.02', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630944845.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='714' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:14:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 988212: <4FGL_J1254.5+2210_daily_bin714> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 09:05:39 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:05:40 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:05:40 2021
Terminated at Mon Sep  6 09:14:06 2021
Results reported at Mon Sep  6 09:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin714 193.637 22.1808 424396801 424656001 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 :                                   483.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            507 sec.

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

