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 163 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0128.5+4440_daily_bin1740
RA = 22.1438, Dec = 44.6777
tmin = 690336001, tmax = 690595201
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='822707', job_status='RUN', time_executed='2022-11-20 00:10:58.933421', time_epoch_executed='1668931858.93' WHERE source_name='4FGL J0128.5+4440' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822707/ft1_4FGL_J0128.5+4440_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822707/ft1_4FGL_J0128.5+4440_daily_bin1740.fits outfile=/scratch/kocevski/822707/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1740.fits ra=22.1438 dec=44.6777 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.99
user 2.73
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.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/822707/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822707/ltcube_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.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/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits
.....................!
real 14.53
user 14.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822707/ltcube_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits outfile=/scratch/kocevski/822707/expmap_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.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/822707/ltcube_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits
.....................!
real 192.08
user 186.08
sys 5.60

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 171 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0128.5+4440 @ 22.1438 44.6777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits outfile=/scratch/kocevski/822707/cmap_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.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=22.1438 yref=44.6777 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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits outfile=/scratch/kocevski/822707/cmap_HighResolution_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.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=22.1438 yref=44.6777 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.75
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822707/Model_4FGL_J0128.5+4440_daily_bin1740.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits.....................!
real 73.78
user 71.24
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits', '/scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits', expMap='/scratch/kocevski/822707/expmap_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits', expCube='/scratch/kocevski/822707/ltcube_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822707/Model_4FGL_J0128.5+4440_daily_bin1740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0128.5+4440'

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  2.926e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
247        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/822707/ft1_filtered_4FGL_J0128.5+4440_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822707/ft2_4FGL_J0128.5+4440_daily_bin1740.fits
Exposure map: /scratch/kocevski/822707/expmap_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822707/ltcube_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822707/Model_4FGL_J0128.5+4440_daily_bin1740.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) = 5955.74354325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15804E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .72860E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    36.936       1.0000          .0000       .10000E+07
     4 'Prefactor '    .46703       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14559E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .63675       1.0000          .0000       .10000E+07
     7 'norm      '    .86650       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.730       1.0000          .0000       .10000E+07
     9 'norm      '    3.9128       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38377       1.0000          .0000       .10000E+07
    11 'norm      '    .47740E-08   1.0000          .0000       .10000E+07
    12 'norm      '    2.0227       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29507E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .45712E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    159.19       1.0000          .0000       .10000E+07
    16 'norm      '    .50312       1.0000          .0000       .10000E+07
    17 'Normalizat'    .53450       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5955.729     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1323 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20817E-07    114.85       -.37156E-05** at limit **
   2  Prefactor     .16653E-09    29.519        .57839E-06** at limit **
   3  Prefactor     37.778        41.253       -.19400E-05   -.35052E-01
   4  Prefactor     .41633E-08    79.063        .30558E-05** at limit **
   5  Prefactor      .0000        3.8946        .26751E-07** at limit **
   6  Prefactor     .69291        6.0022        .20162E-05    .60075E-02
   7  norm          .15389E-01    556.71        .16315E-04** at limit **
   8  Prefactor     18.914        24.780        .27113E-05    .51219E-02
   9  norm          3.9096        4.3502       -.19214E-06   -.28045E-04
  10  Prefactor     .22204E-09    59.474       -.40207E-05** at limit **
  11  norm           .0000        1.3718       -.61810E-06** at limit **
  12  norm          2.0227        1.3767       -.54794E-07    .11238E-02
  13  Prefactor      .0000        11.191       -.18559E-06** at limit **
  14  Prefactor      .0000        1.9585        .19076E-06** at limit **
  15  Prefactor     163.11        92.650       -.22260E-05   -.33571    
  16  norm          .50226        .49338        .98675E-07   -.19992E-02
  17  Normalizat    .53186        .31731       -.58501E-05   -.33175E-04
  18  Prefactor     1.2421        .11865       -.87681E-06   -.50967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08167e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 37.7778
  Prefactor  = 4.16334e-09
  Prefactor  = 0
  Prefactor  = 0.692906
  norm       = 0.0153893
  Prefactor  = 18.9136
  norm       = 3.90962
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 2.02269
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 163.111
  norm       = 0.502259
  Normalizat = 0.531856
  Prefactor  = 1.24207
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.729     FROM HESSE     STATUS=OK           288 CALLS     1611 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20817E-07    1.9738        .84909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    28.714        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.778        41.739        .16456E-03   -1.5585    
   4  Prefactor     .41633E-08    79.221        .82098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.8709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69291        109.29        .65998E-03   -1.5691    
   7  norm          .15389E-01    1109.2        .48104E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.914        26.622        .23115E-03   -1.5621    
   9  norm          3.9096        4.3449        .50979E-03   -1.5668    
  10  Prefactor     .22204E-09    59.228        .91392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.3578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0227        1.3872        .72731E-03   -1.5680    
  13  Prefactor      .0000        11.116        .16477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.9536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     163.11        126.94        .79265E-04   -1.5453    
  16  norm          .50226        .48293        .78397E-03   -1.5694    
  17  Normalizat    .53186        .35399        .13374       -1.1096    
  18  Prefactor     1.2421        .11910        .33718E-01   -.85046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28501e-05
