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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1770
RA = 193.637, Dec = 22.1808
tmin = 698112001, tmax = 698371201
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='485419', job_status='RUN', time_executed='2023-02-18 00:46:24.627845', time_epoch_executed='1676709984.63' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485419/ft1_4FGL_J1254.5+2210_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485419/ft1_4FGL_J1254.5+2210_daily_bin1770.fits outfile=/scratch/kocevski/485419/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1770.fits ra=193.637 dec=22.1808 rad=12.0 tmin=698112001.0 tmax=698371201.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.34
user 3.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.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/485419/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.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.43
user 0.27
sys 0.13

Number of photons that the gtmktime cut: 404

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/485419/ltcube_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.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/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits
.....................!
real 9.37
user 9.09
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/485419/ltcube_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits outfile=/scratch/kocevski/485419/expmap_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.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/485419/ltcube_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits
.....................!
real 147.10
user 143.51
sys 3.27

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/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits scfile=/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits outfile=/scratch/kocevski/485419/cmap_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits scfile=/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits outfile=/scratch/kocevski/485419/cmap_HighResolution_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.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.45
user 0.31
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits', '/scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits', expMap='/scratch/kocevski/485419/expmap_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits', expCube='/scratch/kocevski/485419/ltcube_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485419/Model_4FGL_J1254.5+2210_daily_bin1770.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/485419/ft1_filtered_4FGL_J1254.5+2210_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/485419/ft2_4FGL_J1254.5+2210_daily_bin1770.fits
Exposure map: /scratch/kocevski/485419/expmap_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits
Exposure cube: /scratch/kocevski/485419/ltcube_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485419/Model_4FGL_J1254.5+2210_daily_bin1770.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4327.94181174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21061E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .55511E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .13850E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3307       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9753       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32384E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .77516E-01   1.0000          .0000       .10000E+07
     8 'norm      '    3.9771       1.0000          .0000       .10000E+07
     9 'Prefactor '    56.191       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.7802       1.0000          .0000       .10000E+07
    11 'Prefactor '    .71756E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45319E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .74940E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    19.119       1.0000          .0000       .10000E+07
    15 'Prefactor '    .71078E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.3756       1.0000          .0000       .10000E+07
    17 'norm      '    38.059       1.0000          .0000       .10000E+07
    18 'norm      '    14.274       1.0000          .0000       .10000E+07
    19 'norm      '    14.676       1.0000          .0000       .10000E+07
    20 'norm      '    57.605       1.0000          .0000       .10000E+07
    21 'Prefactor '    30.646       1.0000          .0000       .10000E+07
    22 'norm      '    .30961E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12720E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    41.535       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0643       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86800       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=   4324.302     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1314 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71609E-08    4.9101       -.19646E-06** at limit **
   2  Prefactor     .55511E-10    2.9111        .82565E-07** at limit **
   3  norm          .83267E-09    1.4121        .15976E-06** at limit **
   4  Prefactor     4.3268        3.6523       -.65281E-07   -.77809E-03
   5  Prefactor     2.9686        3.1007       -.14625E-07    .50231E-03
   6  Prefactor     .26967E-06    20.947       -.12181E-05** at limit **
   7  norm          .77521E-01    .19757       -.63443E-07** at limit **
   8  norm          3.9621        5.3227       -.13813E-06    .15746E-02
   9  Prefactor     56.266        1.0556       -.12171E-08    .12832E-01
  10  Prefactor     1.9512        9.1863       -.23463E-06   -.15616E-01
  11  Prefactor     .60674E-07    6.2025        .30032E-06** at limit **
  12  Prefactor     .12712E-07    2.1707        .13197E-06** at limit **
  13  norm          .11102E-09    2.0890        .12138E-06** at limit **
  14  Prefactor     19.036        1.0906       -.68906E-08    .42945E-02
  15  Prefactor     .68723E-07    12.822       -.72662E-07** at limit **
  16  norm          1.3757        2.3988       -.13452E-08    .28469E-03
  17  norm          38.011        4.2091        .26074E-07    .13873    
  18  norm          14.239        2.3554        .24022E-07    .52145E-01
  19  norm          14.637        1.0464       -.25778E-08   -.36988E-03
  20  norm          57.538        2.5422       -.13230E-08    .27308E-01
  21  Prefactor     30.805        5.0822        .72472E-07   -.16748    
  22  norm          .10381E-06    2.8614        .33406E-07** at limit **
  23  Prefactor     .26090E-07    2.4299        .99266E-07** at limit **
  24  Prefactor     41.506        4.6737       -.57253E-07    .17291    
  25  Normalizat    1.0647        .24671        .40450E-05    .75216E-04
  26  Prefactor     .86784        .24889       -.26308E-05    .40874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16094e-09
  Prefactor  = 5.55112e-11
  norm       = 8.32667e-10
  Prefactor  = 4.32683
  Prefactor  = 2.96858
  Prefactor  = 2.69673e-07
  norm       = 0.0775212
  norm       = 3.96205
  Prefactor  = 56.2657
  Prefactor  = 1.95119
  Prefactor  = 6.06737e-08
  Prefactor  = 1.27121e-08
  norm       = 1.11022e-10
  Prefactor  = 19.0359
  Prefactor  = 6.87228e-08
  norm       = 1.37566
  norm       = 38.011
  norm       = 14.2386
  norm       = 14.6369
  norm       = 57.5377
  Prefactor  = 30.8052
  norm       = 1.03806e-07
  Prefactor  = 2.60902e-08
  Prefactor  = 41.5061
  Normalizat = 1.06467
  Prefactor  = 0.86784
 **********
 **   18 **HESSE 
 **********

 FCN=   4324.302     FROM HESSE     STATUS=OK           520 CALLS     1834 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71609E-08    4.9003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.8995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83267E-09    6.0704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3268        3.6643        .48381E-03   -1.5666    
   5  Prefactor     2.9686        3.1261        .58836E-03   -1.5674    
   6  Prefactor     .26967E-06    20.940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .77521E-01    .20254        .10205E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9621        5.3498        .50551E-03   -1.5668    
   9  Prefactor     56.266        23.576        .13341E-03   -1.5558    
  10  Prefactor     1.9512        14.415        .78410E-03   -1.5680    
  11  Prefactor     .60674E-07    6.5920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12712E-07    5.6892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    2.0961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.036        15.178        .22878E-03   -1.5621    
  15  Prefactor     .68723E-07    12.923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3757        2.4500        .92846E-03   -1.5685    
  17  norm          38.011        10.676        .16211E-03   -1.5585    
  18  norm          14.239        14.208        .26484E-03   -1.5632    
  19  norm          14.637        17.775        .26119E-03   -1.5631    
  20  norm          57.538        14.126        .13176E-03   -1.5556    
  21  Prefactor     30.805        34.707        .18067E-03   -1.5597    
  22  norm          .10381E-06    6.0166        .10002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .26090E-07    5.6004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.506        31.156        .15518E-03   -1.5579    
  25  Normalizat    1.0647        .21832        .59108E-01   -.90894    
  26  Prefactor     .86784        .21554        .65762E-01   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85047e-06
