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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1733
RA = 359.755, Dec = 39.3669
tmin = 688521601, tmax = 688780801
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='709854', job_status='RUN', time_executed='2022-10-30 00:43:03.392451', time_epoch_executed='1667115783.39' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709854/ft1_4FGL_J2359.0+3922_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709854/ft1_4FGL_J2359.0+3922_daily_bin1733.fits outfile=/scratch/kocevski/709854/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1733.fits ra=359.755 dec=39.3669 rad=12.0 tmin=688521601.0 tmax=688780801.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.51
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.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/709854/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.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.17

Number of photons that the gtmktime cut: 920

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/709854/ltcube_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.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/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits
.....................!
real 12.33
user 11.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/709854/ltcube_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits outfile=/scratch/kocevski/709854/expmap_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.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/709854/ltcube_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits
.....................!
real 190.56
user 185.47
sys 4.71

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/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits outfile=/scratch/kocevski/709854/cmap_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits outfile=/scratch/kocevski/709854/cmap_HighResolution_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/709854/Model_4FGL_J2359.0+3922_daily_bin1733.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/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits....................!
real 104.01
user 102.62
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits', '/scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits', expMap='/scratch/kocevski/709854/expmap_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits', expCube='/scratch/kocevski/709854/ltcube_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/709854/Model_4FGL_J2359.0+3922_daily_bin1733.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/709854/ft1_filtered_4FGL_J2359.0+3922_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/709854/ft2_4FGL_J2359.0+3922_daily_bin1733.fits
Exposure map: /scratch/kocevski/709854/expmap_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits
Exposure cube: /scratch/kocevski/709854/ltcube_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/709854/Model_4FGL_J2359.0+3922_daily_bin1733.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) = 9824.91387323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36873       1.0000          .0000       .10000E+07
     2 'norm      '    .15313E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15882E-06   1.0000          .0000       .10000E+07
     4 'norm      '    3.6973       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9166       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7269       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.261       1.0000          .0000       .10000E+07
     8 'Prefactor '    81.303       1.0000          .0000       .10000E+07
     9 'Prefactor '    13.126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2075       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7466       1.0000          .0000       .10000E+07
    12 'Prefactor '    16.406       1.0000          .0000       .10000E+07
    13 'norm      '    1.1684       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12869E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .86447       1.0000          .0000       .10000E+07
    16 'norm      '    13.539       1.0000          .0000       .10000E+07
    17 'Prefactor '    34.838       1.0000          .0000       .10000E+07
    18 'norm      '    .98188E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .94910E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35894E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .89563E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .76894E-06   1.0000          .0000       .10000E+07
    23 'Normalizat'    .72510       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0872       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=   9824.872     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1964 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11287E-03    83.519        .46863E-05** at limit **
   2  norm          .11102E-09    5.7845        .69254E-06** at limit **
   3  Prefactor      .0000        4.0900        .71462E-06** at limit **
   4  norm          3.6986        2.2784       -.92761E-07   -.27298E-02
   5  Prefactor     2.9678        7.1851       -.27083E-06    .22348E-03
   6  Prefactor     3.7417        2.9755        .77213E-07   -.10163E-02
   7  Prefactor     22.326        1.9527       -.80684E-07   -.23123E-01
   8  Prefactor     82.477        23.960       -.94400E-06    .10751    
   9  Prefactor     12.527        17.024        .10575E-05    .55119E-01
  10  norm          2.2040        2.5097        .28091E-06    .14325E-02
  11  Prefactor     1.6246        6.0048        .48816E-06   -.71803E-04
  12  Prefactor     16.415        1.0776        .30001E-08   -.71898E-02
  13  norm          1.1658        1.0760       -.15134E-06   -.10794E-02
  14  Prefactor     .16653E-09    3.8410        .57822E-06** at limit **
  15  norm          .77660        2.7010        .13993E-05   -.22294E-01
  16  norm          13.548        10.009       -.82739E-06   -.48174E-01
  17  Prefactor     35.624        12.705       -.99069E-06    .13973    
  18  norm           .0000        .71331        .42140E-06** at limit **
  19  Prefactor     .16813E-05    16.570       -.60528E-06** at limit **
  20  Prefactor     .21954E-05    17.700        .19913E-05** at limit **
  21  Prefactor     .14433E-08    10.795        .60751E-07** at limit **
  22  Prefactor      .0000        1.6710       -.16151E-06** at limit **
  23  Normalizat    .72263        .22776        .88456E-05   -.15695E-03
  24  Prefactor     1.0879        .10197       -.22792E-05   -.42928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112874
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 3.69863
  Prefactor  = 2.96779
  Prefactor  = 3.74166
  Prefactor  = 22.3263
  Prefactor  = 82.4766
  Prefactor  = 12.5273
  norm       = 2.20403
  Prefactor  = 1.62456
  Prefactor  = 16.4151
  norm       = 1.16581
  Prefactor  = 1.66533e-10
  norm       = 0.776601
  norm       = 13.5484
  Prefactor  = 35.6238
  norm       = 0
  Prefactor  = 1.68127e-06
  Prefactor  = 2.19541e-06
  Prefactor  = 1.44329e-09
  Prefactor  = 0
  Normalizat = 0.722627
  Prefactor  = 1.08792
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.872     FROM HESSE     STATUS=OK           455 CALLS     2419 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11287E-03    7.2511        .14896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    5.7902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.0881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6986        2.2767        .52498E-03   -1.5669    
   5  Prefactor     2.9678        7.2474        .59462E-03   -1.5674    
   6  Prefactor     3.7417        3.1542        .52281E-03   -1.5669    
   7  Prefactor     22.326        16.909        .21200E-03   -1.5613    
   8  Prefactor     82.477        33.829        .11091E-03   -1.5526    
   9  Prefactor     12.527        36.615        .27622E-03   -1.5637    
  10  norm          2.2040        2.5267        .69209E-03   -1.5678    
  11  Prefactor     1.6246        6.1050        .79324E-03   -1.5682    
  12  Prefactor     16.415        15.214        .24701E-03   -1.5627    
  13  norm          1.1658        1.1087        .10622E-02   -1.5686    
  14  Prefactor     .16653E-09    3.8426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .77660        20.090        .48248E-03   -1.5690    
  16  norm          13.548        10.071        .27196E-03   -1.5634    
  17  Prefactor     35.624        28.008        .16944E-03   -1.5589    
  18  norm           .0000        .71481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16813E-05    17.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .21954E-05    19.531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .14433E-08    10.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.6741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72263        .21326        .94177E-01   -1.0301    
  24  Prefactor     1.0879        .91216E-01    .38096E-01   -.89854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11688e-06
