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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1772
RA = 183.774, Dec = 16.9372
tmin = 698630401, tmax = 698889601
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='631994', job_status='RUN', time_executed='2023-02-24 01:35:40.815508', time_epoch_executed='1677231340.82' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631994/ft1_4FGL_J1215.0+1656_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631994/ft1_4FGL_J1215.0+1656_daily_bin1772.fits outfile=/scratch/kocevski/631994/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1772.fits ra=183.774 dec=16.9372 rad=12.0 tmin=698630401.0 tmax=698889601.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.04
user 2.85
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.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/631994/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.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.33
sys 0.15

Number of photons that the gtmktime cut: 116

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/631994/ltcube_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.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/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits
.....................!
real 12.53
user 12.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/631994/ltcube_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits outfile=/scratch/kocevski/631994/expmap_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.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/631994/ltcube_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits
.....................!
real 190.22
user 185.01
sys 4.88

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

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits outfile=/scratch/kocevski/631994/cmap_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.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=183.774 yref=16.9372 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits outfile=/scratch/kocevski/631994/cmap_HighResolution_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.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=183.774 yref=16.9372 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631994/Model_4FGL_J1215.0+1656_daily_bin1772.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/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits........................!
real 22.99
user 21.74
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits', '/scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits', expMap='/scratch/kocevski/631994/expmap_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits', expCube='/scratch/kocevski/631994/ltcube_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631994/Model_4FGL_J1215.0+1656_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/631994/ft1_filtered_4FGL_J1215.0+1656_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/631994/ft2_4FGL_J1215.0+1656_daily_bin1772.fits
Exposure map: /scratch/kocevski/631994/expmap_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits
Exposure cube: /scratch/kocevski/631994/ltcube_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631994/Model_4FGL_J1215.0+1656_daily_bin1772.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) = 1363.47549641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.916       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29370E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .91925E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .83317E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .67535E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    47.464       1.0000          .0000       .10000E+07
     7 'Prefactor '    .58104E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .70883       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15714E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37339E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.630       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.553       1.0000          .0000       .10000E+07
    13 'Prefactor '    131.10       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27610       1.0000          .0000       .10000E+07
    15 'norm      '    .30588       1.0000          .0000       .10000E+07
    16 'norm      '    42.139       1.0000          .0000       .10000E+07
    17 'Prefactor '    .74534E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .37482E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11181E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.7049       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1363.444     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1823 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.827        2.7919        .56248E-07   -.89223E-02
   2  Prefactor     .14830E-05    12.297        .43554E-07** at limit **
   3  Prefactor     .85215E-06    19.155       -.65404E-06** at limit **
   4  Prefactor     .11521E-04    290.55        .17289E-05** at limit **
   5  Prefactor     .58803E-06    18.209        .30512E-06** at limit **
   6  Prefactor     50.748        81.578        .57641E-06    .68279E-01
   7  Prefactor     .55511E-10    6.6515        .12450E-07** at limit **
   8  Prefactor     .38858E-08    172.70        .25105E-06** at limit **
   9  Prefactor     .16653E-09    8.2421        .32311E-07** at limit **
  10  Prefactor     .55511E-10    5.6984        .34924E-07** at limit **
  11  Prefactor     19.373        9.9465       -.12346E-06    .17104E-01
  12  Prefactor     13.553        9.9916       -.47837E-07   -.24100E-02
  13  Prefactor     132.82        71.217        .38726E-06   -.13195    
  14  Prefactor     .57851E-04    29.021       -.22566E-06** at limit **
  15  norm          .31043        .85594       -.40115E-07   -.33923E-02
  16  norm          42.457        4.0639       -.38511E-07    .38834E-02
  17  Prefactor     .55511E-09    9.8895       -.20316E-07** at limit **
  18  Prefactor     .33307E-09    9.2759        .28032E-07** at limit **
  19  Prefactor     .41386E-05    12.645        .71229E-07** at limit **
  20  Prefactor     7.6352        24.863       -.46376E-06   -.36545E-01
  21  Normalizat    1.0588        .53883        .15836E-05   -.82202E-04
  22  Prefactor     .98498        .49881       -.72069E-05   -.93996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8273
  Prefactor  = 1.48304e-06
  Prefactor  = 8.52152e-07
  Prefactor  = 1.15214e-05
  Prefactor  = 5.8803e-07
  Prefactor  = 50.7476
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 19.3728
  Prefactor  = 13.5525
  Prefactor  = 132.821
  Prefactor  = 5.78509e-05
  norm       = 0.310434
  norm       = 42.4573
  Prefactor  = 5.55112e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 4.13863e-06
  Prefactor  = 7.63524
  Normalizat = 1.05881
  Prefactor  = 0.98498
 **********
 **   18 **HESSE 
 **********

 FCN=   1363.444     FROM HESSE     STATUS=OK           384 CALLS     2207 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.827        895.74        .30299E-03   -1.5642    
   2  Prefactor     .14830E-05    23.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .85215E-06    20.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11521E-04    297.41        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58803E-06    19.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.748        98.650        .14516E-03   -1.5565    
   7  Prefactor     .55511E-10    6.6471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    171.47        .59995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    8.2116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    5.6783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.373        121.34        .22578E-03   -1.5620    
  12  Prefactor     13.553        10.470        .27182E-03   -1.5634    
  13  Prefactor     132.82        117.47        .87345E-04   -1.5477    
  14  Prefactor     .57851E-04    47.729        .76642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31043        .91719        .10132E-02   -1.5697    
  16  norm          42.457        23.296        .15406E-03   -1.5578    
  17  Prefactor     .55511E-09    9.8812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33307E-09    9.2827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .41386E-05    23.469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6352        27.627        .36103E-03   -1.5653    
  21  Normalizat    1.0588        .46537        .66884E-01   -.91085    
  22  Prefactor     .98498        .42517        .46122E-01   -.93232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83637e-06
