aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 4 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.0+3704_weekly_bin525
RA = 196.008, Dec = 37.071
tmin = 556502401, tmax = 557107201
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='611293', job_status='RUN', time_executed='2021-07-19 22:16:22.627249', time_epoch_executed='1626758182.63' WHERE source_name='4FGL J1304.0+3704' and cadence='weekly' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611293

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611293/ft1_4FGL_J1304.0+3704_weekly_bin525.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611293/ft1_4FGL_J1304.0+3704_weekly_bin525.fits outfile=/scratch/kocevski/611293/ft1_filteredMKT_4FGL_J1304.0+3704_weekly_bin525.fits ra=196.008 dec=37.071 rad=12.0 tmin=556502401.0 tmax=557107201.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.93
user 7.60
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.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/611293/ft1_filteredMKT_4FGL_J1304.0+3704_weekly_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.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.55
user 0.40
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/611293/ltcube_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.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/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits
.....................!
real 30.19
user 29.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/611293/ltcube_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits outfile=/scratch/kocevski/611293/expmap_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.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/611293/ltcube_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits
.....................!
real 191.87
user 185.64
sys 5.12

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

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits outfile=/scratch/kocevski/611293/cmap_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.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=196.008 yref=37.071 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits outfile=/scratch/kocevski/611293/cmap_HighResolution_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.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=196.008 yref=37.071 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.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/611293/Model_4FGL_J1304.0+3704_weekly_bin525.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/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits.....................!
real 39.21
user 37.77
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits', '/scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits', expMap='/scratch/kocevski/611293/expmap_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits', expCube='/scratch/kocevski/611293/ltcube_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611293/Model_4FGL_J1304.0+3704_weekly_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/611293/ft1_filtered_4FGL_J1304.0+3704_weekly_bin525.fits
Spacecraft file(s): /scratch/kocevski/611293/ft2_4FGL_J1304.0+3704_weekly_bin525.fits
Exposure map: /scratch/kocevski/611293/expmap_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits
Exposure cube: /scratch/kocevski/611293/ltcube_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611293/Model_4FGL_J1304.0+3704_weekly_bin525.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) = 4095.11626956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3154       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8608       1.0000         .10000E-03   10000.    
    13 'norm      '    84.222       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .62191E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.921       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.427       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    69.778       1.0000         .10000E-03   10000.    
    26 'norm      '    3.9870       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5531       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .38007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4095.057     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3926 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8599        8.8337        .72742E-07    .94856E-04
   2  Prefactor     .10000E-03    9.7732        .17167E-06** at limit **
   3  Prefactor     .10000E-03    3.5642        .10786E-06** at limit **
   4  Prefactor     .10000E-03    9.7619        .24413E-06** at limit **
   5  Prefactor     66.852        69.145       -.79384E-06   -.72786E-05
   6  Prefactor     .10000E-03    14.560        .68432E-06** at limit **
   7  Prefactor     .10000E-03    40.755        .15621E-06** at limit **
   8  Prefactor     1.3181        16.177        .79549E-05    .10346E-03
   9  norm          .10000E-03    4.0251        .34383E-07** at limit **
  10  Prefactor     16.639        50.870       -.87973E-06    .18586E-04
  11  Prefactor     14.751        33.594       -.46341E-06    .57837E-04
  12  Prefactor     9.8589        33.017       -.39237E-05    .11546E-03
  13  norm          84.225        17.102        .32375E-07    .42248E-03
  14  norm          .10000E-03    5.6654       -.39493E-06** at limit **
  15  norm          .10000E-03    2.1671        .78187E-07** at limit **
  16  norm          .10000E-03    2.6250        .61126E-07** at limit **
  17  norm          .10009E-03    4.2856        .14011E-05** at limit **
  18  Prefactor     .10000E-03    1.2599       -.51132E-07** at limit **
  19  Prefactor     .10000E-03    4.4594        .14164E-06** at limit **
  20  Prefactor     23.937        39.886        .21354E-05    .62124E-04
  21  Prefactor     .10000E-03    20.499       -.16991E-06** at limit **
  22  Prefactor     11.581        17.579       -.94537E-07    .12533E-03
  23  Prefactor     40.435        38.650        .36205E-07    .43098E-04
  24  Prefactor     .10000E-03    11.127       -.29126E-06** at limit **
  25  Prefactor     69.831        91.005       -.43527E-05   -.43962E-04
  26  norm          3.9874        1.8320        .18646E-07    .81231E-03
  27  Prefactor     .10000E-03    .96883        .18256E-07** at limit **
  28  norm          .10000E-03    6.1566        .15681E-06** at limit **
  29  Normalizat    1.5530        .28731        .78437E-05    .58798E-04
  30  Prefactor     .38012        .31908       -.15869E-04    .45381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.8599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.8524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3181
  norm       = 0.0001
  Prefactor  = 16.6395
  Prefactor  = 14.7506
  Prefactor  = 9.85888
  norm       = 84.2251
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9372
  Prefactor  = 0.0001
  Prefactor  = 11.5806
  Prefactor  = 40.4354
  Prefactor  = 0.0001
  Prefactor  = 69.8306
  norm       = 3.9874
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.55298
  Prefactor  = 0.380122
 **********
 **   18 **HESSE 
 **********

 FCN=   4095.057     FROM HESSE     STATUS=OK           574 CALLS     4500 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8599        8.8165        .12762E-03   -1.5080    
   2  Prefactor     .10000E-03    9.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5738        .11777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.852        69.107        .49098E-04   -1.4071    
   6  Prefactor     .10000E-03    14.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3181        16.704        .19203E-02   -1.5478    
   9  norm          .10000E-03    4.0456        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.639        50.835        .98210E-04   -1.4892    
  11  Prefactor     14.751        33.407        .10429E-03   -1.4940    
  12  Prefactor     9.8589        33.358        .12761E-03   -1.5080    
  13  norm          84.225        17.059        .43772E-04   -1.3870    
  14  norm          .10000E-03    5.6751        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1929        .91900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6298        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10009E-03    39.774        .23033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2648        .70135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4628        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.937        39.673        .81901E-04   -1.4729    
  21  Prefactor     .10000E-03    20.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.581        17.547        .11775E-03   -1.5027    
  23  Prefactor     40.435        38.623        .63043E-04   -1.4435    
  24  Prefactor     .10000E-03    11.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     69.831        90.751        .48054E-04   -1.4035    
  26  norm          3.9874        1.8322        .55866E-04   -1.5309    
  27  Prefactor     .10000E-03    .97027        .61511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.1711        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.5530        .28742        .21282E-03   -.76300    
  30  Prefactor     .38012        .31777        .47823E-03   -1.1783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47493e-09
