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


Performing analysis on: 4FGL_J0231.8+1322_weekly_bin665
RA = 37.9616, Dec = 13.3692
tmin = 641174401, tmax = 641779201
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='575971', job_status='RUN', time_executed='2021-07-04 20:09:09.030745', time_epoch_executed='1625454549.03' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575971

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575971/ft1_4FGL_J0231.8+1322_weekly_bin665.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575971/ft1_4FGL_J0231.8+1322_weekly_bin665.fits outfile=/scratch/kocevski/575971/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin665.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=641174401.0 tmax=641779201.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.67
user 5.58
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.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/575971/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.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 1.25
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/575971/ltcube_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.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/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits
.....................!
real 28.42
user 27.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/575971/ltcube_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits outfile=/scratch/kocevski/575971/expmap_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.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/575971/ltcube_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits
.....................!
real 196.93
user 185.91
sys 5.32

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

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits outfile=/scratch/kocevski/575971/cmap_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.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=37.9616 yref=13.3692 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 1.05
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits outfile=/scratch/kocevski/575971/cmap_HighResolution_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.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=37.9616 yref=13.3692 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.87
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575971/Model_4FGL_J0231.8+1322_weekly_bin665.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/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits....................!
real 40.21
user 31.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits', '/scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits', expMap='/scratch/kocevski/575971/expmap_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits', expCube='/scratch/kocevski/575971/ltcube_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575971/Model_4FGL_J0231.8+1322_weekly_bin665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/575971/ft1_filtered_4FGL_J0231.8+1322_weekly_bin665.fits
Spacecraft file(s): /scratch/kocevski/575971/ft2_4FGL_J0231.8+1322_weekly_bin665.fits
Exposure map: /scratch/kocevski/575971/expmap_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits
Exposure cube: /scratch/kocevski/575971/ltcube_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575971/Model_4FGL_J0231.8+1322_weekly_bin665.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) = 1525.16214265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10541E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.293       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11908E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.735       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10648E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10530E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    209.38       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17397E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    114.59       1.0000         .10000E-03   10000.    
    26 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.2030       1.0000         .10000E-03   10000.    
    28 'norm      '    .12039E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12970E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .12114       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1521.080     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     5015 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    76.195        .25680E-07** at limit **
   2  Prefactor     60.249        69.112        .12398E-05    .56395E-04
   3  Prefactor     .10000E-03    71.437       -.41696E-08** at limit **
   4  norm          .10000E-03    50.927       -.19362E-06** at limit **
   5  Prefactor    10000.0        2220.9        .61530E-06** at limit **
   6  Prefactor     .10000E-03    7.7351        .34310E-07** at limit **
   7  Prefactor     75.759        76.514        .84453E-06    .38991E-04
   8  Prefactor    10000.0        8670.7        .73982E-05** at limit **
   9  Prefactor     .10000E-03    97.944       -.92155E-07** at limit **
  10  Prefactor     .10000E-03    145.87       -.18688E-06** at limit **
  11  Prefactor     .10000E-03    7671.7       -.13915E-05** at limit **
  12  Prefactor     .10000E-03    100.09       -.16700E-06** at limit **
  13  Prefactor     .10000E-03    20.175       -.20581E-08** at limit **
  14  Prefactor     .10000E-03    15.339       -.64971E-08** at limit **
  15  Prefactor     .10000E-03    78.298        .46591E-07** at limit **
  16  norm          .10000E-03    7.8880       -.44996E-07** at limit **
  17  Prefactor     .10000E-03    213.13       -.62263E-07** at limit **
  18  Prefactor     .10000E-03    36.076        .33839E-06** at limit **
  19  norm          .10001E-03    71.798       -.33707E-06** at limit **
  20  Prefactor     .10000E-03    282.77        .33280E-06** at limit **
  21  Prefactor     209.21        266.69        .46717E-07   -.68352E-05
  22  Prefactor     .10000E-03    28.270       -.31041E-07** at limit **
  23  Prefactor     .10001E-03    716.80       -.18427E-05** at limit **
  24  Prefactor     .10000E-03    14.149        .28033E-06** at limit **
  25  norm          114.61        68.263       -.53875E-06    .15463E-03
  26  norm          .10000E-03    21.772        .13322E-07** at limit **
  27  norm          3.1988        9.7095       -.31200E-07   -.11358E-03
  28  norm          .10000E-03    17.185       -.43632E-07** at limit **
  29  Prefactor     .10000E-03    401.31        .22585E-06** at limit **
  30  Prefactor     .10000E-03    3.2928       -.26929E-08** at limit **
  31  Normalizat    .12078        .52407       -.32624E-04    .93400E-05
  32  Prefactor     1.0932        .22413        .49790E-05    .66479E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 60.2485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 75.7586
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 209.212
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 114.607
  norm       = 0.0001
  norm       = 3.19882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.120776
  Prefactor  = 1.09322
 **********
 **   18 **HESSE 
 **********

 FCN=   1521.080     FROM HESSE     STATUS=OK           631 CALLS     5646 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    76.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.249        69.270        .51672E-04   -1.4154    
   3  Prefactor     .10000E-03    71.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        2220.9        .21106E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7586        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.759        76.597        .46139E-04   -1.3965    
   8  Prefactor    10000.0        8672.8        .18230E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    97.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    145.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7671.6        .20721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    100.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.176        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.342        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.9118        .10699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    213.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    71.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    283.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     209.21        267.46        .13969E-03   -1.2805    
  22  Prefactor     .10000E-03    28.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    723.01        .18219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.524        .28637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          114.61        68.395        .37582E-04   -1.3563    
  26  norm          .10000E-03    21.919        .17767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1988        9.7818        .19097E-03   -1.5350    
  28  norm          .10000E-03    17.294        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    401.34        .20582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.2950        .69121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .12078        .58233        .97638E-02   -1.3598    
  32  Prefactor     1.0932        .23262        .15051E-03   -.89684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71543e-10
