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


Performing analysis on: 4FGL_J0713.0+5738_weekly_bin715
RA = 108.26, Dec = 57.6345
tmin = 671414401, tmax = 672019201
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='934167', job_status='RUN', time_executed='2022-04-19 02:25:46.150640', time_epoch_executed='1650360346.15' WHERE source_name='4FGL J0713.0+5738' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934167

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934167/ft1_4FGL_J0713.0+5738_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934167/ft1_4FGL_J0713.0+5738_weekly_bin715.fits outfile=/scratch/kocevski/934167/ft1_filteredMKT_4FGL_J0713.0+5738_weekly_bin715.fits ra=108.26 dec=57.6345 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.59
user 7.25
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.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/934167/ft1_filteredMKT_4FGL_J0713.0+5738_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.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.54
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 2032

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934167/ltcube_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.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/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits
.....................!
real 28.51
user 28.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934167/ltcube_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits outfile=/scratch/kocevski/934167/expmap_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.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/934167/ltcube_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits
.....................!
real 191.64
user 185.57
sys 5.72

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

Setting source of interest to:
4FGL J0713.0+5738 @ 108.26 57.6345

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits outfile=/scratch/kocevski/934167/cmap_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.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=108.26 yref=57.6345 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits outfile=/scratch/kocevski/934167/cmap_HighResolution_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.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=108.26 yref=57.6345 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934167/Model_4FGL_J0713.0+5738_weekly_bin715.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/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits.....................!
real 214.36
user 212.65
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits', '/scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits', expMap='/scratch/kocevski/934167/expmap_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits', expCube='/scratch/kocevski/934167/ltcube_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934167/Model_4FGL_J0713.0+5738_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0713.0+5738'

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  5.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934167/ft1_filtered_4FGL_J0713.0+5738_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934167/ft2_4FGL_J0713.0+5738_weekly_bin715.fits
Exposure map: /scratch/kocevski/934167/expmap_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934167/ltcube_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934167/Model_4FGL_J0713.0+5738_weekly_bin715.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) = 21381.2945013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3064       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.778       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .25430       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.088       1.0000         .10000E-03   10000.    
    19 'norm      '    .59627       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6632       1.0000         .10000E-03   10000.    
    21 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1837       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6135       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2204       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88211       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21381.27     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3335 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.625       -.10469E-05** at limit **
   2  Prefactor     .10000E-03    5.9273       -.11934E-07** at limit **
   3  Prefactor     17.070        6.9172       -.34013E-08   -.30047E-04
   4  Prefactor     .10000E-03    9.0278        .34210E-07** at limit **
   5  Prefactor     .10000E-03    7.4440        .39381E-07** at limit **
   6  norm          1.3064        1.6646        .10720E-06   -.64494E-03
   7  norm          .10000E-03    .71913       -.10938E-08** at limit **
   8  Prefactor     3.9458        4.0741       -.37618E-06   -.43413E-04
   9  Prefactor     .10000E-03    .93168       -.46584E-07** at limit **
  10  Prefactor     4.9679        5.6640       -.33335E-07   -.50618E-04
  11  Prefactor     3.7113        6.3785        .40141E-07   -.10008E-03
  12  Prefactor     11.778        8.6909       -.70140E-07   -.21537E-04
  13  Prefactor     10.075        13.749       -.22528E-06   -.40223E-04
  14  Prefactor     .10000E-03    44.425        .28090E-05** at limit **
  15  norm          .25421        .36698        .75712E-07   -.13649E-02
  16  Prefactor     .10000E-03    2.8067        .76334E-07** at limit **
  17  norm          1.4477        1.0033       -.89427E-08    .25085E-03
  18  Prefactor     33.059        18.808       -.32952E-05   -.49702E-03
  19  norm          .59673        1.3483        .17259E-06   -.82133E-03
  20  Prefactor     3.6568        14.162       -.33450E-06   -.45769E-04
  21  norm          .10000E-03    1.6369       -.18874E-07** at limit **
  22  norm          1.1836        .95759       -.82534E-08   -.59397E-03
  23  Prefactor     .88640        .88107        .26182E-06    .17292E-03
  24  Prefactor     4.6133        4.2464       -.25127E-06   -.10894E-03
  25  Prefactor     7.2204        2.8317        .44675E-06   -.34162E-02
  26  Normalizat    .88199        .11807        .24618E-08   -.15367E-03
  27  Prefactor     1.0762        .62994E-01   -.24217E-07   -.89933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30643
  norm       = 0.0001
  Prefactor  = 3.94584
  Prefactor  = 0.0001
  Prefactor  = 4.96792
  Prefactor  = 3.71129
  Prefactor  = 11.7785
  Prefactor  = 10.0753
  Prefactor  = 0.000100001
  norm       = 0.254206
  Prefactor  = 0.0001
  norm       = 1.44768
  Prefactor  = 33.0593
  norm       = 0.596731
  Prefactor  = 3.65685
  norm       = 0.0001
  norm       = 1.18365
  Prefactor  = 0.886399
  Prefactor  = 4.61334
  Prefactor  = 7.2204
  Normalizat = 0.881992
  Prefactor  = 1.07621
 **********
 **   18 **HESSE 
 **********

 FCN=   21381.27     FROM HESSE     STATUS=OK           500 CALLS     3835 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.070        6.9225        .96943E-04   -1.4881    
   4  Prefactor     .10000E-03    9.0822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3064        1.6579        .20855E-03   -1.5479    
   7  norm          .10000E-03    .72574        .12104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9458        4.0763        .20308E-03   -1.5311    
   9  Prefactor     .10000E-03    .94415        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9679        5.6583        .18044E-03   -1.5262    
  11  Prefactor     3.7113        6.3769        .20964E-03   -1.5323    
  12  Prefactor     11.778        8.6763        .11673E-03   -1.5021    
  13  Prefactor     10.075        13.607        .12626E-03   -1.5073    
  14  Prefactor     .10000E-03    44.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .25421        .32750        .10237E-02   -1.5607    
  16  Prefactor     .10000E-03    14.160        .46276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4477        1.0098        .11798E-03   -1.5467    
  18  Prefactor     33.059        19.370        .69661E-04   -1.4557    
  19  norm          .59673        1.7521        .22520E-02   -1.5553    
  20  Prefactor     3.6568        13.987        .21105E-03   -1.5325    
  21  norm          .10000E-03    1.6974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1836        .93840        .12450E-03   -1.5490    
  23  Prefactor     .88640        .85342        .12424E-03   -1.5520    
  24  Prefactor     4.6133        4.2500        .18739E-03   -1.5278    
  25  Prefactor     7.2204        3.8277        .74638E-03   -1.5170    
  26  Normalizat    .88199        .13293        .33446E-03   -.97096    
  27  Prefactor     1.0762        .71438E-01    .17295E-03   -.90231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71354e-08
