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


Performing analysis on: 4FGL_J2359.0+3922_weekly_bin741
RA = 359.755, Dec = 39.3669
tmin = 687139201, tmax = 687744001
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='397989', job_status='RUN', time_executed='2022-10-18 01:48:28.601838', time_epoch_executed='1666082908.6' WHERE source_name='4FGL J2359.0+3922' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397989

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397989/ft1_4FGL_J2359.0+3922_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397989/ft1_4FGL_J2359.0+3922_weekly_bin741.fits outfile=/scratch/kocevski/397989/ft1_filteredMKT_4FGL_J2359.0+3922_weekly_bin741.fits ra=359.755 dec=39.3669 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.66
user 6.37
sys 0.26

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

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

Number of photons that the gtmktime cut: 447

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397989/ft1_filtered_4FGL_J2359.0+3922_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/397989/ltcube_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.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/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits
.....................!
real 27.01
user 26.51
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397989/ft1_filtered_4FGL_J2359.0+3922_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/397989/ltcube_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.fits outfile=/scratch/kocevski/397989/expmap_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.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/397989/ltcube_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.fits
.....................!
real 192.69
user 187.22
sys 5.13

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/397989/ft1_filtered_4FGL_J2359.0+3922_weekly_bin741.fits scfile=/scratch/kocevski/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits outfile=/scratch/kocevski/397989/cmap_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397989/ft1_filtered_4FGL_J2359.0+3922_weekly_bin741.fits scfile=/scratch/kocevski/397989/ft2_4FGL_J2359.0+3922_weekly_bin741.fits outfile=/scratch/kocevski/397989/cmap_HighResolution_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94225E-01   1.0000          .0000       .10000E+07
     2 'norm      '    4.3984       1.0000          .0000       .10000E+07
     3 'Prefactor '    .74720E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.8127       1.0000          .0000       .10000E+07
     5 'Prefactor '    .99643E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.7670       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.677       1.0000          .0000       .10000E+07
     8 'Prefactor '    34.344       1.0000          .0000       .10000E+07
     9 'Prefactor '    30.741       1.0000          .0000       .10000E+07
    10 'norm      '    2.7090       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14465E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37124E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .84982E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.4815       1.0000          .0000       .10000E+07
    15 'norm      '    2.2475       1.0000          .0000       .10000E+07
    16 'norm      '    .64710E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.1790       1.0000          .0000       .10000E+07
    18 'norm      '    .38057E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    51.682       1.0000          .0000       .10000E+07
    20 'Prefactor '    48.346       1.0000          .0000       .10000E+07
    21 'Prefactor '    .44101E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .89251E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3603       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73945       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=   4774.727     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2040 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22315E-03    15.550        .43872E-06** at limit **
   2  norm          4.7879        20.705        .12250E-05    .68896E-03
   3  Prefactor     .55511E-10    3.2794        .29760E-06** at limit **
   4  norm          1.8151        2.1661       -.14058E-06    .11850E-02
   5  Prefactor     .66680E-06    46.245       -.18277E-05** at limit **
   6  Prefactor     2.7373        4.8193        .45362E-07   -.10046E-02
   7  Prefactor     14.245        4.2678       -.30139E-06    .26099E-01
   8  Prefactor     35.166        6.9433       -.29186E-06    .10173    
   9  Prefactor     31.314        9.4090       -.47815E-06   -.18367E-01
  10  norm          2.7168        2.8648       -.40695E-07    .66226E-03
  11  Prefactor      .0000        2.4973       -.57833E-06** at limit **
  12  Prefactor     .38858E-09    9.3099        .58002E-06** at limit **
  13  norm           .0000        1.5802       -.70154E-07** at limit **
  14  Prefactor     4.6139        14.868       -.11419E-05    .17943E-02
  15  norm          2.1655        7.2253       -.33784E-07   -.25595E-02
  16  norm          .11102E-09    4.8412        .82852E-06** at limit **
  17  Prefactor     6.7473        26.580        .45185E-05    .98327E-02
  18  norm           .0000        1.2411       -.40916E-06** at limit **
  19  Prefactor     54.634        91.333       -.41894E-05   -.10884E-01
  20  Prefactor     50.353        50.710       -.19422E-05    .19981E-01
  21  Prefactor     .12215E-05    64.797       -.64689E-06** at limit **
  22  Prefactor      .0000        6.4207       -.46163E-06** at limit **
  23  Normalizat    1.3527        .32845        .15018E-04   -.32208E-04
  24  Prefactor     .74043        .13290       -.43555E-05   -.99932E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000223153
  norm       = 4.78789
  Prefactor  = 5.55112e-11
  norm       = 1.81507
  Prefactor  = 6.668e-07
  Prefactor  = 2.73725
  Prefactor  = 14.2455
  Prefactor  = 35.1658
  Prefactor  = 31.3139
  norm       = 2.71675
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 4.6139
  norm       = 2.16552
  norm       = 1.11022e-10
  Prefactor  = 6.74727
  norm       = 0
  Prefactor  = 54.6336
  Prefactor  = 50.3526
  Prefactor  = 1.22152e-06
  Prefactor  = 0
  Normalizat = 1.3527
  Prefactor  = 0.740426
 **********
 **   18 **HESSE 
 **********

 FCN=   4774.727     FROM HESSE     STATUS=OK           451 CALLS     2491 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22315E-03    30.268        .14087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7879        20.798        .47997E-03   -1.5664    
   3  Prefactor     .55511E-10    3.2822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8151        2.1746        .77562E-03   -1.5681    
   5  Prefactor     .66680E-06    46.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7373        5.9719        .61159E-03   -1.5675    
   7  Prefactor     14.245        38.850        .27058E-03   -1.5632    
   8  Prefactor     35.166        32.712        .17066E-03   -1.5589    
   9  Prefactor     31.314        45.551        .18039E-03   -1.5596    
  10  norm          2.7168        2.8636        .61860E-03   -1.5675    
  11  Prefactor      .0000        2.5014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .38858E-09    9.3338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.5559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6139        14.940        .47538E-03   -1.5665    
  15  norm          2.1655        7.5011        .68516E-03   -1.5679    
  16  norm          .11102E-09    4.8440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7473        28.250        .40363E-03   -1.5656    
  18  norm           .0000        1.2417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.634        95.165        .13911E-03   -1.5560    
  20  Prefactor     50.353        51.703        .14383E-03   -1.5566    
  21  Prefactor     .12215E-05    66.451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        6.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3527        .28137        .69124E-01   -.82007    
  24  Prefactor     .74043        .11238        .42924E-01   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06712e-07
