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: DanUser defined signal 2
ocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1027.6+8251_daily_bin1699
RA = 156.923, Dec = 82.8611
tmin = 679708801, tmax = 679968001
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='995', job_status='RUN', time_executed='2022-07-20 00:37:00.156660', time_epoch_executed='1658302620.16' WHERE source_name='4FGL J1027.6+8251' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995/ft1_4FGL_J1027.6+8251_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995/ft1_4FGL_J1027.6+8251_daily_bin1699.fits outfile=/scratch/kocevski/995/ft1_filteredMKT_4FGL_J1027.6+8251_daily_bin1699.fits ra=156.923 dec=82.8611 rad=12.0 tmin=679708801.0 tmax=679968001.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 3.81
user 3.57
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.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/995/ft1_filteredMKT_4FGL_J1027.6+8251_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.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.52
user 0.31
sys 0.19

Number of photons that the gtmktime cut: 990

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/995/ltcube_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.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/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits
.....................!
real 12.06
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/995/ltcube_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits outfile=/scratch/kocevski/995/expmap_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.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/995/ltcube_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits
.....................!
real 190.98
user 185.18
sys 5.24

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

Setting source of interest to:
4FGL J1027.6+8251 @ 156.923 82.8611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits outfile=/scratch/kocevski/995/cmap_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.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=156.923 yref=82.8611 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits outfile=/scratch/kocevski/995/cmap_HighResolution_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.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=156.923 yref=82.8611 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995/Model_4FGL_J1027.6+8251_daily_bin1699.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/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits.....................!
real 131.41
user 129.84
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits', '/scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits', expMap='/scratch/kocevski/995/expmap_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits', expCube='/scratch/kocevski/995/ltcube_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995/Model_4FGL_J1027.6+8251_daily_bin1699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1027.6+8251'

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  2.038e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.340e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/995/ft1_filtered_4FGL_J1027.6+8251_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/995/ft2_4FGL_J1027.6+8251_daily_bin1699.fits
Exposure map: /scratch/kocevski/995/expmap_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits
Exposure cube: /scratch/kocevski/995/ltcube_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995/Model_4FGL_J1027.6+8251_daily_bin1699.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) = 10347.2196269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.964       1.0000         .10000E-03   10000.    
    12 'norm      '    .33042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32635       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6915       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4610       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5767       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.054       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   10347.22     FROM MIGRAD    STATUS=FAILED      1096 CALLS     3439 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.358        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.1610        .14582E-02** at limit **
   3  norm          .10000E-03    4.3004        .18142E-02** at limit **
   4  norm          .10000E-03    13.297        .18142E-02** at limit **
   5  Prefactor     13.323        34.446        .10966E-03   -.12648E-04
   6  Prefactor     4.8366        5.1891        .18287E-03   -.45880E-04
   7  Prefactor     .10182E-03    10.431        .67040E-01** at limit **
   8  Prefactor     7.0890        11.654        .15066E-03   -.26487E-03
   9  Prefactor     .10590        10.764        .79269E-01    .18132E-03
  10  Prefactor     .10000E-03    29.875        .18142E-02** at limit **
  11  Prefactor     69.737        70.318        .23995E-03   -.17179E-03
  12  norm          .10002E-03    15.289        .25196E-02** at limit **
  13  Prefactor     .35525        15.976        .26628E-02    .30934E-02
  14  norm          2.6902        .86523        .48180E-04    .12251E-02
  15  Prefactor     8.4793        7.9914        .13782E-03    .37765E-03
  16  Prefactor     .10000E-03    6.0644        .18142E-02** at limit **
  17  Prefactor     .10000E-03    38.029        .18142E-02** at limit **
  18  norm          11.477        3.9569        .57145E-03   -.31381E-03
  19  Prefactor     .10000E-03    17.067        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.8215        .18142E-02** at limit **
  21  Prefactor     9.5721        11.661        .12950E-03   -.56187E-05
  22  Prefactor     .10000E-03    17.393        .18142E-02** at limit **
  23  Prefactor     67.037        49.623        .49014E-04   -.55111E-04
  24  Normalizat    1.0871        .17837        .29626E-03   -.17498E-03
  25  Prefactor     .96320        .10283        .19072E-03   -.84748E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10347.22     FROM SIMPLEX   STATUS=UNCHANGED   1385 CALLS     4824 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.358        .40310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1610        .27644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3004        .28399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.297        .63984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.323        34.446        .92641E-06   -1.4978    
   6  Prefactor     4.8366        5.1891        .94437E-06   -1.5268    
   7  Prefactor     .10182E-03    10.431        .10257E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0890        11.654        .93866E-06   -1.5175    
   9  Prefactor     .10590        10.764        .96786E-06   -1.5643    
  10  Prefactor     .10000E-03    29.875        .12210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.737        70.318        .86807E-06   -1.4036    
  12  norm          .10002E-03    15.289        .47424E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35525        15.976        .96348E-06   -1.5589    
  14  norm          2.6902        .86523        .95125E-06   -1.5380    
  15  Prefactor     8.4793        7.9914        .93548E-06   -1.5125    
  16  Prefactor     .10000E-03    6.0644        .18179E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.029        .43990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.477        3.9569        .92964E-06   -1.5030    
  19  Prefactor     .10000E-03    17.067        .13654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8215        .35731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5721        11.661        .93328E-06   -1.5089    
  22  Prefactor     .10000E-03    17.393        .16818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     67.037        49.623        .87019E-06   -1.4069    
  24  Normalizat    1.0871        .17837        .55770E-06   -.90166    
  25  Prefactor     .96320        .10283        .58120E-06   -.93967    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10347.22     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     5254 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.361        .36285E-03** at limit **
   2  Prefactor     .10000E-03    2.1611        .29164E-03** at limit **
   3  norm          .10000E-03    4.3005        .36285E-03** at limit **
   4  norm          .10000E-03    13.300        .36285E-03** at limit **
   5  Prefactor     13.324        34.453        .43862E-05   -.10368E-05
   6  Prefactor     4.8366        5.1882        .73147E-05    .18651E-05
   7  Prefactor     .10175E-03    8.2987        .77070E-01** at limit **
   8  Prefactor     7.0891        11.619        .60262E-05    .26412E-04
   9  Prefactor     .10591        9.7039        .84885E-01    .15416E-03
  10  Prefactor     .10000E-03    29.875        .36285E-03** at limit **
  11  Prefactor     69.738        67.630        .95982E-05    .18004E-04
  12  norm          .10000E-03    15.349        .50392E-03** at limit **
  13  Prefactor     .35525        14.481        .53255E-03    .12312E-03
  14  norm          2.6902        .85697        .19272E-05   -.94385E-04
  15  Prefactor     8.4793        7.9494        .55126E-05    .48670E-04
  16  Prefactor     .10000E-03    6.0658        .36285E-03** at limit **
  17  Prefactor     .10000E-03    38.032        .36285E-03** at limit **
  18  norm          11.477        3.9566        .22858E-04    .59683E-05
  19  Prefactor     .10000E-03    17.069        .36285E-03** at limit **
  20  Prefactor     .10000E-03    4.8220        .36285E-03** at limit **
  21  Prefactor     9.5721        11.661        .51798E-05   -.87792E-06
  22  Prefactor     .10000E-03    17.394        .36285E-03** at limit **
  23  Prefactor     67.037        49.623        .98028E-05   -.32473E-05
  24  Normalizat    1.0871        .17846        .11850E-04   -.73678E-04
  25  Prefactor     .96320        .10287        .38144E-04   -.69266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3235
  Prefactor  = 4.83662
  Prefactor  = 0.000101749
  Prefactor  = 7.08905
  Prefactor  = 0.105915
  Prefactor  = 0.0001
  Prefactor  = 69.7377
  norm       = 0.0001
  Prefactor  = 0.355247
  norm       = 2.69016
  Prefactor  = 8.47928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57215
  Prefactor  = 0.0001
  Prefactor  = 67.0369
  Normalizat = 1.08712
  Prefactor  = 0.963199
 **********
 **   18 **HESSE 
 **********

 FCN=   10347.22     FROM HESSE     STATUS=OK           423 CALLS     5677 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.362        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1611        .58329E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3005        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.300        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.324        34.864        .87725E-06   -1.4978    
   6  Prefactor     4.8366        5.1884        .14629E-05   -1.5268    
   7  Prefactor     .10175E-03    9.1205        .72721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0891        11.624        .12052E-05   -1.5175    
   9  Prefactor     .10591        10.017        .83113E-01   -1.5643    
  10  Prefactor     .10000E-03    29.875        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.738        67.174        .19196E-05   -1.4036    
  12  norm          .10000E-03    15.351        .10078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35525        14.196        .10651E-03   -1.5589    
  14  norm          2.6902        .85556        .38544E-06   -1.5380    
  15  Prefactor     8.4793        7.9548        .11025E-05   -1.5126    
  16  Prefactor     .10000E-03    6.0659        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.031        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.477        3.9574        .91432E-06   -1.5030    
  19  Prefactor     .10000E-03    17.069        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8220        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5721        11.647        .10360E-05   -1.5089    
  22  Prefactor     .10000E-03    17.394        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     67.037        49.685        .19606E-05   -1.4069    
  24  Normalizat    1.0871        .17876        .23701E-05   -.90166    
  25  Prefactor     .96320        .10298        .76288E-05   -.93966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59098e-10
