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


Performing analysis on: 4FGL_J0946.6+1016_weekly_bin720
RA = 146.661, Dec = 10.277
tmin = 674438401, 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='606013', job_status='RUN', time_executed='2022-05-24 01:32:54.443818', time_epoch_executed='1653381174.44' WHERE source_name='4FGL J0946.6+1016' and cadence='weekly' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606013

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=674438401.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>=674438401.0 && nMetStart<675043201.0' /Data/Flight/Level1/LPA

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606013/ft1_4FGL_J0946.6+1016_weekly_bin720.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606013/ft1_4FGL_J0946.6+1016_weekly_bin720.fits outfile=/scratch/kocevski/606013/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin720.fits ra=146.661 dec=10.277 rad=12.0 tmin=674438401.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 7.56
user 7.22
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.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/606013/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin720.fits evtable="EVENTS" outfile="/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.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.38
sys 0.16

Number of photons that the gtmktime cut: 1224

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/606013/ltcube_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.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/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits
.....................!
real 30.20
user 29.74
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/606013/ltcube_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits outfile=/scratch/kocevski/606013/expmap_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.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/606013/ltcube_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits
.....................!
real 191.97
user 185.44
sys 6.07

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

Setting source of interest to:
4FGL J0946.6+1016 @ 146.661 10.277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits outfile=/scratch/kocevski/606013/cmap_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.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=146.661 yref=10.277 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits outfile=/scratch/kocevski/606013/cmap_HighResolution_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.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=146.661 yref=10.277 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.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606013/Model_4FGL_J0946.6+1016_weekly_bin720.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/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits.....................!
real 121.93
user 120.35
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits', '/scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits', expMap='/scratch/kocevski/606013/expmap_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits', expCube='/scratch/kocevski/606013/ltcube_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606013/Model_4FGL_J0946.6+1016_weekly_bin720.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0946.6+1016'

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/606013/ft1_filtered_4FGL_J0946.6+1016_weekly_bin720.fits
Spacecraft file(s): /scratch/kocevski/606013/ft2_4FGL_J0946.6+1016_weekly_bin720.fits
Exposure map: /scratch/kocevski/606013/expmap_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits
Exposure cube: /scratch/kocevski/606013/ltcube_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606013/Model_4FGL_J0946.6+1016_weekly_bin720.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) = 13956.9462031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8616       1.0000         .10000E-03   10000.    
     4 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.695       1.0000         .10000E-03   10000.    
     6 'norm      '    .54962       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5740       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81965E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9896       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13956.93     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1510 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6134        .17445E-06** at limit **
   2  Prefactor     .10000E-03    .56607        .16347E-06** at limit **
   3  Prefactor     8.8541        10.055       -.29605E-06    .12364E-04
   4  norm          .10000E-03    .35047       -.51889E-07** at limit **
   5  Prefactor     25.737        44.441       -.93165E-06   -.27298E-04
   6  norm          .54956        .42315        .12796E-06   -.11315E-05
   7  Prefactor     .10000E-03    13.006       -.12871E-06** at limit **
   8  Prefactor     4.5786        5.7244        .65201E-07    .14016E-03
   9  norm          1.1855        8.3723        .41783E-05   -.37262E-04
  10  Prefactor     .10000E-03    3.0179       -.92111E-06** at limit **
  11  Prefactor     18.242        37.151        .40117E-05    .40812E-04
  12  Prefactor     11.739        26.092       -.11478E-05   -.53904E-04
  13  Prefactor     .10000E-03    24.813       -.25825E-05** at limit **
  14  Prefactor     9.0072        8.3049        .15042E-05    .19384E-03
  15  Normalizat    1.2196        .12907        .98129E-06   -.11091E-03
  16  Prefactor     .97027        .10753       -.95831E-06    .45986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8541
  norm       = 0.0001
  Prefactor  = 25.7365
  norm       = 0.549559
  Prefactor  = 0.0001
  Prefactor  = 4.57863
  norm       = 1.1855
  Prefactor  = 0.0001
  Prefactor  = 18.2416
  Prefactor  = 11.7395
  Prefactor  = 0.0001
  Prefactor  = 9.00716
  Normalizat = 1.21959
  Prefactor  = 0.97027
 **********
 **   18 **HESSE 
 **********

 FCN=   13956.93     FROM HESSE     STATUS=OK           207 CALLS     1717 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .57002        .86705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8541        10.032        .13465E-03   -1.5113    
   4  norm          .10000E-03    .68172        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.737        44.386        .79027E-04   -1.4693    
   6  norm          .54956        .40656        .63422E-03   -1.5560    
   7  Prefactor     .10000E-03    13.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5786        5.7220        .18822E-03   -1.5280    
   9  norm          1.1855        8.5139        .20974E-02   -1.5490    
  10  Prefactor     .10000E-03    11.684        .38308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.242        37.787        .94025E-04   -1.4854    
  12  Prefactor     11.739        26.012        .11675E-03   -1.5023    
  13  Prefactor     .10000E-03    25.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0072        8.3543        .13368E-03   -1.5108    
  15  Normalizat    1.2196        .14971        .24733E-03   -.86000    
  16  Prefactor     .97027        .12486        .23192E-03   -.93727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08851e-09
