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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1711
RA = 114.82, Dec = 1.6216
tmin = 682819201, tmax = 683078401
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='54271', job_status='RUN', time_executed='2022-09-16 13:08:56.861618', time_epoch_executed='1663358936.86' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54271/ft1_4FGL_J0739.2+0137_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54271/ft1_4FGL_J0739.2+0137_daily_bin1711.fits outfile=/scratch/kocevski/54271/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1711.fits ra=114.82 dec=1.6216 rad=12.0 tmin=682819201.0 tmax=683078401.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.64
user 4.37
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.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/54271/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.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.52
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 1125

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/54271/ltcube_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.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/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits
.....................!
real 14.27
user 13.68
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/54271/ltcube_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits outfile=/scratch/kocevski/54271/expmap_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.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/54271/ltcube_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits
.....................!
real 195.65
user 190.23
sys 4.40

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 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 J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits outfile=/scratch/kocevski/54271/cmap_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.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=114.82 yref=1.6216 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits outfile=/scratch/kocevski/54271/cmap_HighResolution_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.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=114.82 yref=1.6216 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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54271/Model_4FGL_J0739.2+0137_daily_bin1711.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits.....................!
real 175.38
user 173.34
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits', '/scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits', expMap='/scratch/kocevski/54271/expmap_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits', expCube='/scratch/kocevski/54271/ltcube_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54271/Model_4FGL_J0739.2+0137_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.2+0137'

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.536e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/54271/ft1_filtered_4FGL_J0739.2+0137_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/54271/ft2_4FGL_J0739.2+0137_daily_bin1711.fits
Exposure map: /scratch/kocevski/54271/expmap_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits
Exposure cube: /scratch/kocevski/54271/ltcube_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54271/Model_4FGL_J0739.2+0137_daily_bin1711.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) = 11844.6523363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3533       1.0000          .0000       .10000E+07
     2 'norm      '    8.3905       1.0000          .0000       .10000E+07
     3 'norm      '    1.7101       1.0000          .0000       .10000E+07
     4 'norm      '    2.8428       1.0000          .0000       .10000E+07
     5 'Prefactor '    .85158E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    22.973       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.580       1.0000          .0000       .10000E+07
     8 'norm      '    10.254       1.0000          .0000       .10000E+07
     9 'Prefactor '    .41991E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.275       1.0000          .0000       .10000E+07
    11 'norm      '    .19471E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .39830E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0810       1.0000          .0000       .10000E+07
    14 'Prefactor '    .73697E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .44340E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .82462E-06   1.0000          .0000       .10000E+07
    17 'norm      '    11.465       1.0000          .0000       .10000E+07
    18 'norm      '    15.584       1.0000          .0000       .10000E+07
    19 'norm      '    1.1106       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0194       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11844.60     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1289 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3228        9.7779       -.25124E-05   -.60449E-01
   2  norm          8.4614        1.1258       -.81518E-07   -.39014E-02
   3  norm          1.7063        2.5827        .22901E-07    .11594E-02
   4  norm          2.8426        2.1319        .14025E-06    .10778E-02
   5  Prefactor     .32813E-06    8.8821        .15074E-05** at limit **
   6  Prefactor     22.677        11.771        .66019E-06    .94249E-01
   7  Prefactor     12.510        8.4940       -.16817E-05    .67435E-01
   8  norm          10.257        2.5035        .44151E-08    .62822E-02
   9  Prefactor     .34078E-06    13.213       -.33934E-05** at limit **
  10  Prefactor     13.370        5.6970       -.28058E-07    .17814E-02
  11  norm          .50232E-06    10.710       -.67155E-06** at limit **
  12  Prefactor     .22854E-06    10.285        .50889E-06** at limit **
  13  Prefactor     5.0886        6.0270        .94608E-07    .47832E-03
  14  Prefactor     .11818E-06    6.3156       -.18409E-06** at limit **
  15  norm          .55511E-10    2.3795       -.47007E-06** at limit **
  16  norm           .0000        1.8752        .24931E-06** at limit **
  17  norm          11.465        2.2336       -.10301E-06    .12482E-02
  18  norm          15.453        2.2329       -.14204E-06   -.15566E-02
  19  norm          1.1119        1.8652        .21232E-06   -.11677E-02
  20  Normalizat    1.0190        .19056       -.12289E-06    .14097E-03
  21  Prefactor     .89089        .61713E-01    .10969E-05    .52132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32276
  norm       = 8.4614
  norm       = 1.70632
  norm       = 2.84262
  Prefactor  = 3.28126e-07
  Prefactor  = 22.6769
  Prefactor  = 12.5105
  norm       = 10.2569
  Prefactor  = 3.40783e-07
  Prefactor  = 13.3699
  norm       = 5.0232e-07
  Prefactor  = 2.28539e-07
  Prefactor  = 5.08865
  Prefactor  = 1.18183e-07
  norm       = 5.55112e-11
  norm       = 0
  norm       = 11.4652
  norm       = 15.4532
  norm       = 1.11186
  Normalizat = 1.01896
  Prefactor  = 0.890889
 **********
 **   18 **HESSE 
 **********

 FCN=   11844.60     FROM HESSE     STATUS=OK           365 CALLS     1654 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3228        10.521        .39798E-03   -1.5658    
   2  norm          8.4614        16.968        .34585E-03   -1.5650    
   3  norm          1.7063        2.6103        .80355E-03   -1.5682    
   4  norm          2.8426        2.1674        .60281E-03   -1.5674    
   5  Prefactor     .32813E-06    18.205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.677        12.978        .20869E-03   -1.5613    
   7  Prefactor     12.510        30.318        .28217E-03   -1.5637    
   8  norm          10.257        2.5141        .31266E-03   -1.5644    
   9  Prefactor     .34078E-06    20.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.370        5.6736        .27466E-03   -1.5635    
  11  norm          .50232E-06    12.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22854E-06    11.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0886        6.0413        .44582E-03   -1.5663    
  14  Prefactor     .11818E-06    19.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    2.3854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.8326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.465        2.2349        .29562E-03   -1.5640    
  18  norm          15.453        17.218        .25345E-03   -1.5629    
  19  norm          1.1119        2.3682        .43701E-02   -1.5687    
  20  Normalizat    1.0190        .18708        .97867E-01   -.92398    
  21  Prefactor     .89089        .58719E-01    .44886E-01   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64159e-07
