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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin1778
RA = 184.061, Dec = 5.6248
tmin = 700185601, tmax = 700444801
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='960997', job_status='RUN', time_executed='2023-03-14 00:53:48.589002', time_epoch_executed='1678780428.59' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960997/ft1_4FGL_J1216.2+0537_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960997/ft1_4FGL_J1216.2+0537_daily_bin1778.fits outfile=/scratch/kocevski/960997/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1778.fits ra=184.061 dec=5.6248 rad=12.0 tmin=700185601.0 tmax=700444801.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.17
user 2.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.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/960997/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/960997/ft1_filtered_4FGL_J1216.2+0537_daily_bin1778.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.26
sys 0.15

Number of photons that the gtmktime cut: 554

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960997/ft1_filtered_4FGL_J1216.2+0537_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/960997/ltcube_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.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/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits
.....................!
real 9.43
user 9.14
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960997/ft1_filtered_4FGL_J1216.2+0537_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/960997/ltcube_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.fits outfile=/scratch/kocevski/960997/expmap_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.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/960997/ltcube_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.fits
.....................!
real 147.88
user 142.80
sys 4.72

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/960997/ft1_filtered_4FGL_J1216.2+0537_daily_bin1778.fits scfile=/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits outfile=/scratch/kocevski/960997/cmap_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.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.49
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960997/ft1_filtered_4FGL_J1216.2+0537_daily_bin1778.fits scfile=/scratch/kocevski/960997/ft2_4FGL_J1216.2+0537_daily_bin1778.fits outfile=/scratch/kocevski/960997/cmap_HighResolution_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7385       1.0000          .0000       .10000E+07
     2 'Prefactor '    .57788E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .54764E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .82676E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.590       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66842E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .75591E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    51.571       1.0000          .0000       .10000E+07
     9 'Prefactor '    .94680E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16709E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36368E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15073       1.0000          .0000       .10000E+07
    13 'norm      '    .22782E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.8565       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.5652       1.0000          .0000       .10000E+07
    16 'norm      '    97.821       1.0000          .0000       .10000E+07
    17 'norm      '    .75273E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.397       1.0000          .0000       .10000E+07
    19 'Prefactor '    .62620       1.0000          .0000       .10000E+07
    20 'norm      '    3.7390       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.6772       1.0000          .0000       .10000E+07
    22 'norm      '    .24635E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12930E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    .94870       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98708       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=   6200.347     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     2245 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7159        4.0765        .97909E-07    .22799E-02
   2  Prefactor     .13409E-05    38.823        .26768E-06** at limit **
   3  Prefactor      .0000        2.6830       -.85354E-07** at limit **
   4  Prefactor      .0000        3.6348       -.30104E-06** at limit **
   5  Prefactor     20.210        9.6184        .25630E-07    .12105    
   6  Prefactor     .55511E-10    4.2484       -.12817E-06** at limit **
   7  Prefactor     .80214E-07    34.999       -.35112E-06** at limit **
   8  Prefactor     53.962        37.146       -.25529E-06    .90060E-01
   9  Prefactor     .22038E-07    18.298        .91368E-07** at limit **
  10  Prefactor      .0000        .85393        .21242E-06** at limit **
  11  Prefactor     .20539E-08    13.176        .16074E-06** at limit **
  12  Prefactor     .18964        27.149       -.74494E-08** at limit **
  13  norm           .0000        .55124        .13530E-06** at limit **
  14  norm          1.8727        3.1669        .21318E-07   -.26955E-03
  15  Prefactor     7.6702        1.0567       -.47425E-08   -.21193E-02
  16  norm          96.617        30.103        .64378E-07    .19839    
  17  norm           .0000        3.5277        .16588E-06** at limit **
  18  Prefactor     13.429        2.4382        .11061E-07   -.26089E-01
  19  Prefactor     .62094        9.4506       -.14278E-06   -.88405E-02
  20  norm          3.7481        1.7510       -.42584E-07   -.19221E-04
  21  Prefactor     3.6876        4.5082       -.30586E-07    .36699E-03
  22  norm          .55511E-10    8.9584        .94358E-07** at limit **
  23  Prefactor      .0000        5.3428       -.12794E-06** at limit **
  24  Normalizat    .94418        .23340        .29855E-05    .75101E-04
  25  Prefactor     .98903        .19151       -.41192E-06    .71402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71586
  Prefactor  = 1.34093e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 20.2098
  Prefactor  = 5.55112e-11
  Prefactor  = 8.02136e-08
  Prefactor  = 53.9619
  Prefactor  = 2.20379e-08
  Prefactor  = 0
  Prefactor  = 2.05391e-09
  Prefactor  = 0.189639
  norm       = 0
  norm       = 1.8727
  Prefactor  = 7.67016
  norm       = 96.6174
  norm       = 0
  Prefactor  = 13.4293
  Prefactor  = 0.620944
  norm       = 3.74813
  Prefactor  = 3.68756
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.944176
  Prefactor  = 0.989027
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.347     FROM HESSE     STATUS=OK           485 CALLS     2730 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7159        4.0884        .41905E-03   -1.5660    
   2  Prefactor     .13409E-05    45.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.7035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.6390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.210        22.824        .22601E-03   -1.5618    
   6  Prefactor     .55511E-10    4.2672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .80214E-07    39.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     53.962        42.983        .13926E-03   -1.5561    
   9  Prefactor     .22038E-07    18.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .85529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20539E-08    13.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18964        3.6376        .77781E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .55133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8727        3.4862        .76464E-03   -1.5681    
  15  Prefactor     7.6702        19.752        .36437E-03   -1.5653    
  16  norm          96.617        52.771        .10111E-03   -1.5511    
  17  norm           .0000        .19710        .26806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.429        10.460        .27340E-03   -1.5635    
  19  Prefactor     .62094        10.019        .66913E-03   -1.5692    
  20  norm          3.7481        1.7665        .52193E-03   -1.5669    
  21  Prefactor     3.6876        4.5236        .52647E-03   -1.5670    
  22  norm          .55511E-10    8.9823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        5.3598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94418        .20529        .45521E-01   -.94925    
  25  Prefactor     .98903        .16292        .46105E-01   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48479e-06
