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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1778
RA = 359.755, Dec = 39.3669
tmin = 700185601, tmax = 700444801
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='984807', job_status='RUN', time_executed='2023-03-14 02:30:49.227277', time_epoch_executed='1678786249.23' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984807/ft1_4FGL_J2359.0+3922_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984807/ft2_4FGL_J2359.0+3922_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984807/ft1_4FGL_J2359.0+3922_daily_bin1778.fits outfile=/scratch/kocevski/984807/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1778.fits ra=359.755 dec=39.3669 rad=12.0 tmin=700185601.0 tmax=700444801.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.97
user 3.75
sys 0.21

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

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

Number of photons that the gtmktime cut: 859

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984807/ft1_filtered_4FGL_J2359.0+3922_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/984807/ft2_4FGL_J2359.0+3922_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/984807/ltcube_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.fits outfile=/scratch/kocevski/984807/expmap_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.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/984807/ltcube_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.fits
.....................!
real 190.42
user 185.66
sys 4.38

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/984807/ft1_filtered_4FGL_J2359.0+3922_daily_bin1778.fits scfile=/scratch/kocevski/984807/ft2_4FGL_J2359.0+3922_daily_bin1778.fits outfile=/scratch/kocevski/984807/cmap_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.755 yref=39.3669 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984807/ft1_filtered_4FGL_J2359.0+3922_daily_bin1778.fits scfile=/scratch/kocevski/984807/ft2_4FGL_J2359.0+3922_daily_bin1778.fits outfile=/scratch/kocevski/984807/cmap_HighResolution_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.698       1.0000          .0000       .10000E+07
     2 'norm      '    .77949E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.136       1.0000          .0000       .10000E+07
     4 'norm      '    3.2454       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.807       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24230       1.0000          .0000       .10000E+07
     7 'Prefactor '    .96128E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.188       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42083E-06   1.0000          .0000       .10000E+07
    10 'norm      '    7.4451       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17233E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16299E-05   1.0000          .0000       .10000E+07
    13 'norm      '    1.2145       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.1640       1.0000          .0000       .10000E+07
    15 'norm      '    .96956E-06   1.0000          .0000       .10000E+07
    16 'norm      '    19.358       1.0000          .0000       .10000E+07
    17 'Prefactor '    26.338       1.0000          .0000       .10000E+07
    18 'norm      '    .12396E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47076E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .29931E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.890       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15886E-01   1.0000          .0000       .10000E+07
    23 'Normalizat'    .82551       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91917       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=   9064.921     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2013 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.780        1.0640       -.20775E-07    .16253E-02
   2  norm          .18763E-07    32.435        .81740E-08** at limit **
   3  Prefactor     13.144        8.1812        .34655E-06    .10405E-01
   4  norm          3.2450        1.8458       -.85854E-07    .37373E-02
   5  Prefactor     12.791        7.1684        .24986E-06   -.74030E-02
   6  Prefactor     .24198        1.6079       -.10492E-07** at limit **
   7  Prefactor     .87041E-07    2.7053        .81674E-06** at limit **
   8  Prefactor     13.069        1.0761       -.77337E-08    .96420E-03
   9  Prefactor     .73275E-08    9.3570       -.77887E-06** at limit **
  10  norm          7.4447        2.8637       -.76225E-07    .42058E-02
  11  Prefactor     .12290E-06    2.7677       -.92085E-06** at limit **
  12  Prefactor     .10147E-06    10.987        .26730E-05** at limit **
  13  norm          1.2141        1.0281        .66080E-07    .36175E-03
  14  Prefactor     5.1472        6.4838       -.12456E-05   -.75407E-01
  15  norm          .23315E-08    4.6922        .35287E-06** at limit **
  16  norm          19.323        2.0358        .38558E-06    .96467E-02
  17  Prefactor     26.363        1.9983        .11365E-06    .50813E-02
  18  norm          .21649E-08    3.0099        .21317E-06** at limit **
  19  Prefactor     .57954E-07    19.468        .49723E-05** at limit **
  20  Prefactor     .18646E-06    13.432       -.54119E-05** at limit **
  21  Prefactor     13.707        3.9034        .10138E-05   -.34760E-01
  22  Prefactor     .22704E-07    .86574       -.32469E-06** at limit **
  23  Normalizat    .82578        .20642       -.99118E-05   -.17484E-03
  24  Prefactor     .91914        .94192E-01    .53775E-05   -.59953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.7802
  norm       = 1.87628e-08
  Prefactor  = 13.1443
  norm       = 3.24497
  Prefactor  = 12.7913
  Prefactor  = 0.241981
  Prefactor  = 8.70415e-08
  Prefactor  = 13.0694
  Prefactor  = 7.32747e-09
  norm       = 7.44473
  Prefactor  = 1.22902e-07
  Prefactor  = 1.01474e-07
  norm       = 1.21409
  Prefactor  = 5.14716
  norm       = 2.33147e-09
  norm       = 19.3228
  Prefactor  = 26.3635
  norm       = 2.16493e-09
  Prefactor  = 5.79536e-08
  Prefactor  = 1.86462e-07
  Prefactor  = 13.707
  Prefactor  = 2.27041e-08
  Normalizat = 0.825779
  Prefactor  = 0.919135
 **********
 **   18 **HESSE 
 **********

 FCN=   9064.921     FROM HESSE     STATUS=OK           455 CALLS     2468 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.780        22.608        .15305E-03   -1.5577    
   2  norm          .18763E-07    32.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.144        8.6629        .27611E-03   -1.5635    
   4  norm          3.2450        1.8544        .56197E-03   -1.5672    
   5  Prefactor     12.791        7.1955        .27965E-03   -1.5636    
   6  Prefactor     .24198        1.6596        .11067E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .87041E-07    3.2281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.069        17.719        .27557E-03   -1.5636    
   9  Prefactor     .73275E-08    9.4566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4447        2.8782        .36733E-03   -1.5653    
  11  Prefactor     .12290E-06    3.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10147E-06    11.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2141        1.0341        .10250E-02   -1.5686    
  14  Prefactor     5.1472        8.7660        .44215E-03   -1.5663    
  15  norm          .23315E-08    4.7057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.323        13.018        .22736E-03   -1.5620    
  17  Prefactor     26.363        16.461        .19489E-03   -1.5605    
  18  norm          .21649E-08    2.9532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .57954E-07    20.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18646E-06    14.954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.707        36.882        .26849E-03   -1.5634    
  22  Prefactor     .22704E-07    3.3173        .11531E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82578        .18852        .81122E-01   -.99119    
  24  Prefactor     .91914        .82590E-01    .45249E-01   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01248e-07
