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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin1768
RA = 184.061, Dec = 5.6248
tmin = 697593601, tmax = 697852801
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='270280', job_status='RUN', time_executed='2023-02-12 00:53:17.702145', time_epoch_executed='1676191997.7' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270280/ft1_4FGL_J1216.2+0537_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270280/ft1_4FGL_J1216.2+0537_daily_bin1768.fits outfile=/scratch/kocevski/270280/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1768.fits ra=184.061 dec=5.6248 rad=12.0 tmin=697593601.0 tmax=697852801.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.64
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.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/270280/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.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.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/270280/ltcube_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.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/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits
.....................!
real 14.69
user 14.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/270280/ltcube_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits outfile=/scratch/kocevski/270280/expmap_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.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/270280/ltcube_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits
.....................!
real 190.95
user 185.96
sys 4.56

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 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1216.2+0537 @ 184.061 5.6248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits outfile=/scratch/kocevski/270280/cmap_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.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=184.061 yref=5.6248 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits outfile=/scratch/kocevski/270280/cmap_HighResolution_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.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=184.061 yref=5.6248 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270280/Model_4FGL_J1216.2+0537_daily_bin1768.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/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits.....................!
real 53.46
user 52.15
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits', '/scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits', expMap='/scratch/kocevski/270280/expmap_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits', expCube='/scratch/kocevski/270280/ltcube_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270280/Model_4FGL_J1216.2+0537_daily_bin1768.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1216.2+0537'

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.062e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/270280/ft1_filtered_4FGL_J1216.2+0537_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/270280/ft2_4FGL_J1216.2+0537_daily_bin1768.fits
Exposure map: /scratch/kocevski/270280/expmap_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits
Exposure cube: /scratch/kocevski/270280/ltcube_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270280/Model_4FGL_J1216.2+0537_daily_bin1768.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) = 6083.46876917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17051E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    55.706       1.0000          .0000       .10000E+07
     3 'Prefactor '    .60356E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8058       1.0000          .0000       .10000E+07
     5 'Prefactor '    .85135E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.6265       1.0000          .0000       .10000E+07
     7 'Prefactor '    34.883       1.0000          .0000       .10000E+07
     8 'Prefactor '    .95382E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49590E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .49127E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .81626E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.1696       1.0000          .0000       .10000E+07
    13 'norm      '    .17864E-05   1.0000          .0000       .10000E+07
    14 'norm      '    19.912       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19243E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .52798E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8417       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.4464       1.0000          .0000       .10000E+07
    20 'norm      '    .17124E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.8112       1.0000          .0000       .10000E+07
    22 'norm      '    .31289E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .28775       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6083.467     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2132 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9217       -.14989E-07** at limit **
   2  Prefactor     55.689        7.5451       -.72890E-07    .57732E-01
   3  Prefactor     .72164E-09    4.4069       -.28268E-07** at limit **
   4  Prefactor     4.7905        1.5052       -.18573E-07    .96303E-02
   5  Prefactor      .0000        4.7726       -.14800E-07** at limit **
   6  Prefactor     6.6143        6.1995        .15479E-09   -.54325E-01
   7  Prefactor     35.109        29.393        .44953E-06   -.20260E-01
   8  Prefactor     .33712E-06    30.160       -.20936E-06** at limit **
   9  Prefactor     .19484E-07    15.546       -.35818E-06** at limit **
  10  Prefactor      .0000        1.1368       -.23863E-07** at limit **
  11  Prefactor     .27756E-09    8.6281       -.38047E-07** at limit **
  12  Prefactor     7.1917        4.1037       -.14303E-07    .29462E-02
  13  norm           .0000        1.5131       -.14455E-07** at limit **
  14  norm          19.934        5.0054        .20997E-09   -.14166E-02
  15  Prefactor     .29071E-06    10.160        .16678E-06** at limit **
  16  norm          .20983E-06    15.799       -.16095E-06** at limit **
  17  norm           .0000        .28633       -.30659E-08** at limit **
  18  Prefactor     1.8207        4.4441        .49456E-07   -.33228E-02
  19  Prefactor     9.4169        8.3286        .51366E-07    .66691E-02
  20  norm           .0000        1.0102       -.25338E-08** at limit **
  21  Prefactor     5.8196        8.5323       -.54946E-07   -.62570E-02
  22  norm          .58287E-08    15.177        .20807E-06** at limit **
  23  Prefactor     .86757E-01    229.64       -.29150E-05** at limit **
  24  Normalizat    1.1306        .22419        .26185E-06   -.23043E-04
  25  Prefactor     .92293        .18567       -.39696E-06   -.27773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 55.6888
  Prefactor  = 7.21645e-10
  Prefactor  = 4.79051
  Prefactor  = 0
  Prefactor  = 6.61434
  Prefactor  = 35.1091
  Prefactor  = 3.37119e-07
  Prefactor  = 1.94844e-08
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 7.19175
  norm       = 0
  norm       = 19.9344
  Prefactor  = 2.90712e-07
  norm       = 2.09832e-07
  norm       = 0
  Prefactor  = 1.82074
  Prefactor  = 9.4169
  norm       = 0
  Prefactor  = 5.81958
  norm       = 5.82867e-09
  Prefactor  = 0.0867574
  Normalizat = 1.13057
  Prefactor  = 0.922926
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.467     FROM HESSE     STATUS=OK           473 CALLS     2605 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.689        87.436        .13399E-03   -1.5559    
   3  Prefactor     .72164E-09    4.4257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7905        10.040        .45868E-03   -1.5664    
   5  Prefactor      .0000        4.9035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6143        12.711        .38959E-03   -1.5657    
   7  Prefactor     35.109        42.777        .16933E-03   -1.5589    
   8  Prefactor     .33712E-06    46.129        .14055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19484E-07    16.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.1376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27756E-09    8.6370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1917        10.330        .37439E-03   -1.5654    
  13  norm           .0000        1.4983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.934        5.0207        .22417E-03   -1.5619    
  15  Prefactor     .29071E-06    23.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .20983E-06    23.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .27750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8207        15.073        .76830E-03   -1.5681    
  19  Prefactor     9.4169        8.5414        .32582E-03   -1.5647    
  20  norm           .0000        .99989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8196        8.6897        .41638E-03   -1.5660    
  22  norm          .58287E-08    18.158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .86757E-01    8.8488        .10385E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1306        .19751        .60226E-01   -.88776    
  25  Prefactor     .92293        .16049        .45299E-01   -.95345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51278e-07
