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


Performing analysis on: 4FGL_J1254.5+2210_weekly_bin760
RA = 193.637, Dec = 22.1808
tmin = 698630401, tmax = 699235201
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='22449', job_status='RUN', time_executed='2023-02-28 01:12:34.043267', time_epoch_executed='1677575554.04' WHERE source_name='4FGL J1254.5+2210' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22449

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22449/ft1_4FGL_J1254.5+2210_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22449/ft1_4FGL_J1254.5+2210_weekly_bin760.fits outfile=/scratch/kocevski/22449/ft1_filteredMKT_4FGL_J1254.5+2210_weekly_bin760.fits ra=193.637 dec=22.1808 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.23
user 5.95
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.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/22449/ft1_filteredMKT_4FGL_J1254.5+2210_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/22449/ft1_filtered_4FGL_J1254.5+2210_weekly_bin760.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.54
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 598

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22449/ft1_filtered_4FGL_J1254.5+2210_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/22449/ltcube_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.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/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits
.....................!
real 33.96
user 33.23
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22449/ft1_filtered_4FGL_J1254.5+2210_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/22449/ltcube_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.fits outfile=/scratch/kocevski/22449/expmap_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.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/22449/ltcube_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.fits
.....................!
real 191.58
user 186.41
sys 4.29

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/22449/ft1_filtered_4FGL_J1254.5+2210_weekly_bin760.fits scfile=/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits outfile=/scratch/kocevski/22449/cmap_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.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.62
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22449/ft1_filtered_4FGL_J1254.5+2210_weekly_bin760.fits scfile=/scratch/kocevski/22449/ft2_4FGL_J1254.5+2210_weekly_bin760.fits outfile=/scratch/kocevski/22449/cmap_HighResolution_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.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.57
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37873E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .89133E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .11097E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8075       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.353       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44475E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .69000E-01   1.0000          .0000       .10000E+07
     8 'norm      '    21.098       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11768E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    38.506       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28795E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.0543       1.0000          .0000       .10000E+07
    13 'norm      '    .18493E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15387E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19071E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .58448E-04   1.0000          .0000       .10000E+07
    17 'norm      '    44.845       1.0000          .0000       .10000E+07
    18 'norm      '    .51418E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .60695E-02   1.0000          .0000       .10000E+07
    20 'norm      '    20.735       1.0000          .0000       .10000E+07
    21 'Prefactor '    .37390E-04   1.0000          .0000       .10000E+07
    22 'norm      '    4.6446       1.0000          .0000       .10000E+07
    23 'Prefactor '    .80195E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .23161E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .56031       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.7003       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=   6809.877     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1809 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9164        .26937E-07** at limit **
   2  Prefactor     .16653E-09    2.3088        .28873E-07** at limit **
   3  norm          .15488E-07    3.7030       -.22101E-05** at limit **
   4  Prefactor     3.8070        3.7429        .36577E-07   -.10087E-01
   5  Prefactor     10.319        5.6842       -.16989E-06   -.40814E-02
   6  Prefactor     .11091E-06    7.1504       -.12175E-05** at limit **
   7  norm          .69948E-01    1.1360        .15407E-06** at limit **
   8  norm          21.040        5.0005        .73343E-06   -.46373E-01
   9  Prefactor     .25535E-08    5.0035       -.35611E-06** at limit **
  10  Prefactor     39.026        1.9533        .46783E-07   -.14481E-01
  11  Prefactor     .44409E-09    7.0552        .63362E-06** at limit **
  12  Prefactor     5.0633        1.5637       -.16722E-06    .43805E-02
  13  norm           .0000        1.7492        .15513E-06** at limit **
  14  Prefactor     .55511E-10    13.305        .86182E-06** at limit **
  15  Prefactor     .22055E-06    9.5991        .25151E-05** at limit **
  16  norm          .11102E-09    2.4541       -.78070E-07** at limit **
  17  norm          44.869        6.7730       -.39129E-07    .33873E-02
  18  norm          .18541E-07    3.5801        .23709E-05** at limit **
  19  norm          .45242E-07    95.658       -.31681E-05** at limit **
  20  norm          20.750        5.0814        .53430E-07    .17517E-01
  21  Prefactor     .32896E-06    5.0171       -.20593E-06** at limit **
  22  norm          4.6527        4.7335        .23775E-06    .43872E-02
  23  Prefactor     .29421E-08    11.500        .82301E-06** at limit **
  24  Prefactor     .62950E-07    16.343       -.19691E-05** at limit **
  25  Normalizat    .55983        .23961        .45260E-05    .23216E-03
  26  Prefactor     1.7003        .24759       -.61859E-06    .48904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 1.54876e-08
  Prefactor  = 3.80697
  Prefactor  = 10.3191
  Prefactor  = 1.10911e-07
  norm       = 0.0699479
  norm       = 21.04
  Prefactor  = 2.55351e-09
  Prefactor  = 39.0255
  Prefactor  = 4.44089e-10
  Prefactor  = 5.0633
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.20546e-07
  norm       = 1.11022e-10
  norm       = 44.8686
  norm       = 1.85407e-08
  norm       = 4.52416e-08
  norm       = 20.7495
  Prefactor  = 3.28959e-07
  norm       = 4.65271
  Prefactor  = 2.94209e-09
  Prefactor  = 6.29496e-08
  Normalizat = 0.559829
  Prefactor  = 1.7003
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.877     FROM HESSE     STATUS=OK           508 CALLS     2317 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    2.3179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15488E-07    4.0329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8070        3.7645        .51704E-03   -1.5669    
   5  Prefactor     10.319        6.1761        .31115E-03   -1.5644    
   6  Prefactor     .11091E-06    9.1542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .69948E-01    .35349        .18226E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.040        10.857        .21778E-03   -1.5616    
   9  Prefactor     .25535E-08    5.0336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.026        23.918        .16117E-03   -1.5583    
  11  Prefactor     .44409E-09    7.1875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0633        15.939        .44702E-03   -1.5663    
  13  norm           .0000        1.7515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    24.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22055E-06    12.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11102E-09    2.4563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          44.869        6.7830        .14934E-03   -1.5574    
  18  norm          .18541E-07    4.0681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .45242E-07    94.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.750        9.1802        .21968E-03   -1.5617    
  21  Prefactor     .32896E-06    10.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.6527        9.6320        .46676E-03   -1.5665    
  23  Prefactor     .29421E-08    25.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .62950E-07    16.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .55983        .21307        .88211E-01   -1.0972    
  26  Prefactor     1.7003        .21341        .56281E-01   -.72074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13826e-08