Minuit parameter uncertainties:
  1  22.608
  2  0.00156044
  3  8.66286
  4  1.85437
  5  7.19547
  6  1.26742
  7  0.00106014
  8  17.7194
  9  0.000526391
  10  2.87821
  11  0.00129019
  12  0.00218329
  13  1.03406
  14  8.76606
  15  0.000210571
  16  13.0181
  17  16.4612
  18  0.000160268
  19  0.0021733
  20  0.00333974
  21  36.883
  22  0.000548767
  23  0.188667
  24  0.0826015
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.270e-08  5.488e-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.191e-01  8.260e-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:  8.258e-01  1.887e-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: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984807/likelihoodResults_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.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) = 9064.93121338
delta logL = -0.0103827762614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 9064.43356331
delta logL = 0.487267291524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30920E-07   1.0000          .0000       .10000E+07
     2 'Index     '    9.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .76603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93644       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=   9064.921     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      648 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35527E-08    .89240E-04    .42118E-03** at limit **
   2  Index         1.3441        .16715E-01    2.1150       -.37241E-08
   3  Normalizat    .82577        .23123E-04    .81120E-01    .19666E-03
   4  Prefactor     .91914        .10874E-04    .45468E-01   -.20990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55271e-09
  Index      = 1.34406
  Normalizat = 0.825774
  Prefactor  = 0.919138
 **********
 **   18 **HESSE 
 **********

 FCN=   9064.921     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      681 TOTAL
                     EDM=   .54E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35527E-08    .13518E-05    .24179E-01   -50707.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3441        .23632E-02    2.1150       -.44354E+07
   3  Normalizat    .82577        .32610E-05    .35915E-03   -46.133    
   4  Prefactor     .91914        .15366E-05    .15983E-03   -636.79    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40381e-16
Minuit parameter uncertainties:
  1  1.39049e-07
  2  0.00236318
  3  3.26098e-06
  4  1.53663e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984807': 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): 102
logL (Free Index) = 9064.9208306
delta logL = -6.53017195873e-10

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  3.553e-09  1.390e-07  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.344e+00  2.363e-03  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.191e-01  1.537e-06  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:  8.258e-01  3.261e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/984807/cmap_HighResolution_700185601_700444801_4FGL_J2359.0+3922_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2023-03-14 02:43:51.176790', job_id='984807', GAL2='0.92', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1678787031.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-6.53e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1778' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:43:51 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 984807: <4FGL_J2359.0+3922_daily_bin1778> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1778> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 14 02:30:23 2023
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 02:30:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 02:30:25 2023
Terminated at Tue Mar 14 02:43:51 2023
Results reported at Tue Mar 14 02:43:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1778 359.755 39.3669 700185601 700444801 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 :                                   782.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