Minuit parameter uncertainties:
  1  0.0572174
  2  5.66527e-05
  3  2.00928e-05
  4  2.27667
  5  7.24744
  6  3.15417
  7  16.909
  8  33.8289
  9  36.6158
  10  2.52671
  11  6.10506
  12  15.214
  13  1.10871
  14  5.28263e-05
  15  7.8999
  16  10.0709
  17  28.0086
  18  8.1272e-06
  19  0.0109678
  20  0.0130965
  21  0.000251327
  22  3.17979e-06
  23  0.21351
  24  0.0912294
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  3.180e-06  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.088e+00  9.123e-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.226e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/709854/likelihoodResults_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.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) = 9824.87463731
delta logL = -0.00241898235072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9824.87222135
delta logL = -3.01990257867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73955E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2665       1.0000          .0000       10.000    
     3 'Normalizat'    .72234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0880       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9824.872     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      239 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9470        .42118E-03** at limit **
   2  Index         2.1995        1.3509        .14641E-04     .0000    
   3  Normalizat    .72263        1.0622        .17967E-05    .17022E-04
   4  Prefactor     1.0879        1.1568       -.14288E-05    .69286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19953
  Normalizat = 0.722627
  Prefactor  = 1.08792
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9824.872     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53381        1.8188        .14641E-04   -.59450    
   3  Normalizat    .72263        1.0622        .17967E-05   -1.0301    
   4  Prefactor     1.0879        1.1568       -.14288E-05   -.89854    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97737e-12
Minuit parameter uncertainties:
  1  5.32851e-06
  2  1.37603
  3  1.09504
  4  1.18516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709854': 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): 101
logL (Free Index) = 9824.87221833
delta logL = 2.54658516496e-11

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  5.329e-06  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.200e+00  1.376e+00  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.088e+00  1.185e+00  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.226e-01  1.095e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/709854/cmap_HighResolution_688521601_688780801_4FGL_J2359.0+3922_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2022-10-30 00:55:48.857207', job_id='709854', GAL2='1.09', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1667116548.86', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1733' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:55:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 709854: <4FGL_J2359.0+3922_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1733> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Oct 30 00:40:18 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:40:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:40:20 2022
Terminated at Sun Oct 30 00:55:49 2022
Results reported at Sun Oct 30 00:55:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1733 359.755 39.3669 688521601 688780801 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 :                                   767.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

