aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 159 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1714
RA = 193.637, Dec = 22.1808
tmin = 683596801, tmax = 683856001
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='123385', job_status='RUN', time_executed='2022-09-16 17:04:49.064168', time_epoch_executed='1663373089.06' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123385/ft1_4FGL_J1254.5+2210_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123385/ft1_4FGL_J1254.5+2210_daily_bin1714.fits outfile=/scratch/kocevski/123385/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1714.fits ra=193.637 dec=22.1808 rad=12.0 tmin=683596801.0 tmax=683856001.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.53
user 3.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.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/123385/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.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.16

Number of photons that the gtmktime cut: 534

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/123385/ltcube_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.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/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits
.....................!
real 14.89
user 14.40
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/123385/ltcube_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits outfile=/scratch/kocevski/123385/expmap_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.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/123385/ltcube_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits
.....................!
real 192.42
user 186.27
sys 5.51

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/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.fits scfile=/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits outfile=/scratch/kocevski/123385/cmap_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.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.36
sys 0.17

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.fits', '/scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits', expMap='/scratch/kocevski/123385/expmap_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits', expCube='/scratch/kocevski/123385/ltcube_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123385/Model_4FGL_J1254.5+2210_daily_bin1714.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  0.000e+00  1.000e+06 ( 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/123385/ft1_filtered_4FGL_J1254.5+2210_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/123385/ft2_4FGL_J1254.5+2210_daily_bin1714.fits
Exposure map: /scratch/kocevski/123385/expmap_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits
Exposure cube: /scratch/kocevski/123385/ltcube_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123385/Model_4FGL_J1254.5+2210_daily_bin1714.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) = 5880.30452067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3393       1.0000          .0000       .10000E+07
     2 'Prefactor '    .91721E-04   1.0000          .0000       .10000E+07
     3 'norm      '    7.3124       1.0000          .0000       .10000E+07
     4 'Prefactor '    .52058E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .29214E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4841       1.0000          .0000       .10000E+07
     7 'norm      '    .65448E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .32198E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    22.683       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.1759       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2346       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.550       1.0000          .0000       .10000E+07
    13 'norm      '    .58587E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .91558E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .40781E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.8133       1.0000          .0000       .10000E+07
    17 'norm      '    16.589       1.0000          .0000       .10000E+07
    18 'norm      '    8.8475       1.0000          .0000       .10000E+07
    19 'norm      '    .96504E-04   1.0000          .0000       .10000E+07
    20 'norm      '    1.7490       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.2750       1.0000          .0000       .10000E+07
    22 'norm      '    .69585E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .90107E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .81966E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5880.168     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1790 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3421        2.3405        .54104E-06    .12637E-02
   2  Prefactor      .0000        1.5927       -.35489E-07** at limit **
   3  norm          7.3050        3.1650        .54915E-07   -.21600E-02
   4  Prefactor      .0000        .54102        .17255E-06** at limit **
   5  Prefactor      .0000        .76844        .37348E-06** at limit **
   6  Prefactor     4.4794        4.2155        .11480E-06   -.56961E-03
   7  norm           .0000        .11582       -.65021E-07** at limit **
   8  norm           .0000        1.2911       -.37468E-06** at limit **
   9  Prefactor     22.472        2.1413       -.38830E-07    .41241E-02
  10  Prefactor     6.2564        9.2079        .96021E-06    .10887    
  11  Prefactor     3.2522        8.4037        .49060E-07   -.31143E-02
  12  Prefactor     17.635        1.8065       -.39123E-07   -.33111E-01
  13  norm          .11102E-09    4.0166       -.97266E-06** at limit **
  14  Prefactor     .14660E-06    9.8888       -.11336E-05** at limit **
  15  Prefactor     .24936E-06    15.524       -.29694E-06** at limit **
  16  norm          1.8203        2.3097        .42431E-06    .14630E-02
  17  norm          16.702        4.9152        .42505E-07   -.29391E-01
  18  norm          8.6439        5.0824        .17746E-06    .43890E-01
  19  norm          .83822E-06    6.8188        .68705E-08** at limit **
  20  norm          1.7597        4.1008        .98987E-09    .41246E-03
  21  Prefactor     4.5847        35.740        .30157E-05   -.42501E-01
  22  norm          .55511E-10    3.1881       -.86234E-07** at limit **
  23  Prefactor     .83400E-06    15.712       -.17861E-05** at limit **
  24  Prefactor     .37487E-06    7.1646        .22504E-06** at limit **
  25  Normalizat    1.1588        .21414        .51021E-05    .43214E-04
  26  Prefactor     .93772        .22001       -.59272E-05    .16422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34215
  Prefactor  = 0
  norm       = 7.30501
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.47943
  norm       = 0
  norm       = 0
  Prefactor  = 22.4719
  Prefactor  = 6.25636
  Prefactor  = 3.25215
  Prefactor  = 17.6352
  norm       = 1.11022e-10
  Prefactor  = 1.46605e-07
  Prefactor  = 2.49356e-07
  norm       = 1.82032
  norm       = 16.7021
  norm       = 8.64391
  norm       = 8.38218e-07
  norm       = 1.7597
  Prefactor  = 4.58474
  norm       = 5.55112e-11
  Prefactor  = 8.34e-07
  Prefactor  = 3.74867e-07
  Normalizat = 1.1588
  Prefactor  = 0.93772
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.168     FROM HESSE     STATUS=OK           512 CALLS     2302 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3421        2.3741        .94696E-03   -1.5685    
   2  Prefactor      .0000        1.5862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3050        3.1639        .37068E-03   -1.5654    
   4  Prefactor      .0000        .54410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .76618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4794        4.2195        .47524E-03   -1.5666    
   7  norm           .0000        .78279E-01    .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.2934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.472        15.522        .21002E-03   -1.5613    
  10  Prefactor     6.2564        11.683        .40373E-03   -1.5658    
  11  Prefactor     3.2522        8.4597        .56296E-03   -1.5672    
  12  Prefactor     17.635        15.746        .23880E-03   -1.5624    
  13  norm          .11102E-09    3.9999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14660E-06    10.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .24936E-06    24.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8203        2.3318        .77545E-03   -1.5681    
  17  norm          16.702        8.7295        .24564E-03   -1.5626    
  18  norm          8.6439        14.687        .33673E-03   -1.5649    
  19  norm          .83822E-06    8.8628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7597        4.1355        .79257E-03   -1.5681    
  21  Prefactor     4.5847        78.137        .48704E-03   -1.5665    
  22  norm          .55511E-10    3.1874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .83400E-06    26.557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .37487E-06    7.7965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1588        .18368        .53535E-01   -.87886    
  26  Prefactor     .93772        .18668        .45479E-01   -.94835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16521e-06
