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


Performing analysis on: 4FGL_J0128.5+4440_daily_bin1745
RA = 22.1438, Dec = 44.6777
tmin = 691632001, tmax = 691891201
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='637069', job_status='RUN', time_executed='2022-12-05 00:05:41.083870', time_epoch_executed='1670227541.08' WHERE source_name='4FGL J0128.5+4440' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637069/ft1_4FGL_J0128.5+4440_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637069/ft1_4FGL_J0128.5+4440_daily_bin1745.fits outfile=/scratch/kocevski/637069/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1745.fits ra=22.1438 dec=44.6777 rad=12.0 tmin=691632001.0 tmax=691891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.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/637069/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.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.55
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 145

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/637069/ltcube_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.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/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits
.....................!
real 12.76
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/637069/ltcube_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits outfile=/scratch/kocevski/637069/expmap_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.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/637069/ltcube_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits
.....................!
real 193.41
user 186.66
sys 5.08

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/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits outfile=/scratch/kocevski/637069/cmap_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.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.68
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits outfile=/scratch/kocevski/637069/cmap_HighResolution_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637069/Model_4FGL_J0128.5+4440_daily_bin1745.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/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits.....................!
real 34.16
user 29.10
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits', '/scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits', expMap='/scratch/kocevski/637069/expmap_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits', expCube='/scratch/kocevski/637069/ltcube_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637069/Model_4FGL_J0128.5+4440_daily_bin1745.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/637069/ft1_filtered_4FGL_J0128.5+4440_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/637069/ft2_4FGL_J0128.5+4440_daily_bin1745.fits
Exposure map: /scratch/kocevski/637069/expmap_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits
Exposure cube: /scratch/kocevski/637069/ltcube_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637069/Model_4FGL_J0128.5+4440_daily_bin1745.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) = 1631.51676786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0924       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.0068       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.4219       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13692E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43965E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .66543E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .28689E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .95782       1.0000          .0000       .10000E+07
     9 'norm      '    13.811       1.0000          .0000       .10000E+07
    10 'Prefactor '    25.547       1.0000          .0000       .10000E+07
    11 'norm      '    1.5250       1.0000          .0000       .10000E+07
    12 'norm      '    .33486E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .49726E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.6135       1.0000          .0000       .10000E+07
    15 'Prefactor '    194.97       1.0000          .0000       .10000E+07
    16 'norm      '    .24597E-06   1.0000          .0000       .10000E+07
    17 'Normalizat'    .68235       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .78978       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=   1631.376     FROM MIGRAD    STATUS=CONVERGED    206 CALLS     1419 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1729        5.6955       -.69042E-07    .83770E-03
   2  Prefactor     5.7062        34.236       -.37988E-05    .20417E-02
   3  Prefactor     9.3914        40.086        .23447E-05   -.13170E-02
   4  Prefactor     .94369E-09    19.343        .90184E-07** at limit **
   5  Prefactor      .0000        2.6627       -.55954E-07** at limit **
   6  Prefactor      .0000        4.7367        .11008E-08** at limit **
   7  norm           .0000        62.729        .35330E-06** at limit **
   8  Prefactor     1.3641        41.573        .16547E-05    .63929E-03
   9  norm          13.347        17.143       -.14881E-05    .13579E-02
  10  Prefactor     66.574        159.27       -.10462E-04    .66326E-03
  11  norm          1.5437        3.2163       -.30067E-07   -.34820E-03
  12  norm          .22204E-09    4.2330       -.16627E-07** at limit **
  13  Prefactor     .55511E-10    29.239       -.98450E-06** at limit **
  14  Prefactor     3.8846        17.715       -.36437E-06    .53972E-04
  15  Prefactor     258.94        356.65        .64275E-05   -.80232E-04
  16  norm           .0000        1.6181       -.31676E-06** at limit **
  17  Normalizat    .65263        .45592        .29937E-04    .44348E-04
  18  Prefactor     .79155        .19406       -.32656E-05    .10215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17286
  Prefactor  = 5.70622
  Prefactor  = 9.39136
  Prefactor  = 9.4369e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.36411
  norm       = 13.3469
  Prefactor  = 66.5741
  norm       = 1.54374
  norm       = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88462
  Prefactor  = 258.942
  norm       = 0
  Normalizat = 0.652626
  Prefactor  = 0.791555
 **********
 **   18 **HESSE 
 **********

 FCN=   1631.376     FROM HESSE     STATUS=OK           282 CALLS     1701 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1729        5.7383        .40652E-03   -1.5658    
   2  Prefactor     5.7062        36.901        .44918E-03   -1.5660    
   3  Prefactor     9.3914        41.962        .34520E-03   -1.5647    
   4  Prefactor     .94369E-09    19.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.6663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.7399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        62.577        .16520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3641        40.816        .42266E-03   -1.5685    
   9  norm          13.347        17.060        .26926E-03   -1.5635    
  10  Prefactor     66.574        160.26        .19789E-03   -1.5545    
  11  norm          1.5437        3.2421        .86445E-03   -1.5683    
  12  norm          .22204E-09    4.2014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    29.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8846        18.631        .46836E-03   -1.5669    
  15  Prefactor     258.94        356.61        .71623E-04   -1.5386    
  16  norm           .0000        1.5977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .65263        .41326        .82293E-01   -1.0579    
  18  Prefactor     .79155        .17070        .43584E-01   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40836e-09
