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


Performing analysis on: 4FGL_J1319.8+7759_weekly_bin730
RA = 199.966, Dec = 77.9882
tmin = 680486401, tmax = 681091201
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='658999', job_status='RUN', time_executed='2022-08-02 02:01:22.285912', time_epoch_executed='1659430882.29' WHERE source_name='4FGL J1319.8+7759' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658999

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658999/ft1_4FGL_J1319.8+7759_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658999/ft1_4FGL_J1319.8+7759_weekly_bin730.fits outfile=/scratch/kocevski/658999/ft1_filteredMKT_4FGL_J1319.8+7759_weekly_bin730.fits ra=199.966 dec=77.9882 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.30
user 5.99
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.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/658999/ft1_filteredMKT_4FGL_J1319.8+7759_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.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.57
user 0.40
sys 0.16

Number of photons that the gtmktime cut: 3448

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/658999/ltcube_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.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/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits
.....................!
real 33.33
user 32.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/658999/ltcube_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits outfile=/scratch/kocevski/658999/expmap_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.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/658999/ltcube_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits
.....................!
real 191.46
user 186.47
sys 4.51

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

Setting source of interest to:
4FGL J1319.8+7759 @ 199.966 77.9882

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits outfile=/scratch/kocevski/658999/cmap_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.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=199.966 yref=77.9882 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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits outfile=/scratch/kocevski/658999/cmap_HighResolution_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.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=199.966 yref=77.9882 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.45
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658999/Model_4FGL_J1319.8+7759_weekly_bin730.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/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits.....................!
real 375.17
user 372.98
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits', '/scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits', expMap='/scratch/kocevski/658999/expmap_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits', expCube='/scratch/kocevski/658999/ltcube_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658999/Model_4FGL_J1319.8+7759_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.8+7759'

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  8.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/658999/ft1_filtered_4FGL_J1319.8+7759_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/658999/ft2_4FGL_J1319.8+7759_weekly_bin730.fits
Exposure map: /scratch/kocevski/658999/expmap_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits
Exposure cube: /scratch/kocevski/658999/ltcube_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658999/Model_4FGL_J1319.8+7759_weekly_bin730.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) = 36547.7525643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3617       1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.93       1.0000         .10000E-03   10000.    
     6 'norm      '    .99582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0365       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4515       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.874       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5843       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2163       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5127       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .77995E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4240       1.0000         .10000E-03   10000.    
    27 'norm      '    9.0078       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25284       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2477       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83886       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   36547.71     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3652 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2653        3.1858         .0000        .47326E-01
   2  Prefactor     .10001E-03    1.9173         .0000    ** at limit **
   3  Prefactor     1.1239        3.4261         .0000        .86322E-01
   4  Prefactor     8.3479        10.294         .0000        .35679E-02
   5  Prefactor     118.93        33.846         .0000        .34309E-02
   6  norm          .99534        2.5498         .0000        .64266E-02
   7  Prefactor     1.0365        2.6622         .0000        .64796E-02
   8  norm          2.9855        .53393         .0000        .81308E-03
   9  Prefactor     3.4681        6.2966         .0000        .25537E-01
  10  Prefactor     4.4514        3.8606         .0000        .24442E-01
  11  Prefactor     .52455        .88844         .0000        .51248E-02
  12  Prefactor     12.214        5.0260         .0000        .71643E-02
  13  Prefactor     23.875        20.378         .0000       -.57379E-04
  14  norm          1.5845        1.5009         .0000        .36715E-02
  15  norm          1.2164        1.1705         .0000        .45064E-02
  16  Prefactor     .10002E-03    6.7896         .0000    ** at limit **
  17  Prefactor     15.358        17.154         .0000        .49343E-02
  18  Prefactor     7.7404        4.9283         .0000        .49499E-03
  19  Prefactor     .10000E-03    4.8281         .0000    ** at limit **
  20  Prefactor     .10000E-03    6.3066         .0000    ** at limit **
  21  Prefactor     .10000E-03    .88549         .0000    ** at limit **
  22  Prefactor     .10000E-03    3.4301         .0000    ** at limit **
  23  Prefactor     6.5136        10.393         .0000       -.39246E-03
  24  Prefactor     .10004E-03    3.1112         .0000    ** at limit **
  25  Prefactor     10.786        15.403         .0000        .23650E-02
  26  Prefactor     4.4293        12.994         .0000       -.33381E-02
  27  norm          9.0085        5.1692         .0000       -.13670E-03
  28  Prefactor     .25175        .57311         .0000        .23424E-02
  29  Prefactor     2.2498        29.326         .0000       -.10362E-02
  30  Normalizat    .83881        .71002E-01     .0000        .25051E-03
  31  Prefactor     1.0973        .56211E-01     .0000        .30939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26527
  Prefactor  = 0.000100012
  Prefactor  = 1.12386
  Prefactor  = 8.34792
  Prefactor  = 118.928
  norm       = 0.995335
  Prefactor  = 1.03654
  norm       = 2.98554
  Prefactor  = 3.46814
  Prefactor  = 4.45138
  Prefactor  = 0.52455
  Prefactor  = 12.2136
  Prefactor  = 23.8746
  norm       = 1.58448
  norm       = 1.21636
  Prefactor  = 0.000100019
  Prefactor  = 15.3579
  Prefactor  = 7.7404
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51362
  Prefactor  = 0.000100042
  Prefactor  = 10.786
  Prefactor  = 4.42925
  norm       = 9.00846
  Prefactor  = 0.251754
  Prefactor  = 2.24979
  Normalizat = 0.838811
  Prefactor  = 1.09735  **********
 **   18 **HESSE 
 **********

 FCN=   36547.71     FROM HESSE     STATUS=OK           636 CALLS     4288 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2653        3.1815        .13645E-02   -1.5407    
   2  Prefactor     .10001E-03    6.3755        .45591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1239        3.3705        .22111E-02   -1.5496    
   4  Prefactor     8.3479        9.7183        .13864E-03   -1.5130    
   5  Prefactor     118.93        31.600        .36899E-04   -1.3523    
   6  norm          .99534        2.1436        .30515E-03   -1.5508    
   7  Prefactor     1.0365        2.4501        .37455E-03   -1.5504    
   8  norm          2.9855        .52031        .47808E-04   -1.5362    
   9  Prefactor     3.4681        5.4237        .10860E-02   -1.5335    
  10  Prefactor     4.4514        3.8335        .95427E-03   -1.5286    
  11  Prefactor     .52455        1.1100        .22547E-02   -1.5563    
  12  Prefactor     12.214        4.9525        .57312E-03   -1.5009    
  13  Prefactor     23.875        20.378        .81980E-04   -1.4730    
  14  norm          1.5845        1.4843        .22023E-03   -1.5456    
  15  norm          1.2164        1.1387        .18845E-03   -1.5487    
  16  Prefactor     .10002E-03    6.7969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.358        17.149        .10219E-03   -1.4924    
  18  Prefactor     7.7404        4.9260        .14413E-03   -1.5151    
  19  Prefactor     .10000E-03    4.8416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .89952        .17560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5136        10.386        .15726E-03   -1.5197    
  24  Prefactor     .10004E-03    13.778        .65083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.786        15.399        .12199E-03   -1.5051    
  26  Prefactor     4.4293        12.976        .19146E-03   -1.5287    
  27  norm          9.0085        5.1710        .13354E-03   -1.5108    
  28  Prefactor     .25175        1.6059        .20858E-02   -1.5608    
  29  Prefactor     2.2498        29.520        .27409E-03   -1.5408    
  30  Normalizat    .83881        .78703E-01    .27977E-03   -.98645    
  31  Prefactor     1.0973        .63239E-01    .19975E-03   -.89551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55974e-07
