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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin565
RA = 193.637, Dec = 22.1808
tmin = 385776001, tmax = 386035201
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='988000', job_status='RUN', time_executed='2021-09-06 09:05:43.420611', time_epoch_executed='1630944343.42' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988000

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988000/ft1_4FGL_J1254.5+2210_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988000/ft2_4FGL_J1254.5+2210_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988000/ft1_4FGL_J1254.5+2210_daily_bin565.fits outfile=/scratch/kocevski/988000/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin565.fits ra=193.637 dec=22.1808 rad=12.0 tmin=385776001.0 tmax=386035201.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.95
user 3.68
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988000/ft1_filtered_4FGL_J1254.5+2210_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/988000/ft2_4FGL_J1254.5+2210_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/988000/ltcube_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.fits outfile=/scratch/kocevski/988000/expmap_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.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/988000/ltcube_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.fits
.....................!
real 191.90
user 185.83
sys 4.89

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/988000/ft1_filtered_4FGL_J1254.5+2210_daily_bin565.fits scfile=/scratch/kocevski/988000/ft2_4FGL_J1254.5+2210_daily_bin565.fits outfile=/scratch/kocevski/988000/cmap_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72218E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8369       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9571       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63116E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .27722       1.0000         .10000E-03   10000.    
     8 'norm      '    21.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22007E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.194       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.104       1.0000         .10000E-03   10000.    
    16 'norm      '    .46513E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.452       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.698       1.0000         .10000E-03   10000.    
    23 'norm      '    7.5700       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1359       1.0000         .10000E-03   10000.    
    25 'norm      '    35.719       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83060       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2657       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=   6282.280     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3758 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6770        .25231E-06** at limit **
   2  Prefactor     4.8426        3.8645       -.24652E-06   -.19685E-03
   3  norm          2.9570        2.6657        .63185E-07    .13665E-05
   4  Prefactor     .10000E-03    .73247       -.67688E-07** at limit **
   5  Prefactor     11.610        3.8050       -.62361E-07   -.12125E-03
   6  Prefactor     .10000E-03    30.033       -.63995E-05** at limit **
   7  norm          .27723        .25539       -.60814E-07   -.39813E-03
   8  norm          21.225        7.3906       -.97788E-07   -.33658E-03
   9  Prefactor     3.3354        10.565       -.79482E-06    .30888E-04
  10  Prefactor     .10000E-03    5.8223       -.22883E-06** at limit **
  11  Prefactor     .10043E-03    75.220       -.70375E-05** at limit **
  12  Prefactor     21.197        39.802        .18769E-06    .11793E-04
  13  Prefactor     .10000E-03    23.030       -.74876E-06** at limit **
  14  Prefactor     10.994        9.7464       -.50499E-06    .70443E-05
  15  Prefactor     13.105        14.464        .32951E-06   -.10858E-05
  16  norm          .10000E-03    2.8017       -.59034E-06** at limit **
  17  Prefactor     17.031        16.193       -.63996E-06   -.24909E-04
  18  Prefactor     35.486        32.714       -.23677E-06    .63865E-04
  19  norm          .10000E-03    2.4796       -.21806E-06** at limit **
  20  norm          .10000E-03    1.5069        .46990E-06** at limit **
  21  norm          .10000E-03    1.8667       -.58754E-07** at limit **
  22  norm          31.694        19.354       -.12996E-05   -.16601E-04
  23  norm          7.5683        7.4012        .31921E-06    .36513E-04
  24  Prefactor     9.1251        36.039        .14414E-06    .40584E-05
  25  norm          35.715        14.790       -.64934E-07   -.14241E-04
  26  Prefactor     .10000E-03    6.9367       -.11244E-06** at limit **
  27  Prefactor     .10000E-03    38.517        .33876E-06** at limit **
  28  Normalizat    .83065        .20878       -.18608E-05   -.75131E-04
  29  Prefactor     1.2659        .20397        .60186E-07   -.34354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.84263
  norm       = 2.95701
  Prefactor  = 0.0001
  Prefactor  = 11.6098
  Prefactor  = 0.000100002
  norm       = 0.277233
  norm       = 21.2247
  Prefactor  = 3.3354
  Prefactor  = 0.0001
  Prefactor  = 0.00010043
  Prefactor  = 21.1972
  Prefactor  = 0.0001
  Prefactor  = 10.9944
  Prefactor  = 13.1046
  norm       = 0.0001
  Prefactor  = 17.0313
  Prefactor  = 35.4862
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.694
  norm       = 7.56831
  Prefactor  = 9.12513
  norm       = 35.7149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830651
  Prefactor  = 1.26592
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.280     FROM HESSE     STATUS=OK           571 CALLS     4329 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.503        .19130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8426        3.7484        .12855E-03   -1.5268    
   3  norm          2.9570        2.6669        .11749E-03   -1.5364    
   4  Prefactor     .10000E-03    .73347        .66182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.610        3.7969        .82436E-04   -1.5026    
   6  Prefactor     .10000E-03    33.633        .36576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27723        .24259        .35662E-03   -1.5603    
   8  norm          21.225        7.1976        .86942E-04   -1.4786    
   9  Prefactor     3.3354        10.709        .22220E-03   -1.5343    
  10  Prefactor     .10000E-03    5.8607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10043E-03    40.926        .11966       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.197        39.788        .87003E-04   -1.4787    
  13  Prefactor     .10000E-03    23.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.994        9.7142        .12081E-03   -1.5045    
  15  Prefactor     13.105        14.464        .11065E-03   -1.4984    
  16  norm          .10000E-03    15.731        .23000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.031        16.164        .97044E-04   -1.4882    
  18  Prefactor     35.486        32.371        .67306E-04   -1.4516    
  19  norm          .10000E-03    2.4988        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5226        .95053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8700        .10578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.694        19.278        .71168E-04   -1.4581    
  23  norm          7.5683        7.3965        .14576E-03   -1.5158    
  24  Prefactor     9.1251        36.060        .13260E-03   -1.5104    
  25  norm          35.715        14.764        .67055E-04   -1.4512    
  26  Prefactor     .10000E-03    6.9434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    38.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83065        .24032        .30757E-03   -.98942    
  29  Prefactor     1.2659        .23748        .26192E-03   -.84326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48046e-10
