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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1739
RA = 359.755, Dec = 39.3669
tmin = 690076801, tmax = 690336001
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='655908', job_status='RUN', time_executed='2022-11-17 01:17:46.380551', time_epoch_executed='1668676666.38' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655908/ft1_4FGL_J2359.0+3922_daily_bin1739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655908/ft2_4FGL_J2359.0+3922_daily_bin1739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655908/ft1_4FGL_J2359.0+3922_daily_bin1739.fits outfile=/scratch/kocevski/655908/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1739.fits ra=359.755 dec=39.3669 rad=12.0 tmin=690076801.0 tmax=690336001.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 4.39
user 4.04
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655908/ft2_4FGL_J2359.0+3922_daily_bin1739.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/655908/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1739.fits evtable="EVENTS" outfile="/scratch/kocevski/655908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1739.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 800

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1739.fits evtable="EVENTS" scfile=/scratch/kocevski/655908/ft2_4FGL_J2359.0+3922_daily_bin1739.fits sctable="SC_DATA" expcube=/scratch/kocevski/655908/ltcube_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.fits outfile=/scratch/kocevski/655908/expmap_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.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/655908/ltcube_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.fits
.....................!
real 193.66
user 186.30
sys 5.43

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/655908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1739.fits scfile=/scratch/kocevski/655908/ft2_4FGL_J2359.0+3922_daily_bin1739.fits outfile=/scratch/kocevski/655908/cmap_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.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.62
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1739.fits scfile=/scratch/kocevski/655908/ft2_4FGL_J2359.0+3922_daily_bin1739.fits outfile=/scratch/kocevski/655908/cmap_HighResolution_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34361E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .20001E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .87799E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .84329       1.0000          .0000       .10000E+07
     5 'Prefactor '    .65983       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10366E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19906       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14434E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33451E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.4231       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13774E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .98432E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .25924E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .95957E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .11506E-05   1.0000          .0000       .10000E+07
    16 'norm      '    2.7517       1.0000          .0000       .10000E+07
    17 'Prefactor '    53.158       1.0000          .0000       .10000E+07
    18 'norm      '    1.5324       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63618       1.0000          .0000       .10000E+07
    20 'Prefactor '    24.211       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15715E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .37182E-01   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3235       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93493       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=   8599.447     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2040 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24914E-05    1.7712       -.13619E-05** at limit **
   2  norm          .45963E-07    6.2074        .18247E-05** at limit **
   3  Prefactor     .55511E-10    1.9461        .28173E-06** at limit **
   4  norm          .84380        1.5261        .67834E-06    .10870E-01
   5  Prefactor     .64706        .87289       -.22147E-05   -.17015E-01
   6  Prefactor     .22204E-09    5.8717        .41893E-05** at limit **
   7  Prefactor     .67712E-02    48.726       -.32867E-04** at limit **
   8  Prefactor     .77327E-07    6.2679        .23737E-05** at limit **
   9  Prefactor     .50515E-08    11.132       -.49741E-05** at limit **
  10  norm          2.4254        2.0338       -.61906E-07    .13947E-03
  11  Prefactor     .55511E-10    1.6360       -.12315E-05** at limit **
  12  Prefactor     .11102E-09    8.9010        .12562E-05** at limit **
  13  norm          .22204E-09    1.5519       -.60135E-06** at limit **
  14  Prefactor     .55511E-10    5.3493       -.50527E-07** at limit **
  15  norm          .11102E-09    2.0130       -.24700E-06** at limit **
  16  norm          2.7430        7.6891        .34295E-06   -.71382E-03
  17  Prefactor     53.430        8.0145       -.27274E-05   -.13610    
  18  norm          1.5329        1.7046       -.19951E-07   -.68258E-02
  19  Prefactor     .23470E-06    146.83        .44545E-04** at limit **
  20  Prefactor     26.718        44.048        .15076E-04    .55488E-02
  21  Prefactor     .83822E-07    25.476        .33728E-05** at limit **
  22  Prefactor     .13878E-08    61.805        .10495E-04** at limit **
  23  Normalizat    1.3205        .24289       -.43874E-05    .11082E-03
  24  Prefactor     .93572        .10813       -.83501E-05    .26484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4914e-06
  norm       = 4.59632e-08
  Prefactor  = 5.55112e-11
  norm       = 0.843796
  Prefactor  = 0.64706
  Prefactor  = 2.22045e-10
  Prefactor  = 0.00677125
  Prefactor  = 7.7327e-08
  Prefactor  = 5.05151e-09
  norm       = 2.4254
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 2.22045e-10
  Prefactor  = 5.55112e-11
  norm       = 1.11022e-10
  norm       = 2.743
  Prefactor  = 53.4296
  norm       = 1.53294
  Prefactor  = 2.34701e-07
  Prefactor  = 26.7181
  Prefactor  = 8.38218e-08
  Prefactor  = 1.38778e-09
  Normalizat = 1.32054
  Prefactor  = 0.935715
 **********
 **   18 **HESSE 
 **********

 FCN=   8599.447     FROM HESSE     STATUS=OK           457 CALLS     2497 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24914E-05    14.413        .16229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .45963E-07    12.570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    1.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84380        1.5348        .49762E-03   -1.5690    
   5  Prefactor     .64706        18.628        .64031E-03   -1.5692    
   6  Prefactor     .22204E-09    5.6769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .67712E-02    11.996        .11792E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77327E-07    12.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .50515E-08    11.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4254        2.0313        .65722E-03   -1.5677    
  11  Prefactor     .55511E-10    1.6378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    8.9096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22204E-09    1.5196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    5.3543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11102E-09    2.0088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7430        7.6992        .61342E-03   -1.5675    
  17  Prefactor     53.430        26.272        .13717E-03   -1.5562    
  18  norm          1.5329        1.7268        .86168E-03   -1.5683    
  19  Prefactor     .23470E-06    152.14        .66048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.718        45.287        .20328E-03   -1.5605    
  21  Prefactor     .83822E-07    25.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13878E-08    2.7691        .93317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3205        .21874        .76102E-01   -.82955    
  24  Prefactor     .93572        .92123E-01    .45449E-01   -.94904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84633e-07
