/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7538
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1585
RA = 193.637, Dec = 22.1808
tmin = 650160001, tmax = 650419201
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='993066', job_status='RUN', time_executed='2021-09-06 09:22:28.960180', time_epoch_executed='1630945348.96' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993066

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993066/ft1_4FGL_J1254.5+2210_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993066/ft2_4FGL_J1254.5+2210_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993066/ft1_4FGL_J1254.5+2210_daily_bin1585.fits outfile=/scratch/kocevski/993066/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1585.fits ra=193.637 dec=22.1808 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.36
user 4.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993066/ft1_filtered_4FGL_J1254.5+2210_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/993066/ft2_4FGL_J1254.5+2210_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/993066/ltcube_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.fits outfile=/scratch/kocevski/993066/expmap_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.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/993066/ltcube_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.fits
.....................!
real 189.78
user 185.23
sys 4.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993066/ft1_filtered_4FGL_J1254.5+2210_daily_bin1585.fits scfile=/scratch/kocevski/993066/ft2_4FGL_J1254.5+2210_daily_bin1585.fits outfile=/scratch/kocevski/993066/cmap_HighResolution_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53563E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6374       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22358       1.0000         .10000E-03   10000.    
     8 'norm      '    59.547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .81910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .90745E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.6735       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0550       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.839       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .38667       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83592       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=   6388.286     FROM MIGRAD    STATUS=CONVERGED   1316 CALLS     3778 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    30.328        .20731E-02** at limit **
   2  Prefactor     5.6369        4.6865        .73736E-03    .41913E-03
   3  norm          9.6532        4.3109        .10299E-03   -.15344E-04
   4  Prefactor     4.6641        2.8470        .97934E-04   -.35870E-04
   5  Prefactor     .10000E-03    1.1030        .81463E-03** at limit **
   6  Prefactor     .10000E-03    2.2435        .11679E-02** at limit **
   7  norm          .22357        .21374        .36632E-03    .81547E-03
   8  norm          59.548        9.9467        .51993E-04   -.48324E-04
   9  Prefactor     11.376        9.9265        .11878E-03    .41737E-03
  10  Prefactor     .10000E-03    3.5095        .14617E-02** at limit **
  11  Prefactor     .10000E-03    24.663        .18142E-02** at limit **
  12  Prefactor     .10000E-03    31.303        .18142E-02** at limit **
  13  Prefactor     .10000E-03    15.477        .18142E-02** at limit **
  14  Prefactor     .78718        10.895        .24730E-02    .67504E-04
  15  Prefactor     10.494        9.3213        .12366E-03   -.67111E-04
  16  norm          4.1392        6.7151        .19780E-03   -.41688E-03
  17  Prefactor     .82906        28.475        .44572E-02   -.21549E-03
  18  Prefactor     .10074E-03    47.783        .12893    ** at limit **
  19  norm          .10000E-03    1.0785        .80965E-03** at limit **
  20  norm          8.6706        7.7214        .13611E-03   -.30930E-03
  21  norm          4.0582        9.1795        .20023E-03    .22484E-04
  22  norm          .10000E-03    4.7533        .17018E-02** at limit **
  23  norm          .10000E-03    1.7260        .10245E-02** at limit **
  24  Prefactor     17.839        23.496        .94828E-04   -.34767E-05
  25  norm          .10000E-03    3.8831        .15331E-02** at limit **
  26  Prefactor     .37517        20.661        .97877E-01   -.16649E-03
  27  Prefactor     .10000E-03    35.796        .18142E-02** at limit **
  28  Normalizat    1.2326        .23611        .25566E-03   -.89380E-05
  29  Prefactor     .83600        .21974        .29645E-03   -.14147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Prefactor  = 5.63692
  norm       = 9.65318
  Prefactor  = 4.66414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.223575
  norm       = 59.5484
  Prefactor  = 11.3756
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.787183
  Prefactor  = 10.4942
  norm       = 4.13923
  Prefactor  = 0.829057
  Prefactor  = 0.00010074
  norm       = 0.0001
  norm       = 8.6706
  norm       = 4.05821
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8385
  norm       = 0.0001
  Prefactor  = 0.375168
  Prefactor  = 0.000100002
  Normalizat = 1.23258
  Prefactor  = 0.835995
 **********
 **   18 **HESSE 
 **********

 FCN=   6388.286     FROM HESSE     STATUS=OK           549 CALLS     4327 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    30.685        .41461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6369        4.6680        .29494E-04   -1.5233    
   3  norm          9.6532        4.3110        .41194E-05   -1.5086    
   4  Prefactor     4.6641        2.8471        .39174E-05   -1.5276    
   5  Prefactor     .10000E-03    1.1030        .16293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2435        .23357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22357        .21361        .14653E-04   -1.5613    
   8  norm          59.548        9.9453        .20797E-05   -1.4163    
   9  Prefactor     11.376        9.9260        .23756E-04   -1.5033    
  10  Prefactor     .10000E-03    3.5096        .29233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .78718        10.866        .98920E-04   -1.5531    
  15  Prefactor     10.494        9.3036        .49465E-05   -1.5060    
  16  norm          4.1392        6.7084        .79119E-05   -1.5301    
  17  Prefactor     .82906        28.347        .17829E-03   -1.5526    
  18  Prefactor     .10074E-03    47.365        .12959       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0786        .16193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.6706        7.7306        .54443E-05   -1.5119    
  21  norm          4.0582        9.1910        .80093E-05   -1.5305    
  22  norm          .10000E-03    4.7533        .34036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7260        .20490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.839        23.496        .37931E-05   -1.4863    
  25  norm          .10000E-03    3.8838        .30662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .37517        19.957        .10028       -1.5585    
  27  Prefactor     .10000E-03    35.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2326        .23611        .10226E-04   -.85602    
  29  Prefactor     .83600        .21989        .11858E-04   -.98415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83932e-09
