aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1027.6+8251_monthly_bin168
RA = 156.923, Dec = 82.8611
tmin = 672451201, tmax = 675043201
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='629441', job_status='RUN', time_executed='2022-05-24 02:55:03.774632', time_epoch_executed='1653386103.77' WHERE source_name='4FGL J1027.6+8251' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629441

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629441/ft1_4FGL_J1027.6+8251_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629441/ft1_4FGL_J1027.6+8251_monthly_bin168.fits outfile=/scratch/kocevski/629441/ft1_filteredMKT_4FGL_J1027.6+8251_monthly_bin168.fits ra=156.923 dec=82.8611 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.67
user 27.87
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.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/629441/ft1_filteredMKT_4FGL_J1027.6+8251_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.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.87
user 0.69
sys 0.16

Number of photons that the gtmktime cut: 13071

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/629441/ltcube_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.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/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits
.....................!
real 138.26
user 137.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/629441/ltcube_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits outfile=/scratch/kocevski/629441/expmap_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.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/629441/ltcube_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits
.....................!
real 192.99
user 186.80
sys 5.70

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/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits scfile=/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits outfile=/scratch/kocevski/629441/cmap_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.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.83
user 0.64
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits scfile=/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits outfile=/scratch/kocevski/629441/cmap_HighResolution_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.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.79
user 0.63
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits', '/scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits', expMap='/scratch/kocevski/629441/expmap_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits', expCube='/scratch/kocevski/629441/ltcube_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629441/Model_4FGL_J1027.6+8251_monthly_bin168.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/629441/ft1_filtered_4FGL_J1027.6+8251_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/629441/ft2_4FGL_J1027.6+8251_monthly_bin168.fits
Exposure map: /scratch/kocevski/629441/expmap_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits
Exposure cube: /scratch/kocevski/629441/ltcube_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629441/Model_4FGL_J1027.6+8251_monthly_bin168.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) = 137819.486184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7188       1.0000         .10000E-03   10000.    
     3 'norm      '    10.350       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15342E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.264       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.590       1.0000         .10000E-03   10000.    
    12 'norm      '    7.9821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15899E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.287       1.0000         .10000E-03   10000.    
    18 'norm      '    .72074       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39194       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4771       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95457       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0112       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   137818.5     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2636 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91501         .0000    ** at limit **
   2  Prefactor     4.7185        1.7691         .0000        .27104E-02
   3  norm          10.340        3.1449         .0000       -.61656E-03
   4  norm          4.7166        3.1191         .0000       -.54356E-02
   5  Prefactor     .10017E-03    1.5122         .0000    ** at limit **
   6  Prefactor     2.2349        .80569         .0000        .33191E-02
   7  Prefactor     12.264        2.3190         .0000       -.16284E-02
   8  Prefactor     .38352        .78632         .0000        .76050E-02
   9  Prefactor     1.9248        1.8043         .0000        .38520E-02
  10  Prefactor     8.4343        5.2467         .0000       -.59782E-03
  11  Prefactor     30.658        10.611         .0000        .26174E-02
  12  norm          7.9824        1.4093         .0000        .42157E-02
  13  Prefactor     .10012E-03    .14811         .0000    ** at limit **
  14  norm          1.4728        .18909         .0000        .64870E-02
  15  Prefactor     1.9375        2.0064         .0000        .56640E-02
  16  Prefactor     10.175        2.5357         .0000        .30015E-01
  17  Prefactor     10.360        8.4463         .0000       -.29279E-02
  18  norm          .72083        .52478         .0000        .17808E-01
  19  Prefactor     .10000E-03    2.6987         .0000    ** at limit **
  20  Prefactor     2.6005        2.3925         .0000        .41245E-02
  21  Prefactor     .39049        1.5933         .0000        .22662    
  22  Prefactor     .10000E-03    6.8859         .0000    ** at limit **
  23  Prefactor     2.4727        4.6511         .0000        .94761E-03
  24  Normalizat    .95455        .40591E-01     .0000        .50021E-03
  25  Prefactor     1.0112        .24447E-01     .0000        .52761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.71853
  norm       = 10.3398
  norm       = 4.71663
  Prefactor  = 0.000100168
  Prefactor  = 2.23491
  Prefactor  = 12.264
  Prefactor  = 0.383524
  Prefactor  = 1.92477
  Prefactor  = 8.4343
  Prefactor  = 30.6579
  norm       = 7.98244
  Prefactor  = 0.000100121
  norm       = 1.47278
  Prefactor  = 1.93752
  Prefactor  = 10.1749
  Prefactor  = 10.3595
  norm       = 0.720829
  Prefactor  = 0.0001
  Prefactor  = 2.6005
  Prefactor  = 0.390486
  Prefactor  = 0.0001
  Prefactor  = 2.47274
  Normalizat = 0.95455
  Prefactor  = 1.01125
 **********
 **   18 **HESSE 
 **********

 FCN=   137818.5     FROM HESSE     STATUS=OK           461 CALLS     3097 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .91898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7185        1.7702        .18524E-03   -1.5273    
   3  norm          10.340        3.1444        .12455E-03   -1.5065    
   4  norm          4.7166        3.1158        .18531E-03   -1.5274    
   5  Prefactor     .10017E-03    1.6533        .13270       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2349        .80438        .19340E-03   -1.5409    
   7  Prefactor     12.264        2.3195        .11439E-03   -1.5007    
   8  Prefactor     .38352        7.1489        .38676E-02   -1.5584    
   9  Prefactor     1.9248        1.7898        .29944E-03   -1.5430    
  10  Prefactor     8.4343        7.4408        .13782E-03   -1.5127    
  11  Prefactor     30.658        10.726        .72442E-04   -1.4600    
  12  norm          7.9824        1.3749        .14192E-03   -1.5143    
  13  Prefactor     .10012E-03    .31580        .42941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4728        .19177        .51527E-04   -1.5465    
  15  Prefactor     1.9375        1.9380        .29830E-03   -1.5430    
  16  Prefactor     10.175        2.4355        .62801E-03   -1.5070    
  17  Prefactor     10.360        8.4485        .12493E-03   -1.5064    
  18  norm          .72083        .46618        .20782E-02   -1.5538    
  19  Prefactor     .10000E-03    2.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6005        2.3831        .25278E-03   -1.5385    
  21  Prefactor     .39049        1.5687        .21643E-02   -1.5583    
  22  Prefactor     .10000E-03    6.9556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4727        4.6324        .25977E-03   -1.5393    
  24  Normalizat    .95455        .45495E-01    .30026E-03   -.94569    
  25  Prefactor     1.0112        .27538E-01    .18424E-03   -.92355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48677e-07
