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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1278
RA = 193.637, Dec = 22.1808
tmin = 570585601, tmax = 570844801
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='991589', job_status='RUN', time_executed='2021-09-06 09:18:51.487580', time_epoch_executed='1630945131.49' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991589/ft1_4FGL_J1254.5+2210_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991589/ft2_4FGL_J1254.5+2210_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991589/ft1_4FGL_J1254.5+2210_daily_bin1278.fits outfile=/scratch/kocevski/991589/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1278.fits ra=193.637 dec=22.1808 rad=12.0 tmin=570585601.0 tmax=570844801.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.09
user 2.82
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991589/ft1_filtered_4FGL_J1254.5+2210_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/991589/ft2_4FGL_J1254.5+2210_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/991589/ltcube_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.fits outfile=/scratch/kocevski/991589/expmap_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.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/991589/ltcube_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.fits
.....................!
real 192.85
user 188.44
sys 3.93

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/991589/ft1_filtered_4FGL_J1254.5+2210_daily_bin1278.fits scfile=/scratch/kocevski/991589/ft2_4FGL_J1254.5+2210_daily_bin1278.fits outfile=/scratch/kocevski/991589/cmap_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10762E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .97600       1.0000         .10000E-03   10000.    
     8 'norm      '    21.537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.946       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.991       1.0000         .10000E-03   10000.    
    16 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1729       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.9797       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4128       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74864       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=   3967.395     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3621 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4002        .17538E-07** at limit **
   2  Prefactor     .10000E-03    3.5465        .13965E-06** at limit **
   3  norm          14.776        7.5099        .85731E-06    .79826E-03
   4  Prefactor     .10000E-03    59.861       -.27682E-04** at limit **
   5  Prefactor     .10000E-03    1.5763       -.17768E-06** at limit **
   6  Prefactor     .10000E-03    7.7358        .75320E-06** at limit **
   7  norm          .97606        .50654       -.21161E-07   -.93355E-04
   8  norm          21.539        10.637        .50769E-06    .39015E-04
   9  Prefactor     29.867        23.018        .65251E-06    .27506E-05
  10  Prefactor     .10000E-03    11.925        .13560E-05** at limit **
  11  Prefactor     32.512        37.689       -.92668E-07    .46622E-05
  12  Prefactor     62.949        113.33       -.21016E-06    .10419E-04
  13  Prefactor     .10000E-03    49.673       -.20957E-04** at limit **
  14  Prefactor     .10000E-03    5.6465        .12145E-05** at limit **
  15  Prefactor     26.993        18.890       -.15100E-05    .50937E-04
  16  norm          .10000E-03    2.7179       -.28026E-06** at limit **
  17  Prefactor     32.755        23.263       -.32986E-06    .25430E-04
  18  Prefactor     .10000E-03    11.211        .94636E-06** at limit **
  19  norm          .10000E-03    1.4017       -.10654E-07** at limit **
  20  norm          .10000E-03    2.1158        .60461E-06** at limit **
  21  norm          4.1751        4.7584        .14375E-06   -.17868E-03
  22  norm          .10000E-03    9.4329       -.16851E-05** at limit **
  23  norm          8.9828        7.3937       -.65546E-06    .43716E-04
  24  Prefactor     .10000E-03    9.5952       -.15254E-05** at limit **
  25  norm          .10000E-03    5.5034       -.10604E-05** at limit **
  26  Prefactor     10.605        16.013       -.30847E-06   -.23829E-05
  27  Prefactor     .10000E-03    7.7066        .72434E-06** at limit **
  28  Normalizat    1.4123        .24199        .70026E-06   -.65699E-04
  29  Prefactor     .74919        .23382       -.10003E-05    .11301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.976056
  norm       = 21.5392
  Prefactor  = 29.8673
  Prefactor  = 0.0001
  Prefactor  = 32.5122
  Prefactor  = 62.9488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9926
  norm       = 0.0001
  Prefactor  = 32.755
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.17513
  norm       = 0.0001
  norm       = 8.98278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6047
  Prefactor  = 0.0001
  Normalizat = 1.41227
  Prefactor  = 0.749186
 **********
 **   18 **HESSE 
 **********

 FCN=   3967.395     FROM HESSE     STATUS=OK           547 CALLS     4168 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4042        .95294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6176        .11582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.776        7.2932        .10421E-03   -1.4939    
   4  Prefactor     .10000E-03    57.786        .21836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5820        .77226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7625        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .97606        .50408        .30865E-04   -1.5510    
   8  norm          21.539        10.636        .86308E-04   -1.4779    
   9  Prefactor     29.867        23.048        .73306E-04   -1.4614    
  10  Prefactor     .10000E-03    11.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.512        37.715        .70273E-04   -1.4567    
  12  Prefactor     62.949        113.55        .50578E-04   -1.4119    
  13  Prefactor     .10000E-03    49.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6705        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.993        18.873        .77110E-04   -1.4668    
  16  norm          .10000E-03    2.7300        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.755        23.278        .70017E-04   -1.4563    
  18  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4050        .72824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1251        .89045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1751        4.7338        .14239E-03   -1.5299    
  22  norm          .10000E-03    9.4394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9828        7.4163        .13375E-03   -1.5108    
  24  Prefactor     .10000E-03    9.5974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.5205        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.605        16.042        .12305E-03   -1.5057    
  27  Prefactor     .10000E-03    7.7121        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4123        .28373        .24086E-03   -.80275    
  29  Prefactor     .74919        .27108        .31585E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67989e-10
