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


Performing analysis on: 4FGL_J0958.0+4728_monthly_bin169
RA = 149.509, Dec = 47.4675
tmin = 675043201, tmax = 677635201
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='164327', job_status='RUN', time_executed='2022-06-23 02:04:42.787366', time_epoch_executed='1655975082.79' WHERE source_name='4FGL J0958.0+4728' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164327

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164327/ft1_4FGL_J0958.0+4728_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164327/ft1_4FGL_J0958.0+4728_monthly_bin169.fits outfile=/scratch/kocevski/164327/ft1_filteredMKT_4FGL_J0958.0+4728_monthly_bin169.fits ra=149.509 dec=47.4675 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.96
user 27.12
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.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/164327/ft1_filteredMKT_4FGL_J0958.0+4728_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.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.88
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 6449

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/164327/ltcube_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.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/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits
.....................!
real 147.68
user 146.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/164327/ltcube_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits outfile=/scratch/kocevski/164327/expmap_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.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/164327/ltcube_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits
.....................!
real 193.98
user 187.92
sys 5.33

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

Setting source of interest to:
4FGL J0958.0+4728 @ 149.509 47.4675

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits outfile=/scratch/kocevski/164327/cmap_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.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=149.509 yref=47.4675 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.80
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits outfile=/scratch/kocevski/164327/cmap_HighResolution_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.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=149.509 yref=47.4675 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.82
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164327/Model_4FGL_J0958.0+4728_monthly_bin169.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/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits.....................!
real 478.38
user 475.42
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits', '/scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits', expMap='/scratch/kocevski/164327/expmap_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits', expCube='/scratch/kocevski/164327/ltcube_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164327/Model_4FGL_J0958.0+4728_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.0+4728'

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164327/ft1_filtered_4FGL_J0958.0+4728_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/164327/ft2_4FGL_J0958.0+4728_monthly_bin169.fits
Exposure map: /scratch/kocevski/164327/expmap_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits
Exposure cube: /scratch/kocevski/164327/ltcube_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164327/Model_4FGL_J0958.0+4728_monthly_bin169.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) = 70034.3586933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4131       1.0000         .10000E-03   10000.    
     2 'norm      '    .61364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22908E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6347       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6105       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9392       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82999       1.0000         .10000E-03   10000.    
    18 'norm      '    .71463E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3141       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2897       1.0000         .10000E-03   10000.    
    22 'norm      '    6.8132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2890       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1868       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .49035E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.3638       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.196       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    5.0249       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.2942       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    64.747       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .96827       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   70034.26     FROM MIGRAD    STATUS=CONVERGED   1019 CALLS     4680 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4134        1.7758         .0000        .13526    
   2  norm          .61379        .87505         .0000        .77152E-02
   3  Prefactor     1.6503        .76594         .0000        .71776E-02
   4  Prefactor     1.9797        4.1332         .0000        .36626E-01
   5  Prefactor     .10001E-03    13.046         .0000    ** at limit **
   6  Prefactor     1.8838        .79583         .0000        .36666E-02
   7  Prefactor     .10000E-03    2.1825         .0000    ** at limit **
   8  norm          .22926E-01    .74721E-01     .0000        .27087E-01
   9  Prefactor     2.6344        1.1525         .0000        .71245E-02
  10  norm          3.3562        1.8035         .0000        .71376E-01
  11  Prefactor     .52199        .46327         .0000        .70766E-02
  12  Prefactor     4.8631        2.3931         .0000       -.92454E-03
  13  Prefactor     2.4641        .92896         .0000        .38619E-02
  14  Prefactor     1.6181        4.7516         .0000        .21549E-02
  15  norm          1.9393        2.4975         .0000        .34507E-02
  16  Prefactor     .10000E-03    1.2008         .0000    ** at limit **
  17  Prefactor     .82993        1.7671         .0000        .15249E-01
  18  norm          .68192E-01    .42847         .0000        .43771E-02
  19  Prefactor     4.3015        5.0691         .0000        .45886E-03
  20  Prefactor     5.3186        6.6055         .0000        .50518E-03
  21  norm          1.2896        .15589         .0000        .12805E-02
  22  norm          6.8133        2.9090         .0000       -.87682E-03
  23  Prefactor     .10000E-03    .24698         .0000    ** at limit **
  24  Prefactor     5.2892        4.4756         .0000        .37750E-02
  25  norm          3.1868        .65306         .0000        .69945E-03
  26  Prefactor     .10036E-03    1.7446         .0000    ** at limit **
  27  norm          6.3639        2.2428         .0000       -.14498E-02
  28  Prefactor     10.196        6.2265         .0000        .86508E-04
  29  Prefactor     .10000E-03    .27846         .0000    ** at limit **
  30  norm          5.0248        .57885         .0000       -.51309E-03
  31  Prefactor     2.2944        3.4862         .0000        .88757E-03
  32  Prefactor     .10001E-03    5.1057         .0000    ** at limit **
  33  Prefactor     .10000E-03    4.6301         .0000    ** at limit **
  34  Prefactor     64.747        17.320         .0000       -.74971E-03
  35  Normalizat    .96826        .48901E-01     .0000        .44946E-03
  36  Prefactor     1.0521        .60231E-01     .0000        .32608E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41337
  norm       = 0.613791
  Prefactor  = 1.65027
  Prefactor  = 1.97974
  Prefactor  = 0.000100007
  Prefactor  = 1.88376
  Prefactor  = 0.0001
  norm       = 0.0229256
  Prefactor  = 2.63443
  norm       = 3.35619
  Prefactor  = 0.521992
  Prefactor  = 4.86308
  Prefactor  = 2.46408
  Prefactor  = 1.61812
  norm       = 1.93933
  Prefactor  = 0.0001
  Prefactor  = 0.829926
  norm       = 0.0681919
  Prefactor  = 4.30151
  Prefactor  = 5.31862
  norm       = 1.2896
  norm       = 6.81331
  Prefactor  = 0.0001
  Prefactor  = 5.28918
  norm       = 3.1868
  Prefactor  = 0.000100357
  norm       = 6.36389
  Prefactor  = 10.1957
  Prefactor  = 0.0001
  norm       = 5.02476
  Prefactor  = 2.29439
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 64.747
  Normalizat = 0.968261
  Prefactor  = 1.0521
 **********
 **   18 **HESSE 
 **********

 FCN=   70034.26     FROM HESSE     STATUS=OK           847 CALLS     5527 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4134        1.7518        .13176E-02   -1.5397    
   2  norm          .61379        1.0223        .28014E-02   -1.5551    
   3  Prefactor     1.6503        .75540        .14835E-03   -1.5451    
   4  Prefactor     1.9797        4.0877        .14734E-02   -1.5427    
   5  Prefactor     .10001E-03    13.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8838        .78647        .14458E-03   -1.5433    
   7  Prefactor     .10000E-03    2.2102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22926E-01    .21477        .85356E-03   -1.5678    
   9  Prefactor     2.6344        1.1615        .12010E-03   -1.5383    
  10  norm          3.3562        1.7913        .11045E-02   -1.5342    
  11  Prefactor     .52199        .44924        .15856E-03   -1.5563    
  12  Prefactor     4.8631        2.3440        .18238E-03   -1.5267    
  13  Prefactor     2.4641        .90839        .14323E-03   -1.5394    
  14  Prefactor     1.6181        4.5599        .33378E-03   -1.5454    
  15  norm          1.9393        2.4795        .29815E-03   -1.5429    
  16  Prefactor     .10000E-03    1.2052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .82993        1.6660        .43004E-03   -1.5526    
  18  norm          .68192E-01    .43265        .63370E-01   -1.5656    
  19  Prefactor     4.3015        5.0593        .19424E-03   -1.5293    
  20  Prefactor     5.3186        6.5836        .17435E-03   -1.5247    
  21  norm          1.2896        .15390        .34473E-04   -1.5481    
  22  norm          6.8133        2.8970        .15371E-03   -1.5186    
  23  Prefactor     .10000E-03    1.3823        .24124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2892        4.4730        .87383E-03   -1.5248    
  25  norm          3.1868        .65173        .93611E-04   -1.5351    
  26  Prefactor     .10036E-03    12.033        .66093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.3639        2.2378        .15911E-03   -1.5203    
  28  Prefactor     10.196        6.2230        .12549E-03   -1.5069    
  29  Prefactor     .10000E-03    .28998        .27222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          5.0248        .57817        .66351E-04   -1.5260    
  31  Prefactor     2.2944        3.4676        .27098E-03   -1.5405    
  32  Prefactor     .10001E-03    5.1188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.6365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     64.747        17.346        .49874E-04   -1.4097    
  35  Normalizat    .96826        .57599E-01    .22579E-03   -.94101    
  36  Prefactor     1.0521        .71836E-01    .28274E-03   -.91012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10464e-06