Minuit parameter uncertainties:
  1  6.12329e-07
  2  1.60509e-06
  3  10.0339
  4  1.60172e-05
  5  44.4427
  6  0.406562
  7  7.14948e-06
  8  5.72267
  9  6.35496
  10  0.000151521
  11  37.8364
  12  26.0366
  13  9.3178e-05
  14  8.35537
  15  0.149761
  16  0.124894
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  1.602e-05  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.703e-01  1.249e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.220e+00  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.661 10.277
Photon Flux Upper Limit: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606013/likelihoodResults_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.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) = 13956.9366381
delta logL = -0.00701554588159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13956.9296011
delta logL = 2.15304098674e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11124E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9590       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+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=   13956.93     FROM MIGRAD    STATUS=FAILED        93 CALLS      286 TOTAL
                     EDM=   .54E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10068E-03    261.81        .10065E-02** at limit **
   2  alpha         3.1430        3.6065        .16826       -.65206E-05
   3  Normalizat    1.2196        .86692E-01    .24733E-03    .82270E-03
   4  Prefactor     .97027        .72009E-01    .23192E-03   -.60784E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13956.93     FROM SIMPLEX   STATUS=PROGRESS     142 CALLS      428 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    261.81        .12400E-03** at limit **
   2  alpha         3.1429        3.6065        .40953E-04   -.65206E-05
   3  Normalizat    1.2196        .86692E-01    .21908E-05    .82270E-03
   4  Prefactor     .97026        .72009E-01    .17284E-05   -.60784E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13956.93     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      462 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2182        .20129E-03** at limit **
   2  alpha         3.1666        3.1000        .67302E-02    .11351E-06
   3  Normalizat    1.2196        .14603        .49466E-04    .11363E-03
   4  Prefactor     .97027        .12440        .92769E-05    .39215E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.16657
  Normalizat = 1.21959
  Prefactor  = 0.97027
 **********
 **   18 **HESSE 
 **********

 FCN=   13956.93     FROM HESSE     STATUS=OK            23 CALLS      485 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2185        .40258E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1666        3.1406        .13460E-02    .26989    
   3  Normalizat    1.2196        .14602        .98932E-05   -.86000    
   4  Prefactor     .97027        .12439        .18554E-05   -.93727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94878e-11
Minuit parameter uncertainties:
  1  6.63442e-06
  2  92.0849
  3  0.146068
  4  0.124429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606013': 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) = 13956.9295905
delta logL = 3.20552571793e-05

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  6.634e-06  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  3.167e+00  9.208e+01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.703e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.220e+00  1.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.661 10.277

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/606013/cmap_HighResolution_674438401_675043201_4FGL_J0946.6+1016_weekly_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2022-05-24 01:46:37.118331', job_id='606013', GAL2='0.97', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1653381997.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.21e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='720' AND source_name='4FGL J0946.6+1016' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 24 01:46:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 606013: <4FGL_J0946.6+1016_weekly_bin720> in cluster <slac> Done

Job <4FGL_J0946.6+1016_weekly_bin720> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 01:30:36 2022
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:30:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:30:38 2022
Terminated at Tue May 24 01:46:38 2022
Results reported at Tue May 24 01:46:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_weekly_bin720 146.661 10.277 674438401 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0946.6+1016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

