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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1721
RA = 359.755, Dec = 39.3669
tmin = 685411201, tmax = 685670401
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='70826', job_status='RUN', time_executed='2022-09-24 01:15:41.181282', time_epoch_executed='1664007341.18' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70826/ft1_4FGL_J2359.0+3922_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70826/ft2_4FGL_J2359.0+3922_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70826/ft1_4FGL_J2359.0+3922_daily_bin1721.fits outfile=/scratch/kocevski/70826/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1721.fits ra=359.755 dec=39.3669 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.24
user 4.94
sys 0.25

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

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

Number of photons that the gtmktime cut: 749

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70826/ft1_filtered_4FGL_J2359.0+3922_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70826/ft2_4FGL_J2359.0+3922_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70826/ltcube_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.fits outfile=/scratch/kocevski/70826/expmap_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.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/70826/ltcube_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.fits
.....................!
real 191.70
user 186.83
sys 4.46

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/70826/ft1_filtered_4FGL_J2359.0+3922_daily_bin1721.fits scfile=/scratch/kocevski/70826/ft2_4FGL_J2359.0+3922_daily_bin1721.fits outfile=/scratch/kocevski/70826/cmap_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70826/ft1_filtered_4FGL_J2359.0+3922_daily_bin1721.fits scfile=/scratch/kocevski/70826/ft2_4FGL_J2359.0+3922_daily_bin1721.fits outfile=/scratch/kocevski/70826/cmap_HighResolution_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.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/70826/ft1_filtered_4FGL_J2359.0+3922_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70826/ft2_4FGL_J2359.0+3922_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70826/Model_4FGL_J2359.0+3922_daily_bin1721.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/70826/ft1_filtered_4FGL_J2359.0+3922_daily_bin1721.fits.....................!
real 94.94
user 93.49
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57937E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .89962E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11028E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .33862E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16840E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.1871       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.244       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12892E-01   1.0000          .0000       .10000E+07
    10 'norm      '    3.1975       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29038       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32896E-06   1.0000          .0000       .10000E+07
    13 'norm      '    1.1716       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.257       1.0000          .0000       .10000E+07
    15 'norm      '    .67724E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .17484E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    31.717       1.0000          .0000       .10000E+07
    18 'norm      '    .11940E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .53042E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    32.838       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.7635       1.0000          .0000       .10000E+07
    22 'Prefactor '    7.1002       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0452       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94651       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=   8281.725     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2033 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93814E-08    11.071        .35091E-06** at limit **
   2  norm          .19984E-07    21.667       -.39243E-07** at limit **
   3  Prefactor      .0000        2.4584        .55171E-08** at limit **
   4  norm           .0000        .74534        .22962E-08** at limit **
   5  Prefactor     .55511E-10    4.4774        .71475E-07** at limit **
   6  Prefactor     2.2062        2.9649        .53323E-07    .19311E-02
   7  Prefactor     26.148        2.8289       -.97901E-08    .33301E-01
   8  Prefactor     43.737        15.136       -.26492E-07    .16921    
   9  Prefactor     .14433E-08    14.780        .18663E-06** at limit **
  10  norm          3.2018        2.4199        .25538E-07    .25907E-02
  11  Prefactor     .29494        6.9476        .30363E-07   -.66248E-04
  12  Prefactor     .15543E-08    10.305        .12169E-06** at limit **
  13  norm          1.1727        1.1131       -.13200E-07   -.26915E-02
  14  Prefactor     14.841        14.810        .19584E-07   -.21001E-02
  15  norm           .0000        2.0546        .11779E-08** at limit **
  16  norm           .0000        4.4790       -.30336E-07** at limit **
  17  Prefactor     31.444        4.7897        .10116E-07   -.13050    
  18  norm           .0000        1.2392        .14270E-07** at limit **
  19  Prefactor     .17716E-05    51.016        .94466E-07** at limit **
  20  Prefactor     36.385        46.452       -.97352E-07    .11450E-01
  21  Prefactor     5.6636        141.89       -.22039E-06   -.20505E-01
  22  Prefactor     7.0398        7.7639       -.10772E-06   -.24149E-02
  23  Normalizat    1.0389        .24312        .86107E-07   -.73354E-04
  24  Prefactor     .94735        .10292       -.25397E-06   -.17295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.38138e-09
  norm       = 1.9984e-08
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.20617
  Prefactor  = 26.1481
  Prefactor  = 43.7369
  Prefactor  = 1.44329e-09
  norm       = 3.20183
  Prefactor  = 0.294938
  Prefactor  = 1.55431e-09
  norm       = 1.17269
  Prefactor  = 14.8406
  norm       = 0
  norm       = 0
  Prefactor  = 31.4444
  norm       = 0
  Prefactor  = 1.77164e-06
  Prefactor  = 36.3848
  Prefactor  = 5.66357
  Prefactor  = 7.03979
  Normalizat = 1.03889
  Prefactor  = 0.947351
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.725     FROM HESSE     STATUS=OK           449 CALLS     2482 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93814E-08    11.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .19984E-07    21.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.4589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .74599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    4.4748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2062        3.1321        .69570E-03   -1.5678    
   7  Prefactor     26.148        21.384        .19524E-03   -1.5606    
   8  Prefactor     43.737        31.370        .15293E-03   -1.5576    
   9  Prefactor     .14433E-08    14.766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2018        2.4271        .56639E-03   -1.5672    
  11  Prefactor     .29494        2.7047        .52475E-02   -1.5697    
  12  Prefactor     .15543E-08    10.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1727        1.1346        .10594E-02   -1.5686    
  14  Prefactor     14.841        14.883        .26501E-03   -1.5631    
  15  norm           .0000        2.0594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.444        23.216        .17759E-03   -1.5596    
  18  norm           .0000        1.2413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17716E-05    52.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.385        46.612        .17453E-03   -1.5587    
  21  Prefactor     5.6636        189.59        .46076E-03   -1.5660    
  22  Prefactor     7.0398        8.1891        .37623E-03   -1.5655    
  23  Normalizat    1.0389        .21982        .82682E-01   -.91739    
  24  Prefactor     .94735        .89935E-01    .45595E-01   -.94506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28168e-06