Minuit parameter uncertainties:
  1  2.73608e-06
  2  87.4383
  3  0.000112688
  4  10.0398
  5  2.27429e-05
  6  12.7114
  7  42.7776
  8  0.00788685
  9  0.00113893
  10  3.47311e-06
  11  9.85088e-05
  12  10.33
  13  2.5387e-06
  14  5.02068
  15  0.00517483
  16  0.00447353
  17  1.03886e-07
  18  10.4773
  19  8.54142
  20  9.18069e-07
  21  8.68973
  22  0.000649529
  23  1.75237
  24  0.197642
  25  0.160571
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  2.776e-10  9.851e-05  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.229e-01  1.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.131e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270280/likelihoodResults_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.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) = 6083.52233627
delta logL = -0.0552853736426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6083.46705422
delta logL = -3.31501905748e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14400E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.3478       1.0000          .0000       10.000    
     3 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6083.467     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      254 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2831        .42118E-03** at limit **
   2  Index         2.6921        1.3879        .32197E-04     .0000    
   3  Normalizat    1.1306        1.1361       -.40124E-05   -.13533E-04
   4  Prefactor     .92293        1.2666        .39974E-05    .20877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.69214
  Normalizat = 1.13057
  Prefactor  = 0.922926
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6083.467     FROM HESSE     STATUS=FAILED         9 CALLS      263 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82051        1.9875        .32197E-04   -.47977    
   3  Normalizat    1.1306        1.1361       -.40124E-05   -.88776    
   4  Prefactor     .92293        1.2666        .39974E-05   -.95345    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.74994e-12
Minuit parameter uncertainties:
  1  8.60987e-06
  2  1.41156
  3  1.16226
  4  1.31093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270280': 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) = 6083.4670509
delta logL = 1.36424205266e-11

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  0.000e+00  8.610e-06  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.692e+00  1.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.229e-01  1.311e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.131e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.061 5.625

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/270280/cmap_HighResolution_697593601_697852801_4FGL_J1216.2+0537_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2023-02-12 01:04:06.226861', job_id='270280', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1676192646.23', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1768' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:04:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 270280: <4FGL_J1216.2+0537_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin1768> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Feb 12 00:50:15 2023
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:51:53 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:51:53 2023
Terminated at Sun Feb 12 01:04:07 2023
Results reported at Sun Feb 12 01:04:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin1768 184.061 5.6248 697593601 697852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1216.2+0537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            832 sec.

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

