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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1749
RA = 359.755, Dec = 39.3669
tmin = 692668801, tmax = 692928001
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='966622', job_status='RUN', time_executed='2022-12-17 01:43:01.781832', time_epoch_executed='1671270181.78' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966622/ft1_4FGL_J2359.0+3922_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966622/ft2_4FGL_J2359.0+3922_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966622/ft1_4FGL_J2359.0+3922_daily_bin1749.fits outfile=/scratch/kocevski/966622/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1749.fits ra=359.755 dec=39.3669 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966622/ft1_filtered_4FGL_J2359.0+3922_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/966622/ft2_4FGL_J2359.0+3922_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/966622/ltcube_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.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/966622/ft2_4FGL_J2359.0+3922_daily_bin1749.fits
.....................!
real 12.03
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966622/ft1_filtered_4FGL_J2359.0+3922_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/966622/ft2_4FGL_J2359.0+3922_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/966622/ltcube_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.fits outfile=/scratch/kocevski/966622/expmap_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.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/966622/ltcube_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.fits
.....................!
real 190.32
user 185.86
sys 4.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/966622/ft1_filtered_4FGL_J2359.0+3922_daily_bin1749.fits scfile=/scratch/kocevski/966622/ft2_4FGL_J2359.0+3922_daily_bin1749.fits outfile=/scratch/kocevski/966622/cmap_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.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.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.136       1.0000          .0000       .10000E+07
     2 'norm      '    24.878       1.0000          .0000       .10000E+07
     3 'Prefactor '    .43636E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .21011E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2562       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1767       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8782       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27443E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6480       1.0000          .0000       .10000E+07
    10 'norm      '    6.8296       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.895       1.0000          .0000       .10000E+07
    13 'norm      '    .44784       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11932E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.1566       1.0000          .0000       .10000E+07
    16 'norm      '    15.061       1.0000          .0000       .10000E+07
    17 'Prefactor '    12.269       1.0000          .0000       .10000E+07
    18 'norm      '    .41343       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12327       1.0000          .0000       .10000E+07
    20 'Prefactor '    50.474       1.0000          .0000       .10000E+07
    21 'Prefactor '    .42767E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.2647       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2375       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93000       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=   10512.04     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2042 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.165        1.2248       -.23493E-07    .19257E-01
   2  norm          24.880        3.7289        .88768E-07   -.31559E-01
   3  Prefactor      .0000        2.5645        .19817E-06** at limit **
   4  norm           .0000        .52454       -.49109E-07** at limit **
   5  Prefactor     1.2527        1.1522       -.13204E-07   -.83523E-02
   6  Prefactor     1.1752        2.3396       -.94633E-07    .18416E-02
   7  Prefactor     2.8798        1.1830       -.60478E-07   -.42893E-02
   8  Prefactor     .35305E-07    10.130       -.12886E-05** at limit **
   9  Prefactor     2.6455        1.1105       -.33998E-07    .24104E-02
  10  norm          6.8286        2.9564        .15189E-06   -.49831E-02
  11  Prefactor      .0000        1.2742        .75574E-07** at limit **
  12  Prefactor     13.895        1.0346        .81382E-08    .88723E-03
  13  norm          .44778        .69593        .15861E-07   -.59590E-03
  14  Prefactor     .33307E-09    5.7157        .66192E-06** at limit **
  15  norm          1.1606        2.7502       -.69852E-06    .48965E-02
  16  norm          15.054        1.0794        .73332E-08   -.25376E-01
  17  Prefactor     12.260        1.7899       -.63297E-07   -.74518E-03
  18  norm          .41262        1.3931        .51901E-06   -.31032E-02
  19  Prefactor      .0000        29.679        .24970E-05** at limit **
  20  Prefactor     50.477        2.4522       -.37377E-07    .20927    
  21  Prefactor     .38469E-07    9.1294       -.44709E-06** at limit **
  22  Prefactor     2.2608        3.0435        .16715E-06   -.94317E-03
  23  Normalizat    1.2377        .20808        .17685E-04    .24704E-04
  24  Prefactor     .92992        .95532E-01   -.12202E-04    .43116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1646
  norm       = 24.8801
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.25268
  Prefactor  = 1.17518
  Prefactor  = 2.87976
  Prefactor  = 3.53051e-08
  Prefactor  = 2.64549
  norm       = 6.82861
  Prefactor  = 0
  Prefactor  = 13.8954
  norm       = 0.44778
  Prefactor  = 3.33067e-10
  norm       = 1.16056
  norm       = 15.0537
  Prefactor  = 12.26
  norm       = 0.412616
  Prefactor  = 0
  Prefactor  = 50.4774
  Prefactor  = 3.84692e-08
  Prefactor  = 2.26083
  Normalizat = 1.23768
  Prefactor  = 0.929923
 **********
 **   18 **HESSE 
 **********

 FCN=   10512.04     FROM HESSE     STATUS=OK           455 CALLS     2497 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.165        22.481        .29997E-03   -1.5641    
   2  norm          24.880        16.478        .20053E-03   -1.5608    
   3  Prefactor      .0000        2.5617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .52431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2527        9.7492        .99593E-03   -1.5686    
   6  Prefactor     1.1752        2.4659        .10550E-02   -1.5686    
   7  Prefactor     2.8798        18.009        .59884E-03   -1.5674    
   8  Prefactor     .35305E-07    10.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6455        28.502        .62623E-03   -1.5675    
  10  norm          6.8286        2.9617        .38369E-03   -1.5656    
  11  Prefactor      .0000        1.2738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.895        14.855        .26845E-03   -1.5633    
  13  norm          .44778        .81912        .24517E-02   -1.5695    
  14  Prefactor     .33307E-09    5.7075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1606        2.9753        .10728E-02   -1.5686    
  16  norm          15.054        10.377        .25782E-03   -1.5630    
  17  Prefactor     12.260        15.738        .28574E-03   -1.5638    
  18  norm          .41262        1.4235        .87947E-03   -1.5695    
  19  Prefactor      .0000        29.597        .13342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.477        38.902        .14077E-03   -1.5566    
  21  Prefactor     .38469E-07    9.4077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2608        3.0758        .68226E-03   -1.5678    
  23  Normalizat    1.2377        .19629        .75451E-01   -.85446    
  24  Prefactor     .92992        .83107E-01    .45386E-01   -.95103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11964e-06