Minuit parameter uncertainties:
  1  1.13747e-05
  2  3.97799e-05
  3  0.000500184
  4  3.76446
  5  6.17606
  6  0.00201511
  7  0.314489
  8  10.8567
  9  0.00022618
  10  23.9179
  11  0.000110202
  12  15.9394
  13  5.62136e-07
  14  7.03203e-05
  15  0.00328919
  16  2.87785e-05
  17  6.78296
  18  0.00054888
  19  0.00413561
  20  9.18021
  21  0.00368294
  22  9.63201
  23  0.000541719
  24  0.00206354
  25  0.213386
  26  0.213521
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.441e-10  1.102e-04  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:  1.700e+00  2.135e-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:  5.598e-01  2.134e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/22449/likelihoodResults_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.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) = 6809.44187918
delta logL = 0.435483669426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6809.44170066
delta logL = 0.43566219101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54803       1.0000          .0000       .10000E+07
     2 'Index     '    3.5893       1.0000          .0000       10.000    
     3 'Normalizat'    .48356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7400       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=   6809.442     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      278 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54804        11.993        .74018E-03    .78262E-02
   2  Index         3.5893        2.7560        .94089E-01    .22348E-03
   3  Normalizat    .48354        .48130E-01    .94653E-01    .49216E-04
   4  Prefactor     1.7401        .50286E-01    .55762E-01   -.61414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.548043
  Index      = 3.58931
  Normalizat = 0.483543
  Prefactor  = 1.7401
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54804        30.166        .63919E-05   -1.5693    
   2  Index         3.5893        6.7899        .56470E-02   -.28602    
   3  Normalizat    .48354        .21902        .41947E-03   -1.1318    
   4  Prefactor     1.7401        .22773        .24650E-03   -.71019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03313e-08
Minuit parameter uncertainties:
  1  8.13198
  2  5.86583
  3  0.219408
  4  0.227871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22449': 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) = 6809.44170061
delta logL = 0.435662243865

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.480e-01  8.132e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.589e+00  5.866e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.740e+00  2.279e-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:  4.835e-01  2.194e-01  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/22449/cmap_HighResolution_698630401_699235201_4FGL_J1254.5+2210_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2023-02-28 01:23:52.518961', job_id='22449', GAL2='1.74', fit_tolerance='1e-08', EG2='0.48', EG='0.56', time_epoch_completed='1677576232.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.70', dlogl='4.36e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='760' AND source_name='4FGL J1254.5+2210' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:23:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 22449: <4FGL_J1254.5+2210_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1254.5+2210_weekly_bin760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 28 01:10:28 2023
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:10:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:10:29 2023
Terminated at Tue Feb 28 01:23:53 2023
Results reported at Tue Feb 28 01:23:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_weekly_bin760 193.637 22.1808 698630401 699235201 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 :                                   678.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

