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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1770
RA = 359.755, Dec = 39.3669
tmin = 698112001, tmax = 698371201
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='505608', job_status='RUN', time_executed='2023-02-18 02:11:04.870512', time_epoch_executed='1676715064.87' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505608/ft1_4FGL_J2359.0+3922_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505608/ft1_4FGL_J2359.0+3922_daily_bin1770.fits outfile=/scratch/kocevski/505608/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1770.fits ra=359.755 dec=39.3669 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.33
user 4.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505608/ft1_filtered_4FGL_J2359.0+3922_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/505608/ltcube_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.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/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits
.....................!
real 11.92
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505608/ft1_filtered_4FGL_J2359.0+3922_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/505608/ltcube_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.fits outfile=/scratch/kocevski/505608/expmap_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.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/505608/ltcube_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.fits
.....................!
real 190.22
user 185.22
sys 4.63

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/505608/ft1_filtered_4FGL_J2359.0+3922_daily_bin1770.fits scfile=/scratch/kocevski/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits outfile=/scratch/kocevski/505608/cmap_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505608/ft1_filtered_4FGL_J2359.0+3922_daily_bin1770.fits scfile=/scratch/kocevski/505608/ft2_4FGL_J2359.0+3922_daily_bin1770.fits outfile=/scratch/kocevski/505608/cmap_HighResolution_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.755 yref=39.3669 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17757E-01   1.0000          .0000       .10000E+07
     2 'norm      '    16.471       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50280E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .38133       1.0000          .0000       .10000E+07
     5 'Prefactor '    .44144E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.9771       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7621       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.929       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11942E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.4797       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21947E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.713       1.0000          .0000       .10000E+07
    13 'norm      '    1.2026       1.0000          .0000       .10000E+07
    14 'Prefactor '    .45360E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .89154E-03   1.0000          .0000       .10000E+07
    16 'norm      '    17.057       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.1395       1.0000          .0000       .10000E+07
    18 'norm      '    3.8136       1.0000          .0000       .10000E+07
    19 'Prefactor '    76.995       1.0000          .0000       .10000E+07
    20 'Prefactor '    .35675E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10422       1.0000          .0000       .10000E+07
    22 'Prefactor '    .98976       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95042       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=   11192.35     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2000 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        37.267       -.96394E-06** at limit **
   2  norm          16.571        18.427        .13627E-05    .12081E-01
   3  Prefactor      .0000        4.1657        .41203E-06** at limit **
   4  norm          .37942        1.4708       -.41762E-06   -.45103E-03
   5  Prefactor      .0000        2.6378       -.26801E-06** at limit **
   6  Prefactor     2.9719        3.1572       -.67739E-06   -.11602E-02
   7  Prefactor     5.8700        3.3214        .52180E-06    .17938E-01
   8  Prefactor     13.955        11.405        .14549E-05   -.16130E-01
   9  Prefactor     .75939E-07    52.548        .32651E-05** at limit **
  10  norm          1.4798        1.4377       -.23292E-06    .52832E-03
  11  Prefactor     .11102E-09    3.8549       -.36906E-06** at limit **
  12  Prefactor     10.708        1.2181        .14391E-07    .42874E-02
  13  norm          1.2018        .93554       -.12300E-07   -.92778E-03
  14  Prefactor     .33307E-09    5.1810       -.41900E-06** at limit **
  15  norm          .37470E-07    8.1480        .50434E-06** at limit **
  16  norm          17.059        8.8525       -.58033E-06   -.18310E-01
  17  Prefactor     4.2292        11.317        .46268E-06   -.33722E-02
  18  norm          3.8133        2.2026       -.30613E-06   -.48648E-03
  19  Prefactor     77.009        4.7551       -.29602E-06    .39834E-01
  20  Prefactor     .83877E-07    63.039       -.38172E-05** at limit **
  21  Prefactor     .76728E-05    26.599       -.52144E-05** at limit **
  22  Prefactor     .95096        10.238       -.35360E-05    .24451E-01
  23  Normalizat    1.1410        .21671       -.53532E-05    .71514E-04
  24  Prefactor     .95043        .94782E-01    .35828E-05    .23332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 16.5712
  Prefactor  = 0
  norm       = 0.379423
  Prefactor  = 0
  Prefactor  = 2.97193
  Prefactor  = 5.86996
  Prefactor  = 13.9555
  Prefactor  = 7.59393e-08
  norm       = 1.47982
  Prefactor  = 1.11022e-10
  Prefactor  = 10.7084
  norm       = 1.20178
  Prefactor  = 3.33067e-10
  norm       = 3.747e-08
  norm       = 17.0592
  Prefactor  = 4.22916
  norm       = 3.81325
  Prefactor  = 77.0089
  Prefactor  = 8.38773e-08
  Prefactor  = 7.67281e-06
  Prefactor  = 0.950962
  Normalizat = 1.14103
  Prefactor  = 0.950428
 **********
 **   18 **HESSE 
 **********

 FCN=   11192.35     FROM HESSE     STATUS=OK           455 CALLS     2455 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.417        .12153E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.571        21.540        .24652E-03   -1.5627    
   3  Prefactor      .0000        4.1602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .37942        1.4883        .91682E-03   -1.5696    
   5  Prefactor      .0000        2.6314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9719        3.4900        .58817E-03   -1.5673    
   7  Prefactor     5.8700        16.137        .41818E-03   -1.5660    
   8  Prefactor     13.955        25.063        .26812E-03   -1.5633    
   9  Prefactor     .75939E-07    53.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4798        1.4496        .88209E-03   -1.5684    
  11  Prefactor     .11102E-09    3.8162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.708        13.425        .30586E-03   -1.5643    
  13  norm          1.2018        .93708        .10340E-02   -1.5686    
  14  Prefactor     .33307E-09    5.1783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37470E-07    8.2381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.059        8.8880        .24224E-03   -1.5625    
  17  Prefactor     4.2292        11.379        .49518E-03   -1.5667    
  18  norm          3.8133        2.2040        .51661E-03   -1.5669    
  19  Prefactor     77.009        50.415        .11397E-03   -1.5532    
  20  Prefactor     .83877E-07    63.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .76728E-05    76.053        .13817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .95096        18.703        .43403E-03   -1.5688    
  23  Normalizat    1.1410        .18757        .78295E-01   -.88445    
  24  Prefactor     .95043        .80903E-01    .45644E-01   -.94401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3881e-07
