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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin794
RA = 193.637, Dec = 22.1808
tmin = 445132801, tmax = 445392001
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='989511', job_status='RUN', time_executed='2021-09-06 09:10:34.740125', time_epoch_executed='1630944634.74' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989511

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989511/ft1_4FGL_J1254.5+2210_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989511/ft1_4FGL_J1254.5+2210_daily_bin794.fits outfile=/scratch/kocevski/989511/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin794.fits ra=193.637 dec=22.1808 rad=12.0 tmin=445132801.0 tmax=445392001.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.60
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989511/ft1_filtered_4FGL_J1254.5+2210_daily_bin794.fits" evtable="EVENTS" scfile=/scratch/kocevski/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits sctable="SC_DATA" outfile=/scratch/kocevski/989511/ltcube_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.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/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits
.....................!
real 12.34
user 12.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989511/ft1_filtered_4FGL_J1254.5+2210_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/989511/ltcube_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.fits outfile=/scratch/kocevski/989511/expmap_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.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/989511/ltcube_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.fits
.....................!
real 191.76
user 185.81
sys 5.14

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/989511/ft1_filtered_4FGL_J1254.5+2210_daily_bin794.fits scfile=/scratch/kocevski/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits outfile=/scratch/kocevski/989511/cmap_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.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.64
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989511/ft1_filtered_4FGL_J1254.5+2210_daily_bin794.fits scfile=/scratch/kocevski/989511/ft2_4FGL_J1254.5+2210_daily_bin794.fits outfile=/scratch/kocevski/989511/cmap_HighResolution_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.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.62
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.1196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11265E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11567E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.292       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0862       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.908       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14876       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2104       1.0000         .10000E-03   10000.    
    20 'norm      '    13.599       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    25.848       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7475       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7204       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.3710       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78484       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=   6804.851     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3759 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0052        .48677E-07** at limit **
   2  Prefactor     .10000E-03    1.0128        .14273E-07** at limit **
   3  norm          9.1167        4.1040       -.46511E-06   -.12015E-02
   4  Prefactor     .10000E-03    1.7923        .43467E-06** at limit **
   5  Prefactor     .10000E-03    1.2364        .17540E-06** at limit **
   6  Prefactor     13.292        7.5232       -.48658E-07   -.13281E-03
   7  norm          1.0862        .32067        .16355E-07   -.71759E-03
   8  norm          5.8011        4.6982       -.41355E-07   -.13528E-03
   9  Prefactor     .10000E-03    5.3762       -.38383E-07** at limit **
  10  Prefactor     2.1939        6.7532        .41250E-05   -.69292E-04
  11  Prefactor     1.7702        77.899        .42198E-05   -.92116E-05
  12  Prefactor     22.773        72.095        .18229E-04    .53110E-06
  13  Prefactor     .10000E-03    11.724       -.69177E-06** at limit **
  14  Prefactor     .10000E-03    7.0575        .52175E-07** at limit **
  15  Prefactor     .10000E-03    3.9218        .17732E-07** at limit **
  16  norm          8.0472        5.6796       -.69134E-06   -.74807E-04
  17  Prefactor     .10659        9.9680        .23465E-05   -.41812E-03
  18  Prefactor     .10000E-03    21.195       -.13069E-06** at limit **
  19  norm          2.2101        2.3251        .42289E-08   -.31598E-04
  20  norm          13.600        5.3789       -.44224E-09   -.36550E-04
  21  norm          .10000E-03    5.5137       -.17603E-08** at limit **
  22  norm          25.848        21.297        .77714E-06   -.66166E-05
  23  norm          6.7471        7.0708        .38684E-06   -.31571E-04
  24  Prefactor     .10000E-03    10.574        .40387E-06** at limit **
  25  norm          4.7187        11.402        .15369E-06   -.18573E-04
  26  Prefactor     .10000E-03    13.040        .42143E-06** at limit **
  27  Prefactor     9.3687        14.679        .44423E-06   -.51238E-05
  28  Normalizat    1.2372        .18035       -.38153E-06   -.45767E-03
  29  Prefactor     .78499        .16645       -.15064E-05   -.36563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11671
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.2918
  norm       = 1.08618
  norm       = 5.8011
  Prefactor  = 0.0001
  Prefactor  = 2.19393
  Prefactor  = 1.77022
  Prefactor  = 22.7727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.04718
  Prefactor  = 0.10659
  Prefactor  = 0.0001
  norm       = 2.21011
  norm       = 13.5998
  norm       = 0.0001
  norm       = 25.8485
  norm       = 6.74713
  Prefactor  = 0.0001
  norm       = 4.71873
  Prefactor  = 0.0001
  Prefactor  = 9.36874
  Normalizat = 1.23718
  Prefactor  = 0.784989
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.851     FROM HESSE     STATUS=OK           565 CALLS     4324 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0930        .22799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0205        .81055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1167        3.8140        .10082E-03   -1.5104    
   4  Prefactor     .10000E-03    2.9086        .19998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1788        .17054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.292        7.5137        .10986E-03   -1.4979    
   7  norm          1.0862        .32083        .23880E-04   -1.5500    
   8  norm          5.8011        4.6918        .14907E-03   -1.5226    
   9  Prefactor     .10000E-03    5.3949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1939        6.7607        .13887E-02   -1.5412    
  11  Prefactor     1.7702        78.376        .31469E-03   -1.5442    
  12  Prefactor     22.773        71.454        .83690E-04   -1.4753    
  13  Prefactor     .10000E-03    11.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9350        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0472        5.6710        .14136E-03   -1.5141    
  17  Prefactor     .10659        16.791        .68086E-01   -1.5643    
  18  Prefactor     .10000E-03    21.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2101        2.3306        .12510E-03   -1.5411    
  20  norm          13.600        5.3748        .10862E-03   -1.4970    
  21  norm          .10000E-03    5.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.848        21.293        .78794E-04   -1.4691    
  23  norm          6.7471        7.0000        .77234E-03   -1.5188    
  24  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7187        11.303        .18521E-03   -1.5273    
  26  Prefactor     .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.3687        14.681        .65458E-03   -1.5096    
  28  Normalizat    1.2372        .21600        .24448E-03   -.85461    
  29  Prefactor     .78499        .19547        .29142E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79752e-10
