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


Performing analysis on: 4FGL_J0430.3+1654_daily_bin1701
RA = 67.5901, Dec = 16.9093
tmin = 680227201, tmax = 680486401
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='158226', job_status='RUN', time_executed='2022-07-26 00:32:02.619406', time_epoch_executed='1658820722.62' WHERE source_name='4FGL J0430.3+1654' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158226/ft1_4FGL_J0430.3+1654_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158226/ft1_4FGL_J0430.3+1654_daily_bin1701.fits outfile=/scratch/kocevski/158226/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1701.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=680227201.0 tmax=680486401.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.91
user 2.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.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/158226/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 2168

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/158226/ltcube_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.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/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits
.....................!
real 15.89
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/158226/ltcube_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits outfile=/scratch/kocevski/158226/expmap_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.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/158226/ltcube_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits
.....................!
real 193.52
user 187.60
sys 4.99

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 148 point sources and 1 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 J0430.3+1654 @ 67.5901 16.9093

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits outfile=/scratch/kocevski/158226/cmap_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.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=67.5901 yref=16.9093 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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits outfile=/scratch/kocevski/158226/cmap_HighResolution_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.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=67.5901 yref=16.9093 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158226/Model_4FGL_J0430.3+1654_daily_bin1701.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 S 147
Working on...
/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits.....................!
real 457.06
user 454.41
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits', '/scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits', expMap='/scratch/kocevski/158226/expmap_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits', expCube='/scratch/kocevski/158226/ltcube_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158226/Model_4FGL_J0430.3+1654_daily_bin1701.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0430.3+1654'

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  2.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158226/ft1_filtered_4FGL_J0430.3+1654_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/158226/ft2_4FGL_J0430.3+1654_daily_bin1701.fits
Exposure map: /scratch/kocevski/158226/expmap_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits
Exposure cube: /scratch/kocevski/158226/ltcube_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158226/Model_4FGL_J0430.3+1654_daily_bin1701.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) = 22117.2226404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4817       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6988       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22915E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1045       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5921       1.0000         .10000E-03   10000.    
    12 'norm      '    15.323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31101       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1810       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2411       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22117.09     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1623 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.141        64.866       -.96611E-05   -.15547E-04
   2  Prefactor     24.058        23.965        .11085E-05    .57930E-04
   3  Prefactor     1.4815        9.4891        .16790E-04   -.33200E-04
   4  Prefactor     .10000E-03    22.803       -.44894E-06** at limit **
   5  Prefactor     .10000E-03    6.6043       -.50292E-07** at limit **
   6  Prefactor     .10000E-03    36.909       -.43947E-06** at limit **
   7  Prefactor     5.6996        9.6660        .37444E-06   -.15246E-04
   8  norm          3.7588        2.2304        .30122E-07   -.13595E-03
   9  Prefactor     .10000E-03    179.87       -.16647E-05** at limit **
  10  Prefactor     2.1043        3.9570        .74299E-06    .45637E-04
  11  norm          3.5922        1.7397        .41946E-07   -.21692E-03
  12  norm          15.325        21.019        .10721E-06   -.42728E-05
  13  Prefactor     .10000E-03    2.7952       -.10367E-06** at limit **
  14  Prefactor     .10000E-03    1.3369       -.10165E-06** at limit **
  15  norm          .31391        1.4667       -.15230E-06   -.43183E-03
  16  Prefactor     4.1806        3.7708        .11875E-06   -.14519E-04
  17  Normalizat    1.2410        .22652       -.27375E-05   -.55239E-04
  18  Prefactor     .99726        .45060E-01    .32313E-06    .48103E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1411
  Prefactor  = 24.0575
  Prefactor  = 1.48151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69958
  norm       = 3.75883
  Prefactor  = 0.000100001
  Prefactor  = 2.10429
  norm       = 3.59215
  norm       = 15.3247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.313911
  Prefactor  = 4.18061
  Normalizat = 1.24096
  Prefactor  = 0.997262
 **********
 **   18 **HESSE 
 **********

 FCN=   22117.09     FROM HESSE     STATUS=OK           252 CALLS     1875 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.141        64.843        .96931E-04   -1.4880    
   2  Prefactor     24.058        23.997        .81672E-04   -1.4727    
   3  Prefactor     1.4815        9.4968        .17628E-02   -1.5465    
   4  Prefactor     .10000E-03    23.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6996        9.6538        .16826E-03   -1.5230    
   8  norm          3.7588        2.2213        .16411E-03   -1.5320    
   9  Prefactor     .10000E-03    187.58        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1043        3.9400        .28444E-03   -1.5418    
  11  norm          3.5922        1.7360        .13006E-03   -1.5329    
  12  norm          15.325        21.031        .10232E-03   -1.4925    
  13  Prefactor     .10000E-03    2.8170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3879        .33579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31391        4.5661        .34805E-02   -1.5596    
  16  Prefactor     4.1806        3.7605        .19710E-03   -1.5299    
  17  Normalizat    1.2410        .24300        .58734E-03   -.85346    
  18  Prefactor     .99726        .48995E-01    .13479E-03   -.92821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76367e-07
