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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1423
RA = 193.637, Dec = 22.1808
tmin = 608169601, tmax = 608428801
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='992835', job_status='RUN', time_executed='2021-09-06 09:23:24.463553', time_epoch_executed='1630945404.46' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992835/ft1_4FGL_J1254.5+2210_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992835/ft2_4FGL_J1254.5+2210_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992835/ft1_4FGL_J1254.5+2210_daily_bin1423.fits outfile=/scratch/kocevski/992835/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1423.fits ra=193.637 dec=22.1808 rad=12.0 tmin=608169601.0 tmax=608428801.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.68
user 3.41
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992835/ft1_filtered_4FGL_J1254.5+2210_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/992835/ft2_4FGL_J1254.5+2210_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/992835/ltcube_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.fits outfile=/scratch/kocevski/992835/expmap_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.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/992835/ltcube_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.fits
.....................!
real 191.01
user 185.83
sys 4.82

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992835/ft1_filtered_4FGL_J1254.5+2210_daily_bin1423.fits scfile=/scratch/kocevski/992835/ft2_4FGL_J1254.5+2210_daily_bin1423.fits outfile=/scratch/kocevski/992835/cmap_HighResolution_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35801       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13975E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86166       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .80856E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11855E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8420       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.517       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.3813       1.0000         .10000E-03   10000.    
    20 'norm      '    8.1287       1.0000         .10000E-03   10000.    
    21 'norm      '    .11046E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.7574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88073E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.439       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96531       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=   5498.087     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3763 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35987        2.0638        .11991E-05   -.22877E-03
   2  Prefactor     .10000E-03    1.5841       -.80386E-07** at limit **
   3  norm          2.7007        2.2560       -.28972E-07   -.41070E-04
   4  Prefactor     1.4967        1.3995       -.30048E-07   -.37669E-04
   5  Prefactor     .86229        2.0311        .45422E-06   -.15442E-03
   6  Prefactor     .10000E-03    2.7670        .79749E-07** at limit **
   7  norm          .80881E-01    .13595        .81511E-07    .57877E-03
   8  norm          4.4370        3.5602        .13044E-07   -.75047E-04
   9  Prefactor     .10000E-03    13.568       -.93591E-06** at limit **
  10  Prefactor     1.9188        7.6909        .98937E-06   -.94809E-04
  11  Prefactor     4.5949        38.372       -.21296E-05   -.87237E-04
  12  Prefactor     .10000E-03    28.942        .26567E-05** at limit **
  13  Prefactor     .10000E-03    26.778       -.29519E-05** at limit **
  14  Prefactor     .10000E-03    6.2603        .69284E-06** at limit **
  15  Prefactor     9.8363        17.540        .28049E-05    .26029E-03
  16  norm          8.1054        4.9114        .94090E-07   -.67339E-04
  17  Prefactor     18.523        17.749       -.15240E-05   -.35516E-03
  18  Prefactor     .10000E-03    18.409        .87381E-06** at limit **
  19  norm          6.3827        4.7949        .12210E-06    .64389E-04
  20  norm          8.1243        4.5231        .52128E-07    .52710E-04
  21  norm          .10000E-03    6.1404       -.48424E-06** at limit **
  22  norm          .10000E-03    9.9962        .65942E-06** at limit **
  23  norm          6.7514        8.2806        .33566E-05   -.52934E-03
  24  Prefactor     .10029E-03    25.557       -.22398E-06** at limit **
  25  norm          .10000E-03    10.435       -.19483E-05** at limit **
  26  Prefactor     33.435        19.843        .96490E-06    .29578E-03
  27  Prefactor     .10000E-03    7.5973       -.24759E-06** at limit **
  28  Normalizat    1.0741        .19488       -.15288E-05   -.59020E-05
  29  Prefactor     .96532        .18816       -.22459E-06   -.45175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.359874
  Prefactor  = 0.0001
  norm       = 2.70066
  Prefactor  = 1.49666
  Prefactor  = 0.862291
  Prefactor  = 0.0001
  norm       = 0.0808806
  norm       = 4.43704
  Prefactor  = 0.0001
  Prefactor  = 1.9188
  Prefactor  = 4.59488
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 9.83625
  norm       = 8.10544
  Prefactor  = 18.5233
  Prefactor  = 0.0001
  norm       = 6.38275
  norm       = 8.12426
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.75142
  Prefactor  = 0.000100288
  norm       = 0.000100002
  Prefactor  = 33.4351
  Prefactor  = 0.0001
  Normalizat = 1.07415
  Prefactor  = 0.965319
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.087     FROM HESSE     STATUS=OK           569 CALLS     4332 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35987        2.0433        .20545E-03   -1.5588    
   2  Prefactor     .10000E-03    2.5735        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7007        2.2523        .97035E-04   -1.5379    
   4  Prefactor     1.4967        1.4010        .81620E-04   -1.5463    
   5  Prefactor     .86229        1.9755        .14876E-03   -1.5522    
   6  Prefactor     .10000E-03    5.1475        .23643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80881E-01    .11873        .34273E-03   -1.5651    
   8  norm          4.4370        3.5109        .11951E-03   -1.5287    
   9  Prefactor     .10000E-03    13.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9188        7.6182        .29923E-03   -1.5431    
  11  Prefactor     4.5949        38.865        .18782E-03   -1.5279    
  12  Prefactor     .10000E-03    29.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3537        .18137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8363        17.889        .12773E-03   -1.5081    
  16  norm          8.1054        4.9093        .12205E-03   -1.5138    
  17  Prefactor     18.523        18.188        .93077E-04   -1.4847    
  18  Prefactor     .10000E-03    18.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.3827        4.7990        .13356E-03   -1.5203    
  20  norm          8.1243        4.5013        .11086E-03   -1.5138    
  21  norm          .10000E-03    6.1937        .17856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.7514        8.6085        .77177E-03   -1.5188    
  24  Prefactor     .10029E-03    27.740        .12476       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     33.435        19.968        .69296E-04   -1.4551    
  27  Prefactor     .10000E-03    7.6114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0741        .22131        .24284E-03   -.90586    
  29  Prefactor     .96532        .21456        .26048E-03   -.93895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76881e-09