Minuit parameter uncertainties:
  1  8.81763
  2  6.75538e-08
  3  3.70011e-06
  4  1.86083e-05
  5  69.1906
  6  0.000104625
  7  9.42277e-06
  8  9.38758
  9  4.46257e-07
  10  50.9682
  11  33.4491
  12  33.421
  13  17.0602
  14  4.31542e-05
  15  4.61609e-06
  16  2.00023e-06
  17  0.0037116
  18  4.9156e-06
  19  8.3318e-06
  20  39.717
  21  3.67044e-05
  22  17.5549
  23  38.6473
  24  5.17712e-05
  25  90.9318
  26  1.83218
  27  9.07794e-07
  28  2.60906e-05
  29  0.287726
  30  0.319252
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  9.859e+00  3.342e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  3.801e-01  3.193e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.553e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611293/likelihoodResults_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.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) = 4094.91733198
delta logL = 0.139786121089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4094.91048261
delta logL = 0.146635491124

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4094.910     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      320 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3701        488.00        .19249E-03    .41753E-03
   2  Index         3.4684        5.1862        .74822E-02    .58589E-04
   3  Normalizat    1.5131        .28026        .21483E-03    .38654E-03
   4  Prefactor     .41172        .31382        .46044E-03   -.27901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37011
  Index      = 3.46845
  Normalizat = 1.51314
  Prefactor  = 0.411722
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.910     FROM HESSE     STATUS=OK            25 CALLS      345 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3701        20.471        .76996E-05   -1.5290    
   2  Index         3.4684        2.2659        .29929E-03   -.31132    
   3  Normalizat    1.5131        .28049        .42966E-04   -.77410    
   4  Prefactor     .41172        .32170        .18418E-04   -1.1621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4184e-09
Minuit parameter uncertainties:
  1  18.9272
  2  2.36159
  3  0.280779
  4  0.323127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611293': 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) = 4094.91047602
delta logL = 0.146642077577

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.370e+00  1.893e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.468e+00  2.362e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  4.117e-01  3.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.513e+00  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/611293/cmap_HighResolution_556502401_557107201_4FGL_J1304.0+3704_weekly_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-07-19 22:29:06.005642', job_id='611293', GAL2='0.41', fit_tolerance='1e-08', EG2='1.51', EG='1.55', time_epoch_completed='1626758946.01', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.47e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='525' AND source_name='4FGL J1304.0+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 22:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 611293: <4FGL_J1304.0+3704_weekly_bin525> in cluster <slac> Done

Job <4FGL_J1304.0+3704_weekly_bin525> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 19 22:15:25 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 22:16:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 22:16:09 2021
Terminated at Mon Jul 19 22:29:06 2021
Results reported at Mon Jul 19 22:29:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_weekly_bin525 196.008 37.071 556502401 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            821 sec.

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

