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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 17301
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0107.4+0334_weekly_bin355
RA = 16.8508, Dec = 3.5691
tmin = 453686401, tmax = 454291201
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='68715', job_status='RUN', time_executed='2021-07-03 16:04:43.390544', time_epoch_executed='1625353483.39' WHERE source_name='4FGL J0107.4+0334' and cadence='weekly' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68715

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68715/ft1_4FGL_J0107.4+0334_weekly_bin355.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68715/ft1_4FGL_J0107.4+0334_weekly_bin355.fits outfile=/scratch/kocevski/68715/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin355.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=453686401.0 tmax=454291201.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.38
user 6.19
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.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/68715/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin355.fits evtable="EVENTS" outfile="/scratch/kocevski/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.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 1.29
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits" evtable="EVENTS" scfile=/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits sctable="SC_DATA" outfile=/scratch/kocevski/68715/ltcube_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.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/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits
.....................!
real 22.33
user 21.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/68715/ltcube_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits outfile=/scratch/kocevski/68715/expmap_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.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/68715/ltcube_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits
.....................!
real 156.26
user 150.68
sys 4.13

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/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits scfile=/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits outfile=/scratch/kocevski/68715/cmap_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.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.78
user 0.33
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits scfile=/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits outfile=/scratch/kocevski/68715/cmap_HighResolution_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.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.63
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits', '/scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits', expMap='/scratch/kocevski/68715/expmap_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits', expCube='/scratch/kocevski/68715/ltcube_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68715/Model_4FGL_J0107.4+0334_weekly_bin355.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/68715/ft1_filtered_4FGL_J0107.4+0334_weekly_bin355.fits
Spacecraft file(s): /scratch/kocevski/68715/ft2_4FGL_J0107.4+0334_weekly_bin355.fits
Exposure map: /scratch/kocevski/68715/expmap_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits
Exposure cube: /scratch/kocevski/68715/ltcube_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68715/Model_4FGL_J0107.4+0334_weekly_bin355.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) = 12626.3725398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5637       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5441       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9233       1.0000         .10000E-03   10000.    
     8 'norm      '    .10661E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.522       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3733       1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.788       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95402E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0273       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3248       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86724       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12626.37     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1962 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5635        2.0344        .13789E-06    .14008E-04
   2  Prefactor     8.5446        7.1861        .31037E-07    .20707E-03
   3  norm          1.7047        4.3721        .63515E-07   -.10358E-03
   4  Prefactor     9.7461        9.4226       -.17395E-06    .55402E-03
   5  Prefactor     2.9547        2.7823       -.15594E-06   -.58485E-04
   6  Prefactor     .10000E-03    .37658       -.12987E-06** at limit **
   7  Prefactor     3.9238        2.3837       -.88669E-07   -.36624E-04
   8  norm          .10000E-03    5.0919        .72844E-06** at limit **
   9  Prefactor     12.400        6.4399        .45600E-06    .24196E-02
  10  norm          .10000E-03    4.9277       -.67993E-06** at limit **
  11  Prefactor     .11425E-02    9957.4        .35093E-03** at limit **
  12  Prefactor     27.530        5.2467       -.82813E-06    .29558E-02
  13  norm          3.3735        1.1053       -.33445E-07   -.49750E-04
  14  Prefactor     88.531        14.751        .15883E-05   -.99205E-02
  15  Prefactor     11.797        8.3088       -.39529E-06    .13318E-04
  16  Prefactor     .10000E-03    4.3532        .94814E-06** at limit **
  17  Prefactor     .17275        55.549       -.50745E-05    .17954E-04
  18  Prefactor     8.0256        17.232       -.11228E-05   -.13279E-02
  19  Prefactor     2.3249        2.2167        .84419E-07    .35234E-04
  20  Normalizat    .86720        .15319        .71406E-06    .22827E-04
  21  Prefactor     1.1263        .12434       -.37837E-06    .61247E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56346
  Prefactor  = 8.54458
  norm       = 1.7047
  Prefactor  = 9.74614
  Prefactor  = 2.95472
  Prefactor  = 0.0001
  Prefactor  = 3.92376
  norm       = 0.0001
  Prefactor  = 12.4004
  norm       = 0.0001
  Prefactor  = 0.00114246
  Prefactor  = 27.5298
  norm       = 3.37345
  Prefactor  = 88.5309
  Prefactor  = 11.7975
  Prefactor  = 0.0001
  Prefactor  = 0.172746
  Prefactor  = 8.02562
  Prefactor  = 2.32485
  Normalizat = 0.867202
  Prefactor  = 1.12635
 **********
 **   18 **HESSE 
 **********

 FCN=   12626.37     FROM HESSE     STATUS=OK           385 CALLS     2347 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5635        2.0554        .85046E-02   -1.5458    
   2  Prefactor     8.5446        7.2141        .34285E-02   -1.5123    
   3  norm          1.7047        4.4785        .80529E-02   -1.5447    
   4  Prefactor     9.7461        9.4623        .32092E-02   -1.5083    
   5  Prefactor     2.9547        2.7941        .59067E-02   -1.5364    
   6  Prefactor     .10000E-03    .37289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9238        2.4713        .50919E-02   -1.5312    
   8  norm          .10000E-03    2.0363        .54964E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.400        17.342        .28443E-02   -1.5004    
  10  norm          .10000E-03    4.9209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11425E-02    18.002        .14918       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.530        42.078        .19091E-02   -1.4658    
  13  norm          3.3735        1.1438        .55079E-02   -1.5341    
  14  Prefactor     88.531        33.480        .10674E-02   -1.3823    
  15  Prefactor     11.797        8.4017        .29170E-02   -1.5021    
  16  Prefactor     .10000E-03    4.2387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17275        3.0441        .94893E-01   -1.5625    
  18  Prefactor     8.0256        20.095        .35378E-02   -1.5141    
  19  Prefactor     2.3249        2.2145        .67249E-02   -1.5403    
  20  Normalizat    .86720        .13496        .65618E-01   -.97622    
  21  Prefactor     1.1263        .10799        .36663E-01   -.88629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47376e-06
