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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1727
RA = 359.755, Dec = 39.3669
tmin = 686966401, tmax = 687225601
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='215527', job_status='RUN', time_executed='2022-10-12 00:41:58.979845', time_epoch_executed='1665560518.98' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215527/ft1_4FGL_J2359.0+3922_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215527/ft1_4FGL_J2359.0+3922_daily_bin1727.fits outfile=/scratch/kocevski/215527/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1727.fits ra=359.755 dec=39.3669 rad=12.0 tmin=686966401.0 tmax=687225601.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 2.90
user 2.71
sys 0.18

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

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

Number of photons that the gtmktime cut: 90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215527/ft1_filtered_4FGL_J2359.0+3922_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/215527/ltcube_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.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/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits
.....................!
real 12.98
user 12.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215527/ft1_filtered_4FGL_J2359.0+3922_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/215527/ltcube_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.fits outfile=/scratch/kocevski/215527/expmap_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.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/215527/ltcube_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.fits
.....................!
real 192.23
user 186.81
sys 5.10

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/215527/ft1_filtered_4FGL_J2359.0+3922_daily_bin1727.fits scfile=/scratch/kocevski/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits outfile=/scratch/kocevski/215527/cmap_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215527/ft1_filtered_4FGL_J2359.0+3922_daily_bin1727.fits scfile=/scratch/kocevski/215527/ft2_4FGL_J2359.0+3922_daily_bin1727.fits outfile=/scratch/kocevski/215527/cmap_HighResolution_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14194       1.0000          .0000       .10000E+07
     2 'norm      '    .11328       1.0000          .0000       .10000E+07
     3 'Prefactor '    .57159E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.4626       1.0000          .0000       .10000E+07
     5 'Prefactor '    298.28       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14549E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17353       1.0000          .0000       .10000E+07
     8 'Prefactor '    222.57       1.0000          .0000       .10000E+07
     9 'Prefactor '    29.623       1.0000          .0000       .10000E+07
    10 'norm      '    .99988E+06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .99977E+06   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.1453       1.0000          .0000       .10000E+07
    13 'norm      '    10.118       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.093       1.0000          .0000       .10000E+07
    15 'norm      '    .10249E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .84167E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    115.75       1.0000          .0000       .10000E+07
    18 'norm      '    .66657E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.199       1.0000          .0000       .10000E+07
    20 'Prefactor '    55.143       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12207E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .64048E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61757       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=   999.3716     FROM MIGRAD    STATUS=CONVERGED    279 CALLS     2187 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        44.664        .34075E-07** at limit **
   2  norm           .0000        79.741        .38282E-08** at limit **
   3  Prefactor      .0000        31.513        .10221E-07** at limit **
   4  norm          8.4887        10.818        .49264E-08   -.54611E-04
   5  Prefactor     302.85        558.94       -.40743E-05   -.85078E-01
   6  Prefactor      .0000        28.099        .10123E-07** at limit **
   7  Prefactor      .0000        151.06        .12405E-07** at limit **
   8  Prefactor     175.51        652.28        .77136E-07    .22060    
   9  Prefactor     6.5519        12298.        .47128E-05   -.99780E-01
  10  norm          .99990E+06    294.55       -.10813E-06   -.73300E-01
  11  Prefactor     .99982E+06    604.54       -.16456E-06   -.20822    
  12  Prefactor     7.9805        100.28        .21413E-05    .25608E-05
  13  norm          10.188        5.4448       -.15529E-07   -.19350E-03
  14  Prefactor     12.576        25.852       -.55839E-07   -.36196E-04
  15  norm           .0000        24.112       -.23695E-07** at limit **
  16  norm           .0000        36.199        .95067E-08** at limit **
  17  Prefactor     115.29        79.492       -.72459E-07   -.94022E-04
  18  norm           .0000        5.4427        .54291E-08** at limit **
  19  Prefactor     43.997        239.18       -.56956E-06    .29991E-03
  20  Prefactor     30.180        629.61        .44520E-05    .14488E-01
  21  Prefactor     .55511E-10    117.41        .64965E-07** at limit **
  22  Prefactor      .0000        20.362       -.22868E-08** at limit **
  23  Normalizat    .10000E-01    .20552        .96346E-07** at limit **
  24  Prefactor     .61280        .14150       -.12807E-05   -.44578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 8.4887
  Prefactor  = 302.853
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 175.508
  Prefactor  = 6.55189
  norm       = 999902
  Prefactor  = 999816
  Prefactor  = 7.98046
  norm       = 10.1876
  Prefactor  = 12.5756
  norm       = 0
  norm       = 0
  Prefactor  = 115.29
  norm       = 0
  Prefactor  = 43.9969
  Prefactor  = 30.18
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.612805
 **********
 **   18 **HESSE 
 **********

 FCN=   999.3716     FROM HESSE     STATUS=OK           435 CALLS     2622 TOTAL
                     EDM=   .14E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.282        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        79.852        .13585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        31.496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.4887        10.806        .34436E-03   -1.5650    
   5  Prefactor     302.85        574.40        .57910E-04   -1.5360    
   6  Prefactor      .0000        28.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        150.98        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     175.51        29613.        .67037E-04   -1.5443    
   9  Prefactor     6.5519        12772.        .18376E-03   -1.5759    
  10  norm          .99990E+06    66013.        .91617E-04    1.5510    
  11  Prefactor     .99982E+06    32206.        .66297E-04    1.5437    
  12  Prefactor     7.9805        102.14        .35105E-03   -1.5651    
  13  norm          10.188        5.4368        .31476E-03   -1.5644    
  14  Prefactor     12.576        25.826        .28781E-03   -1.5637    
  15  norm           .0000        24.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        35.953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     115.29        79.722        .92955E-04   -1.5493    
  18  norm           .0000        5.4437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.997        232.54        .24123E-03   -1.5575    
  20  Prefactor     30.180        641.73        .13467E-03   -1.5598    
  21  Prefactor     .55511E-10    117.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        20.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .20115        .20168       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .61280        .14084        .41293E-01   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0135265
