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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1764
RA = 359.755, Dec = 39.3669
tmin = 696556801, tmax = 696816001
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='468731', job_status='RUN', time_executed='2023-01-31 02:12:59.145977', time_epoch_executed='1675159979.15' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468731/ft1_4FGL_J2359.0+3922_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468731/ft1_4FGL_J2359.0+3922_daily_bin1764.fits outfile=/scratch/kocevski/468731/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1764.fits ra=359.755 dec=39.3669 rad=12.0 tmin=696556801.0 tmax=696816001.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.73
user 3.47
sys 0.22

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

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

Number of photons that the gtmktime cut: 845

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468731/ft1_filtered_4FGL_J2359.0+3922_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/468731/ltcube_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.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/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits
.....................!
real 14.84
user 14.40
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468731/ft1_filtered_4FGL_J2359.0+3922_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/468731/ltcube_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.fits outfile=/scratch/kocevski/468731/expmap_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.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/468731/ltcube_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.fits
.....................!
real 193.61
user 188.47
sys 4.78

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/468731/ft1_filtered_4FGL_J2359.0+3922_daily_bin1764.fits scfile=/scratch/kocevski/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits outfile=/scratch/kocevski/468731/cmap_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468731/ft1_filtered_4FGL_J2359.0+3922_daily_bin1764.fits scfile=/scratch/kocevski/468731/ft2_4FGL_J2359.0+3922_daily_bin1764.fits outfile=/scratch/kocevski/468731/cmap_HighResolution_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.763       1.0000          .0000       .10000E+07
     2 'norm      '    .92375       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.9188       1.0000          .0000       .10000E+07
     4 'norm      '    1.4859       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18406       1.0000          .0000       .10000E+07
     6 'Prefactor '    .48590       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13937E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74048E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .53527E-04   1.0000          .0000       .10000E+07
    10 'norm      '    5.4872       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.772       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13058E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .25646E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12158E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .83045E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .17017       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22936E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .13450E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    27.913       1.0000          .0000       .10000E+07
    20 'Prefactor '    .66647E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    19.233       1.0000          .0000       .10000E+07
    22 'Prefactor '    6.1465       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0431       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97615       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=   8920.353     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1996 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.711        18.421       -.26589E-05    .22250E-01
   2  norm          .84846        18.702       -.15769E-05   -.13665E-01
   3  Prefactor     9.9385        6.7994       -.57363E-07    .83416E-03
   4  norm          1.4860        1.3739       -.24756E-07   -.66535E-03
   5  Prefactor     .13134        11.074       -.47107E-05** at limit **
   6  Prefactor     .48797        3.2109       -.95743E-06    .83272E-03
   7  Prefactor     .12212E-08    90.949       -.32814E-05** at limit **
   8  Prefactor     .15138E-06    11.922        .43657E-07** at limit **
   9  Prefactor     .16043E-06    9.6198       -.19602E-05** at limit **
  10  norm          5.4869        2.3559        .52028E-07   -.12250E-02
  11  Prefactor     11.812        7.2078       -.80905E-07   -.50733E-03
  12  Prefactor     .11102E-09    6.6933        .13277E-06** at limit **
  13  norm           .0000        .33236       -.50602E-07** at limit **
  14  Prefactor     .55511E-10    3.6404        .16598E-06** at limit **
  15  norm           .0000        2.0549       -.11091E-06** at limit **
  16  norm          .17739        62.191        .60487E-05** at limit **
  17  Prefactor     .14133E-06    4.8716        .55725E-06** at limit **
  18  norm           .0000        1.0223       -.44541E-07** at limit **
  19  Prefactor     27.564        25.848       -.13619E-05    .63643E-02
  20  Prefactor     .18574E-06    4.9668        .13254E-05** at limit **
  21  Prefactor     19.988        40.693        .24407E-05   -.13344E-01
  22  Prefactor     6.1043        5.7873       -.36616E-06    .48748E-03
  23  Normalizat    1.0436        .22030        .11703E-04   -.92034E-04
  24  Prefactor     .97599        .10233       -.34676E-05   -.69923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7107
  norm       = 0.848458
  Prefactor  = 9.93847
  norm       = 1.48602
  Prefactor  = 0.13134
  Prefactor  = 0.487973
  Prefactor  = 1.22125e-09
  Prefactor  = 1.51379e-07
  Prefactor  = 1.60427e-07
  norm       = 5.48685
  Prefactor  = 11.8123
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.177394
  Prefactor  = 1.41331e-07
  norm       = 0
  Prefactor  = 27.5642
  Prefactor  = 1.8574e-07
  Prefactor  = 19.9875
  Prefactor  = 6.1043
  Normalizat = 1.04356
  Prefactor  = 0.975993
 **********
 **   18 **HESSE 
 **********

 FCN=   8920.353     FROM HESSE     STATUS=OK           457 CALLS     2453 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.711        21.135        .26973E-03   -1.5634    
   2  norm          .84846        71.810        .44132E-03   -1.5690    
   3  Prefactor     9.9385        7.0660        .31793E-03   -1.5645    
   4  norm          1.4860        1.3723        .87960E-03   -1.5684    
   5  Prefactor     .13134        3.1694        .98625E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48797        3.1992        .80141E-03   -1.5694    
   7  Prefactor     .12212E-08    89.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .15138E-06    15.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16043E-06    13.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4869        2.3538        .42870E-03   -1.5661    
  11  Prefactor     11.812        7.2184        .29172E-03   -1.5639    
  12  Prefactor     .11102E-09    6.7132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .33240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    3.6461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.0557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17739        5.6382        .82845E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14133E-06    14.560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.0228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.564        51.808        .18931E-03   -1.5603    
  20  Prefactor     .18574E-06    14.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.988        52.039        .22810E-03   -1.5619    
  22  Prefactor     6.1043        6.1325        .40471E-03   -1.5659    
  23  Normalizat    1.0436        .19645        .76931E-01   -.91585    
  24  Prefactor     .97599        .88210E-01    .45968E-01   -.93534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2578e-07
