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


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1707
RA = 1.4986, Dec = 38.401
tmin = 681782401, tmax = 682041601
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='542097', job_status='RUN', time_executed='2022-08-13 00:05:07.226457', time_epoch_executed='1660374307.23' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542097/ft1_4FGL_J0005.9+3824_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542097/ft1_4FGL_J0005.9+3824_daily_bin1707.fits outfile=/scratch/kocevski/542097/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1707.fits ra=1.4986 dec=38.401 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.52
user 5.15
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.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/542097/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.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.59
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/542097/ltcube_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.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/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits
.....................!
real 11.91
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/542097/ltcube_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits outfile=/scratch/kocevski/542097/expmap_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.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/542097/ltcube_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits
.....................!
real 192.26
user 187.06
sys 4.83

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 158 point sources and 1 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 J0005.9+3824 @ 1.4986 38.401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits outfile=/scratch/kocevski/542097/cmap_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.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=1.4986 yref=38.401 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 1.47
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits outfile=/scratch/kocevski/542097/cmap_HighResolution_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.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=1.4986 yref=38.401 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 1.11
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542097/Model_4FGL_J0005.9+3824_daily_bin1707.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits.....................!
real 113.39
user 89.70
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits', '/scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits', expMap='/scratch/kocevski/542097/expmap_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits', expCube='/scratch/kocevski/542097/ltcube_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542097/Model_4FGL_J0005.9+3824_daily_bin1707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0005.9+3824'

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  7.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542097/ft1_filtered_4FGL_J0005.9+3824_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/542097/ft2_4FGL_J0005.9+3824_daily_bin1707.fits
Exposure map: /scratch/kocevski/542097/expmap_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits
Exposure cube: /scratch/kocevski/542097/ltcube_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542097/Model_4FGL_J0005.9+3824_daily_bin1707.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) = 8776.72254248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    61.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3469       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7771       1.0000         .10000E-03   10000.    
    17 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24067E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    96.132       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85275       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8776.705     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     2833 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8854        .84758E-06** at limit **
   2  Prefactor     .10000E-03    4.5073       -.18440E-07** at limit **
   3  norm          .10000E-03    7.5388       -.31111E-06** at limit **
   4  Prefactor     .10000E-03    1.6121        .29458E-07** at limit **
   5  Prefactor     6.9998        5.1088        .90950E-06   -.11810E-02
   6  Prefactor     .10000E-03    .93857        .10596E-07** at limit **
   7  Prefactor     .10000E-03    10.153        .24365E-06** at limit **
   8  Prefactor     61.080        27.027        .26357E-05    .72817E-03
   9  Prefactor     .10000E-03    8.7683       -.66205E-06** at limit **
  10  norm          .10000E-03    .84222       -.29386E-07** at limit **
  11  Prefactor     .10000E-03    1.6823        .48256E-07** at limit **
  12  Prefactor     8.9404        9.7681        .17038E-06    .34132E-04
  13  Prefactor     6.2924        6.3263       -.13890E-07   -.29051E-04
  14  Prefactor     1.3467        24.098        .73591E-06   -.79763E-04
  15  norm          .10000E-03    .50264       -.41883E-07** at limit **
  16  Prefactor     3.7767        5.6501        .14146E-06   -.63394E-04
  17  norm          .10000E-03    4.1726        .13705E-06** at limit **
  18  norm          .10000E-03    3.9077        .12522E-07** at limit **
  19  Prefactor     .10003E-03    7.2397       -.55146E-06** at limit **
  20  norm          .10000E-03    .43543       -.41183E-08** at limit **
  21  Prefactor     .12199        8.1625       -.24752E-05    .65665E-03
  22  Prefactor     .10000E-03    17.093        .82259E-07** at limit **
  23  Prefactor     96.134        40.318        .72958E-06    .18415E-03
  24  Prefactor     .10002E-03    67.163        .77753E-05** at limit **
  25  Prefactor     .10000E-03    3.4844        .30571E-07** at limit **
  26  Normalizat    .85232        .17426       -.13761E-05    .92417E-04
  27  Prefactor     .91298        .81447E-01    .12253E-06    .13169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.0804
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.94044
  Prefactor  = 6.29241
  Prefactor  = 1.34673
  norm       = 0.0001
  Prefactor  = 3.77675
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.121991
  Prefactor  = 0.0001
  Prefactor  = 96.1336
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Normalizat = 0.852318
  Prefactor  = 0.912981
 **********
 **   18 **HESSE 
 **********

 FCN=   8776.705     FROM HESSE     STATUS=OK           490 CALLS     3323 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.5780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6157        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9998        7.3555        .75837E-03   -1.5179    
   6  Prefactor     .10000E-03    .95571        .88578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     61.080        27.729        .51345E-04   -1.4143    
   9  Prefactor     .10000E-03    8.7865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6614        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6918        .11863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9404        9.7698        .13407E-03   -1.5110    
  13  Prefactor     6.2924        6.3142        .16003E-03   -1.5206    
  14  Prefactor     1.3467        25.149        .37723E-03   -1.5476    
  15  norm          .10000E-03    .51592        .12963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7767        5.6500        .20772E-03   -1.5319    
  17  norm          .10000E-03    4.3155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9207        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    50.038        .48415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .43670        .60366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12199        6.8029        .89810E-01   -1.5638    
  22  Prefactor     .10000E-03    17.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     96.134        40.651        .40995E-04   -1.3744    
  24  Prefactor     .10002E-03    69.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.5171        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85232        .20269        .32696E-03   -.98156    
  27  Prefactor     .91298        .95286E-01    .15674E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66722e-09