Minuit parameter uncertainties:
  1  2.05546
  2  7.2148
  3  4.47942
  4  9.46379
  5  2.79418
  6  6.50615e-07
  7  2.47133
  8  1.42889e-06
  9  17.3488
  10  9.51325e-07
  11  0.274061
  12  42.1238
  13  1.14382
  14  33.4874
  15  8.40257
  16  1.73708e-05
  17  1.44999
  18  20.1116
  19  2.21462
  20  0.135011
  21  0.108015
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  2.753e+01  4.212e+01  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:  1.126e+00  1.080e-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.672e-01  1.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/68715/likelihoodResults_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.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) = 12625.7241208
delta logL = 0.645628901671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12625.6880772
delta logL = 0.681672531919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0863       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5075       1.0000          .0000       10.000    
     3 'Normalizat'    .82315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1491       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12625.69     FROM MIGRAD    STATUS=FAILED       105 CALLS      360 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0674        173.87        .81371E-03    .52121E-03
   2  Index         3.5087        3.8899        .58161E-02    .15292E-02
   3  Normalizat    .82311        .12866        .29706E-03    .30157E-04
   4  Prefactor     1.1491        .10392        .21113E-03    .33816E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12625.69     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      442 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0674        173.87        .34422E-03    .52121E-03
   2  Index         3.5087        3.8899        .71850E-03    .15292E-02
   3  Normalizat    .82311        .12866        .16573E-03    .30157E-04
   4  Prefactor     1.1491        .10392        .79245E-04    .33816E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12625.69     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      476 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0674        23.968        .16274E-03    .20426E-04
   2  Index         3.5087        1.6438        .11632E-02   -.29125E-05
   3  Normalizat    .82311        .15635        .11882E-04    .30234E-04
   4  Prefactor     1.1491        .12652        .84452E-05    .33923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06742
  Index      = 3.50875
  Normalizat = 0.823114
  Prefactor  = 1.14909
 **********
 **   18 **HESSE 
 **********

 FCN=   12625.69     FROM HESSE     STATUS=OK            25 CALLS      501 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0674        16.442        .32548E-04   -1.5215    
   2  Index         3.5087        1.1385        .46529E-04   -.30286    
   3  Normalizat    .82311        .15567        .23765E-05   -.99217    
   4  Prefactor     1.1491        .12597        .16890E-05   -.87912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63767e-12
Minuit parameter uncertainties:
  1  16.454
  2  1.1496
  3  0.155759
  4  0.126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68715': 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) = 12625.6880764
delta logL = 0.681673345996

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  6.067e+00  1.645e+01  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  3.509e+00  1.150e+00  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:  1.149e+00  1.260e-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.231e-01  1.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 16.851 3.569
Photon Index (Free Index): 3.51 +/- 1.15
Photon Flux (Free Index): 4.97e-08 +/- 4.06e-08
Energy Flux (Free Index): 8.25e-06 +/- 6.59e-06

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/68715/cmap_HighResolution_453686401_454291201_4FGL_J0107.4+0334_weekly_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', comment='SUCCESS', energy_flux2='8.25e-06', dlogl='6.82e-01', photon_flux2='4.97e-08', job_status='DONE', time_completed='2021-07-03 16:18:09.686501', photon_index_error2='1.15', photon_index2='3.51', ts='0.56', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.82e-08', energy_flux_error2='6.59e-06', EG='0.87', time_epoch_completed='1625354289.69', return_code='0', job_id='68715', GAL2='1.15', EG2='0.82', return_code2='0', photon_flux_error2='4.06e-08', ts2='2.03', photon_index='2.35' WHERE bin_id='355' AND source_name='4FGL J0107.4+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 16:18:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0178>
Subject: Job 68715: <4FGL_J0107.4+0334_weekly_bin355> in cluster <slac> Done

Job <4FGL_J0107.4+0334_weekly_bin355> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Jul  3 16:01:46 2021
Job was executed on host(s) <bullet0178>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 16:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 16:01:47 2021
Terminated at Sat Jul  3 16:18:16 2021
Results reported at Sat Jul  3 16:18:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_weekly_bin355 16.8508 3.5691 453686401 454291201 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