Minuit parameter uncertainties:
  1  5.70276e-07
  2  1.19814e-06
  3  7.29359
  4  4.15806e-05
  5  6.43964e-06
  6  2.66908e-05
  7  0.504079
  8  10.6373
  9  23.0547
  10  2.92668e-05
  11  37.7429
  12  113.947
  13  0.000139605
  14  3.41722e-07
  15  18.8773
  16  3.32066e-06
  17  23.2847
  18  3.97132e-06
  19  8.47074e-08
  20  4.94842e-06
  21  4.73425
  22  6.11167e-06
  23  7.41701
  24  1.34984e-06
  25  2.26548e-05
  26  16.049
  27  5.90182e-07
  28  0.284045
  29  0.271565
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.417e-07  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:  7.492e-01  2.716e-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.412e+00  2.840e-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: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991589/likelihoodResults_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.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) = 3967.39561937
delta logL = -0.000836285878449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3967.39478309
delta logL = 4.16548573412e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0947       1.0000          .0000       10.000    
     3 'Normalizat'    1.4123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74919       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=   3967.395     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    780.38        .90712E-02** at limit **
   2  Index         2.1005        6.5347        .50000       -.90621E-05
   3  Normalizat    1.4123        .90743E-01    .54475E-01    .22313E-03
   4  Prefactor     .74918        .89928E-01    .71370E-01    .20371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10053
  Normalizat = 1.41227
  Prefactor  = 0.749182
 **********
 **   18 **HESSE 
 **********

 FCN=   3967.395     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    343.11        .14634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1005        5.6330        .50000       -.61860    
   3  Normalizat    1.4123        .50984E-01    .24086E-03   -.80274    
   4  Prefactor     .74918        .50615E-01    .31585E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84879e-10
Minuit parameter uncertainties:
  1  0.000946534
  2  31.8606
  3  0.0509856
  4  0.0506178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991589': 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) = 3967.39478306
delta logL = 2.38910615735e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.465e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.101e+00  3.186e+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:  7.492e-01  5.062e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.412e+00  5.099e-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/991589/cmap_HighResolution_570585601_570844801_4FGL_J1254.5+2210_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-06 09:29:10.186786', job_id='991589', GAL2='0.75', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630945750.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1278' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 991589: <4FGL_J1254.5+2210_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1278> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:16:01 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:16:03 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:16:03 2021
Terminated at Mon Sep  6 09:29:11 2021
Results reported at Mon Sep  6 09:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1278 193.637 22.1808 570585601 570844801 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 :                                   614.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            790 sec.

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