Minuit parameter uncertainties:
  1  8.60699e-05
  2  3.56485e-07
  3  3.21804e-05
  4  9.29515e-07
  5  7.35649
  6  6.42183e-07
  7  3.19501e-05
  8  27.7344
  9  7.10521e-05
  10  8.74536e-08
  11  7.75451e-07
  12  9.77155
  13  6.31482
  14  11.6445
  15  2.08969e-07
  16  5.65082
  17  1.8001e-05
  18  1.94024e-06
  19  0.00254409
  20  7.38008e-08
  21  1.82144
  22  1.5585e-05
  23  40.6624
  24  0.00229633
  25  2.25333e-06
  26  0.202868
  27  0.095303
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  1.000e-04  3.218e-05  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.130e-01  9.530e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.523e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.499 38.401
Photon Flux Upper Limit: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542097/likelihoodResults_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.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) = 8776.70550096
delta logL = -0.000629009187833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8776.70487193
delta logL = 2.30447767535e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5677       1.0000          .0000       5.0000    
     3 'Normalizat'    .85231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8776.612     FROM MIGRAD    STATUS=FAILED       169 CALLS      316 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62012        90.317        .35929E-01    .15080E-02
   2  alpha         5.0000        2.9205        .16468    ** at limit **
   3  Normalizat    .82363        .19508        .32696E-03   -.13679E-03
   4  Prefactor     .92101        .42572E-01    .15674E-03   -.93510E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8776.612     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      455 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62012        90.317        .19710E-04    .15080E-02
   2  alpha         5.0000        2.9205        .10071E-01** at limit **
   3  Normalizat    .82363        .19508        .33197E-05   -.13679E-03
   4  Prefactor     .92101        .42572E-01    .90844E-07   -.93510E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8776.612     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      489 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62012        1.5234        .13960E-02    .62103E-02
   2  alpha         5.0000        4.4399        .65873E-02** at limit **
   3  Normalizat    .82363        .20084        .13078E-04   -.13700E-03
   4  Prefactor     .92101        .96065E-01    .31348E-04   -.93278E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.620125
  alpha      = 5
  Normalizat = 0.823634
  Prefactor  = 0.921008
 **********
 **   18 **HESSE 
 **********

 FCN=   8776.612     FROM HESSE     STATUS=OK            25 CALLS      514 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62012        1.5170        .27919E-03   -1.5550    
   2  alpha         5.0000        4.4399        .13175E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .82363        .20014        .26157E-05   -.99198    
   4  Prefactor     .92101        .95946E-01    .62695E-05   -.95411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91779e-11
Minuit parameter uncertainties:
  1  1.51709
  2  4.57971e-05
  3  0.200314
  4  0.0959636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542097': 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) = 8776.61179497
delta logL = 0.0930769762545

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  6.201e-01  1.517e+00  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  5.000e+00  4.580e-05  0.000e+00  5.000e+00 ( 1.000e+00)
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.210e-01  9.596e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.236e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.499 38.401

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/542097/cmap_HighResolution_681782401_682041601_4FGL_J0005.9+3824_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2022-08-13 00:20:20.285944', job_id='542097', GAL2='0.92', fit_tolerance='1e-08', EG2='0.82', EG='0.85', time_epoch_completed='1660375220.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.31e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1707' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:20:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 542097: <4FGL_J0005.9+3824_daily_bin1707> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:04:29 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:04:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:04:31 2022
Terminated at Sat Aug 13 00:20:21 2022
Results reported at Sat Aug 13 00:20:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1707 1.4986 38.401 681782401 682041601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0005.9+3824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

