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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1762
RA = 359.755, Dec = 39.3669
tmin = 696038401, tmax = 696297601
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='124664', job_status='RUN', time_executed='2023-01-25 01:52:09.285309', time_epoch_executed='1674640329.29' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124664/ft1_4FGL_J2359.0+3922_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124664/ft1_4FGL_J2359.0+3922_daily_bin1762.fits outfile=/scratch/kocevski/124664/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1762.fits ra=359.755 dec=39.3669 rad=12.0 tmin=696038401.0 tmax=696297601.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.75
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.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/124664/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 849

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/124664/ltcube_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.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/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits
.....................!
real 13.53
user 13.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/124664/ltcube_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits outfile=/scratch/kocevski/124664/expmap_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.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/124664/ltcube_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits
.....................!
real 195.00
user 188.44
sys 5.23

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.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 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 J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits outfile=/scratch/kocevski/124664/cmap_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.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=359.755 yref=39.3669 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits outfile=/scratch/kocevski/124664/cmap_HighResolution_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.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=359.755 yref=39.3669 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124664/Model_4FGL_J2359.0+3922_daily_bin1762.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits.....................!
real 96.44
user 94.26
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits', '/scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits', expMap='/scratch/kocevski/124664/expmap_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits', expCube='/scratch/kocevski/124664/ltcube_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124664/Model_4FGL_J2359.0+3922_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/124664/ft1_filtered_4FGL_J2359.0+3922_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/124664/ft2_4FGL_J2359.0+3922_daily_bin1762.fits
Exposure map: /scratch/kocevski/124664/expmap_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits
Exposure cube: /scratch/kocevski/124664/ltcube_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124664/Model_4FGL_J2359.0+3922_daily_bin1762.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) = 8899.79575182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52158E-03   1.0000          .0000       .10000E+07
     2 'norm      '    12.540       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.3445       1.0000          .0000       .10000E+07
     4 'norm      '    .68501E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .87463E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.5316       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.6207       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.216       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9731       1.0000          .0000       .10000E+07
    10 'norm      '    3.5374       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4270       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18022       1.0000          .0000       .10000E+07
    13 'norm      '    .71289       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.9467       1.0000          .0000       .10000E+07
    15 'norm      '    15.362       1.0000          .0000       .10000E+07
    16 'norm      '    .86366       1.0000          .0000       .10000E+07
    17 'Prefactor '    28.584       1.0000          .0000       .10000E+07
    18 'norm      '    1.9649       1.0000          .0000       .10000E+07
    19 'Prefactor '    .60648E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33118E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .25710E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.4922       1.0000          .0000       .10000E+07
    23 'Normalizat'    .78424       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8899.772     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1995 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    6.1127       -.16849E-06** at limit **
   2  norm          12.572        2.8554       -.40837E-06    .14388E-01
   3  Prefactor     9.3214        8.3456       -.11301E-06   -.57513E-02
   4  norm          .55511E-10    7.5740       -.11895E-05** at limit **
   5  Prefactor     .38858E-09    3.6921       -.15161E-06** at limit **
   6  Prefactor     6.5224        3.5577       -.31761E-06    .17492E-01
   7  Prefactor     3.6267        5.7815        .24331E-05   -.26121E-01
   8  Prefactor     16.269        1.2867       -.79581E-07    .18929E-01
   9  Prefactor     3.0143        1.1258        .16956E-06   -.12567E-02
  10  norm          3.5428        2.7027       -.48077E-07    .18488E-02
  11  Prefactor     1.4141        3.0358       -.78416E-08   -.20265E-02
  12  Prefactor     .10474E-01    15.703       -.84199E-05** at limit **
  13  norm          .71541        1.0381        .13347E-06    .15620E-01
  14  Prefactor     5.9623        9.7840       -.55289E-05   -.40308E-01
  15  norm          15.201        6.1191       -.19056E-06    .24040E-02
  16  norm          .98444        12.135       -.43325E-05   -.73638E-02
  17  Prefactor     28.605        1.4078        .51005E-07    .22186E-02
  18  norm          1.9617        2.3713        .34798E-06    .76248E-02
  19  Prefactor     .20405E-05    63.616       -.51037E-05** at limit **
  20  Prefactor     .58786E-07    28.639        .10675E-05** at limit **
  21  Prefactor     .20706E-07    18.432        .18235E-06** at limit **
  22  Prefactor     1.4659        5.4869       -.91991E-06    .64673E-03
  23  Normalizat    .78420        .22444        .61416E-05    .46322E-03
  24  Prefactor     1.0543        .10447        .70305E-05    .12728E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 12.5717
  Prefactor  = 9.32135
  norm       = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 6.52235
  Prefactor  = 3.62672
  Prefactor  = 16.2693
  Prefactor  = 3.01433
  norm       = 3.54281
  Prefactor  = 1.41405
  Prefactor  = 0.0104745
  norm       = 0.715413
  Prefactor  = 5.96231
  norm       = 15.2011
  norm       = 0.984444
  Prefactor  = 28.6054
  norm       = 1.96166
  Prefactor  = 2.04053e-06
  Prefactor  = 5.87863e-08
  Prefactor  = 2.07057e-08
  Prefactor  = 1.46587
  Normalizat = 0.784199
  Prefactor  = 1.05429
 **********
 **   18 **HESSE 
 **********

 FCN=   8899.772     FROM HESSE     STATUS=OK           461 CALLS     2456 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    6.1176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.572        15.846        .28261E-03   -1.5637    
   3  Prefactor     9.3214        9.5523        .32760E-03   -1.5647    
   4  norm          .55511E-10    1.2891        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    3.6769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5224        3.6700        .39244E-03   -1.5657    
   7  Prefactor     3.6267        13.018        .53073E-03   -1.5670    
   8  Prefactor     16.269        20.973        .24845E-03   -1.5627    
   9  Prefactor     3.0143        74.301        .58859E-03   -1.5673    
  10  norm          3.5428        2.7020        .53720E-03   -1.5670    
  11  Prefactor     1.4141        3.0727        .90442E-03   -1.5684    
  12  Prefactor     .10474E-01    16.207        .12139E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .71541        1.0554        .59668E-03   -1.5691    
  14  Prefactor     5.9623        10.779        .41154E-03   -1.5659    
  15  norm          15.201        6.7802        .25528E-03   -1.5630    
  16  norm          .98444        13.181        .48306E-03   -1.5688    
  17  Prefactor     28.605        20.229        .18707E-03   -1.5601    
  18  norm          1.9617        2.3967        .73959E-03   -1.5680    
  19  Prefactor     .20405E-05    64.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58786E-07    28.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20706E-07    18.476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4659        5.6020        .87710E-03   -1.5684    
  23  Normalizat    .78420        .20553        .87937E-01   -1.0066    
  24  Prefactor     1.0543        .92835E-01    .39671E-01   -.90941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87484e-07
