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


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1750
RA = 1.4986, Dec = 38.401
tmin = 692928001, tmax = 693187201
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='996872', job_status='RUN', time_executed='2022-12-20 00:06:32.912091', time_epoch_executed='1671523592.91' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996872

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996872/ft1_4FGL_J0005.9+3824_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996872/ft1_4FGL_J0005.9+3824_daily_bin1750.fits outfile=/scratch/kocevski/996872/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1750.fits ra=1.4986 dec=38.401 rad=12.0 tmin=692928001.0 tmax=693187201.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.49
user 3.20
sys 0.22

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

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

Number of photons that the gtmktime cut: 865

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/996872/ltcube_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.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/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits
.....................!
real 11.56
user 11.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/996872/ltcube_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits outfile=/scratch/kocevski/996872/expmap_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.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/996872/ltcube_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits
.....................!
real 191.46
user 185.36
sys 5.69

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/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits scfile=/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits outfile=/scratch/kocevski/996872/cmap_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits scfile=/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits outfile=/scratch/kocevski/996872/cmap_HighResolution_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996872/Model_4FGL_J0005.9+3824_daily_bin1750.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/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits.....................!
real 99.13
user 97.43
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits', '/scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits', expMap='/scratch/kocevski/996872/expmap_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits', expCube='/scratch/kocevski/996872/ltcube_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/996872/Model_4FGL_J0005.9+3824_daily_bin1750.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/996872/ft1_filtered_4FGL_J0005.9+3824_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/996872/ft2_4FGL_J0005.9+3824_daily_bin1750.fits
Exposure map: /scratch/kocevski/996872/expmap_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits
Exposure cube: /scratch/kocevski/996872/ltcube_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/996872/Model_4FGL_J0005.9+3824_daily_bin1750.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) = 9125.30461905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1076       1.0000          .0000       .10000E+07
     2 'norm      '    .27645       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9042       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18614E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .74471       1.0000          .0000       .10000E+07
     6 'Prefactor '    .28081E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16755E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.7011       1.0000          .0000       .10000E+07
     9 'norm      '    .34467E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .99996E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17994E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20442E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.789       1.0000          .0000       .10000E+07
    14 'norm      '    1.1507       1.0000          .0000       .10000E+07
    15 'Prefactor '    .30939E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .61279E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .17550E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23972E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .99643E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .20063E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .28949E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .62610E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .99677E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.4686       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90797       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=   9125.190     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1686 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0995        2.6913        .11757E-08    .61173E-02
   2  norm          .26388E-04    11.655        .45968E-07** at limit **
   3  Prefactor     2.9097        3.2852        .55074E-08    .37806E-03
   4  Prefactor     .55511E-10    2.7183        .23013E-08** at limit **
   5  Prefactor     .76172        2.0816        .58969E-08    .66305E-03
   6  Prefactor     .61062E-09    5.1913       -.25310E-07** at limit **
   7  Prefactor     .42744E-08    36.232        .20773E-06** at limit **
   8  Prefactor     9.9320        14.283       -.21935E-07   -.26328E-01
   9  norm           .0000        1.8813       -.47813E-07** at limit **
  10  Prefactor     .38980E-06    12.560        .14314E-06** at limit **
  11  Prefactor     .28977E-07    5.2832        .86884E-07** at limit **
  12  Prefactor     .16426E-06    9.8524        .34672E-07** at limit **
  13  Prefactor     17.718        3.6273        .39427E-08   -.12206E-01
  14  norm          1.1510        1.2381       -.11400E-07   -.72802E-03
  15  Prefactor     .61062E-09    5.0176       -.14177E-07** at limit **
  16  norm          .29670E-04    2.6693        .89004E-07** at limit **
  17  norm           .0000        2.2095       -.14467E-07** at limit **
  18  Prefactor     .28866E-08    11.425        .15379E-06** at limit **
  19  norm           .0000        2.2129       -.49897E-07** at limit **
  20  Prefactor     .22787E-06    90.521       -.55721E-07** at limit **
  21  Prefactor     .21816E-07    5.9115        .97099E-07** at limit **
  22  Prefactor     .23342E-06    1.1475       -.48059E-08** at limit **
  23  Prefactor     .22204E-09    4.3381       -.25221E-07** at limit **
  24  Normalizat    1.4689        .21902        .20411E-05    .23178E-03
  25  Prefactor     .90786        .10555       -.33472E-06    .28914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.09954
  norm       = 2.63879e-05
  Prefactor  = 2.90974
  Prefactor  = 5.55112e-11
  Prefactor  = 0.76172
  Prefactor  = 6.10623e-10
  Prefactor  = 4.27436e-09
  Prefactor  = 9.93203
  norm       = 0
  Prefactor  = 3.89799e-07
  Prefactor  = 2.89768e-08
  Prefactor  = 1.64257e-07
  Prefactor  = 17.7183
  norm       = 1.15102
  Prefactor  = 6.10623e-10
  norm       = 2.96703e-05
  norm       = 0
  Prefactor  = 2.88658e-09
  norm       = 0
  Prefactor  = 2.27873e-07
  Prefactor  = 2.18159e-08
  Prefactor  = 2.33424e-07
  Prefactor  = 2.22045e-10
  Normalizat = 1.46895
  Prefactor  = 0.907864
 **********
 **   18 **HESSE 
 **********

 FCN=   9125.190     FROM HESSE     STATUS=OK           479 CALLS     2165 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0995        16.925        .40601E-03   -1.5659    
   2  norm          .26388E-04    13.514        .10548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9097        3.3045        .59598E-03   -1.5674    
   4  Prefactor     .55511E-10    2.7173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .76172        2.0873        .57150E-03   -1.5691    
   6  Prefactor     .61062E-09    5.2089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .42744E-08    37.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9320        14.874        .32149E-03   -1.5645    
   9  norm           .0000        1.8532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38980E-06    15.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .28977E-07    16.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16426E-06    18.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.718        16.606        .23719E-03   -1.5624    
  14  norm          1.1510        1.2578        .10783E-02   -1.5687    
  15  Prefactor     .61062E-09    5.0199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .29670E-04    2.5862        .57695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28866E-08    11.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        2.1759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22787E-06    90.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .21816E-07    16.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23342E-06    66.083        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .22204E-09    4.3358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4689        .19042        .68772E-01   -.78655    
  25  Prefactor     .90786        .90395E-01    .45106E-01   -.95867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94818e-08