Minuit parameter uncertainties:
  1  3.1817
  2  0.00055271
  3  3.37103
  4  9.72011
  5  31.6044
  6  2.14378
  7  2.45033
  8  0.520306
  9  5.42447
  10  3.83369
  11  1.11002
  12  4.95267
  13  20.3835
  14  1.48429
  15  1.13871
  16  0.000713095
  17  17.1548
  18  4.92624
  19  5.45302e-05
  20  0.00012488
  21  2.85857e-06
  22  4.18478e-06
  23  10.3893
  24  0.00152414
  25  15.4045
  26  12.9844
  27  5.17125
  28  1.27148
  29  16.3083
  30  0.0787137
  31  0.0632437DDone.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.536e+01  1.715e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.097e+00  6.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  8.388e-01  7.871e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 199.966 77.988
Photon Flux Upper Limit: 2.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658999/likelihoodResults_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.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) = 36547.0501597
delta logL = 0.658552696426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36547.0355325
delta logL = 0.673179927253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7718       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8489       1.0000          .0000       10.000    
     3 'Normalizat'    .82427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   36547.04     FROM MIGRAD    STATUS=FAILED       102 CALLS      451 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7733        147.35        .16718E-03    .63107E-03
   2  Index         2.8490        3.6931        .86635E-02    .33388E-03
   3  Normalizat    .82427        .78446E-01    .28199E-03   -.14198E-02
   4  Prefactor     1.1029        .59113E-01    .19929E-03   -.17681E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   36547.04     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      536 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7733        147.35        .18409E-03    .63107E-03
   2  Index         2.8490        3.6931        .56555E-03    .33388E-03
   3  Normalizat    .82427        .78446E-01    .48794E-04   -.14198E-02
   4  Prefactor     1.1029        .59113E-01    .67467E-04   -.17681E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   36547.04     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      565 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7734        10.837        .66872E-05    .74803E-03
   2  Index         2.8490        .79829        .34654E-03    .15485E-03
   3  Normalizat    .82427        .77276E-01    .11279E-04   -.13353E-02
   4  Prefactor     1.1029        .61585E-01    .39858E-04   -.16521E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77341
  Index      = 2.84899
  Normalizat = 0.824274
  Prefactor  = 1.10292
 **********
 **   18 **HESSE 
 **********

 FCN=   36547.04     FROM HESSE     STATUS=OK            23 CALLS      588 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7734        10.479        .13374E-05   -1.5227    
   2  Index         2.8490        .77262        .13862E-04   -.44472    
   3  Normalizat    .82427        .77247E-01    .22559E-05   -.99174    
   4  Prefactor     1.1029        .61569E-01    .79716E-05   -.89373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24665e-10