Minuit parameter uncertainties:
  1  4.1073e-05
  2  15.8462
  3  9.55232
  4  1.22825e-05
  5  7.63619e-05
  6  3.67004
  7  13.0183
  8  20.973
  9  29.9315
  10  2.70198
  11  3.07272
  12  0.824048
  13  1.05541
  14  10.7791
  15  6.78023
  16  7.20447
  17  20.2295
  18  2.39668
  19  0.02289
  20  0.00259635
  21  0.00123714
  22  5.60207
  23  0.205733
  24  0.0928487
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.466e+00  5.602e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.054e+00  9.285e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.842e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 8.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124664/likelihoodResults_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.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) = 8899.42339667
delta logL = 0.348763043457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8899.42008211
delta logL = 0.352077603317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4108       1.0000          .0000       .10000E+07
     2 'Index     '    1.6252       1.0000          .0000       10.000    
     3 'Normalizat'    .79295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0484       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8899.420     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      278 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4412        480.68        .36818E-03    .10680E-02
   2  Index         1.6275        5.3986        .28522        .56708E-05
   3  Normalizat    .79298        .82783E-01    .87490E-01    .79740E-04
   4  Prefactor     1.0484        .33768E-01    .40003E-01    .62719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44115
  Index      = 1.62746
  Normalizat = 0.792976
  Prefactor  = 1.04837
 **********
 **   18 **HESSE 
 **********

 FCN=   8899.420     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4412        10.503        .14727E-04   -1.5653    
   2  Index         1.6275        .62513        .11328E-01   -.74030    
   3  Normalizat    .79298        .21796        .38748E-03   -1.0033    
   4  Prefactor     1.0484        .10388        .16106E-03   -.91134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14576e-12
Minuit parameter uncertainties:
  1  10.5028
  2  0.628161
  3  0.218197
  4  0.103903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124664': 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) = 8899.42007061
delta logL = 0.352089100057

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.441e+00  1.050e+01  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.627e+00  6.282e-01  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.048e+00  1.039e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.930e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 359.755 39.367

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/124664/cmap_HighResolution_696038401_696297601_4FGL_J2359.0+3922_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.26e-08', time_completed='2023-01-25 02:04:48.747640', job_id='124664', GAL2='1.05', fit_tolerance='1e-08', EG2='0.79', EG='0.78', time_epoch_completed='1674641088.75', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.52e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1762' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 02:04:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 124664: <4FGL_J2359.0+3922_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 01:50:15 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:50:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:50:55 2023
Terminated at Wed Jan 25 02:04:49 2023
Results reported at Wed Jan 25 02:04:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1762 359.755 39.3669 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            874 sec.

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