Minuit parameter uncertainties:
  1  0.000645023
  2  0.00131661
  3  4.79327e-06
  4  5.27438e-07
  5  3.55608e-05
  6  3.13212
  7  21.3839
  8  31.37
  9  0.000290131
  10  2.42706
  11  1.78631
  12  0.000253229
  13  1.1346
  14  14.8829
  15  2.19264e-06
  16  8.82711e-06
  17  23.2157
  18  4.50243e-06
  19  0.0193246
  20  46.6124
  21  65.5386
  22  8.1891
  23  0.22001
  24  0.0899495
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.040e+00  8.189e+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.474e-01  8.995e-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.039e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/70826/likelihoodResults_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.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) = 8281.64971856
delta logL = 0.0751677571243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8281.64437555
delta logL = 0.0805107729429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9040       1.0000          .0000       .10000E+07
     2 'Index     '    2.0171       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94470       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=   8281.644     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9040        230.23        .33566E-03    .45966E-02
   2  Index         2.0174        5.9807        .25691        .29927E-04
   3  Normalizat    1.0518        .99119E-01    .82229E-01    .97967E-04
   4  Prefactor     .94470        .31211E-01    .45572E-01    .17978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.90402
  Index      = 2.01736
  Normalizat = 1.05183
  Prefactor  = 0.944697
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.644     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9040        9.4773        .13426E-04   -1.5648    
   2  Index         2.0174        .81210        .94488E-02   -.63917    
   3  Normalizat    1.0518        .23320        .36404E-03   -.91314    
   4  Prefactor     .94470        .10268        .16818E-03   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60751e-10
Minuit parameter uncertainties:
  1  9.47731
  2  0.817752
  3  0.233425
  4  0.102699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70826': 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) = 8281.64437543
delta logL = 0.0805108891163

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  8.904e+00  9.477e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.017e+00  8.178e-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.447e-01  1.027e-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.052e+00  2.334e-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): 2.02 +/- 0.82
Photon Flux (Free Index): 2.42e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.60e-05 +/- 2.08e-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/70826/cmap_HighResolution_685411201_685670401_4FGL_J2359.0+3922_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.60e-05', photon_flux_error='4.21e-08', dlogl='8.05e-02', energy_flux='1.28e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2022-09-24 01:27:26.935824', photon_index_error2='0.82', photon_index2='2.02', ts='2.26', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.08e-05', EG='1.04', time_epoch_completed='1664008046.94', return_code='0', job_id='70826', GAL2='0.94', EG2='1.05', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.69e-08', ts2='2.42', photon_index='2.35' WHERE bin_id='1721' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:27:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 70826: <4FGL_J2359.0+3922_daily_bin1721> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:49 2022
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:14:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:14:57 2022
Terminated at Sat Sep 24 01:27:27 2022
Results reported at Sat Sep 24 01:27:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1721 359.755 39.3669 685411201 685670401 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 :                                   707.54 sec.
    Max Memory :                                 626 MB
    Average Memory :                             323.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            998 sec.

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

