aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 2 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 = 17258
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0011.4+0057_weekly_bin631
RA = 2.8551, Dec = 0.9646
tmin = 620611201, tmax = 621216001
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='763175', job_status='RUN', time_executed='2021-07-02 22:25:54.116979', time_epoch_executed='1625289954.12' WHERE source_name='4FGL J0011.4+0057' and cadence='weekly' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763175

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763175/ft1_4FGL_J0011.4+0057_weekly_bin631.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763175/ft1_4FGL_J0011.4+0057_weekly_bin631.fits outfile=/scratch/kocevski/763175/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin631.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=620611201.0 tmax=621216001.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.22
user 6.94
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.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/763175/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin631.fits evtable="EVENTS" outfile="/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.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.57
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/763175/ltcube_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.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/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits
.....................!
real 28.72
user 28.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/763175/ltcube_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits outfile=/scratch/kocevski/763175/expmap_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.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/763175/ltcube_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits
.....................!
real 191.23
user 185.90
sys 4.98

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

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits outfile=/scratch/kocevski/763175/cmap_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.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=2.8551 yref=0.9646 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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits outfile=/scratch/kocevski/763175/cmap_HighResolution_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.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=2.8551 yref=0.9646 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.60
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763175/Model_4FGL_J0011.4+0057_weekly_bin631.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/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits....................!
real 51.60
user 45.31
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits', '/scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits', expMap='/scratch/kocevski/763175/expmap_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits', expCube='/scratch/kocevski/763175/ltcube_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/763175/Model_4FGL_J0011.4+0057_weekly_bin631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/763175/ft1_filtered_4FGL_J0011.4+0057_weekly_bin631.fits
Spacecraft file(s): /scratch/kocevski/763175/ft2_4FGL_J0011.4+0057_weekly_bin631.fits
Exposure map: /scratch/kocevski/763175/expmap_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits
Exposure cube: /scratch/kocevski/763175/ltcube_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/763175/Model_4FGL_J0011.4+0057_weekly_bin631.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) = 3786.8168221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.328       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.208       1.0000         .10000E-03   10000.    
     7 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5515       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13942E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3120       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    33.419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70755       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3786.814     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     3305 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0945        .28106E-06** at limit **
   2  Prefactor     25.274        99.704       -.89757E-04   -.12305E-05
   3  Prefactor     .10000E-03    8.2476        .17575E-08** at limit **
   4  Prefactor     .10000E-03    5.9060        .52962E-06** at limit **
   5  norm          2.3882        3.3022       -.10251E-06   -.12685E-03
   6  Prefactor     36.209        34.349        .88173E-05    .18552E-04
   7  norm          .10000E-03    3.2624        .15936E-06** at limit **
   8  norm          10.395        6.4345       -.33538E-06   -.92410E-04
   9  Prefactor     .10000E-03    9.6021        .14757E-07** at limit **
  10  norm          16.080        14.269       -.52827E-06   -.25055E-05
  11  Prefactor     5.5512        3.0551       -.14057E-06    .17592E-04
  12  Prefactor     3.6987        6.0661       -.83407E-06   -.30639E-03
  13  Prefactor     .10000E-03    43.478       -.24342E-05** at limit **
  14  Prefactor     .10000E-03    153.46        .15732E-05** at limit **
  15  Prefactor     3.3165        70.917       -.15756E-04   -.68466E-04
  16  Prefactor     .10000E-03    44.316        .15171E-05** at limit **
  17  norm          33.428        52.687        .58569E-05    .69984E-04
  18  Prefactor     .10000E-03    5.3535        .19952E-06** at limit **
  19  Prefactor     .10000E-03    35.393        .73038E-06** at limit **
  20  Prefactor     .10000E-03    17.271       -.72884E-07** at limit **
  21  Prefactor     31.303        34.795       -.46832E-06    .27947E-04
  22  Prefactor     .10000E-03    5.4486        .95071E-07** at limit **
  23  Normalizat    .70761        .24545        .52672E-05   -.44152E-04
  24  Prefactor     .85183        .15813       -.87169E-06    .14510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.2744
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.38816
  Prefactor  = 36.2094
  norm       = 0.0001
  norm       = 10.3946
  Prefactor  = 0.0001
  norm       = 16.08
  Prefactor  = 5.55117
  Prefactor  = 3.69868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31652
  Prefactor  = 0.0001
  norm       = 33.4281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3032
  Prefactor  = 0.0001
  Normalizat = 0.70761
  Prefactor  = 0.851827
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.814     FROM HESSE     STATUS=OK           391 CALLS     3696 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1007        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.274        99.417        .79598E-04   -1.4702    
   3  Prefactor     .10000E-03    8.2503        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9237        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3882        3.2868        .12617E-03   -1.5399    
   6  Prefactor     36.209        34.377        .66602E-04   -1.4504    
   7  norm          .10000E-03    3.2690        .10839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.395        6.4337        .11613E-03   -1.5063    
   9  Prefactor     .10000E-03    9.6348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.080        14.282        .99883E-04   -1.4906    
  11  Prefactor     5.5512        3.0602        .76655E-04   -1.5237    
  12  Prefactor     3.6987        6.0629        .18494E-03   -1.5323    
  13  Prefactor     .10000E-03    43.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    153.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3165        66.459        .22244E-03   -1.5344    
  16  Prefactor     .10000E-03    44.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          33.428        50.805        .69317E-04   -1.4551    
  18  Prefactor     .10000E-03    5.3831        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.303        34.923        .71608E-04   -1.4588    
  22  Prefactor     .10000E-03    5.4514        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70761        .28182        .31220E-03   -1.0359    
  24  Prefactor     .85183        .18229        .19973E-03   -.97845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06021e-10