Minuit parameter uncertainties:
  1  0.00262477
  2  4.66835
  3  4.31112
  4  2.84719
  5  1.29788e-06
  6  2.78624e-06
  7  0.213611
  8  9.94562
  9  9.92747
  10  2.22517e-06
  11  0.000268033
  12  0.000201794
  13  4.99336e-05
  14  5.85021
  15  9.3049
  16  6.70966
  17  9.70004
  18  0.0118511
  19  1.20784e-06
  20  7.73148
  21  9.1942
  22  2.9099e-06
  23  1.4751e-06
  24  23.5084
  25  3.69276e-06
  26  5.47371
  27  0.000574894
  28  0.236316
  29  0.220122
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  7.872e-01  5.850e+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:  8.360e-01  2.201e-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.233e+00  2.363e-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: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993066/likelihoodResults_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.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) = 6388.27667434
delta logL = 0.00974192065496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6388.27655737
delta logL = 0.00985889277217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3402       1.0000          .0000       10.000    
     3 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83594       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=   6388.277     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      258 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79506        7.6224        .35686E-03    .19656E-04
   2  Index         2.3458        1.8184        .52068E-02    .53297E-05
   3  Normalizat    1.2312        .21990        .25578E-03    .50225E-05
   4  Prefactor     .83587        .21543        .29647E-03    .24235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.795059
  Index      = 2.34582
  Normalizat = 1.23123
  Prefactor  = 0.835871
 **********
 **   18 **HESSE 
 **********

 FCN=   6388.277     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79506        6.9443        .14274E-04   -1.5530    
   2  Index         2.3458        1.7412        .20827E-03   -.55959    
   3  Normalizat    1.2312        .22012        .10231E-04   -.85643    
   4  Prefactor     .83587        .21560        .11859E-04   -.98419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42152e-12
Minuit parameter uncertainties:
  1  4.69987
  2  1.7944
  3  0.22029
  4  0.215822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993066': 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) = 6388.27654678
delta logL = 0.00986947866477

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  7.951e-01  4.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.346e+00  1.794e+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:  8.359e-01  2.158e-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.231e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/993066/cmap_HighResolution_650160001_650419201_4FGL_J1254.5+2210_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-06 09:36:12.515694', job_id='993066', GAL2='0.84', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630946172.52', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.87e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1585' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 993066: <4FGL_J1254.5+2210_daily_bin1585> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1585> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:52 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:54 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:20:54 2021
Terminated at Mon Sep  6 09:36:13 2021
Results reported at Mon Sep  6 09:36:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1585 193.637 22.1808 650160001 650419201 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 :                                   813.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

