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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1748
RA = 359.755, Dec = 39.3669
tmin = 692409601, tmax = 692668801
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='900383', job_status='RUN', time_executed='2022-12-14 01:31:52.387066', time_epoch_executed='1671010312.39' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900383/ft1_4FGL_J2359.0+3922_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900383/ft2_4FGL_J2359.0+3922_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900383/ft1_4FGL_J2359.0+3922_daily_bin1748.fits outfile=/scratch/kocevski/900383/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1748.fits ra=359.755 dec=39.3669 rad=12.0 tmin=692409601.0 tmax=692668801.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.58
user 3.38
sys 0.18

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

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

Number of photons that the gtmktime cut: 999

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900383/ft1_filtered_4FGL_J2359.0+3922_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/900383/ft2_4FGL_J2359.0+3922_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/900383/ltcube_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.fits outfile=/scratch/kocevski/900383/expmap_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.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/900383/ltcube_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.fits
.....................!
real 190.48
user 185.51
sys 4.64

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/900383/ft1_filtered_4FGL_J2359.0+3922_daily_bin1748.fits scfile=/scratch/kocevski/900383/ft2_4FGL_J2359.0+3922_daily_bin1748.fits outfile=/scratch/kocevski/900383/cmap_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900383/ft1_filtered_4FGL_J2359.0+3922_daily_bin1748.fits scfile=/scratch/kocevski/900383/ft2_4FGL_J2359.0+3922_daily_bin1748.fits outfile=/scratch/kocevski/900383/cmap_HighResolution_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.978       1.0000          .0000       .10000E+07
     2 'norm      '    .18943E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .81762E-06   1.0000          .0000       .10000E+07
     4 'norm      '    2.8992       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.7240       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50921E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.456       1.0000          .0000       .10000E+07
     8 'Prefactor '    .55485       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16330E-01   1.0000          .0000       .10000E+07
    10 'norm      '    5.9334       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11533E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.927       1.0000          .0000       .10000E+07
    13 'norm      '    2.8851       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.7229       1.0000          .0000       .10000E+07
    15 'norm      '    .42502       1.0000          .0000       .10000E+07
    16 'norm      '    .10225E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .91090E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.9796       1.0000          .0000       .10000E+07
    19 'Prefactor '    18.129       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22553E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .16714E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.1422       1.0000          .0000       .10000E+07
    23 'Normalizat'    .79522       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1065       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=   10485.51     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2005 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.170        4.4402       -.27872E-07    .32769E-01
   2  norm          .12712E-07    8.5617       -.87080E-07** at limit **
   3  Prefactor     .55511E-10    1.6315       -.23050E-09** at limit **
   4  norm          2.8977        1.8445       -.10581E-07   -.39169E-02
   5  Prefactor     5.7309        6.6960       -.12927E-07    .26040E-02
   6  Prefactor     .86042E-08    8.1902       -.17331E-06** at limit **
   7  Prefactor     11.457        3.5405       -.24290E-07    .12038    
   8  Prefactor     .44280E-01    28.834        .32037E-06** at limit **
   9  Prefactor     .38858E-09    18.772       -.11002E-06** at limit **
  10  norm          5.9296        2.6888        .48640E-08    .21552E-02
  11  Prefactor     .33307E-09    3.2285       -.36474E-07** at limit **
  12  Prefactor     11.235        2.0236        .22615E-07    .85508E-02
  13  norm          2.8809        1.2700       -.23254E-07   -.15142E-01
  14  Prefactor     4.6973        8.8020       -.26721E-07    .83557E-02
  15  norm          .42621        7.1861        .83156E-07    .15761E-02
  16  norm          .83267E-09    3.5787       -.33864E-07** at limit **
  17  Prefactor     .12662E-06    10.360        .80823E-07** at limit **
  18  norm          1.9780        2.1535       -.98397E-08   -.20747E-02
  19  Prefactor     15.404        52.232        .31443E-06    .55299E-02
  20  Prefactor     .32752E-08    21.773       -.33322E-06** at limit **
  21  Prefactor     .24980E-08    32.387        .41025E-06** at limit **
  22  Prefactor     7.0284        6.3640        .83651E-08    .27299E-02
  23  Normalizat    .79691        .20654        .80035E-06    .18166E-04
  24  Prefactor     1.1066        .96923E-01   -.32065E-06   -.93090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1696
  norm       = 1.27121e-08
  Prefactor  = 5.55112e-11
  norm       = 2.89766
  Prefactor  = 5.7309
  Prefactor  = 8.60423e-09
  Prefactor  = 11.4572
  Prefactor  = 0.0442801
  Prefactor  = 3.88578e-10
  norm       = 5.92959
  Prefactor  = 3.33067e-10
  Prefactor  = 11.235
  norm       = 2.88092
  Prefactor  = 4.69732
  norm       = 0.426206
  norm       = 8.32667e-10
  Prefactor  = 1.26621e-07
  norm       = 1.97802
  Prefactor  = 15.4038
  Prefactor  = 3.27516e-09
  Prefactor  = 2.498e-09
  Prefactor  = 7.02836
  Normalizat = 0.796914
  Prefactor  = 1.10656
 **********
 **   18 **HESSE 
 **********

 FCN=   10485.51     FROM HESSE     STATUS=OK           463 CALLS     2468 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.170        20.920        .21336E-03   -1.5614    
   2  norm          .12712E-07    8.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    1.6345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8977        1.8423        .59653E-03   -1.5674    
   5  Prefactor     5.7309        6.6991        .41959E-03   -1.5660    
   6  Prefactor     .86042E-08    1.8988        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.457        17.270        .29573E-03   -1.5640    
   8  Prefactor     .44280E-01    10.283        .11026E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38858E-09    18.368        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9296        2.6901        .41201E-03   -1.5659    
  11  Prefactor     .33307E-09    3.2188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.235        22.423        .30283E-03   -1.5641    
  13  norm          2.8809        1.2806        .59808E-03   -1.5674    
  14  Prefactor     4.6973        8.9082        .46278E-03   -1.5665    
  15  norm          .42621        2.4065        .55210E-02   -1.5695    
  16  norm          .83267E-09    3.5756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12662E-06    10.711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9780        2.1656        .73640E-03   -1.5680    
  19  Prefactor     15.404        54.047        .23495E-03   -1.5629    
  20  Prefactor     .32752E-08    21.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .24980E-08    32.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0284        6.3782        .37511E-03   -1.5655    
  23  Normalizat    .79691        .19006        .87784E-01   -1.0018    
  24  Prefactor     1.1066        .86479E-01    .37346E-01   -.89257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23656e-07
