/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 129 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin56
RA = 193.637, Dec = 22.1808
tmin = 253843201, tmax = 254102401
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='985041', job_status='RUN', time_executed='2021-09-06 08:57:52.910528', time_epoch_executed='1630943872.91' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985041

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985041/ft1_4FGL_J1254.5+2210_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985041/ft2_4FGL_J1254.5+2210_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985041/ft1_4FGL_J1254.5+2210_daily_bin56.fits outfile=/scratch/kocevski/985041/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin56.fits ra=193.637 dec=22.1808 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.47
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985041/ft1_filtered_4FGL_J1254.5+2210_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/985041/ft2_4FGL_J1254.5+2210_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/985041/ltcube_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.fits outfile=/scratch/kocevski/985041/expmap_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.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/985041/ltcube_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.fits
.....................!
real 190.30
user 184.78
sys 5.00

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/985041/ft1_filtered_4FGL_J1254.5+2210_daily_bin56.fits scfile=/scratch/kocevski/985041/ft2_4FGL_J1254.5+2210_daily_bin56.fits outfile=/scratch/kocevski/985041/cmap_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.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.57
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54416E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9354       1.0000         .10000E-03   10000.    
     7 'norm      '    .21032       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13697E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.874       1.0000         .10000E-03   10000.    
    19 'norm      '    8.7735       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4207       1.0000         .10000E-03   10000.    
    21 'norm      '    12.836       1.0000         .10000E-03   10000.    
    22 'norm      '    35.321       1.0000         .10000E-03   10000.    
    23 'norm      '    .62883E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.837       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2521       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54770       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=   5264.370     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3724 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9099        3.0772        .87443E-07    .14279E-03
   2  Prefactor     .10001E-03    1.5844       -.28171E-06** at limit **
   3  norm          7.9785        4.0195       -.11004E-08    .45006E-05
   4  Prefactor     1.2155        2.1384        .59998E-07   -.71509E-05
   5  Prefactor     7.9138        3.1390       -.75092E-07   -.95241E-04
   6  Prefactor     3.9348        4.1355       -.23101E-06   -.40835E-04
   7  norm          .21027        .16145       -.10544E-07   -.38649E-03
   8  norm          2.9817        4.9251        .23489E-05   -.60850E-03
   9  Prefactor     .10001E-03    14.393       -.25979E-05** at limit **
  10  Prefactor     25.074        13.835       -.19759E-06   -.22756E-04
  11  Prefactor     33.310        29.497        .37486E-06   -.11950E-03
  12  Prefactor     .10000E-03    34.569       -.58188E-06** at limit **
  13  Prefactor     .10000E-03    25.798        .47766E-06** at limit **
  14  Prefactor     7.3939        6.7524        .32852E-07   -.94671E-04
  15  Prefactor     .10000E-03    6.0881       -.44902E-07** at limit **
  16  norm          .10000E-03    1.7135       -.40268E-06** at limit **
  17  Prefactor     8.4281        13.564        .37792E-07   -.69953E-04
  18  Prefactor     64.863        41.285       -.56197E-06   -.46069E-04
  19  norm          8.7724        4.7910       -.73895E-08   -.25747E-03
  20  norm          5.4122        8.2806        .23658E-05   -.47844E-03
  21  norm          12.848        13.599       -.19976E-05   -.89518E-04
  22  norm          35.327        24.089       -.47376E-06   -.21994E-03
  23  norm          .10003E-03    8.7623       -.20980E-06** at limit **
  24  Prefactor     .10000E-03    19.888       -.12458E-06** at limit **
  25  norm          10.844        8.8376       -.88090E-06   -.10779E-02
  26  Prefactor     .10000E-03    5.6587        .53043E-07** at limit **
  27  Prefactor     .10000E-03    15.611        .15586E-06** at limit **
  28  Normalizat    1.2527        .18894        .36067E-06   -.19835E-03
  29  Prefactor     .54723        .17841       -.18486E-05   -.28636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90991
  Prefactor  = 0.000100007
  norm       = 7.97852
  Prefactor  = 1.21548
  Prefactor  = 7.91377
  Prefactor  = 3.9348
  norm       = 0.210269
  norm       = 2.98169
  Prefactor  = 0.000100009
  Prefactor  = 25.0736
  Prefactor  = 33.3103
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.3939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.42806
  Prefactor  = 64.8626
  norm       = 8.77242
  norm       = 5.41217
  norm       = 12.8478
  norm       = 35.3273
  norm       = 0.000100034
  Prefactor  = 0.0001
  norm       = 10.8439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25266
  Prefactor  = 0.547232
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.370     FROM HESSE     STATUS=OK           559 CALLS     4283 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9099        2.9654        .10475E-03   -1.5312    
   2  Prefactor     .10001E-03    30.594        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9785        4.0408        .92143E-04   -1.5143    
   4  Prefactor     1.2155        2.1009        .12618E-03   -1.5487    
   5  Prefactor     7.9138        3.1362        .76173E-04   -1.5145    
   6  Prefactor     3.9348        4.1345        .14553E-03   -1.5311    
   7  norm          .21027        .15966        .24618E-04   -1.5616    
   8  norm          2.9817        4.9957        .98942E-03   -1.5363    
   9  Prefactor     .10001E-03    15.535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.074        13.838        .79993E-04   -1.4706    
  11  Prefactor     33.310        29.465        .69415E-04   -1.4553    
  12  Prefactor     .10000E-03    34.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3939        6.7498        .14749E-03   -1.5164    
  15  Prefactor     .10000E-03    6.1214        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7324        .93102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4281        13.633        .13799E-03   -1.5127    
  18  Prefactor     64.863        41.345        .49825E-04   -1.4095    
  19  norm          8.7724        4.7941        .11176E-03   -1.5116    
  20  norm          5.4122        8.4247        .77977E-03   -1.5243    
  21  norm          12.848        13.786        .11180E-03   -1.4991    
  22  norm          35.327        23.984        .67430E-04   -1.4519    
  23  norm          .10003E-03    68.027        .36128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.844        8.4139        .12170E-03   -1.5049    
  26  Prefactor     .10000E-03    5.6644        .16857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2527        .22185        .22069E-03   -.84991    
  29  Prefactor     .54723        .20576        .31956E-03   -1.0986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21496e-09
