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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1039
RA = 193.637, Dec = 22.1808
tmin = 508636801, tmax = 508896001
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='991186', job_status='RUN', time_executed='2021-09-06 09:16:37.588448', time_epoch_executed='1630944997.59' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991186/ft1_4FGL_J1254.5+2210_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991186/ft2_4FGL_J1254.5+2210_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991186/ft1_4FGL_J1254.5+2210_daily_bin1039.fits outfile=/scratch/kocevski/991186/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1039.fits ra=193.637 dec=22.1808 rad=12.0 tmin=508636801.0 tmax=508896001.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.72
user 3.48
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991186/ft1_filtered_4FGL_J1254.5+2210_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/991186/ft2_4FGL_J1254.5+2210_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/991186/ltcube_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.fits outfile=/scratch/kocevski/991186/expmap_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.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/991186/ltcube_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.fits
.....................!
real 193.05
user 187.32
sys 4.67

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/991186/ft1_filtered_4FGL_J1254.5+2210_daily_bin1039.fits scfile=/scratch/kocevski/991186/ft2_4FGL_J1254.5+2210_daily_bin1039.fits outfile=/scratch/kocevski/991186/cmap_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991186/ft1_filtered_4FGL_J1254.5+2210_daily_bin1039.fits scfile=/scratch/kocevski/991186/ft2_4FGL_J1254.5+2210_daily_bin1039.fits outfile=/scratch/kocevski/991186/cmap_HighResolution_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9427       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2032       1.0000         .10000E-03   10000.    
     7 'norm      '    .52463       1.0000         .10000E-03   10000.    
     8 'norm      '    11.374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4371       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.048       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.2850       1.0000         .10000E-03   10000.    
    22 'norm      '    38.489       1.0000         .10000E-03   10000.    
    23 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.668       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5194       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.091       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86018       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0309       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=   6047.866     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3671 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1408        3.9282        .12659E-07   -.42813E-04
   2  Prefactor     7.9431        4.2420       -.10414E-07   -.36698E-04
   3  norm          8.8925        3.7630       -.51021E-07   -.79555E-04
   4  Prefactor     .10000E-03    1.2653        .10369E-07** at limit **
   5  Prefactor     .10000E-03    1.0389        .30920E-07** at limit **
   6  Prefactor     3.2031        5.5286        .12211E-06   -.13303E-03
   7  norm          .52466        .29460        .55797E-08   -.24343E-03
   8  norm          11.373        6.1388       -.92841E-08   -.17138E-04
   9  Prefactor     .10000E-03    8.5286       -.48776E-07** at limit **
  10  Prefactor     .10000E-03    3.2037        .32999E-08** at limit **
  11  Prefactor     39.384        28.206        .10943E-05    .91872E-04
  12  Prefactor     82.636        72.144       -.69187E-06   -.24738E-04
  13  Prefactor     .10000E-03    14.167        .10162E-07** at limit **
  14  Prefactor     1.0087        4.9444       -.14244E-07   -.45327E-04
  15  Prefactor     6.4362        7.0722        .85119E-06   -.71572E-03
  16  norm          4.1021        4.8085        .44547E-06   -.47379E-04
  17  Prefactor     2.3942        12.376       -.48101E-06   -.85617E-04
  18  Prefactor     36.043        28.276       -.28113E-05   -.20130E-03
  19  norm          .10000E-03    1.5193        .76704E-08** at limit **
  20  norm          .10000E-03    2.1903        .34035E-07** at limit **
  21  norm          5.2847        5.1651        .12020E-06   -.20627E-04
  22  norm          38.489        25.235       -.40669E-07    .23661E-05
  23  norm          .10000E-03    3.8404       -.47504E-07** at limit **
  24  Prefactor     15.668        19.222        .30007E-06    .19554E-04
  25  norm          1.5172        12.725        .65880E-06   -.12903E-03
  26  Prefactor     .10000E-03    5.9291        .32773E-07** at limit **
  27  Prefactor     29.091        27.204        .12349E-06    .37067E-05
  28  Normalizat    .86005        .19434       -.38273E-07   -.36929E-05
  29  Prefactor     1.0309        .18719       -.28743E-06    .15723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14077
  Prefactor  = 7.94305
  norm       = 8.89247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20314
  norm       = 0.52466
  norm       = 11.3734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3836
  Prefactor  = 82.6355
  Prefactor  = 0.0001
  Prefactor  = 1.00875
  Prefactor  = 6.43617
  norm       = 4.10209
  Prefactor  = 2.39422
  Prefactor  = 36.0434
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.28472
  norm       = 38.4886
  norm       = 0.0001
  Prefactor  = 15.6681
  norm       = 1.51723
  Prefactor  = 0.0001
  Prefactor  = 29.0909
  Normalizat = 0.860047
  Prefactor  = 1.03092
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.866     FROM HESSE     STATUS=OK           561 CALLS     4232 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1408        3.9257        .11342E-03   -1.5212    
   2  Prefactor     7.9431        4.2425        .10735E-03   -1.5144    
   3  norm          8.8925        3.6230        .91825E-04   -1.5111    
   4  Prefactor     .10000E-03    2.3345        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9649        .15285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2031        5.5423        .21996E-03   -1.5350    
   7  norm          .52466        .28905        .29518E-04   -1.5563    
   8  norm          11.373        6.1329        .11879E-03   -1.5033    
   9  Prefactor     .10000E-03    8.5980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2103        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.384        28.305        .63871E-04   -1.4452    
  12  Prefactor     82.636        72.239        .44186E-04   -1.3887    
  13  Prefactor     .10000E-03    14.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0087        17.584        .32030E-02   -1.5507    
  15  Prefactor     6.4362        9.1766        .79095E-03   -1.5201    
  16  norm          4.1021        4.7982        .16896E-03   -1.5303    
  17  Prefactor     2.3942        12.408        .26459E-03   -1.5398    
  18  Prefactor     36.043        29.179        .66749E-04   -1.4507    
  19  norm          .10000E-03    1.5301        .93565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2044        .11185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2847        5.1372        .16821E-03   -1.5248    
  22  norm          38.489        25.196        .64605E-04   -1.4466    
  23  norm          .10000E-03    3.8506        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.668        19.224        .10119E-03   -1.4916    
  25  norm          1.5172        13.714        .34666E-03   -1.5462    
  26  Prefactor     .10000E-03    5.9329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.091        27.221        .74281E-04   -1.4629    
  28  Normalizat    .86005        .22197        .27247E-03   -.97879    
  29  Prefactor     1.0309        .21501        .25378E-03   -.91706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5266e-08
