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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin1748
RA = 184.061, Dec = 5.6248
tmin = 692409601, tmax = 692668801
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='884840', job_status='RUN', time_executed='2022-12-14 00:35:36.749953', time_epoch_executed='1671006936.75' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884840/ft1_4FGL_J1216.2+0537_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884840/ft1_4FGL_J1216.2+0537_daily_bin1748.fits outfile=/scratch/kocevski/884840/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1748.fits ra=184.061 dec=5.6248 rad=12.0 tmin=692409601.0 tmax=692668801.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.54
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.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/884840/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 764

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/884840/ltcube_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits outfile=/scratch/kocevski/884840/expmap_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.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/884840/ltcube_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits
.....................!
real 190.95
user 185.89
sys 4.75

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/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.fits scfile=/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits outfile=/scratch/kocevski/884840/cmap_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.fits scfile=/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits outfile=/scratch/kocevski/884840/cmap_HighResolution_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.fits', '/scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits', expMap='/scratch/kocevski/884840/expmap_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits', expCube='/scratch/kocevski/884840/ltcube_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884840/Model_4FGL_J1216.2+0537_daily_bin1748.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/884840/ft1_filtered_4FGL_J1216.2+0537_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/884840/ft2_4FGL_J1216.2+0537_daily_bin1748.fits
Exposure map: /scratch/kocevski/884840/expmap_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits
Exposure cube: /scratch/kocevski/884840/ltcube_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884840/Model_4FGL_J1216.2+0537_daily_bin1748.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) = 8327.53153256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55567E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12136       1.0000          .0000       .10000E+07
     3 'Prefactor '    .58709E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .49351E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .76710E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.1551       1.0000          .0000       .10000E+07
     7 'Prefactor '    .72799E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25880E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10520E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14899E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.567       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52362E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
    14 'norm      '    5.0569       1.0000          .0000       .10000E+07
    15 'Prefactor '    27.201       1.0000          .0000       .10000E+07
    16 'norm      '    18.957       1.0000          .0000       .10000E+07
    17 'norm      '    .72229       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.465       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23464E-04   1.0000          .0000       .10000E+07
    20 'norm      '    1.9958       1.0000          .0000       .10000E+07
    21 'Prefactor '    17.668       1.0000          .0000       .10000E+07
    22 'norm      '    14.269       1.0000          .0000       .10000E+07
    23 'Prefactor '    15.574       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.3522       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99366       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=   8327.526     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2090 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1484       -.46922E-08** at limit **
   2  Prefactor     .53113E-06    29.147       -.24771E-06** at limit **
   3  Prefactor     .25424E-07    4.4725        .49972E-07** at limit **
   4  Prefactor     .15699E-06    15.777       -.96501E-07** at limit **
   5  Prefactor     .29027E-06    21.179        .76280E-07** at limit **
   6  Prefactor     2.1776        3.0162        .20809E-07    .84901E-04
   7  Prefactor     .10547E-08    30.594       -.17243E-06** at limit **
   8  Prefactor      .0000        9.4834       -.41701E-07** at limit **
   9  Prefactor     .14544E-07    4.4177        .13255E-07** at limit **
  10  Prefactor      .0000        1.5784        .49121E-07** at limit **
  11  Prefactor     16.556        1.5385       -.34263E-09    .10710E-02
  12  Prefactor      .0000        2.6032       -.13376E-06** at limit **
  13  norm           .0000        .54478       -.66442E-07** at limit **
  14  norm          5.0619        3.5123        .12104E-08   -.23155E-03
  15  Prefactor     27.248        1.2135        .36704E-09   -.10192E-02
  16  norm          18.865        14.552       -.41025E-07    .80438E-01
  17  norm          .72231        .50251        .27236E-08    .29739E-02
  18  Prefactor     15.494        7.5905        .17529E-07   -.70277E-02
  19  Prefactor     .73902E-06    16.229        .62374E-07** at limit **
  20  norm          1.9953        1.4658       -.10085E-07    .22661E-03
  21  Prefactor     17.719        7.8036       -.30156E-07    .70081E-01
  22  norm          14.226        4.9959       -.13299E-07    .10054E-01
  23  Prefactor     15.593        7.4482        .16663E-07   -.69474E-02
  24  Normalizat    1.3523        .21963        .12264E-06    .25162E-03
  25  Prefactor     .99356        .18398        .15374E-05    .28230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.31131e-07
  Prefactor  = 2.54241e-08
  Prefactor  = 1.56986e-07
  Prefactor  = 2.90268e-07
  Prefactor  = 2.17758
  Prefactor  = 1.05471e-09
  Prefactor  = 0
  Prefactor  = 1.45439e-08
  Prefactor  = 0
  Prefactor  = 16.5559
  Prefactor  = 0
  norm       = 0
  norm       = 5.06191
  Prefactor  = 27.2481
  norm       = 18.8654
  norm       = 0.722315
  Prefactor  = 15.4936
  Prefactor  = 7.3902e-07
  norm       = 1.99531
  Prefactor  = 17.7193
  norm       = 14.2265
  Prefactor  = 15.5927
  Normalizat = 1.35229
  Prefactor  = 0.99356
 **********
 **   18 **HESSE 
 **********

 FCN=   8327.526     FROM HESSE     STATUS=OK           475 CALLS     2565 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53113E-06    35.842        .13388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .25424E-07    5.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15699E-06    16.208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .29027E-06    22.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1776        15.319        .70151E-03   -1.5678    
   7  Prefactor     .10547E-08    30.591        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.4668        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14544E-07    5.0221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.5771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.556        21.743        .24580E-03   -1.5627    
  12  Prefactor      .0000        2.6037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .54563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0619        3.8835        .44690E-03   -1.5663    
  15  Prefactor     27.248        21.753        .19177E-03   -1.5604    
  16  norm          18.865        38.843        .22976E-03   -1.5621    
  17  norm          .72231        .52031        .58917E-03   -1.5691    
  18  Prefactor     15.494        12.402        .25442E-03   -1.5629    
  19  Prefactor     .73902E-06    18.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9953        1.4829        .73294E-03   -1.5680    
  21  Prefactor     17.719        9.4070        .23800E-03   -1.5624    
  22  norm          14.226        24.829        .26490E-03   -1.5633    
  23  Prefactor     15.593        12.436        .25353E-03   -1.5629    
  24  Normalizat    1.3523        .18647        .60809E-01   -.82019    
  25  Prefactor     .99356        .15666        .46188E-01   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22625e-07
