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


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1723
RA = 1.4986, Dec = 38.401
tmin = 685929601, tmax = 686188801
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='430016', job_status='RUN', time_executed='2022-09-30 00:08:09.954478', time_epoch_executed='1664521689.95' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430016

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430016/ft1_4FGL_J0005.9+3824_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430016/ft1_4FGL_J0005.9+3824_daily_bin1723.fits outfile=/scratch/kocevski/430016/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1723.fits ra=1.4986 dec=38.401 rad=12.0 tmin=685929601.0 tmax=686188801.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.77
user 3.41
sys 0.22

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

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

Number of photons that the gtmktime cut: 852

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430016/ft1_filtered_4FGL_J0005.9+3824_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430016/ltcube_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.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/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits
.....................!
real 16.48
user 15.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430016/ft1_filtered_4FGL_J0005.9+3824_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430016/ltcube_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.fits outfile=/scratch/kocevski/430016/expmap_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.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/430016/ltcube_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.fits
.....................!
real 196.11
user 188.42
sys 5.39

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/430016/ft1_filtered_4FGL_J0005.9+3824_daily_bin1723.fits scfile=/scratch/kocevski/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits outfile=/scratch/kocevski/430016/cmap_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430016/ft1_filtered_4FGL_J0005.9+3824_daily_bin1723.fits scfile=/scratch/kocevski/430016/ft2_4FGL_J0005.9+3824_daily_bin1723.fits outfile=/scratch/kocevski/430016/cmap_HighResolution_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1195       1.0000          .0000       .10000E+07
     2 'norm      '    8.8251       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.150       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24564E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6021       1.0000          .0000       .10000E+07
     6 'Prefactor '    23.629       1.0000          .0000       .10000E+07
     7 'Prefactor '    .23801E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .29211E-02   1.0000          .0000       .10000E+07
     9 'norm      '    6.5060       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10772E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40345       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49468E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5264       1.0000          .0000       .10000E+07
    14 'norm      '    1.7616       1.0000          .0000       .10000E+07
    15 'Prefactor '    21.156       1.0000          .0000       .10000E+07
    16 'norm      '    .20383E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .28452E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8357       1.0000          .0000       .10000E+07
    19 'norm      '    .50091E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87782E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    15.290       1.0000          .0000       .10000E+07
    22 'Prefactor '    13.334       1.0000          .0000       .10000E+07
    23 'Prefactor '    .21040E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    .85934       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99351       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=   9073.227     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2250 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1012        1.6944        .16493E-06   -.41918E-02
   2  norm          8.8324        5.6842        .84710E-06    .49855E-02
   3  Prefactor     12.248        6.7658       -.15496E-06   -.31646E-02
   4  Prefactor     .94369E-09    4.3858       -.13164E-06** at limit **
   5  Prefactor     2.6015        2.4981       -.11142E-08   -.61646E-02
   6  Prefactor     23.625        2.3339        .19262E-06   -.11299E-01
   7  Prefactor     .21094E-08    13.331       -.12365E-05** at limit **
   8  Prefactor     .78271E-08    4.1262       -.17626E-06** at limit **
   9  norm          6.5026        2.6722       -.18016E-06   -.12788E-02
  10  Prefactor     .61062E-09    3.0682        .26581E-06** at limit **
  11  Prefactor     .38257        2.5171        .61716E-06   -.49797E-02
  12  Prefactor     .20012E-06    7.8436        .49941E-06** at limit **
  13  Prefactor     9.5606        3.9911       -.49333E-06    .18747E-01
  14  norm          1.7633        1.7491       -.72839E-07   -.48705E-02
  15  Prefactor     21.140        9.4394       -.12825E-05   -.32044E-01
  16  norm          .55511E-10    1.6634        .11184E-06** at limit **
  17  norm          .22204E-08    4.3642        .73036E-06** at limit **
  18  Prefactor     2.8020        3.9339       -.10110E-05    .64247E-02
  19  norm          .55424E-01    6.8643        .15094E-06** at limit **
  20  Prefactor     .15338E-06    9.0242       -.22461E-06** at limit **
  21  Prefactor     15.258        18.079       -.12145E-05   -.16534E-01
  22  Prefactor     13.382        31.079        .27754E-05   -.13307E-01
  23  Prefactor     .37192E-08    7.2921       -.27030E-06** at limit **
  24  Normalizat    .85925        .20590        .33177E-05    .65842E-04
  25  Prefactor     .99341        .10220        .63963E-06   -.21222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.10119
  norm       = 8.83241
  Prefactor  = 12.2478
  Prefactor  = 9.4369e-10
  Prefactor  = 2.60154
  Prefactor  = 23.6251
  Prefactor  = 2.10942e-09
  Prefactor  = 7.82707e-09
  norm       = 6.50256
  Prefactor  = 6.10623e-10
  Prefactor  = 0.382568
  Prefactor  = 2.00118e-07
  Prefactor  = 9.56065
  norm       = 1.76333
  Prefactor  = 21.1404
  norm       = 5.55112e-11
  norm       = 2.22045e-09
  Prefactor  = 2.80198
  norm       = 0.0554238
  Prefactor  = 1.53377e-07
  Prefactor  = 15.2579
  Prefactor  = 13.3822
  Prefactor  = 3.71925e-09
  Normalizat = 0.859247
  Prefactor  = 0.993413
 **********
 **   18 **HESSE 
 **********

 FCN=   9073.227     FROM HESSE     STATUS=OK           489 CALLS     2739 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1012        18.571        .33164E-03   -1.5648    
   2  norm          8.8324        12.469        .33717E-03   -1.5649    
   3  Prefactor     12.248        7.0232        .28713E-03   -1.5638    
   4  Prefactor     .94369E-09    4.3686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6015        2.5731        .63218E-03   -1.5676    
   6  Prefactor     23.625        15.390        .20577E-03   -1.5611    
   7  Prefactor     .21094E-08    13.888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .78271E-08    8.1690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5026        2.6961        .39322E-03   -1.5657    
  10  Prefactor     .61062E-09    3.1036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38257        6.4882        .13062E-01   -1.5696    
  12  Prefactor     .20012E-06    17.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5606        14.837        .32444E-03   -1.5646    
  14  norm          1.7633        1.7726        .78912E-03   -1.5681    
  15  Prefactor     21.140        11.807        .21748E-03   -1.5616    
  16  norm          .55511E-10    1.6808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22204E-08    8.3790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8020        18.128        .60361E-03   -1.5674    
  19  norm          .55424E-01    1.1340        .34595E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15338E-06    15.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.258        33.353        .25588E-03   -1.5630    
  22  Prefactor     13.382        37.834        .27405E-03   -1.5635    
  23  Prefactor     .37192E-08    7.4147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85925        .18695        .79623E-01   -.97907    
  25  Prefactor     .99341        .88491E-01    .46186E-01   -.92949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52098e-07