Minuit parameter uncertainties:
  1  0.000503827
  2  69.3631
  3  0.000274436
  4  0.000290529
  5  0.00280073
  6  3.52342e-05
  7  76.6971
  8  0.137984
  9  3.54787e-05
  10  0.000193089
  11  0.010937
  12  0.000160265
  13  1.54435e-05
  14  2.05172e-05
  15  0.000115296
  16  4.57997e-05
  17  0.00188128
  18  6.22339e-05
  19  0.00146666
  20  0.00152704
  21  269.046
  22  1.90512e-05
  23  0.00462052
  24  0.00010131
  25  68.442
  26  7.71285e-05
  27  9.78668
  28  1.47617e-05
  29  0.000144845
  30  3.95786e-06
  31  0.516055
  32  0.232836
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.603e-04  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.093e+00  2.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.208e-01  5.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 2.98e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575971/likelihoodResults_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1521.07973017
delta logL = -4.74194164326e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1521.07968318
delta logL = -4.21376398663e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6389       1.0000          .0000       10.000    
     3 'Normalizat'    .12078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   1521.080     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      292 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11048E-03    146.45        .18142E-01** at limit **
   2  Index         3.3457        6.2983        .50000        .28093E-05
   3  Normalizat    .12078        .18841E-01    .97638E-02    .54889E-05
   4  Prefactor     1.0932        .80625E-02    .15051E-03    .89884E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110484
  Index      = 3.34573
  Normalizat = 0.120775
  Prefactor  = 1.09322
 **********
 **   18 **HESSE 
 **********

 FCN=   1521.080     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11048E-03    795.31        .31649E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3457        8.0098        .50000       -.33721    
   3  Normalizat    .12078        .44832E-01    .39055E-03   -1.3598    
   4  Prefactor     1.0932        .19187E-01    .60205E-05   -.89684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12194e-08
Minuit parameter uncertainties:
  1  0.185139
  2  2394.78
  3  0.0448459
  4  0.019187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575971': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1521.07968306
delta logL = -3.01870386465e-07

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.105e-04  1.851e-01  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  3.346e+00  2.395e+03  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.093e+00  1.919e-02  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.208e-01  4.485e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.962 13.369

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/575971/cmap_HighResolution_641174401_641779201_4FGL_J0231.8+1322_weekly_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-01', job_status='DONE', photon_flux_upper_limit='2.98e-06', time_completed='2021-07-04 20:17:50.776023', job_id='575971', GAL2='1.09', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1625455070.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='665' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 20:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 575971: <4FGL_J0231.8+1322_weekly_bin665> in cluster <slac> Done

Job <4FGL_J0231.8+1322_weekly_bin665> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul  4 20:06:33 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 20:06:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 20:06:37 2021
Terminated at Sun Jul  4 20:17:55 2021
Results reported at Sun Jul  4 20:17:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin665 37.9616 13.3692 641174401 641779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   486.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            682 sec.

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