Minuit parameter uncertainties:
  1  0.000204787
  2  3.74863
  3  2.66704
  4  9.9462e-07
  5  3.79703
  6  0.000574241
  7  0.24259
  8  7.19785
  9  10.7148
  10  1.16725e-05
  11  0.00839327
  12  39.8382
  13  4.85054e-06
  14  9.71562
  15  14.468
  16  7.1636e-05
  17  16.1681
  18  32.3869
  19  2.32188e-05
  20  3.93134e-07
  21  6.32737e-07
  22  19.2821
  23  7.39736
  24  36.146
  25  14.7658
  26  8.60349e-06
  27  0.000128192
  28  0.240628
  29  0.237679
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.099e+01  9.716e+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.266e+00  2.377e-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.307e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 2.14e-05

TS (Fixed Index): 1.83
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988000/likelihoodResults_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.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): 0
logL (Free Index) = 6279.54102715
delta logL = 2.73861242119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6279.4491201
delta logL = 2.83051946726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19387       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3533       1.0000          .0000       10.000    
     3 'Normalizat'    .64233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4044       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=   6279.449     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      310 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19368        1.1417        .32587E-02    .42810E-02
   2  Index         4.3539        1.6967        .56825E-01    .41021E-03
   3  Normalizat    .64250        .69123E-01    .77951E-01    .12474E-03
   4  Prefactor     1.4043        .70931E-01    .56689E-01    .75770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.193682
  Index      = 4.35393
  Normalizat = 0.642498
  Prefactor  = 1.40426
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.449     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      341 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19368        1.7803        .14579E-04   -1.5620    
   2  Index         4.3539        2.2427        .23811E-02   -.12958    
   3  Normalizat    .64250        .21044        .34514E-03   -1.0621    
   4  Prefactor     1.4043        .21677        .25065E-03   -.80258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.00791e-10
Minuit parameter uncertainties:
  1  1.17417
  2  2.32725
  3  0.210705
  4  0.216912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988000': 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) = 6279.44911832
delta logL = 2.83052125101

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.937e-01  1.174e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.354e+00  2.327e+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.404e+00  2.169e-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:  6.425e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 193.637 22.181
Photon Index (Free Index): 4.35 +/- 2.33
Photon Flux (Free Index): 1.76e-07 +/- 7.65e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.31e-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/988000/cmap_HighResolution_385776001_386035201_4FGL_J1254.5+2210_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='2.50e-05', photon_flux_error='3.81e-08', dlogl='2.83e+00', energy_flux='2.42e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-06 09:19:43.627377', photon_index_error2='2.33', photon_index2='4.35', ts='1.83', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.31e-05', EG='0.83', time_epoch_completed='1630945183.63', return_code='0', job_id='988000', GAL2='1.40', EG2='0.64', return_code2='102', energy_flux_error='2.14e-05', photon_flux_error2='7.65e-08', ts2='8.20', photon_index='2.09' WHERE bin_id='565' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 988000: <4FGL_J1254.5+2210_daily_bin565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin565 193.637 22.1808 385776001 386035201 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 :                                   836.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