Minuit parameter uncertainties:
  1  196.992
  2  0.0117235
  3  0.00827097
  4  0.117079
  5  0.00668677
  6  98.6532
  7  3.79934e-05
  8  0.00163389
  9  7.2408e-05
  10  3.63018e-05
  11  96.9705
  12  10.4703
  13  117.476
  14  0.105094
  15  0.91719
  16  23.2959
  17  0.000144839
  18  0.000113402
  19  0.0197108
  20  27.6271
  21  0.467181
  22  0.426624
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.551e-11  3.630e-05  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.850e-01  4.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.059e+00  4.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 2.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631994/likelihoodResults_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.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) = 1363.44480365
delta logL = -0.00046716604038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1363.44434005
delta logL = -3.56853956873e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   1363.444     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      253 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .62476        .10516E-02** at limit **
   2  Index         4.3373        2.1833        .22719E-03     .0000    
   3  Normalizat    1.0588        1.1913        .12886E-05    .18758E-03
   4  Prefactor     .98498        1.3247        .46280E-05    .95413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.3373
  Normalizat = 1.05882
  Prefactor  = 0.984975
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1363.444     FROM HESSE     STATUS=FAILED         9 CALLS      262 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .62476        .10516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0023        2.4028        .22719E-03   -.13293    
   3  Normalizat    1.0588        1.1913        .12886E-05   -.91085    
   4  Prefactor     .98498        1.3247        .46280E-05   -.93232    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.37451e-10
Minuit parameter uncertainties:
  1  2.00784e-06
  2  2.26088
  3  1.22362
  4  1.37276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631994': 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) = 1363.44433648
delta logL = -1.67347025126e-10

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  0.000e+00  2.008e-06  0.000e+00  1.000e+06 ( 1.000e-12)
263        Index:  4.337e+00  2.261e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.850e-01  1.373e+00  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.059e+00  1.224e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.774 16.937

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/631994/cmap_HighResolution_698630401_698889601_4FGL_J1215.0+1656_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-02', job_status='DONE', photon_flux_upper_limit='2.73e-07', time_completed='2023-02-24 01:41:59.225196', job_id='631994', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1677231719.23', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.67e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1772' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:41:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 631994: <4FGL_J1215.0+1656_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 01:35:16 2023
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:35:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:35:16 2023
Terminated at Fri Feb 24 01:42:00 2023
Results reported at Fri Feb 24 01:42:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1772 183.774 16.9372 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1215.0+1656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   381.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             352.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   403 sec.
    Turnaround time :                            404 sec.

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