Minuit parameter uncertainties:
  1  20.9204
  2  0.000660443
  3  1.71531e-05
  4  1.84229
  5  6.69907
  6  0.000255762
  7  17.2701
  8  1.34954
  9  0.000172341
  10  2.69014
  11  6.41057e-05
  12  22.4232
  13  1.28058
  14  8.90827
  15  2.0255
  16  0.000108342
  17  0.0023289
  18  2.16559
  19  54.0492
  20  0.000533833
  21  0.000572435
  22  6.37823
  23  0.190218
  24  0.0864898
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.028e+00  6.378e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.107e+00  8.649e-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:  7.969e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/900383/likelihoodResults_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10485.2471249
delta logL = 0.26757064177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10485.2320355
delta logL = 0.282660043677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6216       1.0000          .0000       .10000E+07
     2 'Index     '    3.0487       1.0000          .0000       10.000    
     3 'Normalizat'    .76030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1164       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=   10485.23     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      303 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6216        34.367        .62963E-03    .13317E-01
   2  Index         3.0487        2.6136        .10047        .40533E-03
   3  Normalizat    .76031        .62513E-01    .89674E-01    .15716E-03
   4  Prefactor     1.1164        .27775E-01    .36993E-01   -.14941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62161
  Index      = 3.04875
  Normalizat = 0.760309
  Prefactor  = 1.11644
 **********
 **   18 **HESSE 
 **********

 FCN=   10485.23     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6216        63.877        .11269E-04   -1.5676    
   2  Index         3.0487        6.5037        .57899E-02   -.40090    
   3  Normalizat    .76031        .23912        .39721E-03   -1.0156    
   4  Prefactor     1.1164        .10240        .16033E-03   -.88943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.59723e-09
Minuit parameter uncertainties:
  1  25.8817
  2  4.79374
  3  0.239454
  4  0.102422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900383': 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) = 10485.2320355
delta logL = 0.282660045299

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.622e+00  2.588e+01  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  3.049e+00  4.794e+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:  1.116e+00  1.024e-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:  7.603e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 359.755 39.367
Photon Index (Free Index): 3.05 +/- 4.79
Photon Flux (Free Index): 6.26e-08 +/- 8.55e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/900383/cmap_HighResolution_692409601_692668801_4FGL_J2359.0+3922_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.22e-05', photon_flux_error='3.28e-08', dlogl='2.83e-01', energy_flux='1.27e-05', photon_flux2='6.26e-08', job_status='DONE', time_completed='2022-12-14 01:45:44.235302', photon_index_error2='4.79', photon_index2='3.05', ts='2.04', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.53e-05', EG='0.80', time_epoch_completed='1671011144.24', return_code='0', job_id='900383', GAL2='1.12', EG2='0.76', return_code2='102', energy_flux_error='1.16e-05', photon_flux_error2='8.55e-08', ts2='2.67', photon_index='2.35' WHERE bin_id='1748' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:45:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 900383: <4FGL_J2359.0+3922_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:30:22 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:30:23 2022
Terminated at Wed Dec 14 01:45:45 2022
Results reported at Wed Dec 14 01:45:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1748 359.755 39.3669 692409601 692668801 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 :                                   834.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

