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


Performing analysis on: 4FGL_J0030.2-1647_daily_bin1680
RA = 7.5643, Dec = -16.7975
tmin = 674784001, tmax = 675043201
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='580244', job_status='RUN', time_executed='2022-05-24 00:09:59.185822', time_epoch_executed='1653376199.19' WHERE source_name='4FGL J0030.2-1647' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580244/ft1_4FGL_J0030.2-1647_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580244/ft1_4FGL_J0030.2-1647_daily_bin1680.fits outfile=/scratch/kocevski/580244/ft1_filteredMKT_4FGL_J0030.2-1647_daily_bin1680.fits ra=7.5643 dec=-16.7975 rad=12.0 tmin=674784001.0 tmax=675043201.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.56
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.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/580244/ft1_filteredMKT_4FGL_J0030.2-1647_daily_bin1680.fits evtable="EVENTS" outfile="/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 559

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/580244/ltcube_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.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/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits
.....................!
real 13.71
user 13.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/580244/ltcube_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits outfile=/scratch/kocevski/580244/expmap_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.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/580244/ltcube_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits
.....................!
real 191.10
user 185.80
sys 4.92

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

Setting source of interest to:
4FGL J0030.2-1647 @ 7.5643 -16.7975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits outfile=/scratch/kocevski/580244/cmap_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.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=7.5643 yref=-16.7975 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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits outfile=/scratch/kocevski/580244/cmap_HighResolution_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.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=7.5643 yref=-16.7975 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580244/Model_4FGL_J0030.2-1647_daily_bin1680.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/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits.....................!
real 53.11
user 51.80
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits', '/scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits', expMap='/scratch/kocevski/580244/expmap_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits', expCube='/scratch/kocevski/580244/ltcube_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580244/Model_4FGL_J0030.2-1647_daily_bin1680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0030.2-1647'

4FGL J0030.2-1647
   Spectrum: PowerLaw
92     Prefactor:  2.035e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
93         Index:  1.786e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
94         Scale:  3.910e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580244/ft1_filtered_4FGL_J0030.2-1647_daily_bin1680.fits
Spacecraft file(s): /scratch/kocevski/580244/ft2_4FGL_J0030.2-1647_daily_bin1680.fits
Exposure map: /scratch/kocevski/580244/expmap_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits
Exposure cube: /scratch/kocevski/580244/ltcube_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580244/Model_4FGL_J0030.2-1647_daily_bin1680.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) = 6198.0925787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14693E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2401       1.0000         .10000E-03   10000.    
     5 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.920       1.0000         .10000E-03   10000.    
     9 'norm      '    7.9710       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9344       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26551       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9269       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87338       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6198.073     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1925 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8105         .0000    ** at limit **
   2  norm          .10000E-03    26.145         .0000    ** at limit **
   3  Prefactor     .10000E-03    236.65         .0000    ** at limit **
   4  Prefactor     5.2192        11.495         .0000        .23883E-02
   5  norm          .10000E-03    5.9082         .0000    ** at limit **
   6  Prefactor     2.0248        5.6779         .0000        .10944E-02
   7  Prefactor     .10000E-03    9.1247         .0000    ** at limit **
   8  norm          21.919        12.833         .0000       -.30364E-03
   9  norm          7.9713        5.2624         .0000        .20707E-02
  10  norm          5.9345        3.5682         .0000        .26701E-03
  11  norm          1.3635        5.5582         .0000        .26384E-01
  12  Prefactor     .10000E-03    27.672         .0000    ** at limit **
  13  Prefactor     26.633        19.454         .0000       -.22970E-02
  14  Prefactor     .10000E-03    14.040         .0000    ** at limit **
  15  norm          8.4234        7.0519         .0000        .40925E-03
  16  Prefactor     .23030        2.7974         .0000        .25268E-03
  17  norm          .10000E-03    .21872         .0000    ** at limit **
  18  norm          25.878        6.2326         .0000        .34999E-03
  19  Prefactor     5.9244        6.5231         .0000        .33298E-03
  20  Normalizat    .87338        .15937         .0000        .44360E-04
  21  Prefactor     .96283        .16837         .0000        .37567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.21922
  norm       = 0.0001
  Prefactor  = 2.02477
  Prefactor  = 0.0001
  norm       = 21.9192
  norm       = 7.97129
  norm       = 5.93451
  norm       = 1.36347
  Prefactor  = 0.0001
  Prefactor  = 26.6329
  Prefactor  = 0.0001
  norm       = 8.42342
  Prefactor  = 0.230299
  norm       = 0.0001
  norm       = 25.8785
  Prefactor  = 5.9244
  Normalizat = 0.873382
  Prefactor  = 0.962832
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.073     FROM HESSE     STATUS=OK           319 CALLS     2244 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8127        .12889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    239.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2192        11.393        .87798E-03   -1.5251    
   5  norm          .10000E-03    6.0426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0248        5.6412        .29073E-03   -1.5423    
   7  Prefactor     .10000E-03    9.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.919        12.834        .85553E-04   -1.4771    
   9  norm          7.9713        5.2703        .14056E-03   -1.5143    
  10  norm          5.9345        3.5583        .10972E-03   -1.5221    
  11  norm          1.3635        5.5755        .17448E-02   -1.5474    
  12  Prefactor     .10000E-03    27.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.633        19.461        .77620E-04   -1.4675    
  14  Prefactor     .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4234        7.0529        .13813E-03   -1.5127    
  16  Prefactor     .23030        18.273        .25386E-02   -1.5612    
  17  norm          .10000E-03    .24771        .69534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.878        6.0433        .78750E-04   -1.4690    
  19  Prefactor     5.9244        6.5182        .16494E-03   -1.5221    
  20  Normalizat    .87338        .18522        .24014E-03   -.97402    
  21  Prefactor     .96283        .19626        .24295E-03   -.93979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93726e-09
