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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1776
RA = 359.755, Dec = 39.3669
tmin = 699667201, tmax = 699926401
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='847335', job_status='RUN', time_executed='2023-03-08 01:30:35.116392', time_epoch_executed='1678267835.12' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847335/ft1_4FGL_J2359.0+3922_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847335/ft2_4FGL_J2359.0+3922_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847335/ft1_4FGL_J2359.0+3922_daily_bin1776.fits outfile=/scratch/kocevski/847335/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1776.fits ra=359.755 dec=39.3669 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.67
sys 0.20

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

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

Number of photons that the gtmktime cut: 868

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847335/ft1_filtered_4FGL_J2359.0+3922_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/847335/ft2_4FGL_J2359.0+3922_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/847335/ltcube_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.fits outfile=/scratch/kocevski/847335/expmap_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.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/847335/ltcube_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.fits
.....................!
real 193.00
user 186.05
sys 4.97

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/847335/ft1_filtered_4FGL_J2359.0+3922_daily_bin1776.fits scfile=/scratch/kocevski/847335/ft2_4FGL_J2359.0+3922_daily_bin1776.fits outfile=/scratch/kocevski/847335/cmap_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847335/ft1_filtered_4FGL_J2359.0+3922_daily_bin1776.fits scfile=/scratch/kocevski/847335/ft2_4FGL_J2359.0+3922_daily_bin1776.fits outfile=/scratch/kocevski/847335/cmap_HighResolution_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.513       1.0000          .0000       .10000E+07
     2 'norm      '    .49210E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .18297E-04   1.0000          .0000       .10000E+07
     4 'norm      '    2.9051       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69084E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13698E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7156       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.100       1.0000          .0000       .10000E+07
     9 'Prefactor '    .54134E-06   1.0000          .0000       .10000E+07
    10 'norm      '    5.1007       1.0000          .0000       .10000E+07
    11 'Prefactor '    .78973E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .85244E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .96034E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    27.700       1.0000          .0000       .10000E+07
    15 'norm      '    12.467       1.0000          .0000       .10000E+07
    16 'norm      '    10.727       1.0000          .0000       .10000E+07
    17 'Prefactor '    .97490       1.0000          .0000       .10000E+07
    18 'norm      '    1.7776       1.0000          .0000       .10000E+07
    19 'Prefactor '    .44609E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3486       1.0000          .0000       .10000E+07
    21 'Prefactor '    .47838E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    19.952       1.0000          .0000       .10000E+07
    23 'Normalizat'    .88716       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98759       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=   9198.670     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1563 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.595        2.7349        .66266E-07    .18391E-01
   2  norm          .14727E-06    6.1420       -.28686E-06** at limit **
   3  Prefactor     .62506E-07    8.7479        .32503E-06** at limit **
   4  norm          2.9062        2.2242        .74486E-07    .93475E-03
   5  Prefactor     .11657E-07    6.8471       -.10123E-06** at limit **
   6  Prefactor      .0000        1.4000        .22004E-07** at limit **
   7  Prefactor     2.6450        3.0911        .14481E-06    .55886E-02
   8  Prefactor     11.629        2.4749        .53196E-07    .45017E-02
   9  Prefactor     .12196E-06    4.4459        .24565E-06** at limit **
  10  norm          5.1017        2.5240        .52667E-07    .11637E-02
  11  Prefactor     .16653E-09    4.2547        .30470E-07** at limit **
  12  Prefactor     .28977E-07    3.8847        .55627E-07** at limit **
  13  norm           .0000        .48237       -.44878E-08** at limit **
  14  Prefactor     27.811        3.2010       -.19590E-07   -.34793E-01
  15  norm          12.507        6.1263        .16381E-06   -.36536E-02
  16  norm          10.949        9.3985       -.18719E-06   -.64538E-01
  17  Prefactor     .82344        24.155        .86192E-06    .51287E-01
  18  norm          1.7731        1.6234        .83611E-07    .16616E-02
  19  Prefactor     .53291E-08    18.394        .16053E-06** at limit **
  20  Prefactor     5.7677        35.860        .13918E-05   -.39913E-01
  21  Prefactor      .0000        36.307        .12715E-07** at limit **
  22  Prefactor     19.883        9.1548        .45148E-07   -.19603E-02
  23  Normalizat    .88927        .22643        .44256E-05   -.15685E-05
  24  Prefactor     .98694        .10285       -.37375E-05   -.11321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5945
  norm       = 1.47271e-07
  Prefactor  = 6.25056e-08
  norm       = 2.90621
  Prefactor  = 1.16573e-08
  Prefactor  = 0
  Prefactor  = 2.64501
  Prefactor  = 11.6292
  Prefactor  = 1.21958e-07
  norm       = 5.10166
  Prefactor  = 1.66533e-10
  Prefactor  = 2.89768e-08
  norm       = 0
  Prefactor  = 27.8111
  norm       = 12.5068
  norm       = 10.9492
  Prefactor  = 0.823442
  norm       = 1.77309
  Prefactor  = 5.32907e-09
  Prefactor  = 5.76768
  Prefactor  = 0
  Prefactor  = 19.8826
  Normalizat = 0.889266
  Prefactor  = 0.986938
 **********
 **   18 **HESSE 
 **********

 FCN=   9198.670     FROM HESSE     STATUS=OK           447 CALLS     2010 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.595        12.470        .29500E-03   -1.5640    
   2  norm          .14727E-06    11.710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62506E-07    9.2124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9062        2.2247        .59587E-03   -1.5674    
   5  Prefactor     .11657E-07    6.8689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.3935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6450        17.288        .61778E-03   -1.5675    
   8  Prefactor     11.629        19.874        .28773E-03   -1.5640    
   9  Prefactor     .12196E-06    10.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1017        2.5281        .44494E-03   -1.5663    
  11  Prefactor     .16653E-09    4.2449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28977E-07    11.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .48152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.811        13.151        .19004E-03   -1.5602    
  15  norm          12.507        6.6301        .28344E-03   -1.5637    
  16  norm          10.949        12.045        .30565E-03   -1.5642    
  17  Prefactor     .82344        88.459        .42875E-03   -1.5690    
  18  norm          1.7731        1.6200        .78479E-03   -1.5681    
  19  Prefactor     .53291E-08    18.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7677        49.302        .39813E-03   -1.5660    
  21  Prefactor      .0000        36.240        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.883        9.1971        .22395E-03   -1.5619    
  23  Normalizat    .88927        .20046        .83449E-01   -.96838    
  24  Prefactor     .98694        .88464E-01    .46112E-01   -.93166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37433e-06
