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 27 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2005.1+7003_daily_bin1692
RA = 301.278, Dec = 70.0624
tmin = 677894401, tmax = 678153601
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='482743', job_status='RUN', time_executed='2022-06-29 04:53:52.580634', time_epoch_executed='1656503632.58' WHERE source_name='4FGL J2005.1+7003' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482743/ft1_4FGL_J2005.1+7003_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482743/ft1_4FGL_J2005.1+7003_daily_bin1692.fits outfile=/scratch/kocevski/482743/ft1_filteredMKT_4FGL_J2005.1+7003_daily_bin1692.fits ra=301.278 dec=70.0624 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.55
user 4.25
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.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/482743/ft1_filteredMKT_4FGL_J2005.1+7003_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.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.35
sys 0.14

Number of photons that the gtmktime cut: 2183

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/482743/ltcube_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.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/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits
.....................!
real 15.53
user 15.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/482743/ltcube_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits outfile=/scratch/kocevski/482743/expmap_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.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/482743/ltcube_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits
.....................!
real 192.29
user 186.71
sys 4.94

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2005.1+7003 @ 301.278 70.0624

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits outfile=/scratch/kocevski/482743/cmap_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.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=301.278 yref=70.0624 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits outfile=/scratch/kocevski/482743/cmap_HighResolution_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.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=301.278 yref=70.0624 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/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482743/Model_4FGL_J2005.1+7003_daily_bin1692.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits.....................!
real 281.89
user 279.85
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits', '/scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits', expMap='/scratch/kocevski/482743/expmap_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits', expCube='/scratch/kocevski/482743/ltcube_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482743/Model_4FGL_J2005.1+7003_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.1+7003'

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  5.049e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482743/ft1_filtered_4FGL_J2005.1+7003_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/482743/ft2_4FGL_J2005.1+7003_daily_bin1692.fits
Exposure map: /scratch/kocevski/482743/expmap_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits
Exposure cube: /scratch/kocevski/482743/ltcube_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482743/Model_4FGL_J2005.1+7003_daily_bin1692.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) = 21434.5794805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94795       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7467       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.173       1.0000         .10000E-03   10000.    
     9 'norm      '    .10994       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0268       1.0000         .10000E-03   10000.    
    11 'norm      '    .12758E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4713       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7744       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3056       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.088       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.849       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.535       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1117       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98707       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21434.57     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3042 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94831        1.9207        .14781E-05    .37945E-03
   2  norm          4.7468        .99498       -.17873E-08   -.94625E-04
   3  norm          2.8209        3.7199        .31517E-08   -.27090E-03
   4  Prefactor     .10000E-03    42.981        .61372E-09** at limit **
   5  Prefactor     10.712        6.5916       -.24026E-07   -.68148E-03
   6  Prefactor     .29958        7.0947        .10242E-05   -.52233E-03
   7  Prefactor     .10000E-03    29.416       -.87922E-08** at limit **
   8  Prefactor     17.119        52.929       -.20595E-05   -.14001E-03
   9  norm          .11152        .85307        .41475E-06   -.11418E-02
  10  norm          3.0293        2.8772       -.56171E-07   -.13069E-03
  11  norm          .10005E-03    3.2883        .14060E-06** at limit **
  12  Prefactor     .10002E-03    3.1807       -.24576E-06** at limit **
  13  Prefactor     4.4728        5.0645        .11053E-06   -.11423E-03
  14  norm          1.7745        .98301       -.27853E-08   -.26496E-04
  15  norm          .10000E-03    7.9180        .38214E-08** at limit **
  16  norm          5.3058        2.7289        .37117E-07   -.14325E-04
  17  norm          5.4299        9.6759        .20610E-06   -.58911E-05
  18  Prefactor     34.087        17.473        .32157E-09    .39027E-06
  19  norm          1.6362        2.4098        .78169E-06    .17380E-03
  20  Prefactor     .10000E-03    8.7713        .30781E-07** at limit **
  21  norm          13.850        7.9131        .70410E-07    .77215E-04
  22  Prefactor     .10000E-03    1.1487        .29993E-07** at limit **
  23  Prefactor     62.524        37.145        .12428E-08   -.42218E-04
  24  Normalizat    1.1117        .17977       -.16050E-06   -.18426E-03
  25  Prefactor     .98709        .41233E-01   -.82196E-07   -.29289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.94831
  norm       = 4.74679
  norm       = 2.82088
  Prefactor  = 0.0001
  Prefactor  = 10.7121
  Prefactor  = 0.299585
  Prefactor  = 0.0001
  Prefactor  = 17.1195
  norm       = 0.111517
  norm       = 3.02929
  norm       = 0.000100051
  Prefactor  = 0.000100024
  Prefactor  = 4.47278
  norm       = 1.77448
  norm       = 0.0001
  norm       = 5.30581
  norm       = 5.42993
  Prefactor  = 34.0875
  norm       = 1.63623
  Prefactor  = 0.0001
  norm       = 13.8498
  Prefactor  = 0.0001
  Prefactor  = 62.5242
  Normalizat = 1.11166
  Prefactor  = 0.987087
 **********
 **   18 **HESSE 
 **********

 FCN=   21434.57     FROM HESSE     STATUS=OK           461 CALLS     3503 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94831        1.9141        .27709E-03   -1.5513    
   2  norm          4.7468        .99679        .18468E-04   -1.5272    
   3  norm          2.8209        3.6410        .24217E-03   -1.5372    
   4  Prefactor     .10000E-03    42.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.712        6.6054        .12242E-03   -1.5053    
   6  Prefactor     .29958        8.0330        .11163       -1.5599    
   7  Prefactor     .10000E-03    29.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.119        53.276        .96650E-04   -1.4880    
   9  norm          .11152        2.6769        .24675E-02   -1.5641    
  10  norm          3.0293        2.8771        .23102E-03   -1.5360    
  11  norm          .10005E-03    3.1776        .94288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    4.3755        .97184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4728        5.0358        .19042E-03   -1.5285    
  14  norm          1.7745        .98083        .10248E-03   -1.5442    
  15  norm          .10000E-03    7.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3058        2.7292        .16764E-03   -1.5247    
  17  norm          5.4299        9.6562        .17244E-03   -1.5242    
  18  Prefactor     34.087        17.445        .68635E-04   -1.4540    
  19  norm          1.6362        2.3747        .26026E-03   -1.5452    
  20  Prefactor     .10000E-03    8.8795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.850        7.9157        .10763E-03   -1.4963    
  22  Prefactor     .10000E-03    1.1646        .15319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.524        37.211        .50743E-04   -1.4125    
  24  Normalizat    1.1117        .19024        .50517E-03   -.89378    
  25  Prefactor     .98709        .43737E-01    .13621E-03   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19855e-07
