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


Performing analysis on: 4FGL_J1128.0+5924_monthly_bin170
RA = 172.003, Dec = 59.4015
tmin = 677635201, tmax = 680227201
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='95143', job_status='RUN', time_executed='2022-07-23 01:22:28.297455', time_epoch_executed='1658564548.3' WHERE source_name='4FGL J1128.0+5924' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95143

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95143/ft1_4FGL_J1128.0+5924_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95143/ft1_4FGL_J1128.0+5924_monthly_bin170.fits outfile=/scratch/kocevski/95143/ft1_filteredMKT_4FGL_J1128.0+5924_monthly_bin170.fits ra=172.003 dec=59.4015 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.13
user 31.39
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.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/95143/ft1_filteredMKT_4FGL_J1128.0+5924_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.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.86
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 6696

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/95143/ltcube_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.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/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits
.....................!
real 111.05
user 110.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/95143/ltcube_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits outfile=/scratch/kocevski/95143/expmap_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.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/95143/ltcube_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits
.....................!
real 192.17
user 186.16
sys 5.64

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

Setting source of interest to:
4FGL J1128.0+5924 @ 172.003 59.4015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits outfile=/scratch/kocevski/95143/cmap_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.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=172.003 yref=59.4015 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.84
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits outfile=/scratch/kocevski/95143/cmap_HighResolution_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.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=172.003 yref=59.4015 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.90
user 0.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95143/Model_4FGL_J1128.0+5924_monthly_bin170.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/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits.....................!
real 551.80
user 548.80
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits', '/scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits', expMap='/scratch/kocevski/95143/expmap_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits', expCube='/scratch/kocevski/95143/ltcube_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95143/Model_4FGL_J1128.0+5924_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1128.0+5924'

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  9.727e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/95143/ft1_filtered_4FGL_J1128.0+5924_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/95143/ft2_4FGL_J1128.0+5924_monthly_bin170.fits
Exposure map: /scratch/kocevski/95143/expmap_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits
Exposure cube: /scratch/kocevski/95143/ltcube_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95143/Model_4FGL_J1128.0+5924_monthly_bin170.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) = 72241.7213193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7219       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7913       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.208       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24797       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4909       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2806       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0026       1.0000         .10000E-03   10000.    
    23 'norm      '    .70526       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7060       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8422       1.0000         .10000E-03   10000.    
    27 'norm      '    .15982       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7662       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .53682E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .42630       1.0000         .10000E-03   10000.    
    31 'norm      '    3.6285       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7530E+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=   72241.67     FROM MIGRAD    STATUS=FAILED      1722 CALLS     5744 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1175        .41499        .47584E-04    .13762E-03
   2  Prefactor     .10000E-03    2.9185        .18142E-02** at limit **
   3  norm          10.729        3.8760        .12232E-03    .14871E-05
   4  Prefactor     8.7212        5.2834        .13573E-03    .42886E-04
   5  norm          3.7914        .78023        .88470E-04    .69906E-04
   6  norm          1.6765        .39991        .80465E-04    .28484E-03
   7  Prefactor     .10000E-03    8.5050        .18142E-02** at limit **
   8  Prefactor     .10000E-03    6.4419        .18142E-02** at limit **
   9  norm          .18005        .48735        .24601E-03    .40422E-02
  10  Prefactor     18.209        16.715        .93863E-04   -.66277E-04
  11  norm          3.9720        .72775        .91351E-04   -.20868E-02
  12  Prefactor     2.9005        1.5068        .19049E-03    .95679E-03
  13  Prefactor     56.348        16.455        .53440E-04   -.10756E-03
  14  Prefactor     .24969        2.3768        .96139E-01    .16743E-02
  15  Prefactor     .10000E-03    4.9552        .18142E-02** at limit **
  16  norm          2.6021        5.1203        .12646E-02    .12988E-02
  17  Prefactor     5.2654        2.2511        .87588E-03    .74564E-02
  18  Prefactor     26.418        8.4573        .77943E-04   -.25904E-03
  19  Prefactor     3.4912        3.7079        .10820E-02    .24070E-02
  20  Prefactor     1.2805        .76946        .17862E-03    .36559E-03
  21  norm          .10000E-03    1.5122        .36285E-03** at limit **
  22  Prefactor     2.0031        .83832        .15361E-03    .14091E-02
  23  norm          .70534        .94818        .28752E-03    .13747E-02
  24  Prefactor     .10000E-03    4.1169        .18142E-02** at limit **
  25  Prefactor     2.7067        1.5359        .11667E-02    .76856E-02
  26  Prefactor     8.8427        4.5671        .13479E-03    .80967E-05
  27  norm          .16017        .51116        .15446E-02    .31029E-02
  28  Prefactor     3.7666        3.7517        .10402E-02    .24386E-02
  29  Prefactor     .24710E-01    5.0651        .16871        .24268E-03
  30  Prefactor     .42643        .96496        .38072E-03    .24997E-02
  31  norm          3.6284        .64653        .86993E-04   -.30946E-03
  32  Prefactor     .10000E-03    2.8384        .18142E-02** at limit **
  33  Normalizat    1.0049        .61249E-01    .23432E-03   -.27869E-03
  34  Prefactor     1.0452        .72686E-01    .29150E-03   -.94225E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   72241.67     FROM SIMPLEX   STATUS=UNCHANGED   1732 CALLS     7476 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1175        .41499        .99758E-07   -1.5255    
   2  Prefactor     .10000E-03    2.9185        .25608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.729        3.8760        .95744E-07   -1.5053    
   4  Prefactor     8.7212        5.2834        .96887E-07   -1.5117    
   5  norm          3.7914        .78023        .97842E-07   -1.5319    
   6  norm          1.6765        .39991        .98565E-07   -1.5449    
   7  Prefactor     .10000E-03    8.5050        .30615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4419        .33902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18005        .48735        .99591E-07   -1.5623    
  10  Prefactor     18.209        16.715        .94515E-07   -1.4854    
  11  norm          3.9720        .72775        .97611E-07   -1.5309    
  12  Prefactor     2.9005        1.5068        .98001E-07   -1.5367    
  13  Prefactor     56.348        16.455        .90659E-07   -1.4205    
  14  Prefactor     .24969        2.3768        .99592E-07   -1.5608    
  15  Prefactor     .10000E-03    4.9552        .14722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6021        5.1203        .98389E-07   -1.5385    
  17  Prefactor     5.2654        2.2511        .97433E-07   -1.5249    
  18  Prefactor     26.418        8.4573        .94489E-07   -1.4680    
  19  Prefactor     3.4912        3.7079        .99351E-07   -1.5334    
  20  Prefactor     1.2805        .76946        .98987E-07   -1.5482    
  21  norm          .10000E-03    1.5122        .16086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0031        .83832        .98372E-07   -1.5425    
  23  norm          .70534        .94818        .99137E-07   -1.5540    
  24  Prefactor     .10000E-03    4.1169        .17586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7067        1.5359        .98133E-07   -1.5379    
  26  Prefactor     8.8427        4.5671        .96984E-07   -1.5113    
  27  norm          .16017        .51116        .10006E-06   -1.5628    
  28  Prefactor     3.7666        3.7517        .97312E-07   -1.5320    
  29  Prefactor     .24710E-01    5.0651        .95585E-07   -1.5677    
  30  Prefactor     .42643        .96496        .99383E-07   -1.5577    
  31  norm          3.6284        .64653        .97686E-07   -1.5327    
  32  Prefactor     .10000E-03    2.8384        .27926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0049        .61249E-01    .59049E-07   -.92868    
  34  Prefactor     1.0452        .72686E-01    .58168E-07   -.91236    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   72241.67     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     8207 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1174        .41497        .19034E-05   -.57341E-04
   2  Prefactor     .10000E-03    2.9196        .36285E-03** at limit **
   3  norm          10.729        3.8759        .48928E-05   -.74354E-05
   4  Prefactor     8.7212        5.2823        .54291E-05   -.73710E-04
   5  norm          3.7914        .78018        .35388E-05   -.19533E-03
   6  norm          1.6765        .39990        .32186E-05   -.20345E-03
   7  Prefactor     .10000E-03    8.5052        .36285E-03** at limit **
   8  Prefactor     .10000E-03    6.4423        .36285E-03** at limit **
   9  norm          .18002        .48499        .98405E-05   -.14788E-04
  10  Prefactor     18.209        16.714        .18773E-04   -.15503E-04
  11  norm          3.9720        .72687        .36541E-05   -.90600E-03
  12  Prefactor     2.9005        1.4996        .76198E-05    .38195E-04
  13  Prefactor     56.348        16.452        .10688E-04   -.51057E-04
  14  Prefactor     .24971        2.1664        .10210        .14976E-02
  15  Prefactor     .10000E-03    4.9557        .36285E-03** at limit **
  16  norm          2.6019        5.1194        .50586E-04    .16109E-04
  17  Prefactor     5.2652        2.2484        .35035E-04   -.33747E-03
  18  Prefactor     26.418        8.4525        .31177E-05   -.14002E-03
  19  Prefactor     3.4910        3.7072        .43281E-04   -.84055E-06
  20  Prefactor     1.2805        .76941        .71447E-05    .81470E-05
  21  norm          .10000E-03    1.5123        .72569E-04** at limit **
  22  Prefactor     2.0030        .83823        .61445E-05    .59207E-05
  23  norm          .70534        .94727        .11501E-04   -.22142E-04
  24  Prefactor     .10000E-03    4.1191        .36285E-03** at limit **
  25  Prefactor     2.7066        1.5341        .46667E-04   -.58467E-04
  26  Prefactor     8.8427        4.5677        .53918E-05   -.47231E-04
  27  norm          .16016        .50985        .61783E-04   -.35330E-04
  28  Prefactor     3.7664        3.7498        .41606E-04   -.17488E-04
  29  Prefactor     .24713E-01    5.2897        .16376        .24945E-03
  30  Prefactor     .42639        .96450        .15229E-04   -.47778E-05
  31  norm          3.6284        .64630        .34797E-05   -.10455E-04
  32  Prefactor     .10000E-03    2.8390        .36285E-03** at limit **
  33  Normalizat    1.0049        .61160E-01    .93728E-05   -.30663E-03
  34  Prefactor     1.0452        .72752E-01    .11660E-04   -.17472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.11745
  Prefactor  = 0.0001
  norm       = 10.7288
  Prefactor  = 8.72117
  norm       = 3.79139
  norm       = 1.67653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.180025
  Prefactor  = 18.209
  norm       = 3.97197
  Prefactor  = 2.90048
  Prefactor  = 56.3483
  Prefactor  = 0.249707
  Prefactor  = 0.0001
  norm       = 2.60188
  Prefactor  = 5.26519
  Prefactor  = 26.4179
  Prefactor  = 3.49098
  Prefactor  = 1.28053
  norm       = 0.0001
  Prefactor  = 2.00305
  norm       = 0.705336
  Prefactor  = 0.0001
  Prefactor  = 2.70657
  Prefactor  = 8.84271
  norm       = 0.160158
  Prefactor  = 3.76638
  Prefactor  = 0.0247127
  Prefactor  = 0.426393
  norm       = 3.62844
  Prefactor  = 0.0001
  Normalizat = 1.00486
  Prefactor  = 1.04525
 **********
 **   18 **HESSE 
 **********

 FCN=   72241.67     FROM HESSE     STATUS=OK           718 CALLS     8925 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1174        .41481        .38067E-06   -1.5255    
   2  Prefactor     .10000E-03    2.9197        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.729        3.8799        .97855E-06   -1.5053    
   4  Prefactor     8.7212        5.2613        .10858E-05   -1.5117    
   5  norm          3.7914        .77919        .70776E-06   -1.5319    
   6  norm          1.6765        .39978        .64372E-06   -1.5449    
   7  Prefactor     .10000E-03    8.5052        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4423        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18002        .48463        .19681E-05   -1.5623    
  10  Prefactor     18.209        16.709        .37545E-05   -1.4854    
  11  norm          3.9720        .72684        .73081E-06   -1.5309    
  12  Prefactor     2.9005        1.4985        .15240E-05   -1.5367    
  13  Prefactor     56.348        16.460        .21376E-05   -1.4205    
  14  Prefactor     .24971        2.2283        .10023       -1.5608    
  15  Prefactor     .10000E-03    4.9557        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6019        5.1194        .50586E-04   -1.5385    
  17  Prefactor     5.2652        2.2474        .14014E-05   -1.5249    
  18  Prefactor     26.418        8.4384        .62355E-06   -1.4680    
  19  Prefactor     3.4910        3.7068        .86562E-05   -1.5334    
  20  Prefactor     1.2805        .76940        .71447E-05   -1.5482    
  21  norm          .10000E-03    1.5124        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0030        .83794        .12289E-05   -1.5425    
  23  norm          .70534        .94685        .23002E-05   -1.5540    
  24  Prefactor     .10000E-03    4.1192        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7066        1.5336        .18667E-05   -1.5379    
  26  Prefactor     8.8427        4.5624        .10784E-05   -1.5113    
  27  norm          .16016        .50966        .24713E-05   -1.5628    
  28  Prefactor     3.7664        3.7501        .16643E-05   -1.5320    
  29  Prefactor     .24713E-01    5.2224        .16518       -1.5677    
  30  Prefactor     .42639        .96444        .30457E-05   -1.5577    
  31  norm          3.6284        .64607        .69594E-06   -1.5327    
  32  Prefactor     .10000E-03    2.8390        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0049        .60961E-01    .18746E-05   -.92868    
  34  Prefactor     1.0452        .72524E-01    .23320E-05   -.91236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53357e-09
