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


Performing analysis on: 4FGL_J0107.4+0334_weekly_bin251
RA = 16.8508, Dec = 3.5691
tmin = 390787201, tmax = 391392001
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='67678', job_status='RUN', time_executed='2021-07-03 15:58:42.742367', time_epoch_executed='1625353122.74' WHERE source_name='4FGL J0107.4+0334' and cadence='weekly' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67678

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

Retrieving the FT1 file...

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

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

Retrieving 111 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67678/ft1_4FGL_J0107.4+0334_weekly_bin251.fits


Retrieving the FT1 file...

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

Retrieving 111 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67678/ft1_4FGL_J0107.4+0334_weekly_bin251.fits outfile=/scratch/kocevski/67678/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin251.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=390787201.0 tmax=391392001.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 11.55
user 10.99
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.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/67678/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.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.87
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/67678/ltcube_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.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/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits
.....................!
real 26.81
user 26.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/67678/ltcube_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits outfile=/scratch/kocevski/67678/expmap_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.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/67678/ltcube_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits
.....................!
real 194.45
user 186.91
sys 4.93

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

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits outfile=/scratch/kocevski/67678/cmap_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.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=16.8508 yref=3.5691 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits outfile=/scratch/kocevski/67678/cmap_HighResolution_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.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=16.8508 yref=3.5691 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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67678/Model_4FGL_J0107.4+0334_weekly_bin251.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/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits.....................!
real 125.76
user 123.39
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits', '/scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits', expMap='/scratch/kocevski/67678/expmap_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits', expCube='/scratch/kocevski/67678/ltcube_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67678/Model_4FGL_J0107.4+0334_weekly_bin251.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/67678/ft1_filtered_4FGL_J0107.4+0334_weekly_bin251.fits
Spacecraft file(s): /scratch/kocevski/67678/ft2_4FGL_J0107.4+0334_weekly_bin251.fits
Exposure map: /scratch/kocevski/67678/expmap_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits
Exposure cube: /scratch/kocevski/67678/ltcube_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67678/Model_4FGL_J0107.4+0334_weekly_bin251.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) = 12758.3634919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9260       1.0000         .10000E-03   10000.    
     3 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0218       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27474E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1134       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.042       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2102       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89887       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12758.32     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1961 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6068        2.7165       -.28966E-07   -.26853E-04
   2  Prefactor     7.9269        8.3783       -.14452E-06    .55779E-05
   3  norm          .10000E-03    7.9650       -.21357E-06** at limit **
   4  Prefactor     6.0328        10.750        .17324E-06    .80521E-04
   5  Prefactor     .10006E-03    3.0033       -.82281E-06** at limit **
   6  Prefactor     1.1223        1.4374       -.44266E-07   -.70986E-04
   7  Prefactor     3.1135        2.6102        .76082E-06    .10997E-03
   8  norm          2.6479        3.6612        .62110E-06    .45804E-04
   9  Prefactor     57.030        23.776       -.62574E-05   -.19597E-04
  10  norm          1.3073        1.3274        .12815E-07   -.68296E-03
  11  Prefactor     36.822        22.850        .14152E-05    .28166E-04
  12  Prefactor     .10000E-03    31.099        .75818E-05** at limit **
  13  norm          8.1294        1.4000       -.74112E-08   -.15575E-03
  14  Prefactor     .10000E-03    34.287       -.48141E-05** at limit **
  15  Prefactor     5.2097        6.9368       -.13413E-06   -.14719E-03
  16  Prefactor     .10000E-03    1.6333        .11735E-07** at limit **
  17  Prefactor     .10000E-03    2.2026        .89669E-07** at limit **
  18  Prefactor     .10000E-03    13.672        .49316E-06** at limit **
  19  Prefactor     .10000E-03    .70302        .44633E-08** at limit **
  20  Normalizat    .89891        .13127        .50704E-06    .14568E-03
  21  Prefactor     .93894        .10079        .10900E-06    .25195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60684
  Prefactor  = 7.9269
  norm       = 0.0001
  Prefactor  = 6.03284
  Prefactor  = 0.000100063
  Prefactor  = 1.12232
  Prefactor  = 3.11345
  norm       = 2.64794
  Prefactor  = 57.0296
  norm       = 1.30728
  Prefactor  = 36.822
  Prefactor  = 0.0001
  norm       = 8.12936
  Prefactor  = 0.0001
  Prefactor  = 5.20968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898912
  Prefactor  = 0.938938
 **********
 **   18 **HESSE 
 **********

 FCN=   12758.32     FROM HESSE     STATUS=OK           325 CALLS     2286 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6068        2.6816        .23108E-03   -1.5454    
   2  Prefactor     7.9269        8.3496        .14242E-03   -1.5145    
   3  norm          .10000E-03    8.2965        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0328        10.529        .81812E-03   -1.5217    
   5  Prefactor     .10006E-03    25.246        .36354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1223        1.4079        .14647E-03   -1.5496    
   7  Prefactor     3.1135        2.5918        .15085E-03   -1.5355    
   8  norm          2.6479        3.6348        .23813E-03   -1.5383    
   9  Prefactor     57.030        23.791        .53116E-04   -1.4196    
  10  norm          1.3073        7.0647        .19283E-02   -1.5479    
  11  Prefactor     36.822        22.847        .66049E-04   -1.4494    
  12  Prefactor     .10000E-03    31.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1294        1.4027        .52479E-04   -1.5138    
  14  Prefactor     .10000E-03    34.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2097        6.9994        .88054E-03   -1.5251    
  16  Prefactor     .10000E-03    1.6456        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7729        .32567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .70522        .92483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89891        .15171        .27908E-03   -.96498    
  21  Prefactor     .93894        .11750        .21593E-03   -.94793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56295e-09