Minuit parameter uncertainties:
  1  5.44619e-06
  2  8.6063e-07
  3  3.44452e-07
  4  5.56737e-07
  5  34.9169
  6  5.18891
  7  0.00798883
  8  11.6279
  9  2.05947
  10  1.89884e-05
  11  67.2474
  12  7.24025e-05
  13  4.49186
  14  0.855566
  15  7.95584
  16  1.04441e-05
  17  5.71844e-06
  18  3.95745
  19  4.32877e-06
  20  5.18473e-08
  21  11.6494
  22  1.86482e-06
  23  49.7154
  24  0.178855
  25  0.102998
Done.

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

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.059e-01  2.059e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.340e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.632e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.087e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 156.923 82.861
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995/likelihoodResults_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.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) = 10346.9888658
delta logL = 0.227209510982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10346.9761474
delta logL = 0.239927880606

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10346.98     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      259 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56693        13.222        .11542E-01    .23484E-02
   2  Index         3.8595        2.6947        .15031        .17587E-03
   3  Normalizat    1.0548        .28816E-01    .67868E-01   -.51744E-03
   4  Prefactor     .97215        .17657E-01    .45919E-01   -.90294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.566934
  Index      = 3.85949
  Normalizat = 1.05481
  Prefactor  = 0.972151
 **********
 **   18 **HESSE 
 **********

 FCN=   10346.98     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56693        60.512        .10899E-03   -1.5557    
   2  Index         3.8595        6.4376        .87887E-02   -.23013    
   3  Normalizat    1.0548        .13699        .30026E-03   -.91216    
   4  Prefactor     .97215        .82320E-01    .18993E-03   -.93664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29024e-06