Minuit parameter uncertainties:
  1  4.22677e-06
  2  21.5402
  3  1.74966e-05
  4  1.48833
  5  1.13872e-05
  6  3.49001
  7  16.1366
  8  25.0635
  9  0.0040303
  10  1.44957
  11  4.32767e-05
  12  13.4249
  13  0.93708
  14  8.53297e-05
  15  0.00111129
  16  8.88797
  17  11.3788
  18  2.20401
  19  50.4154
  20  0.00463183
  21  0.0483138
  22  8.43468
  23  0.187682
  24  0.0809129
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  9.510e-01  8.435e+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.504e-01  8.091e-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.141e+00  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/505608/likelihoodResults_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.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) = 11189.235321
delta logL = 3.11553162208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11192.359628
delta logL = -0.00877538948407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48295E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .24367       1.0000          .0000       10.000    
     3 'Normalizat'    1.1450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95020       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11188.35     FROM MIGRAD    STATUS=FAILED       359 CALLS      590 TOTAL
                     EDM=   .16E+00    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83689E-06    .73160E-05    .95378E-06** at limit **
   2  Index         9.1509        1.9356        .60033E-03   -.46060E-03
   3  Normalizat    .97741        .88593E-01    .37008E-03   -.17756E-03
   4  Prefactor     .99936        .40069E-01    .16615E-03   -.33172E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11188.35     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      664 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83689E-06    .73160E-05    .11713E-07** at limit **
   2  Index         9.1509        1.9356        .15661E-02   -.46060E-03
   3  Normalizat    .97741        .88593E-01    .19773E-03   -.17756E-03
   4  Prefactor     .99936        .40069E-01    .75683E-04   -.33172E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11188.35     FROM MIGRAD    STATUS=FAILED        37 CALLS      701 TOTAL
                     EDM=   .92E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83689E-06    .83699E-05     .0000    ** at limit **
   2  Index         9.1509        2.0677         .0000       -.46094E-03
   3  Normalizat    .97741        .12364         .0000       -.17787E-03
   4  Prefactor     .99936        .55677E-01     .0000       -.33158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36886e-07
  Index      = 9.15087
  Normalizat = 0.977411
  Prefactor  = 0.999356
 **********
 **   18 **HESSE 
 **********

 FCN=   11188.35     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      724 TOTAL
                     EDM=   .18E+00    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83689E-06    .83682E-05    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1509        2.0678        .48026E-05    .97942    
   3  Normalizat    .97741        .12359        .29606E-05   -.93791    
   4  Prefactor     .99936        .55684E-01    .66460E-05   -.92751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.184329
Minuit parameter uncertainties:
  1  5.29265e-06
  2  2.32975
  3  0.123629
  4  0.0556874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505608': 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): 1
logL (Free Index) = 11188.35154
delta logL = 3.99931267286

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  8.369e-07  5.293e-06  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  9.151e+00  2.330e+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:  9.994e-01  5.569e-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:  9.774e-01  1.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.59
Ra Dec: 359.755 39.367
Photon Index (Free Index): 9.15 +/- 2.33
Photon Flux (Free Index): 1.25e-07 +/- 4.98e-08
Energy Flux (Free Index): 1.41e-05 +/- 5.84e-06

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/505608/cmap_HighResolution_698112001_698371201_4FGL_J2359.0+3922_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='4.00e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2023-02-18 02:25:59.645782', photon_index_error2='2.33', photon_index2='9.15', ts='0.02', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.43e-08', energy_flux_error2='5.84e-06', EG='1.14', time_epoch_completed='1676715959.65', return_code='0', job_id='505608', GAL2='1.00', EG2='0.98', return_code2='1', photon_flux_error2='4.98e-08', ts2='8.59', photon_index='2.35' WHERE bin_id='1770' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 02:25:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 505608: <4FGL_J2359.0+3922_daily_bin1770> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 02:10:15 2023
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 02:10:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 02:10:16 2023
Terminated at Sat Feb 18 02:26:00 2023
Results reported at Sat Feb 18 02:26:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1770 359.755 39.3669 698112001 698371201 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 :                                   896.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