Minuit parameter uncertainties:
  1  10.5211
  2  16.9683
  3  2.6103
  4  2.16741
  5  0.00488831
  6  12.9781
  7  30.3182
  8  2.51406
  9  0.00525658
  10  5.67365
  11  0.00503576
  12  0.00318517
  13  6.04131
  14  0.00300001
  15  1.90252e-05
  16  9.86977e-06
  17  2.23494
  18  17.218
  19  2.3682
  20  0.187199
  21  0.0587229
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.026e+01  2.514e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.909e-01  5.872e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.019e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.98
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.54e-07 +/- 6.23e-08
Energy Flux (Fixed Index): 8.22e-05 +/- 2.01e-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) = 11844.150882
delta logL = 0.449410367959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11844.1502374
delta logL = 0.450054872877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4524       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6102       1.0000          .0000       5.0000    
     3 'Normalizat'    .97828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11844.15     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4522        29.570        .32572E-03    .22263E-01
   2  alpha         2.6101        3.7734        .24990        .21962E-03
   3  Normalizat    .97829        .17437        .99522E-01    .32514E-03
   4  Prefactor     .89774        .51452E-01    .34505E-01    .29076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.45216
  alpha      = 2.61006
  Normalizat = 0.97829
  Prefactor  = 0.897742
 **********
 **   18 **HESSE 
 **********

 FCN=   11844.15     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4522        2.6246        .72978E-05   -1.5646    
   2  alpha         2.6101        .32711        .10440E-01    .44038E-01
   3  Normalizat    .97829        .18120        .44099E-03   -.93761    
   4  Prefactor     .89774        .58388E-01    .15248E-03   -.96220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62443e-10
Minuit parameter uncertainties:
  1  2.62457
  2  0.328049
  3  0.181311
  4  0.0583924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54271': 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) = 11844.1502372
delta logL = 0.450055168925

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  9.452e+00  2.625e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.610e+00  3.280e-01  0.000e+00  5.000e+00 ( 1.000e+00)
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.977e-01  5.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  9.783e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.22
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.61 +/- 0.33
Photon Flux (Free Index): 3.01e-07 +/- 8.24e-08
Energy Flux (Free Index): 7.58e-05 +/- 1.87e-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/54271/cmap_HighResolution_682819201_683078401_4FGL_J0739.2+0137_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-07', energy_flux2='7.58e-05', photon_flux_error='6.23e-08', dlogl='4.50e-01', energy_flux='8.22e-05', photon_flux2='3.01e-07', job_status='DONE', time_completed='2022-09-16 13:21:07.098588', photon_index_error2='0.33', photon_index2='2.61', ts='37.98', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='1.02', time_epoch_completed='1663359667.1', return_code='0', job_id='54271', GAL2='0.90', EG2='0.98', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='8.24e-08', ts2='39.22', photon_index='2.31' WHERE bin_id='1711' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 13:21:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 54271: <4FGL_J0739.2+0137_daily_bin1711> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1711> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 13:05:26 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:08:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:08:12 2022
Terminated at Fri Sep 16 13:21:07 2022
Results reported at Fri Sep 16 13:21:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1711 114.82 1.6216 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.2+0137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            941 sec.

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

