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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1725
RA = 359.755, Dec = 39.3669
tmin = 686448001, tmax = 686707201
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='893332', job_status='RUN', time_executed='2022-10-06 01:10:38.764991', time_epoch_executed='1665043838.77' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893332/ft1_4FGL_J2359.0+3922_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893332/ft2_4FGL_J2359.0+3922_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893332/ft1_4FGL_J2359.0+3922_daily_bin1725.fits outfile=/scratch/kocevski/893332/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1725.fits ra=359.755 dec=39.3669 rad=12.0 tmin=686448001.0 tmax=686707201.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.68
user 4.43
sys 0.19

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

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

Number of photons that the gtmktime cut: 683

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893332/ft1_filtered_4FGL_J2359.0+3922_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/893332/ft2_4FGL_J2359.0+3922_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/893332/ltcube_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.fits outfile=/scratch/kocevski/893332/expmap_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.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/893332/ltcube_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.fits
.....................!
real 195.70
user 188.65
sys 5.83

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/893332/ft1_filtered_4FGL_J2359.0+3922_daily_bin1725.fits scfile=/scratch/kocevski/893332/ft2_4FGL_J2359.0+3922_daily_bin1725.fits outfile=/scratch/kocevski/893332/cmap_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893332/ft1_filtered_4FGL_J2359.0+3922_daily_bin1725.fits scfile=/scratch/kocevski/893332/ft2_4FGL_J2359.0+3922_daily_bin1725.fits outfile=/scratch/kocevski/893332/cmap_HighResolution_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0942       1.0000          .0000       .10000E+07
     2 'norm      '    9.6881       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87431       1.0000          .0000       .10000E+07
     4 'norm      '    1.5469       1.0000          .0000       .10000E+07
     5 'Prefactor '    .87648E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .55445E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76819E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42697E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    29.479       1.0000          .0000       .10000E+07
    10 'norm      '    6.2970       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16740E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    16.652       1.0000          .0000       .10000E+07
    13 'norm      '    1.9882       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0506       1.0000          .0000       .10000E+07
    15 'norm      '    .43231E-04   1.0000          .0000       .10000E+07
    16 'norm      '    5.4042       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.637       1.0000          .0000       .10000E+07
    18 'norm      '    .74938E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22093       1.0000          .0000       .10000E+07
    20 'Prefactor '    .33838E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .18385E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13606E-06   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88864       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=   7303.518     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2018 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1174        9.7151        .32564E-07    .91383E-02
   2  norm          9.6972        3.3698        .20135E-07    .55102E-02
   3  Prefactor     .87269        1.6229        .44728E-07    .53882E-01
   4  norm          1.5467        1.7980       -.45497E-07   -.15582E-02
   5  Prefactor     .16653E-09    4.8003       -.84196E-07** at limit **
   6  Prefactor      .0000        1.5868       -.89107E-08** at limit **
   7  Prefactor     .55511E-10    6.0670        .31875E-06** at limit **
   8  Prefactor     .30476E-07    165.52        .39172E-06** at limit **
   9  Prefactor     29.340        1.7015        .11467E-07   -.51741E-01
  10  norm          6.2970        3.0390        .13991E-07    .82127E-03
  11  Prefactor     .16098E-08    59.065        .47819E-06** at limit **
  12  Prefactor     16.628        3.2520       -.95632E-08   -.71780E-01
  13  norm          1.9876        1.4461       -.17101E-07   -.14651E-02
  14  Prefactor     4.0511        11.036       -.24317E-06    .92322E-02
  15  norm           .0000        2.2664        .66708E-08** at limit **
  16  norm          5.3858        7.7261       -.17660E-06   -.30826E-03
  17  Prefactor     10.661        17.447        .41563E-07   -.20775E-01
  18  norm           .0000        3.5398        .30923E-07** at limit **
  19  Prefactor     .55511E-10    63.309       -.15393E-05** at limit **
  20  Prefactor      .0000        33.979       -.61763E-07** at limit **
  21  Prefactor      .0000        15.493       -.13421E-06** at limit **
  22  Prefactor      .0000        1.6449        .32106E-07** at limit **
  23  Normalizat    1.0102        .23216       -.12724E-05   -.57663E-04
  24  Prefactor     .88866        .10327        .35688E-07   -.11227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11739
  norm       = 9.69721
  Prefactor  = 0.872694
  norm       = 1.54668
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.04756e-08
  Prefactor  = 29.3399
  norm       = 6.29699
  Prefactor  = 1.60982e-09
  Prefactor  = 16.6276
  norm       = 1.98764
  Prefactor  = 4.05106
  norm       = 0
  norm       = 5.38575
  Prefactor  = 10.661
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.01019
  Prefactor  = 0.888656
 **********
 **   18 **HESSE 
 **********

 FCN=   7303.518     FROM HESSE     STATUS=OK           453 CALLS     2471 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1174        19.037        .40646E-03   -1.5658    
   2  norm          9.6972        14.640        .32171E-03   -1.5646    
   3  Prefactor     .87269        6.7513        .47553E-03   -1.5689    
   4  norm          1.5467        1.8152        .85637E-03   -1.5683    
   5  Prefactor     .16653E-09    4.7964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    6.0788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30476E-07    165.17        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.340        35.347        .18421E-03   -1.5600    
  10  norm          6.2970        3.0381        .39978E-03   -1.5658    
  11  Prefactor     .16098E-08    4.3895        .61597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.628        16.600        .24517E-03   -1.5626    
  13  norm          1.9876        1.4611        .73457E-03   -1.5680    
  14  Prefactor     4.0511        12.348        .50076E-03   -1.5668    
  15  norm           .0000        2.2693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3858        7.7480        .43203E-03   -1.5662    
  17  Prefactor     10.661        19.983        .30696E-03   -1.5643    
  18  norm           .0000        3.4985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    63.220        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        33.389        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        15.524        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.6472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0102        .20456        .74672E-01   -.92690    
  24  Prefactor     .88866        .88926E-01    .44860E-01   -.96539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12393e-07
