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 10 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7493
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1748
RA = 1.4986, Dec = 38.401
tmin = 692409601, tmax = 692668801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='875418', job_status='RUN', time_executed='2022-12-14 00:05:12.857997', time_epoch_executed='1671005112.86' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875418/ft1_4FGL_J0005.9+3824_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875418/ft1_4FGL_J0005.9+3824_daily_bin1748.fits outfile=/scratch/kocevski/875418/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1748.fits ra=1.4986 dec=38.401 rad=12.0 tmin=692409601.0 tmax=692668801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/875418/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 960

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875418/ltcube_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits
.....................!
real 12.03
user 11.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875418/ltcube_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits outfile=/scratch/kocevski/875418/expmap_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/875418/ltcube_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits
.....................!
real 192.13
user 187.40
sys 4.35

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/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits outfile=/scratch/kocevski/875418/cmap_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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 0.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits outfile=/scratch/kocevski/875418/cmap_HighResolution_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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 0.61
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875418/Model_4FGL_J0005.9+3824_daily_bin1748.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits....................!
real 105.34
user 101.50
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits', '/scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits', expMap='/scratch/kocevski/875418/expmap_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits', expCube='/scratch/kocevski/875418/ltcube_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875418/Model_4FGL_J0005.9+3824_daily_bin1748.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  0.000e+00  1.000e+06 ( 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 -5.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/875418/ft1_filtered_4FGL_J0005.9+3824_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875418/ft2_4FGL_J0005.9+3824_daily_bin1748.fits
Exposure map: /scratch/kocevski/875418/expmap_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875418/ltcube_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875418/Model_4FGL_J0005.9+3824_daily_bin1748.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.992       1.0000          .0000       .10000E+07
     2 'norm      '    .19543E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .25482E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8666       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11541E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.6506       1.0000          .0000       .10000E+07
     7 'Prefactor '    .22524E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19992E-03   1.0000          .0000       .10000E+07
     9 'norm      '    5.9196       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24680E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0520       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3331       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17380E-02   1.0000          .0000       .10000E+07
    14 'norm      '    3.1017       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.8277       1.0000          .0000       .10000E+07
    16 'norm      '    .33955       1.0000          .0000       .10000E+07
    17 'norm      '    .36308E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20775E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.8413       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.7795       1.0000          .0000       .10000E+07
    21 'Prefactor '    .62481E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .39915E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8524       1.0000          .0000       .10000E+07
    24 'Normalizat'    .91128       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10100.21     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2172 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.085        8.8033       -.98342E-06   -.32001E-01
   2  norm          .49960E-09    7.4422        .31896E-06** at limit **
   3  Prefactor      .0000        1.5539       -.40938E-07** at limit **
   4  Prefactor     4.7713        6.6352       -.36335E-06   -.53689E-03
   5  Prefactor      .0000        5.0846        .94633E-06** at limit **
   6  Prefactor     9.6577        14.958        .13284E-05    .66085E-01
   7  Prefactor     .13091E-03    41.173        .59508E-05** at limit **
   8  Prefactor     .20471E-05    14.754       -.14385E-05** at limit **
   9  norm          5.9192        2.7026       -.22576E-07    .10780E-02
  10  Prefactor      .0000        3.0793        .75233E-06** at limit **
  11  Prefactor     2.0407        3.7262       -.10496E-05   -.14201E-01
  12  Prefactor     2.3202        9.2517       -.94038E-06   -.27472E-02
  13  Prefactor     .48787E-04    46.351       -.24541E-05** at limit **
  14  norm          3.1002        1.4822       -.81024E-07    .86364E-05
  15  Prefactor     2.8159        8.3866        .32503E-06   -.13703E-03
  16  norm          .34915        9.1417        .10259E-05    .24000E-03
  17  norm          .55511E-10    3.4447        .20117E-07** at limit **
  18  Prefactor     .39413E-08    9.2825       -.56523E-06** at limit **
  19  norm          1.8403        2.1019        .21830E-06    .15009E-02
  20  Prefactor     7.2503        76.846        .51982E-05    .39717E-01
  21  Prefactor     .27144E-05    14.137        .35394E-05** at limit **
  22  Prefactor     .16653E-09    29.042       -.55069E-06** at limit **
  23  Prefactor     5.9804        6.0000        .50896E-06    .21517E-02
  24  Normalizat    .91183        .21066       -.20032E-05    .68638E-04
  25  Prefactor     1.1020        .10332        .54738E-05    .24614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0849
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 4.77134
  Prefactor  = 0
  Prefactor  = 9.65766
  Prefactor  = 0.000130908
  Prefactor  = 2.04708e-06
  norm       = 5.91922
  Prefactor  = 0
  Prefactor  = 2.04067
  Prefactor  = 2.32017
  Prefactor  = 4.87866e-05
  norm       = 3.10021
  Prefactor  = 2.81592
  norm       = 0.349148
  norm       = 5.55112e-11
  Prefactor  = 3.94129e-09
  norm       = 1.84029
  Prefactor  = 7.25033
  Prefactor  = 2.71438e-06
  Prefactor  = 1.66533e-10
  Prefactor  = 5.98036
  Normalizat = 0.911828
  Prefactor  = 1.10204
 **********
 **   18 **HESSE 
 **********

 FCN=   10100.21     FROM HESSE     STATUS=OK           483 CALLS     2655 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.085        20.132        .22372E-03   -1.5618    
   2  norm          .49960E-09    7.4771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.5561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7713        6.6401        .45574E-03   -1.5664    
   5  Prefactor      .0000        4.9539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6577        16.055        .32234E-03   -1.5646    
   7  Prefactor     .13091E-03    75.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20471E-05    17.106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9192        2.7410        .41250E-03   -1.5659    
  10  Prefactor      .0000        3.0799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0407        36.927        .72133E-03   -1.5679    
  12  Prefactor     2.3202        9.2416        .67107E-03   -1.5677    
  13  Prefactor     .48787E-04    59.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1002        1.4902        .57554E-03   -1.5673    
  15  Prefactor     2.8159        8.4259        .60453E-03   -1.5674    
  16  norm          .34915        2.6697        .53031E-02   -1.5696    
  17  norm          .55511E-10    3.4515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .39413E-08    9.2846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8403        2.1214        .76840E-03   -1.5681    
  20  Prefactor     7.2503        95.019        .33805E-03   -1.5654    
  21  Prefactor     .27144E-05    16.297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16653E-09    28.945        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9804        6.0345        .41490E-03   -1.5659    
  24  Normalizat    .91183        .18961        .80784E-01   -.96046    
  25  Prefactor     1.1020        .90570E-01    .37512E-01   -.89401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06391e-06
Minuit parameter uncertainties:
  1  20.1318
  2  0.000122447
  3  9.63278e-06
  4  6.64014
  5  8.23949e-06
  6  16.0553
  7  0.199173
  8  0.0118351
  9  2.74101
  10  4.466e-06
  11  17.3616
  12  9.24164
  13  0.107798
  14  1.49019
  15  8.4259
  16  1.93092
  17  3.2025e-05
  18  0.000381816
  19  2.12145
  20  52.4956
  21  0.0133022
  22  0.000142521
  23  6.03455
  24  0.189745
  25  0.0905827
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  4.996e-10  1.224e-04  0.000e+00  1.000e+06 ( 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 -5.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:  1.102e+00  9.058e-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:  9.118e-01  1.897e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875418/likelihoodResults_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10100.2061649
delta logL = -0.00058742778856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10100.205578
delta logL = -4.60933733848e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55974E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    2.4262       1.0000          .0000       5.0000    
     3 'Normalizat'    .91178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1021       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.

 FCN=   10100.21     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      268 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    .50013E-01    .42118E-03** at limit **
   2  alpha         .48364        2.7783        .41174       -.88355E-10
   3  Normalizat    .91183        .93533E-03    .80784E-01   -.35224E-04
   4  Prefactor     1.1020        .47659E-03    .37508E-01   -.13831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 0.483642
  Normalizat = 0.911828
  Prefactor  = 1.10204
 **********
 **   18 **HESSE 
 **********

 FCN=   10100.21     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      295 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .27253        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .48364        4.3698        .50000       -.93828    
   3  Normalizat    .91183        .21761E-02    .35761E-03   -.96046    
   4  Prefactor     1.1020        .11112E-02    .16659E-03   -.89401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96978e-11
Minuit parameter uncertainties:
  1  5.87009e-06
  2  50272.8
  3  0.00217611
  4  0.00111121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875418': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10100.2055775
delta logL = 1.81898940355e-11

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  5.551e-11  5.870e-06  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  4.836e-01  5.027e+04  0.000e+00  5.000e+00 ( 1.000e+00)
25          beta:  1.899e-01  0.000e+00 -5.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:  1.102e+00  1.111e-03  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:  9.118e-01  2.176e-03  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/875418/cmap_HighResolution_692409601_692668801_4FGL_J0005.9+3824_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2022-12-14 00:19:52.767923', job_id='875418', GAL2='1.10', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1671005992.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1748' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:19:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 875418: <4FGL_J0005.9+3824_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:04:35 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:04:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:04:36 2022
Terminated at Wed Dec 14 00:19:53 2022
Results reported at Wed Dec 14 00:19:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1748 1.4986 38.401 692409601 692668801 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 :                                   872.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