Minuit parameter uncertainties:
  1  5.78338e-06
  2  1.19332e-06
  3  3.81415
  4  1.42412e-05
  5  0.000154038
  6  7.51428
  7  0.320833
  8  4.69209
  9  1.56608e-05
  10  6.76304
  11  23.5901
  12  71.7239
  13  3.16869e-06
  14  1.59248e-05
  15  1.33153e-06
  16  5.67136
  17  2.67511
  18  1.72709e-05
  19  2.33072
  20  5.37495
  21  4.59172e-06
  22  21.299
  23  7.00089
  24  5.95893e-06
  25  11.3084
  26  1.19746e-05
  27  14.6866
  28  0.216154
  29  0.195646
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.592e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.850e-01  1.956e-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.237e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/989511/likelihoodResults_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.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) = 6804.85184572
delta logL = -0.000663852549224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6804.8511819
delta logL = -2.96049620374e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0953       1.0000          .0000       10.000    
     3 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78501       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=   6804.851     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8631        .90712E-02** at limit **
   2  Index         2.1012        7.5295        .50000       -.62353E-05
   3  Normalizat    1.2372        .32906E-02    .55290E-01    .27947E-04
   4  Prefactor     .78499        .32170E-02    .65874E-01    .42168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10122
  Normalizat = 1.23718
  Prefactor  = 0.784989
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.851     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1012        5.8730        .50000       -.61843    
   3  Normalizat    1.2372        .11223E-01    .24448E-03   -.85461    
   4  Prefactor     .78499        .10962E-01    .29142E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.19559e-08
Minuit parameter uncertainties:
  1  7.9934e-05
  2  159.009
  3  0.0112228
  4  0.0109617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989511': 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) = 6804.85118185
delta logL = 2.03835952561e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.993e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.101e+00  1.590e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  7.850e-01  1.096e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.237e+00  1.122e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/989511/cmap_HighResolution_445132801_445392001_4FGL_J1254.5+2210_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-06 09:24:38.980048', job_id='989511', GAL2='0.78', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630945478.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='794' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:24:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 989511: <4FGL_J1254.5+2210_daily_bin794> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin794> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:10:16 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:10:17 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:10:17 2021
Terminated at Mon Sep  6 09:24:39 2021
Results reported at Mon Sep  6 09:24:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin794 193.637 22.1808 445132801 445392001 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 :                                   840.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