Minuit parameter uncertainties:
  1  2.9655
  2  0.00093998
  3  4.04093
  4  2.10104
  5  3.13631
  6  4.13476
  7  0.15966
  8  4.99641
  9  0.000751095
  10  13.8403
  11  29.4775
  12  0.000151639
  13  0.000240287
  14  6.75053
  15  6.71394e-06
  16  3.71505e-05
  17  13.6377
  18  41.3633
  19  4.7943
  20  8.4265
  21  13.7896
  22  23.9901
  23  0.0030655
  24  0.000153876
  25  8.4148
  26  7.93885e-06
  27  6.33323e-05
  28  0.222015
  29  0.206041
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  7.394e+00  6.751e+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:  5.472e-01  2.060e-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.253e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/985041/likelihoodResults_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.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) = 5264.33705407
delta logL = 0.0330584213598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5264.33381978
delta logL = 0.0362927115902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6660       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9308       1.0000          .0000       10.000    
     3 'Normalizat'    1.2572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54439       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.

 FCN=   5264.334     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6685        9.0633        .13617E-03    .56440E-04
   2  Index         1.9314        .58361        .76831E-02    .23577E-03
   3  Normalizat    1.2573        .20487        .22034E-03   -.51039E-04
   4  Prefactor     .54441        .20383        .32032E-03    .88729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.66852
  Index      = 1.93141
  Normalizat = 1.25729
  Prefactor  = 0.544412
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.334     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6685        8.8823        .54466E-05   -1.5119    
   2  Index         1.9314        .57201        .15366E-02   -.66076    
   3  Normalizat    1.2573        .20494        .44068E-04   -.84850    
   4  Prefactor     .54441        .20392        .12813E-04   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01611e-11
Minuit parameter uncertainties:
  1  8.88367
  2  0.574031
  3  0.205069
  4  0.204198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985041': 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): 0
logL (Free Index) = 5264.33381812
delta logL = 0.0362943697

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  8.669e+00  8.884e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.931e+00  5.740e-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:  5.444e-01  2.042e-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.257e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.93 +/- 0.57
Photon Flux (Free Index): 2.51e-08 +/- 2.74e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.71e-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/985041/cmap_HighResolution_253843201_254102401_4FGL_J1254.5+2210_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='2.07e-05', photon_flux_error='2.65e-08', dlogl='3.63e-02', energy_flux='1.63e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-06 09:10:02.338088', photon_index_error2='0.57', photon_index2='1.93', ts='2.96', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='2.71e-05', EG='1.25', time_epoch_completed='1630944602.34', return_code='0', job_id='985041', GAL2='0.54', EG2='1.26', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.74e-08', ts2='3.03', photon_index='2.09' WHERE bin_id='56' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 985041: <4FGL_J1254.5+2210_daily_bin56> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin56> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:32 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:33 2021
Terminated at Mon Sep  6 09:10:03 2021
Results reported at Mon Sep  6 09:10:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin56 193.637 22.1808 253843201 254102401 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 :                                   727.21 sec.
    Max Memory :                                 1112 MB
    Average Memory :                             296.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