Minuit parameter uncertainties:
  1  6.68089e-05
  2  100.078
  3  9.3771e-08
  4  0.000134248
  5  3.28703
  6  34.3956
  7  3.35651e-05
  8  6.43415
  9  1.92543e-05
  10  14.2849
  11  3.06027
  12  6.06394
  13  6.30101e-05
  14  7.00996e-05
  15  29.7302
  16  0.000106042
  17  50.8711
  18  5.24237e-05
  19  4.54131e-05
  20  2.57804e-05
  21  34.9461
  22  1.59401e-05
  23  0.282398
  24  0.182417
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.000e-04  9.377e-08  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.518e-01  1.824e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.076e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763175/likelihoodResults_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.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) = 3786.81416843
delta logL = -0.000574650659928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3786.81359637
delta logL = -2.59055877905e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3076       1.0000          .0000       10.000    
     3 'Normalizat'    .70797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   3786.814     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.859        .17713E-01** at limit **
   2  Index         1.7449        8.0540        .50000        .43073E-06
   3  Normalizat    .70761        .89761E-02    .31220E-03   -.26849E-03
   4  Prefactor     .85182        .63063E-02    .19973E-03   -.41733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7449
  Normalizat = 0.707612
  Prefactor  = 0.851824
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.814     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    248.91        .20520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7449        5.6946        .50000       -.70893    
   3  Normalizat    .70761        .27981E-01    .12488E-04   -1.0359    
   4  Prefactor     .85182        .19658E-01    .39946E-04   -.97845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.57164e-09
Minuit parameter uncertainties:
  1  0.000326303
  2  836.461
  3  0.0279812
  4  0.0196586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763175': 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) = 3786.81359201
delta logL = 1.7728975763e-06

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.000e-04  3.263e-04  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  1.745e+00  8.365e+02  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.518e-01  1.966e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.076e-01  2.798e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 2.855 0.965

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/763175/cmap_HighResolution_620611201_621216001_4FGL_J0011.4+0057_weekly_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-07-02 22:36:11.805228', job_id='763175', GAL2='0.85', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1625290571.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='631' AND source_name='4FGL J0011.4+0057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  2 22:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 763175: <4FGL_J0011.4+0057_weekly_bin631> in cluster <slac> Done

Job <4FGL_J0011.4+0057_weekly_bin631> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Jul  2 22:25:33 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  2 22:25:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  2 22:25:43 2021
Terminated at Fri Jul  2 22:36:12 2021
Results reported at Fri Jul  2 22:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_weekly_bin631 2.8551 0.9646 620611201 621216001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.04 sec.
    Max Memory :                                 620 MB
    Average Memory :                             293.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            639 sec.

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