Minuit parameter uncertainties:
  1  22.4814
  2  16.4781
  3  2.85646e-06
  4  1.84104e-07
  5  6.98933
  6  2.46595
  7  14.4032
  8  0.00122211
  9  17.3671
  10  2.96169
  11  6.10105e-06
  12  14.8553
  13  0.819116
  14  8.77007e-05
  15  2.97528
  16  10.377
  17  15.7378
  18  1.42353
  19  4.70221e-05
  20  38.9026
  21  0.00120294
  22  3.07576
  23  0.196408
  24  0.0831187
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.261e+00  3.076e+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:  9.299e-01  8.312e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.238e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.16e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 4.10e-06 +/- 5.58e-06

TS (Fixed Index): 1.13
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 6.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966622/likelihoodResults_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.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) = 10511.4945229
delta logL = 0.543298000763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10511.3967025
delta logL = 0.641118396152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0721       1.0000          .0000       .10000E+07
     2 'Index     '    1.4128       1.0000          .0000       10.000    
     3 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92758       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=   10511.40     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0721        8.9200        .49939E-03    .18295E-01
   2  Index         1.4128        1.0614        .30887        .57750E-04
   3  Normalizat    1.2464        .17906        .75222E-01    .27108E-03
   4  Prefactor     .92758        .81951E-01    .45356E-01    .52792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07207
  Index      = 1.41282
  Normalizat = 1.24643
  Prefactor  = 0.927579
 **********
 **   18 **HESSE 
 **********

 FCN=   10511.40     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0721        4.7583        .19976E-04   -1.5668    
   2  Index         1.4128        .68810        .16067E-01   -.80011    
   3  Normalizat    1.2464        .20589        .33291E-03   -.85180    
   4  Prefactor     .92758        .94963E-01    .17385E-03   -.95184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93615e-09
Minuit parameter uncertainties:
  1  4.7583
  2  0.692659
  3  0.20603
  4  0.0949803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966622': 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): 0
logL (Free Index) = 10511.3967025
delta logL = 0.64111839967

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.072e+00  4.758e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.413e+00  6.927e-01  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.276e-01  9.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.246e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 359.755 39.367
Photon Index (Free Index): 1.41 +/- 0.69
Photon Flux (Free Index): 4.76e-09 +/- 6.64e-09
Energy Flux (Free Index): 2.02e-05 +/- 3.80e-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/966622/cmap_HighResolution_692668801_692928001_4FGL_J2359.0+3922_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', photon_flux='1.16e-08', energy_flux2='2.02e-05', photon_flux_error='1.58e-08', dlogl='6.41e-01', energy_flux='4.10e-06', photon_flux2='4.76e-09', job_status='DONE', time_completed='2022-12-17 01:56:45.162913', photon_index_error2='0.69', photon_index2='1.41', ts='1.13', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.31e-08', energy_flux_error2='3.80e-05', EG='1.24', time_epoch_completed='1671271005.16', return_code='0', job_id='966622', GAL2='0.93', EG2='1.25', return_code2='0', energy_flux_error='5.58e-06', photon_flux_error2='6.64e-09', ts2='2.42', photon_index='2.35' WHERE bin_id='1749' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:56:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 966622: <4FGL_J2359.0+3922_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 01:40:15 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:40:16 2022
Terminated at Sat Dec 17 01:56:45 2022
Results reported at Sat Dec 17 01:56:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1749 359.755 39.3669 692668801 692928001 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 :                                   825.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

