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 173 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0739.8-6722_weekly_bin722
RA = 114.955, Dec = -67.3684
tmin = 675648001, tmax = 676252801
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='972465', job_status='RUN', time_executed='2022-06-07 00:42:04.656008', time_epoch_executed='1654587724.66' WHERE source_name='4FGL J0739.8-6722' and cadence='weekly' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/972465

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/972465/ft1_4FGL_J0739.8-6722_weekly_bin722.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/972465/ft1_4FGL_J0739.8-6722_weekly_bin722.fits outfile=/scratch/kocevski/972465/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin722.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=675648001.0 tmax=676252801.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 8.74
user 8.37
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.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/972465/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin722.fits evtable="EVENTS" outfile="/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.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.56
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 2597

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits" evtable="EVENTS" scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits sctable="SC_DATA" outfile=/scratch/kocevski/972465/ltcube_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.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/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits
.....................!
real 29.20
user 28.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/972465/ltcube_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits outfile=/scratch/kocevski/972465/expmap_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.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/972465/ltcube_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits
.....................!
real 191.30
user 185.89
sys 4.83

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 LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Added 215 point sources and 6 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.8-6722 @ 114.955 -67.3684

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits outfile=/scratch/kocevski/972465/cmap_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.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.955 yref=-67.3684 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.64
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits outfile=/scratch/kocevski/972465/cmap_HighResolution_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.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.955 yref=-67.3684 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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/972465/Model_4FGL_J0739.8-6722_weekly_bin722.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 FGES J1036.3-5833
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source Westerlund 2
Working on...
/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits.....................!
real 16143.91
user 16099.86
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits', '/scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits', expMap='/scratch/kocevski/972465/expmap_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits', expCube='/scratch/kocevski/972465/ltcube_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/972465/Model_4FGL_J0739.8-6722_weekly_bin722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.8-6722'

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  9.957e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/972465/ft1_filtered_4FGL_J0739.8-6722_weekly_bin722.fits
Spacecraft file(s): /scratch/kocevski/972465/ft2_4FGL_J0739.8-6722_weekly_bin722.fits
Exposure map: /scratch/kocevski/972465/expmap_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits
Exposure cube: /scratch/kocevski/972465/ltcube_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/972465/Model_4FGL_J0739.8-6722_weekly_bin722.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) = 26522.4694342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5311       1.0000         .10000E-03   10000.    
     2 'norm      '    8.0959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4294       1.0000         .10000E-03   10000.    
     6 'norm      '    .77767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66800E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .32630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2522       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24423E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48682       1.0000         .10000E-03   10000.    
    14 'norm      '    19.652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1618       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2033       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26521.62     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1621 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5318        3.0201        .21567E-06    .40891E-02
   2  norm          8.0944        4.3799       -.84426E-07    .22135E-03
   3  Prefactor     10.352        8.3346       -.36570E-06   -.41952E-04
   4  Prefactor     4.3306        6.3729       -.95876E-08    .11891E-03
   5  Prefactor     6.4205        6.3948       -.11156E-06    .41782E-03
   6  norm          .77702        1.2118       -.18400E-06   -.21989E-04
   7  Prefactor     .10080E-03    36.660        .53837E-05** at limit **
   8  norm          .32606        .78513        .10348E-06    .50167E-03
   9  Prefactor     .10000E-03    3.8158       -.20593E-06** at limit **
  10  norm          2.2531        2.3110        .42779E-06    .12466E-02
  11  Prefactor     .10000E-03    54.735        .57993E-07** at limit **
  12  Prefactor     .10000E-03    2.3483       -.36999E-07** at limit **
  13  Prefactor     .39750        25.745       -.46585E-05    .19117E-03
  14  norm          19.680        9.2254        .42007E-06    .46892E-03
  15  Prefactor     13.806        9.3745        .97970E-07    .22637E-03
  16  Prefactor     2.1432        8.6263       -.97179E-06    .71826E-04
  17  Normalizat    1.2035        .16342        .37297E-05    .98584E-03
  18  Prefactor     .97034        .52135E-01   -.77773E-06    .23042E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53181
  norm       = 8.09436
  Prefactor  = 10.3525
  Prefactor  = 4.33059
  Prefactor  = 6.42052
  norm       = 0.77702
  Prefactor  = 0.000100796
  norm       = 0.326059
  Prefactor  = 0.0001
  norm       = 2.25309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.397498
  norm       = 19.6798
  Prefactor  = 13.8057
  Prefactor  = 2.14323
  Normalizat = 1.20351
  Prefactor  = 0.970341
 **********
 **   18 **HESSE 
 **********

 FCN=   26521.62     FROM HESSE     STATUS=OK           270 CALLS     1891 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5318        3.5222        .10756E-02   -1.5332    
   2  norm          8.0944        4.3802        .14091E-03   -1.5139    
   3  Prefactor     10.352        8.3267        .12443E-03   -1.5064    
   4  Prefactor     4.3306        6.3613        .19342E-03   -1.5292    
   5  Prefactor     6.4205        6.4228        .15829E-03   -1.5201    
   6  norm          .77702        1.1966        .21595E-03   -1.5532    
   7  Prefactor     .10080E-03    6.6337        .12439       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .32606        .86950        .21443E-02   -1.5594    
   9  Prefactor     .10000E-03    3.9296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2531        2.3078        .24132E-03   -1.5408    
  11  Prefactor     .10000E-03    54.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .39750        11.486        .18051       -1.5582    
  14  norm          19.680        9.2424        .90348E-04   -1.4820    
  15  Prefactor     13.806        9.3813        .10777E-03   -1.4965    
  16  Prefactor     2.1432        8.6514        .28015E-03   -1.5415    
  17  Normalizat    1.2035        .16991        .40912E-03   -.86494    
  18  Prefactor     .97034        .55312E-01    .15297E-03   -.93725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84038e-09