Minuit parameter uncertainties:
  1  0.164372
  2  19.9578
  3  2.27797e-05
  4  2.17458
  5  0.0111284
  6  5.97189
  7  38.8508
  8  32.7123
  9  45.5517
  10  2.86355
  11  1.41209e-05
  12  0.000123484
  13  3.04491e-06
  14  14.9396
  15  7.50115
  16  4.82498e-05
  17  27.6127
  18  7.39865e-06
  19  95.1673
  20  51.703
  21  0.0180192
  22  2.57026e-05
  23  0.281693
  24  0.112417
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  2.570e-05  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:  7.404e-01  1.124e-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.353e+00  2.817e-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: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397989/likelihoodResults_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.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) = 4774.72714007
delta logL = -6.11409222984e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4774.72707936
delta logL = -4.2946976464e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14032E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0672       1.0000          .0000       10.000    
     3 'Normalizat'    1.3525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74049       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=   4774.727     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      235 TOTAL
                     EDM=   .84E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.765       -.52555E-06** at limit **
   2  Index         1.9039        2.2683        .92486E-05     .0000    
   3  Normalizat    1.3527        .29939        .20230E-05   -.25914E-05
   4  Prefactor     .74043        .13015       -.15244E-06    .34879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.90391
  Normalizat = 1.3527
  Prefactor  = 0.740425
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4774.727     FROM HESSE     STATUS=FAILED        11 CALLS      246 TOTAL
                     EDM=   .84E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38128        1.7550        .92486E-05   -.66775    
   3  Normalizat    1.3527        1.0695        .20230E-05   -.82007    
   4  Prefactor     .74043        1.0900       -.15244E-06   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.39418e-14
Minuit parameter uncertainties:
  1  1.16634e-06
  2  1.53085
  3  1.08785
  4  1.12428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397989': 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) = 4774.72707893
delta logL = 2.72848410532e-12

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  1.166e-06  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.904e+00  1.531e+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:  7.404e-01  1.124e+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.353e+00  1.088e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/397989/cmap_HighResolution_687139201_687744001_4FGL_J2359.0+3922_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2022-10-18 01:58:03.324457', job_id='397989', GAL2='0.74', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1666083483.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.73e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='741' AND source_name='4FGL J2359.0+3922' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:58:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 397989: <4FGL_J2359.0+3922_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2359.0+3922_weekly_bin741> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Oct 18 01:45:24 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:45:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:45:26 2022
Terminated at Tue Oct 18 01:58:04 2022
Results reported at Tue Oct 18 01:58:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_weekly_bin741 359.755 39.3669 687139201 687744001 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            760 sec.

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