Minuit parameter uncertainties:
  1  1.99678e-06
  2  9.11862e-07
  3  2.90179e-06
  4  10.8056
  5  574.504
  6  3.23981e-06
  7  1.15972e-05
  8  4582.76
  9  579.784
  10  5144.96
  11  4894.85
  12  57.1028
  13  5.43677
  14  25.8267
  15  5.20459e-07
  16  8.02013e-06
  17  79.7231
  18  1.71183e-07
  19  202.31
  20  278.368
  21  0.000159868
  22  1.35058e-06
  23  1.73621e-08
  24  0.140919
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  1.351e-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:  6.128e-01  1.409e-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.000e-02  1.736e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 6.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215527/likelihoodResults_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.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) = 999.394950391
delta logL = -0.0233584562533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 999.371591951
delta logL = -1.64483253684e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19501E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76273       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61279       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=   999.3716     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      202 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        39.660       -.66974E-06** at limit **
   2  Index         1.6099        5.2456        .41346E-05     .0000    
   3  Normalizat    .10000E-01    .20730        .17184E-03** at limit **
   4  Prefactor     .61281        .11472       -.47984E-05    .84222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.60989
  Normalizat = 0.01
  Prefactor  = 0.612805
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   999.3716     FROM HESSE     STATUS=FAILED        11 CALLS      213 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .24715        1.6746        .41346E-05   -.74507    
   3  Normalizat    .10000E-01    .25505        .17184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61281        .96106       -.47984E-05   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.71428e-11
Minuit parameter uncertainties:
  1  3.47682e-05
  2  1.5888
  3  1.80937e-06
  4  0.988834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215527': 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) = 999.371591935
delta logL = -5.91171556152e-12

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  3.477e-05  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.610e+00  1.589e+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:  6.128e-01  9.888e-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.000e-02  1.809e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/215527/cmap_HighResolution_686966401_687225601_4FGL_J2359.0+3922_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-02', job_status='DONE', photon_flux_upper_limit='6.04e-07', time_completed='2022-10-12 00:48:05.345061', job_id='215527', GAL2='0.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665560885.35', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='-5.91e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1727' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:48:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 215527: <4FGL_J2359.0+3922_daily_bin1727> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:40:23 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:40:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:40:24 2022
Terminated at Wed Oct 12 00:48:06 2022
Results reported at Wed Oct 12 00:48:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1727 359.755 39.3669 686966401 687225601 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 :                                   369.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            463 sec.

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

