/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 44 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin335
RA = 193.637, Dec = 22.1808
tmin = 326160001, tmax = 326419201
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='986749', job_status='RUN', time_executed='2021-09-06 09:02:03.814423', time_epoch_executed='1630944123.81' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986749/ft1_4FGL_J1254.5+2210_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986749/ft2_4FGL_J1254.5+2210_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986749/ft1_4FGL_J1254.5+2210_daily_bin335.fits outfile=/scratch/kocevski/986749/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin335.fits ra=193.637 dec=22.1808 rad=12.0 tmin=326160001.0 tmax=326419201.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.48
user 3.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986749/ft1_filtered_4FGL_J1254.5+2210_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/986749/ft2_4FGL_J1254.5+2210_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/986749/ltcube_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.fits outfile=/scratch/kocevski/986749/expmap_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.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/986749/ltcube_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.fits
.....................!
real 190.41
user 185.04
sys 4.99

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/986749/ft1_filtered_4FGL_J1254.5+2210_daily_bin335.fits scfile=/scratch/kocevski/986749/ft2_4FGL_J1254.5+2210_daily_bin335.fits outfile=/scratch/kocevski/986749/cmap_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986749/ft1_filtered_4FGL_J1254.5+2210_daily_bin335.fits scfile=/scratch/kocevski/986749/ft2_4FGL_J1254.5+2210_daily_bin335.fits outfile=/scratch/kocevski/986749/cmap_HighResolution_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8950       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8374       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    96.101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84750E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9184       1.0000         .10000E-03   10000.    
    20 'norm      '    .27717E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.0851       1.0000         .10000E-03   10000.    
    22 'norm      '    19.569       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2803       1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.863       1.0000         .10000E-03   10000.    
    25 'norm      '    14.664       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.095       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5512       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .44091       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=   6113.299     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3751 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1994       -.89452E-08** at limit **
   2  Prefactor     .10000E-03    1.1461       -.86802E-08** at limit **
   3  norm          11.951        4.1473       -.25267E-07   -.30478E-04
   4  Prefactor     .10000E-03    2.5364        .11818E-06** at limit **
   5  Prefactor     .10000E-03    1.2539       -.14461E-08** at limit **
   6  Prefactor     3.8953        4.7006        .11369E-06    .35027E-05
   7  norm          1.8374        .38706        .14972E-07    .11349E-03
   8  norm          .10000E-03    1.3473       -.94296E-08** at limit **
   9  Prefactor     .10000E-03    3.4799        .18209E-08** at limit **
  10  Prefactor     7.4870        7.8635        .35538E-07   -.15970E-05
  11  Prefactor     43.044        25.820        .33498E-07    .22846E-04
  12  Prefactor     .10000E-03    24.713        .40031E-07** at limit **
  13  Prefactor     96.074        62.633        .22160E-05    .80486E-04
  14  Prefactor     .10000E-03    5.3835        .10949E-07** at limit **
  15  Prefactor     .10006E-03    10.194       -.67507E-06** at limit **
  16  norm          2.7582        3.2903        .17458E-07    .50442E-04
  17  Prefactor     23.611        15.857       -.85922E-06    .18732E-03
  18  Prefactor     .10000E-03    8.3404       -.17089E-07** at limit **
  19  norm          3.9181        4.8621        .22625E-05    .26717E-03
  20  norm          .10000E-03    2.6871       -.11469E-05** at limit **
  21  norm          6.0812        6.1288       -.99586E-07    .28900E-03
  22  norm          19.573        34.237       -.15386E-05    .21885E-05
  23  norm          5.2791        9.2433       -.38235E-07   -.76450E-05
  24  Prefactor     41.860        40.716        .36575E-06    .90737E-06
  25  norm          14.666        11.934        .26913E-06   -.14780E-05
  26  Prefactor     28.096        19.879        .32276E-06    .19425E-05
  27  Prefactor     .10000E-03    7.1685       -.55960E-07** at limit **
  28  Normalizat    1.5511        .21101       -.88813E-06    .16586E-03
  29  Prefactor     .44103        .20322        .66893E-06    .94360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89525
  norm       = 1.83742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.48703
  Prefactor  = 43.0435
  Prefactor  = 0.0001
  Prefactor  = 96.0737
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  norm       = 2.75818
  Prefactor  = 23.6107
  Prefactor  = 0.0001
  norm       = 3.91809
  norm       = 0.000100005
  norm       = 6.08116
  norm       = 19.5731
  norm       = 5.27914
  Prefactor  = 41.8602
  norm       = 14.6658
  Prefactor  = 28.0958
  Prefactor  = 0.0001
  Normalizat = 1.55107
  Prefactor  = 0.441026
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.299     FROM HESSE     STATUS=OK           563 CALLS     4314 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2110        .83601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1570        .81725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.951        4.1011        .89991E-04   -1.5016    
   4  Prefactor     .10000E-03    2.5842        .24051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3005        .17065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8953        4.6903        .18015E-03   -1.5313    
   7  norm          1.8374        .38831        .10565E-03   -1.5437    
   8  norm          .10000E-03    1.3508        .88607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4818        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4870        7.8635        .14656E-03   -1.5161    
  11  Prefactor     43.044        25.817        .61105E-04   -1.4395    
  12  Prefactor     .10000E-03    24.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     96.074        63.915        .20501E-03   -1.3744    
  14  Prefactor     .10000E-03    5.4168        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    14.980        .70586E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7582        3.2800        .15009E-03   -1.5376    
  17  Prefactor     23.611        15.732        .82431E-04   -1.4736    
  18  Prefactor     .10000E-03    8.3448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9181        4.9435        .89670E-03   -1.5312    
  20  norm          .10000E-03    8.0636        .20732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0812        5.5205        .16276E-03   -1.5215    
  22  norm          19.573        34.150        .90541E-04   -1.4823    
  23  norm          5.2791        9.1646        .17491E-03   -1.5248    
  24  Prefactor     41.860        40.677        .61957E-04   -1.4413    
  25  norm          14.666        11.877        .10459E-03   -1.4942    
  26  Prefactor     28.096        19.940        .75583E-04   -1.4647    
  27  Prefactor     .10000E-03    7.1726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5511        .23692        .23001E-03   -.76353    
  29  Prefactor     .44103        .22350        .39276E-03   -1.1476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20096e-10