Minuit parameter uncertainties:
  1  1.91421
  2  0.996795
  3  3.64128
  4  4.6696e-05
  5  6.60584
  6  3.10256
  7  7.42705e-06
  8  53.4249
  9  1.09231
  10  2.87719
  11  0.000806583
  12  0.000650913
  13  5.03625
  14  0.980838
  15  1.10139e-06
  16  2.72923
  17  9.659
  18  17.4475
  19  2.37488
  20  1.90772e-08
  21  7.91629
  22  1.13988e-06
  23  37.2248
  24  0.19036
  25  0.043739
Done.

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

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  1.000e-04  1.101e-06  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  9.871e-01  4.374e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.112e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 301.278 70.062
Photon Flux Upper Limit: 1.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482743/likelihoodResults_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.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) = 21434.5748354
delta logL = -0.000598204296693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21434.5742371
delta logL = 2.3101165425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6267       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21434.57     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    244.90        .18142E-01** at limit **
   2  alpha         1.2747        3.1157        .17955        .37738E-07
   3  Normalizat    1.1117        .27009E-01    .50517E-03   -.15756E-02
   4  Prefactor     .98709        .69683E-02    .13621E-03   -.55788E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.27468
  Normalizat = 1.11165
  Prefactor  = 0.987086
 **********
 **   18 **HESSE 
 **********

 FCN=   21434.57     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.9173        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2747        2.6647        .71819E-02   -.51224    
   3  Normalizat    1.1117        .16217        .10103E-03   -.89379    
   4  Prefactor     .98709        .41857E-01    .27242E-04   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45351e-09
Minuit parameter uncertainties:
  1  5.89462e-06
  2  347.227
  3  0.162243
  4  0.041858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482743': 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) = 21434.5742366
delta logL = 5.6925273384e-07

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  1.000e-04  5.895e-06  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.275e+00  3.472e+02  0.000e+00  5.000e+00 ( 1.000e+00)
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  9.871e-01  4.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.112e+00  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 301.278 70.062

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/482743/cmap_HighResolution_677894401_678153601_4FGL_J2005.1+7003_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', job_status='DONE', photon_flux_upper_limit='1.17e-08', time_completed='2022-06-29 05:30:43.498242', job_id='482743', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1656505843.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.64' WHERE bin_id='1692' AND source_name='4FGL J2005.1+7003' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:30:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 482743: <4FGL_J2005.1+7003_daily_bin1692> in cluster <slac> Done

Job <4FGL_J2005.1+7003_daily_bin1692> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun 29 04:45:31 2022
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:53:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:53:13 2022
Terminated at Wed Jun 29 05:30:44 2022
Results reported at Wed Jun 29 05:30:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.1+7003_daily_bin1692 301.278 70.0624 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.1+7003 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2206.43 sec.
    Max Memory :                                 636 MB
    Average Memory :                             368.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2250 sec.
    Turnaround time :                            2713 sec.

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