Minuit parameter uncertainties:
  1  8.46193e-05
  2  2.25156e-06
  3  6.92282
  4  1.04973e-06
  5  5.13438e-07
  6  1.65793
  7  1.96064e-07
  8  4.07662
  9  1.00429e-06
  10  5.65886
  11  6.3781
  12  8.67722
  13  13.6111
  14  0.000318206
  15  0.327506
  16  0.000121113
  17  1.00978
  18  19.3741
  19  1.7522
  20  13.9997
  21  9.23635e-07
  22  0.938411
  23  0.853435
  24  4.25026
  25  3.82783
  26  0.132977
  27  0.0714448
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  3.711e+00  6.378e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  1.076e+00  7.144e-02  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  8.820e-01  1.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 3.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934167/likelihoodResults_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.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) = 21381.1578911
delta logL = 0.107659141162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21381.1556089
delta logL = 0.109941312527

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21381.16     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2436        131.94        .43884E-02    .21205E-03
   2  Index         1.9659        2.1534        .50000        .59188E-07
   3  Normalizat    .88457        .22680E-01    .75468E-01    .74030E-04
   4  Prefactor     1.0752        .12159E-01    .38618E-01   -.56774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24359
  Index      = 1.96586
  Normalizat = 0.884567
  Prefactor  = 1.07515
 **********
 **   18 **HESSE 
 **********

 FCN=   21381.16     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2436        7.7880        .17554E-03   -1.5250    
   2  Index         1.9659        .82773        .11986E-01   -.65206    
   3  Normalizat    .88457        .12353        .33399E-03   -.97005    
   4  Prefactor     1.0752        .70268E-01    .17301E-03   -.90265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69917e-12
Minuit parameter uncertainties:
  1  7.78946
  2  0.83383
  3  0.123567
  4  0.0702743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934167': 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) = 21381.1556089
delta logL = 0.109941318231

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  5.244e+00  7.789e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.966e+00  8.338e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  1.075e+00  7.027e-02  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  8.846e-01  1.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 108.260 57.635

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/934167/cmap_HighResolution_671414401_672019201_4FGL_J0713.0+5738_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.40e-08', time_completed='2022-04-19 03:04:01.960109', job_id='934167', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1650362641.96', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.10e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='715' AND source_name='4FGL J0713.0+5738' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:04:01 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 930445: <4FGL_J0713.0+5738_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0713.0+5738_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:08 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:11:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:11:52 2022
Terminated at Tue Apr 19 02:52:18 2022
Results reported at Tue Apr 19 02:52:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_weekly_bin715 108.26 57.6345 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0713.0+5738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2282.00 sec.
    Max Memory :                                 637 MB
    Average Memory :                             330.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2426 sec.
    Turnaround time :                            9970 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 934167: <4FGL_J0713.0+5738_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0713.0+5738_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:10 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:24:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:24:32 2022
Terminated at Tue Apr 19 03:04:02 2022
Results reported at Tue Apr 19 03:04:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_weekly_bin715 108.26 57.6345 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0713.0+5738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2295.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             344.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2370 sec.
    Turnaround time :                            10012 sec.

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