Minuit parameter uncertainties:
  1  2.37412
  2  4.24912e-06
  3  3.16393
  4  7.99228e-07
  5  9.54466e-07
  6  4.21953
  7  2.48226e-07
  8  6.99845e-06
  9  15.5224
  10  11.6826
  11  8.4597
  12  15.7459
  13  4.14284e-05
  14  0.00250141
  15  0.00499014
  16  2.33185
  17  8.7295
  18  14.6873
  19  0.00545131
  20  4.1355
  21  37.855
  22  2.30154e-05
  23  0.0094124
  24  0.00341924
  25  0.183784
  26  0.186811
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.252e+00  8.460e+00  0.000e+00  1.000e+06 ( 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.377e-01  1.868e-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.159e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/123385/likelihoodResults_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.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) = 5880.16832449
delta logL = 0.000135218432661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 5879.98462932
delta logL = 0.183830389443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66613E-08   1.0000          .0000       .10000E+07
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5879.985     FROM MIGRAD    STATUS=FAILED       665 CALLS     1404 TOTAL
                     EDM=   .32E+00    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67168E-08    .19429E-08     .0000    ** at limit **
   2  Index         9.9975        .19761         .0000        .27083E-01
   3  Normalizat    1.1243        .15332E-02     .0000        .18565E-01
   4  Prefactor     .97151        .15921E-02     .0000       -.20262E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5879.985     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS     1528 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-08    .19429E-08    .11169E-08** at limit **
   2  Index         9.9998        .19761        .19623E-01    .27083E-01
   3  Normalizat    1.1243        .15332E-02    .26911E-06    .18565E-01
   4  Prefactor     .97151        .15921E-02    .18580E-05   -.20262E-01
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5879.985     FROM MIGRAD    STATUS=FAILED        30 CALLS     1558 TOTAL
                     EDM=   .33E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-08    .61062E-09     .0000    ** at limit **
   2  Index         9.9998        .19673E-01     .0000        .74001E-02
   3  Normalizat    1.1243        .48371E-03     .0000        .11554E-01
   4  Prefactor     .97151        .50240E-03     .0000       -.17997E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-09
  Index      = 9.99982
  Normalizat = 1.12432
  Prefactor  = 0.971513
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.985     FROM HESSE     STATUS=NOT POSDEF    27 CALLS     1585 TOTAL
                     EDM=   .65E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-08    .61062E-09    .43492E-02   -18242.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9998        .19673E-01    .50000       -.65964E+06
   3  Normalizat    1.1243        .48371E-03    .47972E-04   -19.739    
   4  Prefactor     .97151        .50240E-03    .52897E-04   -14.771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0651291
Minuit parameter uncertainties:
  1  6.02301e-10
  2  0.00373924
  3  0.000483711
  4  0.000502402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123385': 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): 1
logL (Free Index) = 5879.98462919
delta logL = 0.18383051315

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.661e-09  6.023e-10  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  1.000e+01  3.739e-03  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.715e-01  5.024e-04  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.124e+00  4.837e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/123385/cmap_HighResolution_683596801_683856001_4FGL_J1254.5+2210_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2022-09-16 17:16:20.019160', job_id='123385', GAL2='0.97', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1663373780.02', return_code2='1', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.84e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1714' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:16:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 123385: <4FGL_J1254.5+2210_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1714> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:23 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:02:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:02:01 2022
Terminated at Fri Sep 16 17:16:20 2022
Results reported at Fri Sep 16 17:16:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1714 193.637 22.1808 683596801 683856001 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            957 sec.

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