Minuit parameter uncertainties:
  1  0.0119847
  2  0.00152065
  3  1.52012e-05
  4  1.53479
  5  6.94369
  6  7.27272e-05
  7  0.570002
  8  0.00195251
  9  0.000476204
  10  2.03127
  11  1.83865e-05
  12  5.95574e-05
  13  3.63243e-05
  14  3.17164e-05
  15  2.90117e-05
  16  7.69927
  17  26.272
  18  1.72681
  19  0.0119519
  20  45.2876
  21  0.00292977
  22  0.000123316
  23  0.218898
  24  0.0921387
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.388e-09  1.233e-04  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:  9.357e-01  9.214e-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:  1.321e+00  2.189e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/655908/likelihoodResults_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.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) = 8599.47018989
delta logL = -0.0227688872965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8599.44274702
delta logL = 0.00467398747605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72352       1.0000          .0000       .10000E+07
     2 'Index     '    1.9460       1.0000          .0000       10.000    
     3 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93476       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=   8599.443     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      260 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71574        175.63        .58819E-03    .22037E-02
   2  Index         1.9386        1.8154        .50000       -.14792E-05
   3  Normalizat    1.3208        .17063E-01    .76096E-01    .51798E-04
   4  Prefactor     .93496        .75761E-02    .45446E-01    .39076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.715742
  Index      = 1.93862
  Normalizat = 1.32085
  Prefactor  = 0.934958
 **********
 **   18 **HESSE 
 **********

 FCN=   8599.443     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71574        21.680        .23528E-04   -1.5691    
   2  Index         1.9386        2.2392        .14357E-01   -.65894    
   3  Normalizat    1.3208        .23993        .33677E-03   -.82946    
   4  Prefactor     .93496        .10719        .17361E-03   -.94930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05209e-11
Minuit parameter uncertainties:
  1  7.87834
  2  2.38052
  3  0.240128
  4  0.107214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655908': 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) = 8599.44273544
delta logL = 0.00468556399574

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.157e-01  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.939e+00  2.381e+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:  9.350e-01  1.072e-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:  1.321e+00  2.401e-01  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/655908/cmap_HighResolution_690076801_690336001_4FGL_J2359.0+3922_daily_bin1739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2022-11-17 01:30:06.741787', job_id='655908', GAL2='0.93', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1668677406.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.69e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1739' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Nov 17 01:30:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 655908: <4FGL_J2359.0+3922_daily_bin1739> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1739> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Nov 17 01:15:18 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Nov 17 01:17:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Nov 17 01:17:04 2022
Terminated at Thu Nov 17 01:30:07 2022
Results reported at Thu Nov 17 01:30:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1739 359.755 39.3669 690076801 690336001 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 :                                   734.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            889 sec.

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