Minuit parameter uncertainties:
  1  5.78232e-07
  2  1.77021
  3  3.14449
  4  3.11589
  5  0.00105262
  6  0.804388
  7  2.31948
  8  3.31168
  9  1.78989
  10  7.44157
  11  10.727
  12  1.37487
  13  0.000390613
  14  0.191772
  15  1.9381
  16  2.43549
  17  8.44951
  18  0.466178
  19  5.45873e-06
  20  2.38314
  21  1.56518
  22  4.63568e-06
  23  4.6331
  24  0.0454968
  25  0.0275383
Done.

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

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.925e+00  1.790e+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:  1.011e+00  2.754e-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:  9.545e-01  4.550e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 156.923 82.861
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.85e-09 +/- 4.50e-09
Energy Flux (Fixed Index): 1.73e-06 +/- 1.61e-06

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

Saving results to:
/scratch/kocevski/629441/likelihoodResults_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.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) = 137818.133683
delta logL = 0.316733267304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 137818.061913
delta logL = 0.388503424474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91662       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4527       1.0000          .0000       10.000    
     3 'Normalizat'    .95772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   137818.1     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      303 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91700        1.4015        .36766E-03   -.10884E-04
   2  Index         1.4532        .71531        .35035E-01   -.15445E-03
   3  Normalizat    .95771        .42370E-01    .29984E-03   -.24266E-05
   4  Prefactor     1.0109        .26849E-01    .18428E-03    .19742E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.916999
  Index      = 1.45318
  Normalizat = 0.957711
  Prefactor  = 1.01093
 **********
 **   18 **HESSE 
 **********

 FCN=   137818.1     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .25E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91700        1.7633        .14707E-04   -1.5516    
   2  Index         1.4532        .89903        .14014E-02   -.78860    
   3  Normalizat    .95771        .42394E-01    .11994E-04   -.94461    
   4  Prefactor     1.0109        .26864E-01    .36855E-04   -.92366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53931e-14
Minuit parameter uncertainties:
  1  1.76345
  2  0.909078
  3  0.0423954
  4  0.026864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629441': 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) = 137818.061913
delta logL = 0.388503707625

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  9.170e-01  1.763e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.453e+00  9.091e-01  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:  1.011e+00  2.686e-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:  9.577e-01  4.240e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 156.923 82.861
Photon Index (Free Index): 1.45 +/- 0.91
Photon Flux (Free Index): 7.19e-10 +/- 1.72e-09
Energy Flux (Free Index): 2.66e-06 +/- 3.70e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/629441/cmap_HighResolution_672451201_675043201_4FGL_J1027.6+8251_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-03', comment='SUCCESS', photon_flux='4.85e-09', energy_flux2='2.66e-06', photon_flux_error='4.50e-09', dlogl='3.89e-01', energy_flux='1.73e-06', photon_flux2='7.19e-10', job_status='DONE', time_completed='2022-05-24 06:11:10.268402', photon_index_error2='0.91', photon_index2='1.45', ts='2.08', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.49e-08', energy_flux_error2='3.70e-06', EG='0.95', time_epoch_completed='1653397870.27', return_code='0', job_id='629441', GAL2='1.01', EG2='0.96', return_code2='0', energy_flux_error='1.61e-06', photon_flux_error2='1.72e-09', ts2='2.84', photon_index='2.34' WHERE bin_id='168' AND source_name='4FGL J1027.6+8251' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:11:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 629441: <4FGL_J1027.6+8251_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1027.6+8251_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 02:50:28 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:53:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:53:36 2022
Terminated at Tue May 24 06:11:11 2022
Results reported at Tue May 24 06:11:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1027.6+8251_monthly_bin168 156.923 82.8611 672451201 675043201 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 :                                   11727.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             517.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11855 sec.
    Turnaround time :                            12043 sec.

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