Minuit parameter uncertainties:
  1  21.1348
  2  15.6114
  3  7.06599
  4  1.37233
  5  1.29038
  6  2.49889
  7  0.000659366
  8  0.00301559
  9  0.0029904
  10  2.35383
  11  7.21837
  12  4.8391e-05
  13  6.24491e-07
  14  3.4555e-05
  15  1.26951e-07
  16  2.00019
  17  0.00286907
  18  2.18273e-06
  19  51.8093
  20  0.00326289
  21  52.0404
  22  6.1325
  23  0.196589
  24  0.088223
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  6.104e+00  6.132e+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:  9.760e-01  8.822e-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.044e+00  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.98
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.11e-05

TS (Fixed Index): 3.98
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468731/likelihoodResults_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.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) = 8919.66699479
delta logL = 0.685957798229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8919.66124677
delta logL = 0.691705815518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4760       1.0000          .0000       .10000E+07
     2 'Index     '    1.4236       1.0000          .0000       10.000    
     3 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97389       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=   8919.661     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4760        7.6176        .39414E-03   -.13505E-01
   2  Index         1.4231        .60352        .30744       -.55948E-04
   3  Normalizat    1.0625        .18419        .76344E-01    .26222E-04
   4  Prefactor     .97388        .87254E-01    .45940E-01    .14051E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47604
  Index      = 1.42306
  Normalizat = 1.0625
  Prefactor  = 0.973882
 **********
 **   18 **HESSE 
 **********

 FCN=   8919.661     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4760        7.6991        .15766E-04   -1.5657    
   2  Index         1.4231        .73780        .13698E-01   -.79718    
   3  Normalizat    1.0625        .21315        .33789E-03   -.90965    
   4  Prefactor     .97388        .10163        .16635E-03   -.93605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51231e-09
Minuit parameter uncertainties:
  1  7.69909
  2  0.743393
  3  0.213318
  4  0.101651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468731': 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) = 8919.66124641
delta logL = 0.691706173897

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  6.476e+00  7.699e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.423e+00  7.434e-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:  9.739e-01  1.017e-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.063e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 359.755 39.367
Photon Index (Free Index): 1.42 +/- 0.74
Photon Flux (Free Index): 7.64e-09 +/- 1.21e-08
Energy Flux (Free Index): 3.13e-05 +/- 5.05e-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/468731/cmap_HighResolution_696556801_696816001_4FGL_J2359.0+3922_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='3.13e-05', photon_flux_error='3.15e-08', dlogl='6.92e-01', energy_flux='1.11e-05', photon_flux2='7.64e-09', job_status='DONE', time_completed='2023-01-31 02:25:26.297314', photon_index_error2='0.74', photon_index2='1.42', ts='3.98', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='5.05e-05', EG='1.04', time_epoch_completed='1675160726.3', return_code='0', job_id='468731', GAL2='0.97', EG2='1.06', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='1.21e-08', ts2='5.37', photon_index='2.35' WHERE bin_id='1764' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:25:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 468731: <4FGL_J2359.0+3922_daily_bin1764> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1764> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 31 02:10:23 2023
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 02:11:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 02:11:37 2023
Terminated at Tue Jan 31 02:25:27 2023
Results reported at Tue Jan 31 02:25:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1764 359.755 39.3669 696556801 696816001 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 :                                   749.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            904 sec.

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