Minuit parameter uncertainties:
  1  12.4705
  2  0.00262665
  3  0.00151751
  4  2.22471
  5  0.000566342
  6  2.18659e-06
  7  13.5243
  8  19.8744
  9  0.00229622
  10  2.5281
  11  5.67004e-05
  12  0.00113525
  13  1.12475e-06
  14  13.1513
  15  6.63009
  16  12.0453
  17  17.0696
  18  1.62002
  19  0.000627468
  20  33.7262
  21  1.23734e-05
  22  9.19707
  23  0.20063
  24  0.0884769
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.988e+01  9.197e+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.869e-01  8.848e-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:  8.893e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.66
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.73e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 1.67e-05

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) = 9197.35143615
delta logL = 1.31841123619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9197.33337481
delta logL = 1.33647257535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0517       1.0000          .0000       .10000E+07
     2 'Index     '    3.5769       1.0000          .0000       10.000    
     3 'Normalizat'    .76819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   9197.333     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      274 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0480        8.9289        .72138E-03    .10125E-02
   2  Index         3.5777        1.5995        .67448E-01    .23592E-03
   3  Normalizat    .76810        .74950E-01    .89006E-01    .17028E-04
   4  Prefactor     1.0286        .33809E-01    .41371E-01   -.42998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.048
  Index      = 3.57765
  Normalizat = 0.768096
  Prefactor  = 1.02864
 **********
 **   18 **HESSE 
 **********

 FCN=   9197.333     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0480        13.579        .48694E-05   -1.5679    
   2  Index         3.5777        2.1308        .27671E-02   -.28845    
   3  Normalizat    .76810        .22232        .39424E-03   -1.0126    
   4  Prefactor     1.0286        .10234        .16143E-03   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43961e-07
Minuit parameter uncertainties:
  1  10.5469
  2  2.20811
  3  0.222586
  4  0.102357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847335': 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) = 9197.33337459
delta logL = 1.33647278966

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  2.048e+00  1.055e+01  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  3.578e+00  2.208e+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.029e+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.681e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.95
Ra Dec: 359.755 39.367
Photon Index (Free Index): 3.58 +/- 2.21
Photon Flux (Free Index): 1.70e-07 +/- 6.87e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.48e-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/847335/cmap_HighResolution_699667201_699926401_4FGL_J2359.0+3922_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.77e-05', photon_flux_error='4.73e-08', dlogl='1.34e+00', energy_flux='3.60e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2023-03-08 01:41:27.701046', photon_index_error2='2.21', photon_index2='3.58', ts='7.66', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.89', time_epoch_completed='1678268487.7', return_code='0', job_id='847335', GAL2='1.03', EG2='0.77', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='6.87e-08', ts2='10.95', photon_index='2.35' WHERE bin_id='1776' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:41:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 847335: <4FGL_J2359.0+3922_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1776> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Mar  8 01:30:22 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:30:22 2023
Terminated at Wed Mar  8 01:41:28 2023
Results reported at Wed Mar  8 01:41:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1776 359.755 39.3669 699667201 699926401 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 :                                   653.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            666 sec.

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