Minuit parameter uncertainties:
  1  6.58142e-07
  2  1.81331e-05
  3  0.00158945
  4  11.3978
  5  1.47775e-06
  6  5.64264
  7  6.82936e-06
  8  12.8357
  9  5.27062
  10  3.55842
  11  5.51505
  12  4.38043e-05
  13  19.4658
  14  0.000122909
  15  7.05361
  16  4.10316
  17  1.13837e-08
  18  6.04346
  19  6.519
  20  0.185359
  21  0.196408
Done.

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

Extracting fit parameters...

4FGL J0030.2-1647
   Spectrum: PowerLaw
92     Prefactor:  1.000e-04  6.829e-06  1.000e-04  1.000e+04 ( 1.000e-14)
93         Index:  1.786e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
94         Scale:  3.910e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.628e-01  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.734e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 7.564 -16.797
Photon Flux Upper Limit: 3.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580244/likelihoodResults_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.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): 102
logL (Free Index) = 6198.07395393
delta logL = -0.00052135200167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6198.07343279
delta logL = -2.06350705412e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6198.073     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    184.83        .90712E-02** at limit **
   2  Index         1.8000        8.7982        .50000       -.63486E-05
   3  Normalizat    .87338        .18061E-01    .44559E-01    .18168E-04
   4  Prefactor     .96283        .19200E-01    .45802E-01    .13612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80003
  Normalizat = 0.873381
  Prefactor  = 0.962832
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.073     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    244.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8000        7.5601        .50000       -.69449    
   3  Normalizat    .87338        .20922E-01    .24014E-03   -.97402    
   4  Prefactor     .96283        .22245E-01    .24295E-03   -.93979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0307e-09
Minuit parameter uncertainties:
  1  1.60434e-05
  2  19.9569
  3  0.0209221
  4  0.0222448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580244': 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): 102
logL (Free Index) = 6198.07343256
delta logL = 2.06318873097e-08

Extracting fit parameters...

4FGL J0030.2-1647
   Spectrum: PowerLaw
92     Prefactor:  1.000e-04  1.604e-05  1.000e-04  1.000e+04 ( 1.000e-14)
93         Index:  1.800e+00  1.996e+01  0.000e+00  1.000e+01 (-1.000e+00)
94         Scale:  3.910e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.628e-01  2.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.734e-01  2.092e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 7.564 -16.797

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/580244/cmap_HighResolution_674784001_675043201_4FGL_J0030.2-1647_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-03', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2022-05-24 00:19:43.513003', job_id='580244', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1653376783.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1680' AND source_name='4FGL J0030.2-1647' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 00:19:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 580244: <4FGL_J0030.2-1647_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0030.2-1647_daily_bin1680> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 00:04:56 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:07:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:07:40 2022
Terminated at Tue May 24 00:19:44 2022
Results reported at Tue May 24 00:19:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0030.2-1647_daily_bin1680 7.5643 -16.7975 674784001 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0030.2-1647 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            888 sec.

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