Minuit parameter uncertainties:
  1  3.92585
  2  4.24261
  3  3.62311
  4  8.93595e-06
  5  2.59722e-06
  6  5.54323
  7  0.289047
  8  6.13322
  9  2.49131e-05
  10  5.83711e-07
  11  28.3145
  12  72.3163
  13  7.5512e-07
  14  8.42578
  15  9.17858
  16  4.79862
  17  10.9041
  18  29.1903
  19  6.0728e-07
  20  6.17833e-06
  21  5.13759
  22  25.2031
  23  1.24104e-06
  24  19.2321
  25  9.12542
  26  1.67875e-06
  27  27.2325
  28  0.222205
  29  0.215191
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.009e+00  8.426e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.031e+00  2.152e-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.600e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991186/likelihoodResults_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.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) = 6046.08409101
delta logL = 1.78209417716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6046.06824533
delta logL = 1.79793985924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95137E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.4575       1.0000          .0000       10.000    
     3 'Normalizat'    .72104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1175       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=   6046.068     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94328E-01    .83585        .31146E-02    .63013E-02
   2  Index         4.4610        1.9204        .77498E-01    .37782E-03
   3  Normalizat    .72062        .51278E-01    .66779E-01    .75401E-04
   4  Prefactor     1.1179        .51722E-01    .55402E-01   -.31036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0943284
  Index      = 4.46102
  Normalizat = 0.720624
  Prefactor  = 1.11789
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.068     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94328E-01    1.6699        .14047E-04   -1.5647    
   2  Index         4.4610        3.0078        .30456E-02   -.10801    
   3  Normalizat    .72062        .19384        .29548E-03   -1.0308    
   4  Prefactor     1.1179        .19289        .24496E-03   -.88897    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.15294e-10
Minuit parameter uncertainties:
  1  0.79337
  2  3.23045
  3  0.194029
  4  0.193006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991186': 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) = 6046.06824072
delta logL = 1.7979444712

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  9.433e-02  7.934e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.461e+00  3.230e+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.118e+00  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.206e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 193.637 22.181
Photon Index (Free Index): 4.46 +/- 3.23
Photon Flux (Free Index): 1.13e-07 +/- 6.93e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.11e-05

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/991186/cmap_HighResolution_508636801_508896001_4FGL_J1254.5+2210_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='1.80e+00', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-06 09:29:39.598269', photon_index_error2='3.23', photon_index2='4.46', ts='0.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='1.11e-05', EG='0.86', time_epoch_completed='1630945779.6', return_code='0', job_id='991186', GAL2='1.12', EG2='0.72', return_code2='102', photon_flux_error2='6.93e-08', ts2='3.97', photon_index='2.09' WHERE bin_id='1039' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 991186: <4FGL_J1254.5+2210_daily_bin1039> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1039 193.637 22.1808 508636801 508896001 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 :                                   768.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