Minuit parameter uncertainties:
  1  0.414811
  2  7.54445e-07
  3  3.88003
  4  5.26163
  5  0.779191
  6  0.399784
  7  2.15833e-07
  8  7.01287e-07
  9  0.484641
  10  16.7135
  11  0.726837
  12  1.49853
  13  16.461
  14  1.49166
  15  2.3129e-07
  16  5.12024
  17  2.24741
  18  8.43877
  19  3.70704
  20  0.769405
  21  2.2346e-08
  22  0.83794
  23  0.946866
  24  8.40916e-08
  25  1.53367
  26  4.56262
  27  0.509671
  28  3.75036
  29  0.717105
  30  0.964475
  31  0.646075
  32  3.09724e-07
  33  0.0609653
  34  0.0725306
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  2.642e+01  8.439e+00  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.045e+00  7.253e-02  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  1.005e+00  6.097e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.64
Ra Dec: 172.003 59.401
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 1.02e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 3.06e-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) = 72241.1150562
delta logL = 0.557552267725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 72241.1102733
delta logL = 0.562335221737

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   72241.11     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      325 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.744        10.439        .87942E-04    .22752E-04
   2  Index         2.7859        .36298        .87767E-02    .21341E-03
   3  Normalizat    .99236        .58381E-01    .23560E-03    .11473E-02
   4  Prefactor     1.0563        .72575E-01    .29018E-03    .10381E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7442
  Index      = 2.78588
  Normalizat = 0.992362
  Prefactor  = 1.05627
 **********
 **   18 **HESSE 
 **********

 FCN=   72241.11     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.744        8.9689        .35177E-05   -1.4797    
   2  Index         2.7859        .31134        .35107E-03   -.45875    
   3  Normalizat    .99236        .58207E-01    .94239E-05   -.93287    
   4  Prefactor     1.0563        .72395E-01    .11607E-04   -.90877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3599e-10