Minuit parameter uncertainties:
  1  1.75188
  2  1.02236
  3  0.755409
  4  4.08828
  5  0.000621389
  6  0.786477
  7  1.18706e-05
  8  0.140032
  9  1.16155
  10  1.79131
  11  0.449244
  12  2.34405
  13  0.908391
  14  4.56086
  15  2.47959
  16  6.63279e-06
  17  1.66605
  18  0.343283
  19  5.0598
  20  6.58452
  21  0.153903
  22  2.89706
  23  1.13183e-05
  24  4.47331
  25  0.651733
  26  0.00414608
  27  2.23781
  28  6.22335
  29  2.09168e-06
  30  0.578166
  31  3.46794
  32  0.000372985
  33  0.000188748
  34  17.3478
  35  0.0576032
  36  0.0718431
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.813e+00  2.897e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.052e+00  7.184e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  9.683e-01  5.760e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.30
Ra Dec: 149.509 47.468
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.57e-08 +/- 6.68e-09
Energy Flux (Fixed Index): 4.72e-06 +/- 2.01e-06

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) = 70033.7917485
delta logL = 0.471466725445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 70033.7899443
delta logL = 0.473270957984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7623       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9408       1.0000          .0000       5.0000    
     3 'Normalizat'    .95261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+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=   70033.79     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7623        3.3632        .77149E-03   -.14215E-02
   2  alpha         2.9408        .67266        .38539E-01    .91665E-04
   3  Normalizat    .95261        .57405E-01    .22744E-03    .49585E-05
   4  Prefactor     1.0649        .72514E-01    .28127E-03   -.64671E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.76233
  alpha      = 2.94075
  Normalizat = 0.952609
  Prefactor  = 1.06486
 **********
 **   18 **HESSE 
 **********

 FCN=   70033.79     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7623        2.9120        .30859E-04   -1.5188    
   2  alpha         2.9408        .58247        .15416E-02    .17723    
   3  Normalizat    .95261        .57000E-01    .45488E-04   -.94635    
   4  Prefactor     1.0649        .72131E-01    .11251E-04   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15677e-10