Minuit parameter uncertainties:
  1  16.9249
  2  0.0377676
  3  3.30447
  4  2.69776e-05
  5  2.08735
  6  0.000114516
  7  0.000803668
  8  14.8736
  9  5.45465e-06
  10  0.00493766
  11  0.00138174
  12  0.00344611
  13  16.6064
  14  1.25782
  15  0.00011079
  16  0.0175196
  17  1.33383e-05
  18  0.000372339
  19  2.678e-06
  20  0.00910178
  21  0.0011827
  22  0.00785528
  23  6.55777e-05
  24  0.190516
  25  0.0904098
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  2.639e-05  3.777e-02  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:  9.079e-01  9.041e-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:  1.469e+00  1.905e-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: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996872/likelihoodResults_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.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) = 9125.18936077
delta logL = 0.000188637093743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9125.18932414
delta logL = 0.000225263014727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22206       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90792       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=   9125.189     FROM MIGRAD    STATUS=FAILED       111 CALLS      353 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33655        9347.3        .53489E-03    .79240E-02
   2  alpha         2.8826        3.3598        .50000        .24006E-03
   3  Normalizat    1.4680        .56517E-01    .30432E-03    .26735E-03
   4  Prefactor     .90795        .25287E-01    .18004E-03    .50561E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9125.189     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      462 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33655        9347.3        .15089E-03    .79240E-02
   2  alpha         2.8826        3.3598        .50561E-02    .24006E-03
   3  Normalizat    1.4680        .56517E-01    .70525E-04    .26735E-03
   4  Prefactor     .90795        .25287E-01    .21664E-04    .50561E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9125.189     FROM MIGRAD    STATUS=FAILED        74 CALLS      536 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33658        12176.        .42791E-05   -.71202E-04
   2  alpha         2.8826        3.1213        .50000        .23939E-03
   3  Normalizat    1.4680        .64005E-01    .12173E-04    .27831E-03
   4  Prefactor     .90795        .28718E-01    .72014E-05    .51970E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.336581
  alpha      = 2.88256
  Normalizat = 1.46802
  Prefactor  = 0.907952
 **********
 **   18 **HESSE 
 **********

 FCN=   9125.189     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      563 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33658        12219.        .85582E-06   -1.5696    
   2  alpha         2.8826        3.1194        .50000        .15363    
   3  Normalizat    1.4680        .64118E-01    .24346E-05   -.78681    
   4  Prefactor     .90795        .28675E-01    .14403E-05   -.95864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74513e-05
Minuit parameter uncertainties:
  1  128.523
  2  53.8463
  3  0.0641213
  4  0.0286752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996872': 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): 1
logL (Free Index) = 9125.1892932
delta logL = 0.000256207022176

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  3.366e-01  1.285e+02  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  2.883e+00  5.385e+01  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:  9.080e-01  2.868e-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:  1.468e+00  6.412e-02  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/996872/cmap_HighResolution_692928001_693187201_4FGL_J0005.9+3824_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2022-12-20 00:18:34.334133', job_id='996872', GAL2='0.91', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1671524314.33', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.56e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1750' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:18:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 996872: <4FGL_J0005.9+3824_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1750> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Dec 20 00:04:40 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:04:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:04:42 2022
Terminated at Tue Dec 20 00:18:35 2022
Results reported at Tue Dec 20 00:18:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1750 1.4986 38.401 692928001 693187201 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 :                                   723.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