Minuit parameter uncertainties:
  1  8.96951
  2  0.311589
  3  0.058211
  4  0.0724014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95143': 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) = 72241.110273
delta logL = 0.562335505019

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  2.074e+01  8.970e+00  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  2.786e+00  3.116e-01  0.000e+00  1.000e+01 (-1.000e+00)
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.056e+00  7.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  9.924e-01  5.821e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.87
Ra Dec: 172.003 59.401
Photon Index (Free Index): 2.79 +/- 0.31
Photon Flux (Free Index): 4.00e-08 +/- 1.30e-08
Energy Flux (Free Index): 9.04e-06 +/- 2.64e-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/95143/cmap_HighResolution_677635201_680227201_4FGL_J1128.0+5924_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='9.04e-06', photon_flux_error='1.02e-08', dlogl='5.62e-01', energy_flux='9.59e-06', photon_flux2='4.00e-08', job_status='DONE', time_completed='2022-07-23 05:02:47.404784', photon_index_error2='0.31', photon_index2='2.79', ts='16.64', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.64e-06', EG='1.00', time_epoch_completed='1658577767.4', return_code='0', job_id='95143', GAL2='1.06', EG2='0.99', return_code2='0', energy_flux_error='3.06e-06', photon_flux_error2='1.30e-08', ts2='17.87', photon_index='2.47' WHERE bin_id='170' AND source_name='4FGL J1128.0+5924' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:02:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 95143: <4FGL_J1128.0+5924_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1128.0+5924_monthly_bin170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul 23 01:20:28 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 01:20:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 01:20:29 2022
Terminated at Sat Jul 23 05:02:48 2022
Results reported at Sat Jul 23 05:02:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_monthly_bin170 172.003 59.4015 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1128.0+5924 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13178.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             424.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13338 sec.
    Turnaround time :                            13340 sec.

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