Minuit parameter uncertainties:
  1  5.73834
  2  29.0218
  3  39.7033
  4  0.000268909
  5  8.18818e-06
  6  1.40142e-05
  7  6.47344e-05
  8  14.9237
  9  17.0601
  10  160.274
  11  3.24209
  12  6.00228e-05
  13  8.93343e-05
  14  17.0146
  15  356.641
  16  1.14104e-05
  17  0.415247
  18  0.170814
Done.

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

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  6.657e+01  1.603e+02  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:  7.916e-01  1.708e-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:  6.526e-01  4.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 22.144 44.678
Photon Flux Upper Limit: 3.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637069/likelihoodResults_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.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) = 1630.39327849
delta logL = 0.982606292608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1630.26722293
delta logL = 1.10866185084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80178       1.0000          .0000       .10000E+07
     2 'Index     '    4.5482       1.0000          .0000       10.000    
     3 'Normalizat'    .42228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84717       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   1630.267     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      311 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80133        18.931        .24583E-05   -.69675E-01
   2  Index         4.5486        3.2127        .18625E-02   -.92875E-03
   3  Normalizat    .42221        .40073        .44524E-03   -.25553E-03
   4  Prefactor     .84723        .17831        .14623E-03   -.68621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.801332
  Index      = 4.54857
  Normalizat = 0.422211
  Prefactor  = 0.847227
 **********
 **   18 **HESSE 
 **********

 FCN=   1630.267     FROM HESSE     STATUS=OK            23 CALLS      334 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80133        6.5193        .49167E-06   -1.5690    
   2  Index         4.5486        1.9914        .74500E-04   -.90409E-01
   3  Normalizat    .42221        .42235        .89047E-04   -1.1617    
   4  Prefactor     .84723        .18749        .29246E-04   -.98010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21322e-09
Minuit parameter uncertainties:
  1  4.57128
  2  2.04869
  3  0.425597
  4  0.187633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637069': 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) = 1630.26722248
delta logL = 1.10866230063

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  8.013e-01  4.571e+00  0.000e+00  1.000e+06 ( 1.000e-14)
247        Index:  4.549e+00  2.049e+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:  8.472e-01  1.876e-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:  4.222e-01  4.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 22.144 44.678
Photon Index (Free Index): 4.55 +/- 2.05
Photon Flux (Free Index): 3.84e-07 +/- 3.00e-07
Energy Flux (Free Index): 5.34e-05 +/- 4.00e-05

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/637069/cmap_HighResolution_691632001_691891201_4FGL_J0128.5+4440_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', comment='SUCCESS', energy_flux2='5.34e-05', dlogl='1.11e+00', photon_flux2='3.84e-07', job_status='DONE', time_completed='2022-12-05 00:12:23.397979', photon_index_error2='2.05', photon_index2='4.55', ts='0.22', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='3.52e-07', energy_flux_error2='4.00e-05', EG='0.65', time_epoch_completed='1670227943.4', return_code='0', job_id='637069', GAL2='0.85', EG2='0.42', return_code2='0', photon_flux_error2='3.00e-07', ts2='2.81', photon_index='2.13' WHERE bin_id='1745' AND source_name='4FGL J0128.5+4440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:12:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 637069: <4FGL_J0128.5+4440_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0128.5+4440_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:04:51 2022
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:04:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:04:52 2022
Terminated at Mon Dec  5 00:12:23 2022
Results reported at Mon Dec  5 00:12:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0128.5+4440_daily_bin1745 22.1438 44.6777 691632001 691891201 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 :                                   380.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   451 sec.
    Turnaround time :                            452 sec.

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