Minuit parameter uncertainties:
  1  2.41834e-07
  2  2.40334e-07
  3  4.10119
  4  9.61282e-06
  5  2.71744e-07
  6  4.69071
  7  0.38831
  8  4.94979e-07
  9  1.26629e-08
  10  7.8646
  11  25.824
  12  9.52156e-07
  13  63.9605
  14  2.51614e-07
  15  0.00185142
  16  3.28026
  17  15.7346
  18  1.63152e-06
  19  4.94402
  20  0.000392633
  21  5.52093
  22  34.1838
  23  9.16703
  24  40.704
  25  11.8791
  26  19.9446
  27  6.60732e-06
  28  0.237087
  29  0.223947
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.516e-07  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:  4.410e-01  2.239e-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.551e+00  2.371e-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: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986749/likelihoodResults_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.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) = 6113.29959846
delta logL = -0.00087801436257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6113.2987205
delta logL = -5.55755832465e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0924       1.0000          .0000       10.000    
     3 'Normalizat'    1.5510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44109       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=   6113.299     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2607        .90712E-02** at limit **
   2  Index         2.0956        5.8159        .50000       -.46766E-05
   3  Normalizat    1.5511        .37822E-02    .52027E-01   -.21792E-04
   4  Prefactor     .44103        .36750E-02    .88625E-01    .34705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09556
  Normalizat = 1.55107
  Prefactor  = 0.441026
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.299     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .60E-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.434        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0956        5.4296        .50000       -.61982    
   3  Normalizat    1.5511        .14185E-01    .23001E-03   -.76353    
   4  Prefactor     .44103        .13742E-01    .39276E-03   -1.1476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.03235e-08
Minuit parameter uncertainties:
  1  2.96347e-05
  2  211.371
  3  0.014185
  4  0.0137424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986749': 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) = 6113.29872044
delta logL = 7.7989170677e-09

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.963e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.096e+00  2.114e+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:  4.410e-01  1.374e-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.551e+00  1.418e-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/986749/cmap_HighResolution_326160001_326419201_4FGL_J1254.5+2210_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-06 09:15:33.808640', job_id='986749', GAL2='0.44', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630944933.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='7.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='335' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 986749: <4FGL_J1254.5+2210_daily_bin335> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin335> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:00:58 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:00:59 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:00:59 2021
Terminated at Mon Sep  6 09:15:34 2021
Results reported at Mon Sep  6 09:15:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin335 193.637 22.1808 326160001 326419201 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 :                                   805.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            876 sec.

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