Minuit parameter uncertainties:
  1  4.08842
  2  0.0156151
  3  5.39538e-06
  4  1.5617e-05
  5  22.8241
  6  2.72742e-05
  7  0.0035617
  8  42.9834
  9  0.00126865
  10  6.04013e-06
  11  0.000329304
  12  1.66112
  13  3.20277e-06
  14  3.48616
  15  19.7517
  16  52.7708
  17  9.73286e-07
  18  10.4596
  19  4.9884
  20  1.76653
  21  4.52361
  22  4.71794e-05
  23  1.69934e-05
  24  0.205459
  25  0.162996
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  2.054e-09  3.293e-04  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.890e-01  1.630e-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:  9.442e-01  2.055e-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: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960997/likelihoodResults_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.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) = 6200.38381561
delta logL = -0.0364792859209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6200.34733811
delta logL = -1.78632399184e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10747E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .63413       1.0000          .0000       10.000    
     3 'Normalizat'    .94423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98910       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6200.294     FROM MIGRAD    STATUS=FAILED       180 CALLS      351 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35224E-02    1.6204        .10825E-04** at limit **
   2  Index         4.8973        6.0932        .12091E-01    .12736E-02
   3  Normalizat    .92028        .21108        .27757E-03   -.72578E-04
   4  Prefactor     1.0024        .16935        .22749E-03   -.44676E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6200.294     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      435 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35224E-02    1.6204        .48995E-05** at limit **
   2  Index         4.8973        6.0932        .49130E-02    .12736E-02
   3  Normalizat    .92028        .21108        .21612E-03   -.72578E-04
   4  Prefactor     1.0024        .16935        .65491E-04   -.44676E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6200.294     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      466 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35222E-02    1.6512        .43300E-06** at limit **
   2  Index         4.8973        6.0475        .24183E-02    .48387E-04
   3  Normalizat    .92028        .20739        .11103E-04   -.88674E-04
   4  Prefactor     1.0024        .17300        .90998E-05   -.56970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00352216
  Index      = 4.89732
  Normalizat = 0.920282
  Prefactor  = 1.00238
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.294     FROM HESSE     STATUS=OK            25 CALLS      491 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35222E-02    .23924        .37454E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.8973        7.0969        .48366E-03   -.20538E-01
   3  Normalizat    .92028        .23148        .22205E-05   -.95751    
   4  Prefactor     1.0024        .19272        .18200E-05   -.92650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80393e-10
Minuit parameter uncertainties:
  1  0.0580565
  2  5.06573
  3  0.231735
  4  0.19285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960997': 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): 0
logL (Free Index) = 6200.29421495
delta logL = 0.0531213744234

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.522e-03  5.806e-02  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  4.897e+00  5.066e+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.002e+00  1.928e-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:  9.203e-01  2.317e-01  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/960997/cmap_HighResolution_700185601_700444801_4FGL_J1216.2+0537_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2023-03-14 01:02:42.242949', job_id='960997', GAL2='1.00', fit_tolerance='1e-08', EG2='0.92', EG='0.94', time_epoch_completed='1678780962.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.31e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1778' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:02:42 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 960997: <4FGL_J1216.2+0537_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin1778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 00:50:24 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:50:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:50:26 2023
Terminated at Tue Mar 14 01:02:43 2023
Results reported at Tue Mar 14 01:02:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin1778 184.061 5.6248 700185601 700444801 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 :                                   534.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            739 sec.

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