Minuit parameter uncertainties:
  1  2.68182
  2  8.35085
  3  7.36992e-06
  4  10.5322
  5  0.00252878
  6  1.4079
  7  2.59185
  8  3.6351
  9  23.7945
  10  6.07888
  11  22.8519
  12  1.6405e-05
  13  1.40268
  14  0.000145244
  15  7.00054
  16  2.48988e-06
  17  2.16551e-05
  18  4.91889e-06
  19  3.31134e-07
  20  0.151779
  21  0.117533
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.640e-05  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.389e-01  1.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.989e-01  1.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 4.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67678/likelihoodResults_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.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) = 12758.3174886
delta logL = -0.000152995098688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12758.3173357
delta logL = -9.51276888372e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12758.32     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    11.250        .90712E-02** at limit **
   2  Index         2.6777        7.3221        .50000        .27839E-05
   3  Normalizat    .89891        .19906E-02    .44888E-01   -.17720E-03
   4  Prefactor     .93894        .15794E-02    .45499E-01   -.40450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.67771
  Normalizat = 0.898913
  Prefactor  = 0.938936
 **********
 **   18 **HESSE 
 **********

 FCN=   12758.32     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      261 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    139.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6777        7.9281        .50000       -.48302    
   3  Normalizat    .89891        .70306E-02    .27908E-03   -.96498    
   4  Prefactor     .93894        .55793E-02    .21593E-03   -.94794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04005e-08
Minuit parameter uncertainties:
  1  0.00307996
  2  244.782
  3  0.00703063
  4  0.00557928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67678': 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) = 12758.3173357
delta logL = -8.44811438583e-08

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.080e-03  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.678e+00  2.448e+02  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.389e-01  5.579e-03  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.989e-01  7.031e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

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/67678/cmap_HighResolution_390787201_391392001_4FGL_J0107.4+0334_weekly_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-07-03 16:14:42.952163', job_id='67678', GAL2='0.94', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1625354082.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-8.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='251' AND source_name='4FGL J0107.4+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 16:14:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 67678: <4FGL_J0107.4+0334_weekly_bin251> in cluster <slac> Done

Job <4FGL_J0107.4+0334_weekly_bin251> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul  3 15:58:24 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 15:58:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 15:58:25 2021
Terminated at Sat Jul  3 16:14:43 2021
Results reported at Sat Jul  3 16:14:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_weekly_bin251 16.8508 3.5691 390787201 391392001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0107.4+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   946.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