Minuit parameter uncertainties:
  1  0.000405146
  2  0.000145562
  3  41.7398
  4  0.00114648
  5  2.74804e-07
  6  17.4049
  7  8.26471
  8  26.6218
  9  4.34492
  10  0.00024156
  11  6.5481e-06
  12  1.38724
  13  1.41977e-05
  14  1.93569e-06
  15  126.94
  16  0.48293
  17  0.355502
  18  0.119123
Done.

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

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  2.220e-10  2.416e-04  0.000e+00  1.000e+06 ( 1.000e-14)
247        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.242e+00  1.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  5.319e-01  3.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 22.144 44.678
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822707/likelihoodResults_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.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) = 5955.73743327
delta logL = -0.00810235511381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5955.72933092
delta logL = -2.95676727546e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61784E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .52752       1.0000          .0000       10.000    
     3 'Normalizat'    .53185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5955.729     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      214 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        44.416       -.93954E-06** at limit **
   2  Index         1.4258        7.4032       -.91627E-04     .0000    
   3  Normalizat    .53185        .30005        .83432E-05    .10195E-04
   4  Prefactor     1.2421        .11536        .12650E-05    .97290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.4258
  Normalizat = 0.531852
  Prefactor  = 1.24207
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5955.729     FROM HESSE     STATUS=FAILED        11 CALLS      225 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17376        1.5350       -.91627E-04   -.79639    
   3  Normalizat    .53185        .86558        .83432E-05   -1.1096    
   4  Prefactor     1.2421        1.0907        .12650E-05   -.85046    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.45568e-12
Minuit parameter uncertainties:
  1  4.80666e-05
  2  1.40054
  3  0.8891
  4  1.11163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822707': 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): 101
logL (Free Index) = 5955.72933092
delta logL = 1.03682396002e-10

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  0.000e+00  4.807e-05  0.000e+00  1.000e+06 ( 1.000e-14)
247        Index:  1.426e+00  1.401e+00  0.000e+00  1.000e+01 (-1.000e+00)
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.242e+00  1.112e+00  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  5.319e-01  8.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 22.144 44.678

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/822707/cmap_HighResolution_690336001_690595201_4FGL_J0128.5+4440_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2022-11-20 00:19:52.135866', job_id='822707', GAL2='1.24', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1668932392.14', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1740' AND source_name='4FGL J0128.5+4440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:19:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 822707: <4FGL_J0128.5+4440_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0128.5+4440_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:06 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:07:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:07:59 2022
Terminated at Sun Nov 20 00:19:52 2022
Results reported at Sun Nov 20 00:19:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0128.5+4440_daily_bin1740 22.1438 44.6777 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0128.5+4440 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   533.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            886 sec.

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