Minuit parameter uncertainties:
  1  3.52239
  2  4.38036
  3  8.32764
  4  6.36231
  5  6.42347
  6  1.19666
  7  0.0045955
  8  0.869539
  9  3.96841e-05
  10  2.30793
  11  5.8204e-05
  12  7.54068e-06
  13  4.27389
  14  9.2431
  15  9.38232
  16  8.61403
  17  0.169991
  18  0.0553149
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  1.000e-04  5.820e-05  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.703e-01  5.531e-02  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.204e+00  1.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 114.955 -67.368
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/972465/likelihoodResults_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.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) = 26521.6221816
delta logL = -8.65529291332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26521.6220953
delta logL = -3.34770447807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2081       1.0000          .0000       10.000    
     3 'Normalizat'    1.2034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26521.62     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      249 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1069.8        .90712E-02** at limit **
   2  Index         2.2605        8.6472        .50000       -.99559E-05
   3  Normalizat    1.2035        .17346E-01    .92365E-01    .96241E-04
   4  Prefactor     .97034        .59267E-02    .34620E-01    .11288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26048
  Normalizat = 1.20351
  Prefactor  = 0.970341
 **********
 **   18 **HESSE 
 **********

 FCN=   26521.62     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6363.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2605        6.0679        .50000       -.57986    
   3  Normalizat    1.2035        .29726E-01    .40912E-03   -.86494    
   4  Prefactor     .97034        .10181E-01    .15297E-03   -.93725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01723e-08
Minuit parameter uncertainties:
  1  0.00288045
  2  31.3613
  3  0.0297264
  4  0.0101811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/972465': 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) = 26521.622095
delta logL = -2.89946910925e-09

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  1.000e-04  2.880e-03  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.260e+00  3.136e+01  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.703e-01  1.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.204e+00  2.973e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 114.955 -67.368

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/972465/cmap_HighResolution_675648001_676252801_4FGL_J0739.8-6722_weekly_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2022-06-07 05:38:45.007118', job_id='972465', GAL2='0.97', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1654605525.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.90e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='722' AND source_name='4FGL J0739.8-6722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  7 05:38:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 972467: <4FGL_J0739.8-6722_weekly_bin722> in cluster <slac> Done

Job <4FGL_J0739.8-6722_weekly_bin722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun  7 00:05:30 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun  7 00:38:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun  7 00:38:57 2022
Terminated at Tue Jun  7 05:29:02 2022
Results reported at Tue Jun  7 05:29:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_weekly_bin722 114.955 -67.3684 675648001 676252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.8-6722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   17236.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             595.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   17405 sec.
    Turnaround time :                            19412 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 972465: <4FGL_J0739.8-6722_weekly_bin722> in cluster <slac> Done

Job <4FGL_J0739.8-6722_weekly_bin722> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jun  7 00:05:30 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun  7 00:38:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun  7 00:38:57 2022
Terminated at Tue Jun  7 05:38:45 2022
Results reported at Tue Jun  7 05:38:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_weekly_bin722 114.955 -67.3684 675648001 676252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.8-6722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   17767.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             594.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   17988 sec.
    Turnaround time :                            19995 sec.

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