Minuit parameter uncertainties:
  1  19.0373
  2  14.6398
  3  4.85464
  4  1.81519
  5  5.36253e-05
  6  1.55671e-06
  7  4.12708e-05
  8  0.00448895
  9  35.3474
  10  3.03813
  11  0.000169025
  12  16.6002
  13  1.46107
  14  12.3477
  15  1.06675e-06
  16  7.748
  17  19.9828
  18  3.30733e-06
  19  0.00012744
  20  4.38654e-05
  21  4.05898e-05
  22  2.72854e-07
  23  0.204718
  24  0.0889402
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  2.729e-07  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:  8.887e-01  8.894e-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.010e+00  2.047e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893332/likelihoodResults_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.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) = 7303.52066941
delta logL = -0.00270813137831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7303.5179613
delta logL = -1.7736965674e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18208E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .91427       1.0000          .0000       10.000    
     3 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88864       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=   7303.518     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      239 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3762        .42118E-03** at limit **
   2  Index         2.4876        1.8876        .11394E-04     .0000    
   3  Normalizat    1.0102        1.3294        .17051E-04   -.21628E-03
   4  Prefactor     .88866        1.2341       -.50510E-05   -.31090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.48757
  Normalizat = 1.01018
  Prefactor  = 0.888657
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7303.518     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .69694        2.0428        .11394E-04   -.52647    
   3  Normalizat    1.0102        1.3294        .17051E-04   -.92690    
   4  Prefactor     .88866        1.2341       -.50510E-05   -.96539    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.77458e-11
Minuit parameter uncertainties:
  1  3.0198e-06
  2  1.95338
  3  1.37737
  4  1.27649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893332': 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) = 7303.51796128
delta logL = -3.72892827727e-11

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  3.020e-06  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.488e+00  1.953e+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:  8.887e-01  1.276e+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:  1.010e+00  1.377e+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/893332/cmap_HighResolution_686448001_686707201_4FGL_J2359.0+3922_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2022-10-06 01:21:54.599005', job_id='893332', GAL2='0.89', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1665044514.6', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-3.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1725' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 01:21:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 893332: <4FGL_J2359.0+3922_daily_bin1725> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 01:06:46 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 01:07:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 01:07:33 2022
Terminated at Thu Oct  6 01:21:55 2022
Results reported at Thu Oct  6 01:21:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1725 359.755 39.3669 686448001 686707201 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            909 sec.

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