Minuit parameter uncertainties:
  1  18.5709
  2  12.4691
  3  7.0232
  4  0.000128661
  5  2.57314
  6  15.3903
  7  0.00034442
  8  0.000505843
  9  2.6961
  10  8.59424e-05
  11  3.15098
  12  0.0036961
  13  14.8371
  14  1.77259
  15  11.8072
  16  1.53632e-05
  17  0.000273884
  18  14.2542
  19  0.501409
  20  0.00308159
  21  33.3532
  22  37.8344
  23  0.000331989
  24  0.187095
  25  0.0885038
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  8.832e+00  1.247e+01  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.934e-01  8.850e-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.592e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430016/likelihoodResults_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9072.405396
delta logL = 0.821791843755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9072.30173427
delta logL = 0.925453568672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1692       1.0000          .0000       .10000E+07
     2 'alpha     '    .74124       1.0000          .0000       5.0000    
     3 'Normalizat'    .87488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98864       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=   9072.302     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      236 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1743        4.0274        .49337E-03    .34968E-03
   2  alpha         .74077        .48008        .50000       -.69724E-04
   3  Normalizat    .87524        .17453        .78941E-01    .31423E-04
   4  Prefactor     .98844        .87582E-01    .46125E-01   -.42014E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17432
  alpha      = 0.74077
  Normalizat = 0.875237
  Prefactor  = 0.98844
 **********
 **   18 **HESSE 
 **********

 FCN=   9072.302     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1743        6.8549        .17855E-04   -1.5667    
   2  alpha         .74077        .73694        .24804E-01   -.78058    
   3  Normalizat    .87524        .20166        .34944E-03   -.97336    
   4  Prefactor     .98844        .10143        .16495E-03   -.93116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43287e-08
Minuit parameter uncertainties:
  1  6.85489
  2  0.759905
  3  0.201831
  4  0.101447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430016': 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) = 9072.30172967
delta logL = 0.925458167681

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  4.174e+00  6.855e+00  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  7.408e-01  7.599e-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.884e-01  1.014e-01  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.752e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 1.499 38.401
Photon Index (Free Index): 0.74 +/- 0.76
Photon Flux (Free Index): 7.59e-09 +/- 8.54e-09
Energy Flux (Free Index): 2.49e-05 +/- 3.32e-05

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/430016/cmap_HighResolution_685929601_686188801_4FGL_J0005.9+3824_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', comment='SUCCESS', energy_flux2='2.49e-05', dlogl='9.25e-01', photon_flux2='7.59e-09', job_status='DONE', time_completed='2022-09-30 00:21:17.835411', photon_index_error2='0.76', photon_index2='0.74', ts='0.80', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='3.32e-05', EG='0.86', time_epoch_completed='1664522477.84', return_code='0', job_id='430016', GAL2='0.99', EG2='0.88', return_code2='0', photon_flux_error2='8.54e-09', ts2='2.65', photon_index='2.55' WHERE bin_id='1723' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:21:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 430016: <4FGL_J0005.9+3824_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:04:45 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:04:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:04:47 2022
Terminated at Fri Sep 30 00:21:18 2022
Results reported at Fri Sep 30 00:21:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1723 1.4986 38.401 685929601 686188801 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 :                                   784.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