Minuit parameter uncertainties:
  1  0.000374387
  2  2.63606e-05
  3  0.000142671
  4  3.66435
  5  3.12614
  6  0.00475269
  7  0.202544
  8  5.3498
  9  23.5763
  10  10.6069
  11  0.00126512
  12  0.000538079
  13  2.92458e-05
  14  15.1777
  15  0.00188456
  16  2.45001
  17  10.6764
  18  14.208
  19  17.7748
  20  14.1265
  21  34.7075
  22  0.00158072
  23  0.00076416
  24  31.1564
  25  0.218506
  26  0.215747
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.067e-08  1.265e-03  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:  8.678e-01  2.157e-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.065e+00  2.185e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485419/likelihoodResults_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.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) = 4324.3094357
delta logL = -0.00707452570259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4322.00254845
delta logL = 2.29981273229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72188E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.3125       1.0000          .0000       10.000    
     3 'Normalizat'    .90468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96995       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4324.302     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      325 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .36743        .42118E-03** at limit **
   2  Index         .15050        .25278       -.72335E-04     .0000    
   3  Normalizat    1.0647        1.3342       -.34042E-04   -.35467E-03
   4  Prefactor     .86784        1.2470        .51177E-04   -.19326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.150505
  Normalizat = 1.06466
  Prefactor  = 0.867842
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4324.302     FROM HESSE     STATUS=FAILED         9 CALLS      334 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .36743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17326        .25278       -.72335E-04   -7.6080    
   3  Normalizat    1.0647        1.3342       -.34042E-04   -.90895    
   4  Prefactor     .86784        1.2470        .51177E-04   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.50182e-10
Minuit parameter uncertainties:
  1  2.05216e-06
  2  0.25463
  3  1.38023
  4  1.2919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485419': 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): 101
logL (Free Index) = 4324.30236117
delta logL = 4.47016645921e-09

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  2.052e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  1.505e-01  2.546e-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:  8.678e-01  1.292e+00  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.065e+00  1.380e+00  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/485419/cmap_HighResolution_698112001_698371201_4FGL_J1254.5+2210_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2023-02-18 00:52:54.157898', job_id='485419', GAL2='0.87', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1676710374.16', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.47e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1770' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:52:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 485419: <4FGL_J1254.5+2210_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:45:25 2023
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:45:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:45:30 2023
Terminated at Sat Feb 18 00:52:54 2023
Results reported at Sat Feb 18 00:52:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1770 193.637 22.1808 698112001 698371201 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 :                                   390.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   444 sec.
    Turnaround time :                            449 sec.

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