Minuit parameter uncertainties:
  1  10.4827
  2  0.77644
  3  0.0772574
  4  0.0615729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658999': 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) = 36547.0355323
delta logL = 0.673180086495

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  5.773e+00  1.048e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.849e+00  7.764e-01  0.000e+00  1.000e+01 (-1.000e+00)
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.103e+00  6.157e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  8.243e-01  7.726e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 199.966 77.988
Photon Index (Free Index): 2.85 +/- 0.78
Photon Flux (Free Index): 2.03e-08 +/- 1.59e-08
Energy Flux (Free Index): 4.40e-06 +/- 3.27e-06

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/658999/cmap_HighResolution_680486401_681091201_4FGL_J1319.8+7759_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-03', comment='SUCCESS', energy_flux2='4.40e-06', dlogl='6.73e-01', photon_flux2='2.03e-08', job_status='DONE', time_completed='2022-08-02 03:17:50.637047', photon_index_error2='0.78', photon_index2='2.85', ts='0.97', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.66e-08', energy_flux_error2='3.27e-06', EG='0.84', time_epoch_completed='1659435470.64', return_code='0', job_id='658999', GAL2='1.10', EG2='0.82', return_code2='0', photon_flux_error2='1.59e-08', ts2='2.35', photon_index='2.05' WHERE bin_id='730' AND source_name='4FGL J1319.8+7759' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:17:50 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 658976: <4FGL_J1319.8+7759_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1319.8+7759_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:22 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:00:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:00:14 2022
Terminated at Tue Aug  2 03:15:26 2022
Results reported at Tue Aug  2 03:15:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_weekly_bin730 199.966 77.9882 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.8+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4488.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             379.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4512 sec.
    Turnaround time :                            11344 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 658999: <4FGL_J1319.8+7759_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1319.8+7759_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:23 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:00:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:00:33 2022
Terminated at Tue Aug  2 03:17:51 2022
Results reported at Tue Aug  2 03:17:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_weekly_bin730 199.966 77.9882 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.8+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4584.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             371.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4638 sec.
    Turnaround time :                            11488 sec.

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