Minuit parameter uncertainties:
  1  11.7255
  2  9.63367
  3  0.137039
  4  0.0823304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995': 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) = 10346.9761453
delta logL = 0.239929994665

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  5.669e-01  1.173e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.859e+00  9.634e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.722e-01  8.233e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.055e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 156.923 82.861

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/995/cmap_HighResolution_679708801_679968001_4FGL_J1027.6+8251_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2022-07-20 01:02:15.648657', job_id='995', GAL2='0.97', fit_tolerance='1e-08', EG2='1.05', EG='1.09', time_epoch_completed='1658304135.65', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.40e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1699' AND source_name='4FGL J1027.6+8251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 01:02:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 995: <4FGL_J1027.6+8251_daily_bin1699> in cluster <slac> Done

Job <4FGL_J1027.6+8251_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:13 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:14 2022
Terminated at Wed Jul 20 01:02:16 2022
Results reported at Wed Jul 20 01:02:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1027.6+8251_daily_bin1699 156.923 82.8611 679708801 679968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1027.6+8251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1516.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             314.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1621 sec.
    Turnaround time :                            1623 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 992616: <4FGL_J1027.6+8251_daily_bin1699> in cluster <slac> Exited

Job <4FGL_J1027.6+8251_daily_bin1699> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jul 20 00:06:36 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:06:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:06:58 2022
Terminated at Wed Jul 20 08:27:02 2022
Results reported at Wed Jul 20 08:27:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1027.6+8251_daily_bin1699 156.923 82.8611 679708801 679968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1027.6+8251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   12.35 sec.
    Max Memory :                                 47 MB
    Average Memory :                             46.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              4
    Max Threads :                                19
    Run time :                                   30004 sec.
    Turnaround time :                            30026 sec.

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