Minuit parameter uncertainties:
  1  4.83324e-07
  2  0.00872643
  3  0.000724213
  4  0.00319025
  5  0.00507105
  6  11.5512
  7  0.000362008
  8  1.86585e-05
  9  0.000540993
  10  9.32445e-06
  11  21.7432
  12  1.55434e-05
  13  7.14427e-06
  14  3.88347
  15  21.7528
  16  38.8431
  17  0.520307
  18  12.4018
  19  0.007365
  20  1.48291
  21  9.40698
  22  24.8295
  23  12.4357
  24  0.18656
  25  0.156733
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.656e+01  2.174e+01  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.936e-01  1.567e-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.352e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/884840/likelihoodResults_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.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): 0
logL (Free Index) = 8327.07908897
delta logL = 0.4470515959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8326.95272733
delta logL = 0.57341324084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53712E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.4813       1.0000          .0000       10.000    
     3 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0462       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.

 FCN=   8326.953     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      304 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53391E-01    .54613        .34962E-03** at limit **
   2  Index         4.4836        1.6031        .70298E-01    .14507E-03
   3  Normalizat    1.2677        .41632E-01    .62409E-01   -.74263E-04
   4  Prefactor     1.0465        .35704E-01    .58068E-01   -.11756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0533914
  Index      = 4.48355
  Normalizat = 1.26774
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.953     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      339 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53391E-01    1.5177        .15855E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4836        3.1386        .35204E-02   -.10347    
   3  Normalizat    1.2677        .15609        .27604E-03   -.84534    
   4  Prefactor     1.0465        .13175        .25677E-03   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12232e-10
Minuit parameter uncertainties:
  1  0.569321
  2  3.3965
  3  0.156147
  4  0.131794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884840': 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) = 8326.95272532
delta logL = 0.573415247214

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  5.339e-02  5.693e-01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  4.484e+00  3.397e+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:  1.046e+00  1.318e-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.268e+00  1.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 184.061 5.625
Photon Index (Free Index): 4.48 +/- 3.40
Photon Flux (Free Index): 7.82e-08 +/- 5.66e-08
Energy Flux (Free Index): 1.09e-05 +/- 8.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/884840/cmap_HighResolution_692409601_692668801_4FGL_J1216.2+0537_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='5.73e-01', photon_flux2='7.82e-08', job_status='DONE', time_completed='2022-12-14 00:48:23.288114', photon_index_error2='3.40', photon_index2='4.48', ts='0.91', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.38e-08', energy_flux_error2='8.58e-06', EG='1.35', time_epoch_completed='1671007703.29', return_code='0', job_id='884840', GAL2='1.05', EG2='1.27', return_code2='102', photon_flux_error2='5.66e-08', ts2='2.20', photon_index='2.02' WHERE bin_id='1748' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:48:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 884840: <4FGL_J1216.2+0537_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:35:17 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:35:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:35:18 2022
Terminated at Wed Dec 14 00:48:24 2022
Results reported at Wed Dec 14 00:48:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin1748 184.061 5.6248 692409601 692668801 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 :                                   768.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