Minuit parameter uncertainties:
  1  2.91208
  2  0.588046
  3  0.0570035
  4  0.0721372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164327': 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) = 70033.7899443
delta logL = 0.473270958202

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.762e+00  2.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.941e+00  5.880e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.065e+00  7.214e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  9.526e-01  5.700e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.32
Ra Dec: 149.509 47.468
Photon Index (Free Index): 2.94 +/- 0.59
Photon Flux (Free Index): 2.61e-08 +/- 1.32e-08
Energy Flux (Free Index): 5.69e-06 +/- 2.15e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164327/cmap_HighResolution_675043201_677635201_4FGL_J0958.0+4728_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-08', energy_flux2='5.69e-06', photon_flux_error='6.68e-09', dlogl='4.73e-01', energy_flux='4.72e-06', photon_flux2='2.61e-08', job_status='DONE', time_completed='2022-06-23 04:18:56.095929', photon_index_error2='0.59', photon_index2='2.94', ts='9.30', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.15e-06', EG='0.97', time_epoch_completed='1655983136.1', return_code='0', job_id='164327', GAL2='1.06', EG2='0.95', return_code2='0', energy_flux_error='2.01e-06', photon_flux_error2='1.32e-08', ts2='10.32', photon_index='2.37' WHERE bin_id='169' AND source_name='4FGL J0958.0+4728' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:18:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 164327: <4FGL_J0958.0+4728_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0958.0+4728_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:30:34 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:03:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:03:38 2022
Terminated at Thu Jun 23 04:18:56 2022
Results reported at Thu Jun 23 04:18:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_monthly_bin169 149.509 47.4675 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.0+4728 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8013.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             405.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8118 sec.
    Turnaround time :                            10102 sec.

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

