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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1728
RA = 346.922, Dec = 14.8644
tmin = 687225601, tmax = 687484801
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='304527', job_status='RUN', time_executed='2022-10-15 00:37:58.498910', time_epoch_executed='1665819478.5' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304527/ft1_4FGL_J2307.6+1451_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304527/ft1_4FGL_J2307.6+1451_daily_bin1728.fits outfile=/scratch/kocevski/304527/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1728.fits ra=346.922 dec=14.8644 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.72
user 2.51
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.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/304527/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 172

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304527/ltcube_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.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/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits
.....................!
real 12.32
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304527/ltcube_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits outfile=/scratch/kocevski/304527/expmap_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.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/304527/ltcube_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits
.....................!
real 190.96
user 185.19
sys 5.37

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits outfile=/scratch/kocevski/304527/cmap_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.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=346.922 yref=14.8644 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits outfile=/scratch/kocevski/304527/cmap_HighResolution_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.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=346.922 yref=14.8644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304527/Model_4FGL_J2307.6+1451_daily_bin1728.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits......................!
real 32.65
user 31.33
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits', '/scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits', expMap='/scratch/kocevski/304527/expmap_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits', expCube='/scratch/kocevski/304527/ltcube_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304527/Model_4FGL_J2307.6+1451_daily_bin1728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304527/ft1_filtered_4FGL_J2307.6+1451_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304527/ft2_4FGL_J2307.6+1451_daily_bin1728.fits
Exposure map: /scratch/kocevski/304527/expmap_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304527/ltcube_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304527/Model_4FGL_J2307.6+1451_daily_bin1728.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) = 1926.69694616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.394       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12890E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .76354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .93259E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    103.54       1.0000          .0000       .10000E+07
     7 'Prefactor '    .57687E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.8398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.721       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.172       1.0000          .0000       .10000E+07
    11 'Prefactor '    237.91       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40776E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41890E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36455       1.0000          .0000       .10000E+07
    15 'norm      '    83.219       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36709E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    190.19       1.0000          .0000       .10000E+07
    18 'norm      '    38.869       1.0000          .0000       .10000E+07
    19 'Prefactor '    88.097       1.0000          .0000       .10000E+07
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1926.667     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     1703 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.368        32.611       -.19372E-05   -.37773E-02
   2  Prefactor      .0000        31.622       -.17864E-05** at limit **
   3  Prefactor     .76470        .39893       -.55404E-06   -.61541E-04
   4  Prefactor     .10000E-03    4.0432        .41972E-05** at limit **
   5  norm           .0000        1.0795        .14305E-06** at limit **
   6  Prefactor     105.26        37.142       -.10523E-05   -.60600E-01
   7  Prefactor      .0000        7.8618       -.45378E-06** at limit **
   8  Prefactor     3.8386        .63446       -.80538E-07   -.13268E-04
   9  Prefactor     99.993        87.544       -.17278E-05   -.10814E-01
  10  Prefactor     12.149        18.931        .84635E-07    .89729E-04
  11  Prefactor     239.44        44.656        .40261E-06    .24758    
  12  Prefactor      .0000        29.534       -.16654E-05** at limit **
  13  Prefactor     .22204E-09    45.686       -.21382E-05** at limit **
  14  Prefactor      .0000        109.15       -.15234E-05** at limit **
  15  norm          84.228        55.649        .43081E-05   -.20894E-01
  16  Prefactor     .22204E-09    72.233       -.59866E-05** at limit **
  17  Prefactor     186.75        141.25       -.14654E-05    .14214    
  18  norm          42.164        70.081       -.30350E-05    .78694E-02
  19  Prefactor     90.243        71.873        .12517E-05    .10656    
  20  Normalizat    .10000E-01    .36406        .18094E-05** at limit **
  21  Prefactor     .90820        .15806        .16893E-04    .93894E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3678
  Prefactor  = 0
  Prefactor  = 0.764703
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 105.258
  Prefactor  = 0
  Prefactor  = 3.83859
  Prefactor  = 99.9934
  Prefactor  = 12.1494
  Prefactor  = 239.443
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  norm       = 84.2281
  Prefactor  = 2.22045e-10
  Prefactor  = 186.746
  norm       = 42.1637
  Prefactor  = 90.2433
  Normalizat = 0.01
  Prefactor  = 0.908196
 **********
 **   18 **HESSE 
 **********

 FCN=   1926.667     FROM HESSE     STATUS=OK           353 CALLS     2056 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.368        32.610        .16355E-03   -1.5586    
   2  Prefactor      .0000        31.587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76470        .39960        .40610E-02   -1.5533    
   4  Prefactor     .10000E-03    4.0463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.0802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     105.26        88.443        .98282E-04   -1.5503    
   7  Prefactor      .0000        7.8684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8386        .64835        .30397E-02   -1.5316    
   9  Prefactor     99.993        95.698        .10222E-03   -1.5508    
  10  Prefactor     12.149        18.919        .28687E-03   -1.5638    
  11  Prefactor     239.44        120.53        .64840E-04   -1.5398    
  12  Prefactor      .0000        29.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-09    45.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        108.52        .93715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          84.228        58.209        .10963E-03   -1.5524    
  16  Prefactor     .22204E-09    71.572        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     186.75        180.58        .72519E-04   -1.5435    
  18  norm          42.164        70.329        .16041E-03   -1.5578    
  19  Prefactor     90.243        141.76        .10655E-03   -1.5518    
  20  Normalizat    .10000E-01    .26238        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .90820        .18150        .45148E-01   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03001e-05