Minuit parameter uncertainties:
  1  1.71489
  2  9.09321e-06
  3  2.25242
  4  1.40101
  5  1.9756
  6  8.43376e-07
  7  0.118727
  8  3.51109
  9  5.35702e-05
  10  7.62206
  11  26.7499
  12  0.000583524
  13  0.000738579
  14  6.41384e-05
  15  17.8989
  16  4.90957
  17  18.1934
  18  0.000151354
  19  4.79928
  20  4.50144
  21  4.50846e-05
  22  7.9882e-05
  23  8.61009
  24  0.0056571
  25  0.000260115
  26  19.9723
  27  4.04063e-05
  28  0.221502
  29  0.214747
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.414e-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:  9.653e-01  2.147e-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.074e+00  2.215e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992835/likelihoodResults_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.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) = 5498.08729621
delta logL = -0.000750298099774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5498.08654591
delta logL = -3.73802322429e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1006       1.0000          .0000       10.000    
     3 'Normalizat'    1.0742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96533       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=   5498.087     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.024        .90712E-02** at limit **
   2  Index         2.1121        8.0750        .50000       -.14749E-04
   3  Normalizat    1.0741        .15103E-01    .39165E-01   -.87295E-04
   4  Prefactor     .96532        .15521E-01    .45832E-01   -.50772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11209
  Normalizat = 1.07414
  Prefactor  = 0.96532
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.087     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    952.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1121        5.3623        .50000       -.61576    
   3  Normalizat    1.0741        .74427E-01    .24284E-03   -.90586    
   4  Prefactor     .96532        .76445E-01    .26048E-03   -.93895    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17278e-08
Minuit parameter uncertainties:
  1  0.000575529
  2  50.6047
  3  0.0744339
  4  0.0764532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992835': 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) = 5498.08654583
delta logL = 8.38908817968e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.755e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.112e+00  5.060e+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:  9.653e-01  7.645e-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.074e+00  7.443e-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/992835/cmap_HighResolution_608169601_608428801_4FGL_J1254.5+2210_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-06 09:36:26.784428', job_id='992835', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630946186.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1423' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 992835: <4FGL_J1254.5+2210_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1423 193.637 22.1808 608169601 608428801 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 :                                   744.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