Minuit parameter uncertainties:
  1  65.1111
  2  24.0067
  3  7.5034
  4  0.000159894
  5  7.67624e-06
  6  0.000197885
  7  9.65646
  8  2.2213
  9  0.000923165
  10  3.94046
  11  1.73604
  12  21.0408
  13  1.19515e-05
  14  7.66972e-06
  15  2.39429
  16  3.7607
  17  0.243224
  18  0.048997
Done.

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

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  5.700e+00  9.656e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.973e-01  4.900e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.241e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 67.590 16.909
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158226/likelihoodResults_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.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) = 22117.0512166
delta logL = 0.0428026498339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22117.0240004
delta logL = 0.070018866405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3475       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8102       1.0000          .0000       10.000    
     3 'Normalizat'    1.2258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   22117.02     FROM MIGRAD    STATUS=FAILED        88 CALLS      256 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3468        75.872        .22120E-03   -.78346E-03
   2  Index         2.8103        6.3957        .86540E-02   -.41603E-03
   3  Normalizat    1.2258        .25534        .59044E-03   -.39534E-03
   4  Prefactor     .99865        .51819E-01    .13470E-03   -.16868E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   22117.02     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      353 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3468        75.872        .24258E-03   -1.5342    
   2  Index         2.8103        6.3957        .12064E-02   -.45331    
   3  Normalizat    1.2258        .25534        .18956E-03   -.85808    
   4  Prefactor     .99865        .51819E-01    .46185E-04   -.92775    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22117.02     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      382 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3460        9.4339        .88482E-05   -.15881E-02
   2  Index         2.8104        1.3465        .34616E-03   -.26576E-03
   3  Normalizat    1.2258        .23547        .23618E-04   -.41667E-03
   4  Prefactor     .99865        .48655E-01    .26940E-04   -.17035E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34599
  Index      = 2.81038
  Normalizat = 1.22583
  Prefactor  = 0.998648
 **********
 **   18 **HESSE 
 **********

 FCN=   22117.02     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3460        9.2913        .17696E-05   -1.5342    
   2  Index         2.8104        1.3254        .13846E-04   -.45329    
   3  Normalizat    1.2258        .23541        .47235E-05   -.85808    
   4  Prefactor     .99865        .48651E-01    .53881E-05   -.92775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74751e-09
Minuit parameter uncertainties:
  1  9.29527
  2  1.34541
  3  0.235613
  4  0.0486529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158226': 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) = 22117.0240004
delta logL = 0.0700188851552

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  3.346e+00  9.295e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.810e+00  1.345e+00  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.986e-01  4.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.226e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 67.590 16.909

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/158226/cmap_HighResolution_680227201_680486401_4FGL_J0430.3+1654_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-07-26 00:55:41.894097', job_id='158226', GAL2='1.00', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1658822141.89', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.00e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1701' AND source_name='4FGL J0430.3+1654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 00:55:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 158226: <4FGL_J0430.3+1654_daily_bin1701> in cluster <slac> Done

Job <4FGL_J0430.3+1654_daily_bin1701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul 26 00:05:07 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 00:28:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 00:28:20 2022
Terminated at Tue Jul 26 00:55:42 2022
Results reported at Tue Jul 26 00:55:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_daily_bin1701 67.5901 16.9093 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0430.3+1654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1419.01 sec.
    Max Memory :                                 1108 MB
    Average Memory :                             377.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1642 sec.
    Turnaround time :                            3035 sec.

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