Minuit parameter uncertainties:
  1  32.6102
  2  4.43569e-05
  3  0.399603
  4  9.25346e-07
  5  1.94393e-07
  6  88.4445
  7  1.947e-06
  8  0.648352
  9  95.6998
  10  18.9189
  11  120.526
  12  2.61761e-05
  13  0.000203288
  14  7.27987e-05
  15  58.2091
  16  0.000246386
  17  180.587
  18  70.3309
  19  141.765
  20  7.86085e-09
  21  0.181623
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.215e+01  1.892e+01  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.082e-01  1.816e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.000e-02  7.861e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 3.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304527/likelihoodResults_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.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) = 1926.59634612
delta logL = 0.0706470173352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1926.59411158
delta logL = 0.0728815557504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.668       1.0000          .0000       .10000E+07
     2 'Index     '    1.8500       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90856       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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.

 FCN=   1926.594     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      288 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.668        27.753        .95203E-05   -.11504E-02
   2  Index         1.8498        .83529        .69822E-02   -.52461E-04
   3  Normalizat    .10000E-01    .37307        .11153E-01** at limit **
   4  Prefactor     .90859        .14026        .20743E-03    .28233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6682
  Index      = 1.84983
  Normalizat = 0.01
  Prefactor  = 0.908586
 **********
 **   18 **HESSE 
 **********

 FCN=   1926.594     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.668        27.436        .19041E-05   -1.5624    
   2  Index         1.8498        .82600        .27929E-03   -.68160    
   3  Normalizat    .10000E-01    .37320        .22307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90859        .14019        .41486E-04   -.95842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65296e-10
Minuit parameter uncertainties:
  1  27.4362
  2  0.832363
  3  1.4725e-06
  4  0.140241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304527': 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) = 1926.59411146
delta logL = 0.0728816746164

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.767e+01  2.744e+01  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  1.850e+00  8.324e-01  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.086e-01  1.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.000e-02  1.473e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
Ra Dec: 346.922 14.864

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304527/cmap_HighResolution_687225601_687484801_4FGL_J2307.6+1451_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-02', job_status='DONE', photon_flux_upper_limit='3.82e-07', time_completed='2022-10-15 00:44:23.813551', job_id='304527', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665819863.81', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.29e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1728' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:44:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 304527: <4FGL_J2307.6+1451_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:36:03 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:36:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:36:04 2022
Terminated at Sat Oct 15 00:44:24 2022
Results reported at Sat Oct 15 00:44:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1728 346.922 14.8644 687225601 687484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   387.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            501 sec.

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

